Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-annual-summary
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-annual-summary
提交
78fb8911
提交
78fb8911
编写于
10月 24, 2020
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
接入数据
上级
a0543152
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
42 行增加
和
34 行删除
+42
-34
coupon-select-list.vue
src/components/coupon/coupon-select-list.vue
+41
-33
goods-detail.vue
src/views/goods-detail.vue
+1
-1
未找到文件。
src/components/coupon/coupon-select-list.vue
浏览文件 @
78fb8911
<
template
>
<
template
>
<van-popup
<van-popup
v-model=
"isShowCoupon"
@
click-overlay=
"cancle"
position=
"bottom"
class=
"coupon-select"
>
v-model=
"isShow"
@
click-overlay=
"cancle"
position=
"bottom"
class=
"coupon-select"
>
<section
class=
"coupon-select-wrapper"
>
<section
class=
"coupon-select-wrapper"
>
<article
class=
"title"
>
<article
class=
"title"
>
<span>
优惠券
</span>
<span>
优惠券
</span>
<img
@
click=
"cancle"
src=
"../../images/cme/close.png"
/>
<img
@
click=
"cancle"
src=
"../../images/cme/close.png"
/>
</article>
</article>
<article
v-if=
"true"
class=
"list-wrapper"
>
<article
v-if=
"true"
class=
"list-wrapper"
>
<p>
已选择1张优惠券,共抵扣
<span
class=
"sc thin"
>
¥
{{
couponPrice
}}
</span></p>
<p>
<div
class=
"item"
:class=
"
{'disabled': disabled}" v-for="(item, index) in dataList" :key="index">
已选择1张优惠券,共抵扣
<span
class=
"sc thin"
>
¥
{{
couponPrice
}}
</span>
</p>
<div
class=
"item"
@
click=
"toggleChecked(item)"
:class=
"
{'disabled': disabled}"
v-for="(item, index) in dataList"
:key="index"
>
<div
class=
"left opacity"
>
<div
class=
"left opacity"
>
<p
class=
"price"
><span
class=
"symbol sc"
>
¥
</span><span
class=
"num sc"
>
100
</span></p>
<p
class=
"price"
>
<p
class=
"desc"
>
满100元可用
</p>
<span
class=
"symbol sc"
>
¥
</span>
<span
class=
"num sc"
>
{{
item
.
discountAmount
}}
</span>
</p>
<p
class=
"desc"
>
满
{{
item
.
requiredTotalFee
}}
元可用
</p>
</div>
</div>
<div
class=
"center"
>
<div
class=
"center"
>
<p
class=
"name status"
>
商品名不超过二十字,字数不超过两行
</p>
<p
class=
"name status"
>
{{
item
.
couponName
}}
</p>
<div>
<div>
<p
v-if=
"true"
class=
"date"
>
距离到期仅剩
<span
class=
"sc"
>
8
</span>
天
</p>
<p
v-if=
"item.validTimeType == 2"
class=
"date"
>
<p
v-else
class=
"date status"
>
2020-10-15 至 2020-12-01
</p>
距离到期仅剩
<span
class=
"sc"
>
{{
item
.
validLeftDays
}}
</span>
天
</p>
<p
v-else
class=
"date status"
>
{{
item
.
startTime
}}
至
{{
item
.
expireTime
}}
</p>
<p
v-if=
"disabled"
class=
"tips"
>
<p
v-if=
"disabled"
class=
"tips"
>
<img
@
click=
"cancle"
src=
"../../images/coupon/tips.png"
/>
<img
@
click=
"cancle"
src=
"../../images/coupon/tips.png"
/>
<span>
当前商品不可用
</span>
<span>
当前商品不可用
</span>
</p>
</p>
</div>
</div>
</div>
</div>
<div
class=
"right"
@
click=
"toggleChecked(item)"
>
<div
class=
"right"
>
<img
v-show=
"item.isChecked"
src=
"../../images/coupon/radio-checked.png"
/>
<img
v-show=
"item.isChecked"
src=
"../../images/coupon/radio-checked.png"
/>
<img
v-show=
"!item.isChecked"
src=
"../../images/coupon/radio-no.png"
/>
<img
v-show=
"!item.isChecked"
src=
"../../images/coupon/radio-no.png"
/>
</div>
</div>
...
@@ -49,7 +59,7 @@ export default {
...
@@ -49,7 +59,7 @@ export default {
NoCoupon
NoCoupon
},
},
props
:
{
props
:
{
isShow
:
{
isShow
Coupon
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
true
default
:
true
},
},
...
@@ -63,8 +73,8 @@ export default {
...
@@ -63,8 +73,8 @@ export default {
return
{
return
{
price
:
0
,
price
:
0
,
goodsType
:
0
,
goodsType
:
0
,
cardType
:
0
,
cardType
:
0
}
}
;
}
}
}
}
},
},
...
@@ -74,18 +84,16 @@ export default {
...
@@ -74,18 +84,16 @@ export default {
couponPrice
:
100
,
couponPrice
:
100
,
disabled
:
false
,
disabled
:
false
,
isChecked
:
true
,
isChecked
:
true
,
currentCoupon
:
{
couponId
:
''
,
canUseNum
:
0
,
couponPrice
:
0
}
currentCoupon
:
{
couponId
:
""
,
canUseNum
:
0
,
couponPrice
:
0
}
};
};
},
},
//
//
watch
:
{
watch
:
{
isShow
:
{
// isShowCoupon: {
// 处理是否可用
// // 处理是否可用
handler
(
newVal
)
{
// handler(newVal) {}
// }
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -104,10 +112,10 @@ export default {
...
@@ -104,10 +112,10 @@ export default {
// 切换当前选中优惠券
// 切换当前选中优惠券
toggleChecked
(
item
)
{
toggleChecked
(
item
)
{
if
(
!
item
.
isChecked
)
{
if
(
!
item
.
isChecked
)
{
this
.
dataList
.
forEach
(
(
cItem
,
index
)
=>
{
this
.
dataList
.
forEach
((
cItem
,
index
)
=>
{
cItem
.
isChecked
=
false
;
cItem
.
isChecked
=
false
;
})
})
;
item
.
isChecked
=
true
;
item
.
isChecked
=
true
;
}
else
{
}
else
{
item
.
isChecked
=
false
;
item
.
isChecked
=
false
;
...
@@ -129,7 +137,7 @@ export default {
...
@@ -129,7 +137,7 @@ export default {
// padding: 10px 15px;
// padding: 10px 15px;
display: flex;
display: flex;
flex-direction: column;
flex-direction: column;
background: #
F8F9FA
;
background: #
f8f9fa
;
// padding: 0 0 80px;
// padding: 0 0 80px;
// box-shadow: 0px -2px 10px 0px rgba(0, 0, 0, 0.1);
// box-shadow: 0px -2px 10px 0px rgba(0, 0, 0, 0.1);
.title {
.title {
...
@@ -142,7 +150,7 @@ export default {
...
@@ -142,7 +150,7 @@ export default {
justify-content: center;
justify-content: center;
width: 100%;
width: 100%;
padding: 20px 0 10px;
padding: 20px 0 10px;
background: #
F8F9FA
;
background: #
f8f9fa
;
img {
img {
position: relative;
position: relative;
top: 0;
top: 0;
...
@@ -155,7 +163,7 @@ export default {
...
@@ -155,7 +163,7 @@ export default {
font-size: 13px;
font-size: 13px;
padding: 60px 15px 80px;
padding: 60px 15px 80px;
color: #979899;
color: #979899;
background: #
F8F9FA
;
background: #
f8f9fa
;
.item {
.item {
display: flex;
display: flex;
flex-direction: row;
flex-direction: row;
...
@@ -235,12 +243,12 @@ export default {
...
@@ -235,12 +243,12 @@ export default {
width: 100%;
width: 100%;
display: flex;
display: flex;
padding: 10px 15px;
padding: 10px 15px;
background: #
FFFFFF
;
background: #
ffffff
;
box-shadow: 0px -1px 0px 0px #
F0F0F
0;
box-shadow: 0px -1px 0px 0px #
f0f0f
0;
}
}
.sc {
.sc {
font-weight: 700;
font-weight: 700;
color: #
FB5B
52;
color: #
fb5b
52;
}
}
.thin {
.thin {
font-weight: 400;
font-weight: 400;
...
...
src/views/goods-detail.vue
浏览文件 @
78fb8911
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
<CouponSelectList
<CouponSelectList
:dataList=
"couponDataList"
:dataList=
"couponDataList"
:goodsInfo=
"goodsInfo4Conpon"
:goodsInfo=
"goodsInfo4Conpon"
:isShow=
"isShowCoupon"
:isShow
Coupon
=
"isShowCoupon"
@
cancle=
"closeCouponPopup"
@
cancle=
"closeCouponPopup"
@
confirm=
"showCouponPopup"
>
@
confirm=
"showCouponPopup"
>
</CouponSelectList>
</CouponSelectList>
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录