Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
H
hr_book_store
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
袁龙涛
hr_book_store
Commits
6337d8e4
提交
6337d8e4
authored
3月 19, 2020
作者:
liupengfei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
图书详情页,图书折扣计算精度丢失
上级
311189d1
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
7 行增加
和
7 行删除
+7
-7
index.js
config/index.js
+2
-2
bookItem.vue
src/views/bookItem.vue
+5
-5
没有找到文件。
config/index.js
浏览文件 @
6337d8e4
...
...
@@ -13,7 +13,7 @@ module.exports = {
proxyTable
:
{
'/api'
:
{
// target: 'http://192.168.2.234:8096',//后端接口地址
target
:
'http://122.14.50.6:8096'
,
//后端接口地址
target
:
'http://122.14.50.6:8096'
,
//后端接口地址
changeOrigin
:
true
,
//是否允许跨越
pathRewrite
:
{
'^/api'
:
''
,
//重写,
...
...
@@ -46,7 +46,7 @@ module.exports = {
},
build
:
{
// Template for index.html
index
:
path
.
resolve
(
__dirname
,
'../dist/index.html'
),
...
...
src/views/bookItem.vue
浏览文件 @
6337d8e4
...
...
@@ -88,9 +88,9 @@
<div
class=
"spyy03"
>
<span>
售价:
<i
class=
"z-s-e"
><b>
¥{{temp.pbook.salePrice}}
</b>
<
template
v-if=
"temp.pbook.discount&&temp.pbook.salePrice!=temp.pbook.price"
>
(
{{
temp
.
pbook
.
discount
*
1
0
}}
折)
(
{{
Math
.
round
((
temp
.
pbook
.
discount
*
10
)
*
1000
)
/
100
0
}}
折)
</
template
>
</i></span>
</i></span>
<s></s>
<span><del>
定价:¥{{temp.pbook.price}}
</del></span>
</div>
...
...
@@ -122,7 +122,7 @@
<div
class=
"dxzshul"
>
<img
src=
"@/assets/images/sdve.jpg"
@
click=
"sdve"
/>
<img
src=
"@/assets/images/cscc.jpg"
@
click=
"cscc"
/>
</div>
</div>
</div>
<button
class=
"hsed"
v-if=
"bookNum==null"
@
click
.
prevent=
"addCar"
>
加入购物车
</button>
<button
class=
"hsed"
v-if=
"bookNum!=null"
:disabled=
"bookNum
<1
||
purchaseNum
>
bookNum" @click.prevent="addCar">加入购物车
</button>
...
...
@@ -478,7 +478,7 @@
getBulletinContApi
({
name
:
'购物须知'
,
num
:
1
}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
0
){
res
.
data
.
code
===
0
?
this
.
instructions
=
res
.
data
.
data
[
0
]:
null
;
if
(
res
.
data
.
data
[
0
].
content
==
""
){
if
(
res
.
data
.
data
[
0
].
content
==
""
){
this
.
shopNull
=
false
}
...
...
@@ -973,7 +973,7 @@
line-height
:
28px
;
float
:
left
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论