xiaoe_mp_npm 1.0.0-live6 → 1.0.0-live8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/miniprogram_dist/Task/TaskBubble/index.js +47 -1
- package/miniprogram_dist/Task/TaskBubble/index.scss +2 -1
- package/miniprogram_dist/Task/TaskBubble/index.wxml +22 -24
- package/miniprogram_dist/Task/TaskBubble/index.wxss +6 -3
- package/miniprogram_dist/Task/TaskIcon/index.js +5 -1
- package/miniprogram_dist/Task/TaskIcon/index.scss +1 -0
- package/miniprogram_dist/Task/TaskIcon/index.wxml +1 -1
- package/miniprogram_dist/Task/TaskIcon/index.wxss +3 -0
- package/miniprogram_dist/Task/taskReceivePopup/coupon/index.js +19 -0
- package/miniprogram_dist/Task/taskReceivePopup/coupon/index.scss +8 -0
- package/miniprogram_dist/Task/taskReceivePopup/coupon/index.wxml +22 -19
- package/miniprogram_dist/Task/taskReceivePopup/coupon/index.wxs +48 -0
- package/miniprogram_dist/Task/taskReceivePopup/coupon/index.wxss +24 -0
- package/miniprogram_dist/Task/taskReceivePopup/index.js +4 -8
- package/miniprogram_dist/Task/taskReceivePopup/index.wxml +9 -7
- package/miniprogram_dist/Task/taskReceivePopup/integral/index.js +4 -0
- package/miniprogram_dist/Task/taskReceivePopup/integral/index.wxml +1 -1
- package/package.json +1 -1
- package/src/LiveGoodsList/index.wxss +230 -230
- package/src/Task/TaskBubble/index.js +47 -1
- package/src/Task/TaskBubble/index.scss +2 -1
- package/src/Task/TaskBubble/index.wxml +22 -24
- package/src/Task/TaskBubble/index.wxss +1 -1
- package/src/Task/TaskIcon/index.js +5 -1
- package/src/Task/TaskIcon/index.scss +1 -0
- package/src/Task/TaskIcon/index.wxml +1 -1
- package/src/Task/TaskIcon/index.wxss +1 -127
- package/src/Task/TaskPopup/component/TaskItem/index.wxss +362 -362
- package/src/Task/TaskPopup/component/TaskList/index.wxss +98 -98
- package/src/Task/TaskPopup/component/TaskType/index.wxss +98 -98
- package/src/Task/TaskPopup/index.wxss +250 -250
- package/src/Task/taskReceivePopup/coupon/index.js +19 -0
- package/src/Task/taskReceivePopup/coupon/index.scss +8 -0
- package/src/Task/taskReceivePopup/coupon/index.wxml +22 -19
- package/src/Task/taskReceivePopup/coupon/index.wxs +48 -0
- package/src/Task/taskReceivePopup/coupon/index.wxss +1 -163
- package/src/Task/taskReceivePopup/index.js +4 -8
- package/src/Task/taskReceivePopup/index.wxml +9 -7
- package/src/Task/taskReceivePopup/integral/index.js +4 -0
- package/src/Task/taskReceivePopup/integral/index.wxml +1 -1
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
const computedBehavior = require('miniprogram-computed').behavior
|
|
1
2
|
Component({
|
|
3
|
+
behaviors: [computedBehavior],
|
|
2
4
|
/**
|
|
3
5
|
* 组件的属性列表
|
|
4
6
|
*/
|
|
5
7
|
properties: {
|
|
6
|
-
|
|
8
|
+
taskMsg: {
|
|
7
9
|
type: Object,
|
|
8
10
|
value: {},
|
|
9
11
|
},
|
|
@@ -14,6 +16,25 @@ Component({
|
|
|
14
16
|
*/
|
|
15
17
|
data: {
|
|
16
18
|
animationData: {},
|
|
19
|
+
taskIcon: {
|
|
20
|
+
1: "https://commonresource-1252524126.cdn.xiaoeknow.com/image/lopitz1y0v93.png",
|
|
21
|
+
2: "https://commonresource-1252524126.cdn.xiaoeknow.com/image/lopitz1w0t4k.png"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
|
|
25
|
+
computed: {
|
|
26
|
+
// 奖品类型
|
|
27
|
+
rewardValue(data){
|
|
28
|
+
return data.taskMsg.live_task?.task_type === 1? this.convertMinutesToHoursAndMinutes(data.taskMsg.live_task?.reward_value) : ['', '发表评论', '转发直播间', '完成点赞'][data.taskMsg.live_task?.task_condition] || ''
|
|
29
|
+
},
|
|
30
|
+
// 奖品icon
|
|
31
|
+
taskIconImg(data){
|
|
32
|
+
return data.taskIcon[data.taskMsg.live_task?.reward_type]
|
|
33
|
+
},
|
|
34
|
+
// 奖品数量
|
|
35
|
+
prizeNum(data){
|
|
36
|
+
return data.taskMsg.live_task?.reward_type === 1? data.taskMsg.live_task?.reward_value: data.taskMsg.coupon_list?.length
|
|
37
|
+
}
|
|
17
38
|
},
|
|
18
39
|
|
|
19
40
|
lifetimes: {},
|
|
@@ -22,6 +43,12 @@ Component({
|
|
|
22
43
|
* 组件的方法列表
|
|
23
44
|
*/
|
|
24
45
|
methods: {
|
|
46
|
+
// 气泡点击事件
|
|
47
|
+
bubbleClick(){
|
|
48
|
+
this.triggerEvent("bubbleClick")
|
|
49
|
+
},
|
|
50
|
+
|
|
51
|
+
// 显示气泡动画
|
|
25
52
|
showBubble() {
|
|
26
53
|
const animation = wx.createAnimation({
|
|
27
54
|
duration: 1500,
|
|
@@ -38,6 +65,7 @@ Component({
|
|
|
38
65
|
}, 1500)
|
|
39
66
|
},
|
|
40
67
|
|
|
68
|
+
// 隐藏气泡动画
|
|
41
69
|
hideBubble() {
|
|
42
70
|
const animation = wx.createAnimation({
|
|
43
71
|
duration: 1500,
|
|
@@ -56,6 +84,7 @@ Component({
|
|
|
56
84
|
}, 1500) // 设置延时与动画时长一致
|
|
57
85
|
},
|
|
58
86
|
|
|
87
|
+
// 重置气泡位置
|
|
59
88
|
restoreElement() {
|
|
60
89
|
const animation = wx.createAnimation({
|
|
61
90
|
duration: 0, // 立即执行,无过渡效果
|
|
@@ -67,5 +96,22 @@ Component({
|
|
|
67
96
|
animationData: animation.export(),
|
|
68
97
|
})
|
|
69
98
|
},
|
|
99
|
+
|
|
100
|
+
convertMinutesToHoursAndMinutes(minutes) {
|
|
101
|
+
if (isNaN(minutes) || minutes < 0) {
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
const hours = Math.floor(minutes / 60);
|
|
106
|
+
const remainingMinutes = minutes % 60;
|
|
107
|
+
|
|
108
|
+
if (hours === 0) {
|
|
109
|
+
return `达${remainingMinutes}分钟`;
|
|
110
|
+
} else if (remainingMinutes === 0) {
|
|
111
|
+
return `达${hours}小时`;
|
|
112
|
+
} else {
|
|
113
|
+
return `达${hours}小时${remainingMinutes}分钟`;
|
|
114
|
+
}
|
|
115
|
+
},
|
|
70
116
|
},
|
|
71
117
|
})
|
|
@@ -29,12 +29,13 @@ $deviceWidth: 750;
|
|
|
29
29
|
height: vmin(48);
|
|
30
30
|
border-radius: 50%;
|
|
31
31
|
margin-left: vmin(10);
|
|
32
|
+
margin-right: vmin(8);
|
|
32
33
|
flex-shrink: 0;
|
|
33
34
|
}
|
|
34
35
|
.task-type {
|
|
35
36
|
display: flex;
|
|
36
37
|
flex-direction: column;
|
|
37
|
-
margin-
|
|
38
|
+
margin-right: vmin(8);
|
|
38
39
|
overflow: hidden;
|
|
39
40
|
text-overflow: ellipsis;
|
|
40
41
|
white-space: nowrap;
|
|
@@ -1,27 +1,25 @@
|
|
|
1
|
-
<view>
|
|
2
|
-
<view class="barrage-
|
|
3
|
-
<view class="barrage-
|
|
4
|
-
<view class="barrage-
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
/>
|
|
24
|
-
</view>
|
|
1
|
+
<view class="barrage-container" catch:tap="bubbleClick">
|
|
2
|
+
<view class="barrage-wrap">
|
|
3
|
+
<view class="barrage-item" animation="{{animationData}}">
|
|
4
|
+
<view class="barrage-content">
|
|
5
|
+
<image
|
|
6
|
+
class="task-completion-icon"
|
|
7
|
+
src="https://commonresource-1252524126.cdn.xiaoeknow.com/image/lopitz1y0c73.png"
|
|
8
|
+
alt
|
|
9
|
+
/>
|
|
10
|
+
<view wx:if="{{taskMsg.live_task.task_type === 1}}" class="task-type">观看时长</view>
|
|
11
|
+
<view>{{ rewardValue }}</view>
|
|
12
|
+
<image
|
|
13
|
+
class="prize-icon"
|
|
14
|
+
src="{{taskIconImg}}"
|
|
15
|
+
alt="奖励"
|
|
16
|
+
/>
|
|
17
|
+
<view class="prize-num">+{{ prizeNum }}</view>
|
|
18
|
+
<image
|
|
19
|
+
class="right-arrow-icon"
|
|
20
|
+
src="https://commonresource-1252524126.cdn.xiaoeknow.com/image/lopitz1k0dzj.png"
|
|
21
|
+
alt
|
|
22
|
+
/>
|
|
25
23
|
</view>
|
|
26
24
|
</view>
|
|
27
25
|
</view>
|
|
@@ -24,12 +24,13 @@
|
|
|
24
24
|
height: 6.4vmin;
|
|
25
25
|
border-radius: 50%;
|
|
26
26
|
margin-left: 1.33333vmin;
|
|
27
|
+
margin-right: 1.06667vmin;
|
|
27
28
|
flex-shrink: 0;
|
|
28
29
|
}
|
|
29
30
|
.barrage-container .barrage-wrap .barrage-item .task-type {
|
|
30
31
|
display: flex;
|
|
31
32
|
flex-direction: column;
|
|
32
|
-
margin-
|
|
33
|
+
margin-right: 1.06667vmin;
|
|
33
34
|
overflow: hidden;
|
|
34
35
|
text-overflow: ellipsis;
|
|
35
36
|
white-space: nowrap;
|
|
@@ -119,12 +120,13 @@
|
|
|
119
120
|
height: 3.125vmin;
|
|
120
121
|
border-radius: 50%;
|
|
121
122
|
margin-left: 0.65104vmin;
|
|
123
|
+
margin-right: 0.52083vmin;
|
|
122
124
|
flex-shrink: 0;
|
|
123
125
|
}
|
|
124
126
|
.barrage-container .barrage-wrap .barrage-item .task-type {
|
|
125
127
|
display: flex;
|
|
126
128
|
flex-direction: column;
|
|
127
|
-
margin-
|
|
129
|
+
margin-right: 0.52083vmin;
|
|
128
130
|
overflow: hidden;
|
|
129
131
|
text-overflow: ellipsis;
|
|
130
132
|
white-space: nowrap;
|
|
@@ -215,12 +217,13 @@
|
|
|
215
217
|
height: 3.125vmin;
|
|
216
218
|
border-radius: 50%;
|
|
217
219
|
margin-left: 0.65104vmin;
|
|
220
|
+
margin-right: 0.52083vmin;
|
|
218
221
|
flex-shrink: 0;
|
|
219
222
|
}
|
|
220
223
|
.barrage-container .barrage-wrap .barrage-item .task-type {
|
|
221
224
|
display: flex;
|
|
222
225
|
flex-direction: column;
|
|
223
|
-
margin-
|
|
226
|
+
margin-right: 0.52083vmin;
|
|
224
227
|
overflow: hidden;
|
|
225
228
|
text-overflow: ellipsis;
|
|
226
229
|
white-space: nowrap;
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
height: 100%;
|
|
14
14
|
border-radius: 2.13333vmin;
|
|
15
15
|
margin: 0 4.26667vmin 3.2vmin 0;
|
|
16
|
+
pointer-events: auto;
|
|
16
17
|
}
|
|
17
18
|
.taskIcon .task-icon {
|
|
18
19
|
flex-shrink: 0;
|
|
@@ -55,6 +56,7 @@
|
|
|
55
56
|
height: 100%;
|
|
56
57
|
border-radius: 1.04167vmin;
|
|
57
58
|
margin: 0 2.08333vmin 1.5625vmin 0;
|
|
59
|
+
pointer-events: auto;
|
|
58
60
|
}
|
|
59
61
|
.taskIcon .task-icon {
|
|
60
62
|
flex-shrink: 0;
|
|
@@ -98,6 +100,7 @@
|
|
|
98
100
|
height: 100%;
|
|
99
101
|
border-radius: 1.04167vmin;
|
|
100
102
|
margin: 0 2.08333vmin 1.5625vmin 0;
|
|
103
|
+
pointer-events: auto;
|
|
101
104
|
}
|
|
102
105
|
.taskIcon .task-icon {
|
|
103
106
|
flex-shrink: 0;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
const computedBehavior = require('miniprogram-computed').behavior
|
|
1
2
|
Component({
|
|
3
|
+
behaviors: [computedBehavior],
|
|
2
4
|
/**
|
|
3
5
|
* 组件的属性列表
|
|
4
6
|
*/
|
|
@@ -12,12 +14,29 @@ Component({
|
|
|
12
14
|
type: Boolean,
|
|
13
15
|
value: false,
|
|
14
16
|
},
|
|
17
|
+
rewardData: {
|
|
18
|
+
type: Object,
|
|
19
|
+
value: {},
|
|
20
|
+
}
|
|
15
21
|
},
|
|
16
22
|
|
|
17
23
|
/**
|
|
18
24
|
* 组件的初始数据
|
|
19
25
|
*/
|
|
20
26
|
data: {},
|
|
27
|
+
computed: {
|
|
28
|
+
receiveCouponNowMsg(data){
|
|
29
|
+
return data.rewardData.coupon_list[0]
|
|
30
|
+
},
|
|
31
|
+
isShowPoint(data) {
|
|
32
|
+
let tempPrice = data.receiveCouponNowMsg.price;
|
|
33
|
+
if (tempPrice % 100 == 0) {
|
|
34
|
+
return false;
|
|
35
|
+
} else {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
},
|
|
21
40
|
|
|
22
41
|
/**
|
|
23
42
|
* 组件的方法列表
|
|
@@ -28,12 +28,20 @@ $deviceWidth: 750;
|
|
|
28
28
|
color: #fd2b54;
|
|
29
29
|
font-size: vmin(40);
|
|
30
30
|
line-height: vmin(40);
|
|
31
|
+
margin-right: vmin(4);
|
|
31
32
|
}
|
|
32
33
|
.boldIcon {
|
|
33
34
|
color: #fd2b54;
|
|
34
35
|
font-size: vmin(80);
|
|
35
36
|
line-height: vmin(80);
|
|
36
37
|
}
|
|
38
|
+
.discountFont{
|
|
39
|
+
color: #fd2b54;
|
|
40
|
+
font-size: vmin(32);
|
|
41
|
+
line-height: vmin(32);
|
|
42
|
+
margin-left: vmin(4);
|
|
43
|
+
font-weight: 600;
|
|
44
|
+
}
|
|
37
45
|
}
|
|
38
46
|
&__content-describe {
|
|
39
47
|
color: #333333;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
<wxs src="./index.wxs" module="couponReceivePopup" />
|
|
1
2
|
<van-popup
|
|
2
3
|
show="{{showCouponReceivePopup}}"
|
|
3
4
|
round
|
|
@@ -9,39 +10,41 @@
|
|
|
9
10
|
<view class="receive-container">
|
|
10
11
|
<view class="receive-container__content">
|
|
11
12
|
<view class="receive-container__content-price">
|
|
12
|
-
<
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
<view wx:if="{{receiveCouponNowMsg.discount_way === 1}}">
|
|
14
|
+
<text class="smallIcon">¥</text>
|
|
15
|
+
<text class="boldIcon">{{ couponReceivePopup.filterPrice(receiveCouponNowMsg.price) }}</text>
|
|
16
|
+
<text class="smallIcon" wx:if="{{isShowPoint}}">.{{ couponReceivePopup.fixedFont(receiveCouponNowMsg.price) }}</text>
|
|
17
|
+
</view>
|
|
18
|
+
<text wx:if="{{receiveCouponNowMsg.discount_way === 2}}">
|
|
19
|
+
<text class="boldIcon">{{ couponReceivePopup.filterPrice(receiveCouponNowMsg.discount_percent, false) }}</text>
|
|
20
|
+
<text class="boldIcon" wx:if="{{receiveCouponNowMsg.discount_percent % 10 !== 0}}">.{{ couponReceivePopup.fixedFont(receiveCouponNowMsg.discount_percent, false) }}</text>
|
|
21
|
+
<text class="discountFont">折</text>
|
|
22
|
+
</text>
|
|
15
23
|
</view>
|
|
16
24
|
<view class="receive-container__content-describe">
|
|
17
25
|
<!-- 无门槛 -->
|
|
18
|
-
|
|
19
|
-
<view>无门槛</view>
|
|
26
|
+
<view wx:if="{{receiveCouponNowMsg.require_price == 0}}">无门槛</view>
|
|
20
27
|
<!-- 满xx元可用 -->
|
|
21
|
-
|
|
22
|
-
$t("coupon.over_available", { num: receiveCouponNowMsg.require_price / 100 })
|
|
23
|
-
}}</text> -->
|
|
28
|
+
<view wx:else>满{{ receiveCouponNowMsg.require_price / 100 }}元可用</view>
|
|
24
29
|
<!-- 全部商品可用 -->
|
|
25
|
-
|
|
30
|
+
<view wx:if="{{receiveCouponNowMsg.type == 1}}">全部商品可用</view>
|
|
26
31
|
<!-- 部分商品可用 -->
|
|
27
|
-
|
|
32
|
+
<view wx:else>部分商品可用</view>
|
|
28
33
|
<!-- 领取次日x天内有效 / 自领取起x天内有效-->
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}}</text> -->
|
|
34
|
-
<view>限指定商品使用</view>
|
|
34
|
+
<view wx:if="{{receiveCouponNowMsg.valid_day}}">
|
|
35
|
+
<view wx:if="{{receiveCouponNowMsg.valid_after == 1}}">领取次日{{receiveCouponNowMsg.valid_day}}天内有效</view>
|
|
36
|
+
<view wx:else>自领取起{{receiveCouponNowMsg.valid_day}}天内有效</view>
|
|
37
|
+
</view>
|
|
35
38
|
<!-- 有效期至 -->
|
|
36
|
-
<view>
|
|
37
|
-
有效期至:
|
|
39
|
+
<view wx:if="{{!receiveCouponNowMsg.valid_day && receiveCouponNowMsg.valid_at && receiveCouponNowMsg.invalid_at}}">
|
|
40
|
+
有效期至:{{ couponReceivePopup.formatDateToMinte(receiveCouponNowMsg.invalid_at) }}
|
|
38
41
|
</view>
|
|
39
42
|
</view>
|
|
40
43
|
</view>
|
|
41
44
|
</view>
|
|
42
45
|
<image
|
|
43
46
|
src="https://commonresource-1252524126.cdn.xiaoeknow.com/image/lmimm9mb0q88.png"
|
|
44
|
-
alt
|
|
47
|
+
alt
|
|
45
48
|
class="receive-container__close"
|
|
46
49
|
catchtap="closePopup"
|
|
47
50
|
/>
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*
|
|
2
|
+
使用目的:
|
|
3
|
+
这里定义的函数,用在页面中, 类似于 Vue 里的 computed
|
|
4
|
+
|
|
5
|
+
注意点:
|
|
6
|
+
1. wxs中不支持 let , const
|
|
7
|
+
2. 导出的时候,即使 key 和 value 相同, 也不能简写。
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
// 做数值过滤,value-要处理的数字 ToFix2-默认保留两位,默认转分转元,除以100。其他除以10(如折扣)
|
|
11
|
+
var filterPrice = function (value, ToFix2 = true) {
|
|
12
|
+
var result = (value / 100).toString();
|
|
13
|
+
if (!ToFix2) {
|
|
14
|
+
result = (value / 10).toString();
|
|
15
|
+
}
|
|
16
|
+
if (result.indexOf(".") > 0) {
|
|
17
|
+
return result.split(".")[0];
|
|
18
|
+
} else {
|
|
19
|
+
return result;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// 小数点后的样式补充 ToFix2-默认保留2位,其他保留1位
|
|
24
|
+
var fixedFont = function (value, ToFix2 = true) {
|
|
25
|
+
if (value) {
|
|
26
|
+
var result = (value / 100).toString();
|
|
27
|
+
if (!ToFix2) {
|
|
28
|
+
result = (value / 10).toString();
|
|
29
|
+
}
|
|
30
|
+
if (result.toString().indexOf(".") > -1) {
|
|
31
|
+
return result.split(".")[1];
|
|
32
|
+
} else {
|
|
33
|
+
return "";
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// 时间精确到分
|
|
39
|
+
var formatDateToMinte = function (date) {
|
|
40
|
+
var lastIndex = date.lastIndexOf(":");
|
|
41
|
+
return date.substring(0, lastIndex).replace(getRegExp('-', 'g'), ".");
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
module.exports = {
|
|
45
|
+
filterPrice: filterPrice,
|
|
46
|
+
fixedFont: fixedFont,
|
|
47
|
+
formatDateToMinte: formatDateToMinte
|
|
48
|
+
}
|
|
@@ -23,12 +23,20 @@
|
|
|
23
23
|
color: #fd2b54;
|
|
24
24
|
font-size: 5.33333vmin;
|
|
25
25
|
line-height: 5.33333vmin;
|
|
26
|
+
margin-right: 0.53333vmin;
|
|
26
27
|
}
|
|
27
28
|
.coupon-receive-popup .receive-container__content-price .boldIcon {
|
|
28
29
|
color: #fd2b54;
|
|
29
30
|
font-size: 10.66667vmin;
|
|
30
31
|
line-height: 10.66667vmin;
|
|
31
32
|
}
|
|
33
|
+
.coupon-receive-popup .receive-container__content-price .discountFont {
|
|
34
|
+
color: #fd2b54;
|
|
35
|
+
font-size: 4.26667vmin;
|
|
36
|
+
line-height: 4.26667vmin;
|
|
37
|
+
margin-left: 0.53333vmin;
|
|
38
|
+
font-weight: 600;
|
|
39
|
+
}
|
|
32
40
|
.coupon-receive-popup .receive-container__content-describe {
|
|
33
41
|
color: #333333;
|
|
34
42
|
font-size: 3.73333vmin;
|
|
@@ -77,12 +85,20 @@
|
|
|
77
85
|
color: #fd2b54;
|
|
78
86
|
font-size: 2.60417vmin;
|
|
79
87
|
line-height: 2.60417vmin;
|
|
88
|
+
margin-right: 0.26042vmin;
|
|
80
89
|
}
|
|
81
90
|
.coupon-receive-popup .receive-container__content-price .boldIcon {
|
|
82
91
|
color: #fd2b54;
|
|
83
92
|
font-size: 5.20833vmin;
|
|
84
93
|
line-height: 5.20833vmin;
|
|
85
94
|
}
|
|
95
|
+
.coupon-receive-popup .receive-container__content-price .discountFont {
|
|
96
|
+
color: #fd2b54;
|
|
97
|
+
font-size: 2.08333vmin;
|
|
98
|
+
line-height: 2.08333vmin;
|
|
99
|
+
margin-left: 0.26042vmin;
|
|
100
|
+
font-weight: 600;
|
|
101
|
+
}
|
|
86
102
|
.coupon-receive-popup .receive-container__content-describe {
|
|
87
103
|
color: #333333;
|
|
88
104
|
font-size: 1.82292vmin;
|
|
@@ -132,12 +148,20 @@
|
|
|
132
148
|
color: #fd2b54;
|
|
133
149
|
font-size: 2.60417vmin;
|
|
134
150
|
line-height: 2.60417vmin;
|
|
151
|
+
margin-right: 0.26042vmin;
|
|
135
152
|
}
|
|
136
153
|
.coupon-receive-popup .receive-container__content-price .boldIcon {
|
|
137
154
|
color: #fd2b54;
|
|
138
155
|
font-size: 5.20833vmin;
|
|
139
156
|
line-height: 5.20833vmin;
|
|
140
157
|
}
|
|
158
|
+
.coupon-receive-popup .receive-container__content-price .discountFont {
|
|
159
|
+
color: #fd2b54;
|
|
160
|
+
font-size: 2.08333vmin;
|
|
161
|
+
line-height: 2.08333vmin;
|
|
162
|
+
margin-left: 0.26042vmin;
|
|
163
|
+
font-weight: 600;
|
|
164
|
+
}
|
|
141
165
|
.coupon-receive-popup .receive-container__content-describe {
|
|
142
166
|
color: #333333;
|
|
143
167
|
font-size: 1.82292vmin;
|
|
@@ -8,14 +8,10 @@ Component({
|
|
|
8
8
|
type: Boolean,
|
|
9
9
|
value: false,
|
|
10
10
|
},
|
|
11
|
-
|
|
12
|
-
type:
|
|
13
|
-
value:
|
|
14
|
-
}
|
|
15
|
-
showIntegralReceivePopup: {
|
|
16
|
-
type: Boolean,
|
|
17
|
-
value: false,
|
|
18
|
-
},
|
|
11
|
+
rewardData: {
|
|
12
|
+
type: Object,
|
|
13
|
+
value: {},
|
|
14
|
+
}
|
|
19
15
|
},
|
|
20
16
|
|
|
21
17
|
/**
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
<view>
|
|
2
|
-
<!-- 优惠券奖励弹窗 -->
|
|
3
|
-
<coupon-popup
|
|
4
|
-
showCouponReceivePopup="{{showCouponReceivePopup}}"
|
|
5
|
-
isFullScreen="{{isFullcreen}}"
|
|
6
|
-
bind:close="handleClose"
|
|
7
|
-
></coupon-popup>
|
|
8
2
|
<!-- 积分奖励弹窗 -->
|
|
9
3
|
<integral-popup
|
|
10
|
-
|
|
4
|
+
rewardData="{{rewardData}}"
|
|
5
|
+
showIntegralReceivePopup="{{rewardData.live_task.reward_type === 1}}"
|
|
11
6
|
isFullScreen="{{isFullScreen}}"
|
|
12
7
|
bind:close="handleClose"
|
|
13
8
|
></integral-popup>
|
|
9
|
+
<!-- 优惠券奖励弹窗 -->
|
|
10
|
+
<coupon-popup
|
|
11
|
+
rewardData="{{rewardData}}"
|
|
12
|
+
showCouponReceivePopup="{{rewardData.live_task.reward_type === 2}}"
|
|
13
|
+
isFullScreen="{{isFullScreen}}"
|
|
14
|
+
bind:close="handleClose"
|
|
15
|
+
></coupon-popup>
|
|
14
16
|
</view>
|
|
15
17
|
|