xiaoe_mp_npm 0.1.23-t0321 → 0.2.1
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/.gitlab-ci.yml +1 -1
- package/miniprogram_dist/GoodsItem/index.js +1 -1
- package/miniprogram_dist/Lottery/components/CommonPopup/index.less +4 -4
- package/miniprogram_dist/Lottery/components/CommonPopup/index.wxss +4 -4
- package/miniprogram_dist/Lottery/components/LotteryInfo/index.js +5 -2
- package/miniprogram_dist/Lottery/components/LotteryInfo/index.wxml +1 -1
- package/miniprogram_dist/Lottery/components/LotteryResult/LosingLottery/index.js +4 -1
- package/miniprogram_dist/Lottery/components/LotteryResult/LosingLottery/index.wxml +1 -1
- package/miniprogram_dist/Lottery/components/LotteryResult/WinLottery/index.js +2 -1
- package/miniprogram_dist/Lottery/components/LotteryResult/WinLottery/index.wxml +1 -1
- package/miniprogram_dist/Lottery/components/Winners/index.js +3 -1
- package/miniprogram_dist/Lottery/components/Winners/index.wxml +2 -1
- package/miniprogram_dist/Lottery/constants.js +2 -1
- package/miniprogram_dist/Lottery/store/reducer.js +6 -0
- package/miniprogram_dist/Sku/commSelect/index.js +1 -1
- package/miniprogram_dist/common/utils/helper.js +1 -1
- package/package.json +1 -1
- package/src/GoodsItem/index.js +1 -1
- package/src/Lottery/components/CommonPopup/index.less +4 -4
- package/src/Lottery/components/CommonPopup/index.wxss +4 -4
- package/src/Lottery/components/LotteryInfo/index.js +5 -2
- package/src/Lottery/components/LotteryInfo/index.wxml +1 -1
- package/src/Lottery/components/LotteryResult/LosingLottery/index.js +4 -1
- package/src/Lottery/components/LotteryResult/LosingLottery/index.wxml +1 -1
- package/src/Lottery/components/LotteryResult/WinLottery/index.js +2 -1
- package/src/Lottery/components/LotteryResult/WinLottery/index.wxml +1 -1
- package/src/Lottery/components/Winners/index.js +3 -1
- package/src/Lottery/components/Winners/index.wxml +2 -1
- package/src/Lottery/constants.js +2 -1
- package/src/Lottery/store/reducer.js +6 -0
- package/src/Sku/commSelect/index.js +1 -1
- package/src/common/utils/helper.js +1 -1
package/.gitlab-ci.yml
CHANGED
|
@@ -234,7 +234,7 @@ Component({
|
|
|
234
234
|
}
|
|
235
235
|
},
|
|
236
236
|
filterSrc(data){
|
|
237
|
-
return utils.replaceCDN(data.goodsItem.img_url, '?
|
|
237
|
+
return utils.replaceCDN(data.goodsItem.img_url, '?imageMogr2/thumbnail/400x400>/ignore-error/1')
|
|
238
238
|
}
|
|
239
239
|
},
|
|
240
240
|
/**
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
&.red {
|
|
18
18
|
// 红色背景的抽奖弹窗顶部超出一部分,高度特殊计算
|
|
19
19
|
overflow: hidden;
|
|
20
|
-
height: calc(100% -
|
|
20
|
+
height: calc(100% - 320rpx);
|
|
21
21
|
background: transparent !important;
|
|
22
22
|
.close-icon {
|
|
23
23
|
top: 136rpx;
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
&.orange {
|
|
40
|
-
height: calc(100% -
|
|
40
|
+
height: calc(100% - 422rpx);
|
|
41
41
|
background: transparent !important;
|
|
42
42
|
.close-icon {
|
|
43
43
|
top: 24rpx;
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
&.white {
|
|
51
|
-
height: calc(100% -
|
|
51
|
+
height: calc(100% - 422rpx);
|
|
52
52
|
background: #fff;
|
|
53
53
|
.close-icon {
|
|
54
54
|
top: 24rpx;
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
}
|
|
61
61
|
// custom-classes
|
|
62
62
|
&.address-collection-popup {
|
|
63
|
-
height: calc(100% -
|
|
63
|
+
height: calc(100% - 422rpx);
|
|
64
64
|
background: #f5f5f5;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
}
|
|
16
16
|
.common-popup.red {
|
|
17
17
|
overflow: hidden;
|
|
18
|
-
height: calc(100% -
|
|
18
|
+
height: calc(100% - 320rpx);
|
|
19
19
|
background: transparent !important;
|
|
20
20
|
}
|
|
21
21
|
.common-popup.red .close-icon {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
background: linear-gradient(to right, #FE8758, #FE9656);
|
|
35
35
|
}
|
|
36
36
|
.common-popup.orange {
|
|
37
|
-
height: calc(100% -
|
|
37
|
+
height: calc(100% - 422rpx);
|
|
38
38
|
background: transparent !important;
|
|
39
39
|
}
|
|
40
40
|
.common-popup.orange .close-icon {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
left: 0;
|
|
46
46
|
}
|
|
47
47
|
.common-popup.white {
|
|
48
|
-
height: calc(100% -
|
|
48
|
+
height: calc(100% - 422rpx);
|
|
49
49
|
background: #fff;
|
|
50
50
|
}
|
|
51
51
|
.common-popup.white .close-icon {
|
|
@@ -56,6 +56,6 @@
|
|
|
56
56
|
height: 240rpx;
|
|
57
57
|
}
|
|
58
58
|
.common-popup.address-collection-popup {
|
|
59
|
-
height: calc(100% -
|
|
59
|
+
height: calc(100% - 422rpx);
|
|
60
60
|
background: #f5f5f5;
|
|
61
61
|
}
|
|
@@ -20,13 +20,14 @@ Component(
|
|
|
20
20
|
data: {
|
|
21
21
|
remotePic,
|
|
22
22
|
prizeInfo: {},
|
|
23
|
-
selectedIndex: 0
|
|
23
|
+
selectedIndex: 0,
|
|
24
|
+
isShowParticipant: 0 //0 不展示,1 展示
|
|
24
25
|
},
|
|
25
26
|
computed: {
|
|
26
27
|
countdownLabel(data) {
|
|
27
28
|
return `${
|
|
28
29
|
data.prizeInfo.prize_activity_num ? `${data.prizeInfo.prize_activity_num}人已参与` : '暂无人参与'
|
|
29
|
-
}
|
|
30
|
+
}`
|
|
30
31
|
},
|
|
31
32
|
joinPrompt(data) {
|
|
32
33
|
const joinBtnMap = {
|
|
@@ -108,7 +109,9 @@ Component(
|
|
|
108
109
|
if (data.code === 0) {
|
|
109
110
|
const prizeInfo = data.data || {}
|
|
110
111
|
this.setData({prizeInfo})
|
|
112
|
+
this.setData({isShowParticipant: prizeInfo.is_show_participant})
|
|
111
113
|
this.store.dispatch({type: 'set_participation_condition', payload: prizeInfo.prize_condition})
|
|
114
|
+
this.store.dispatch({type: 'is_show_participant', payload: prizeInfo.is_show_participant})
|
|
112
115
|
}
|
|
113
116
|
})
|
|
114
117
|
.catch(err => {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<text wx:else>本次抽奖无人中奖</text>
|
|
13
13
|
</view>
|
|
14
14
|
<view wx:else class="countdown-box">
|
|
15
|
-
<text class="label">{{countdownLabel}}
|
|
15
|
+
<text class="label" wx:if="{{isShowParticipant}}">{{countdownLabel}},</text><text class="label">开奖倒计时</text>
|
|
16
16
|
<lottery-countdown></lottery-countdown>
|
|
17
17
|
</view>
|
|
18
18
|
<view class="prize-box">
|
|
@@ -3,7 +3,10 @@ import {connect} from '../../../store/index'
|
|
|
3
3
|
|
|
4
4
|
const computedBehavior = require('miniprogram-computed').behavior
|
|
5
5
|
|
|
6
|
-
const mapState = state => ({
|
|
6
|
+
const mapState = state => ({
|
|
7
|
+
lotteryInfo: state.lotteryInfo,
|
|
8
|
+
isShowParticipant: state.isShowParticipant
|
|
9
|
+
})
|
|
7
10
|
Component(
|
|
8
11
|
connect(mapState)({
|
|
9
12
|
behaviors: [computedBehavior],
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<image class="losing-icon" mode="widthFix" src="{{remotePic.losing_lottery}}" />
|
|
7
7
|
<view class="check-winners">
|
|
8
8
|
<block wx:if="{{resultInfo.prize_activity_num}}">
|
|
9
|
-
<text>共{{resultInfo.prize_activity_num}}人参与,</text>
|
|
9
|
+
<text wx:if="{{isShowParticipant}}">共{{resultInfo.prize_activity_num}}人参与,</text>
|
|
10
10
|
<view class="inner" bind:tap="checkWinners">
|
|
11
11
|
<text class="inner-under-line">查看中奖名单</text>
|
|
12
12
|
</view>
|
|
@@ -13,7 +13,8 @@ const computedBehavior = require('miniprogram-computed').behavior
|
|
|
13
13
|
const mapState = state => ({
|
|
14
14
|
baseInfo: state.baseInfo,
|
|
15
15
|
lotteryStatus: state.lotteryStatus,
|
|
16
|
-
participationCondition: state.participationCondition
|
|
16
|
+
participationCondition: state.participationCondition,
|
|
17
|
+
isShowParticipant: state.isShowParticipant
|
|
17
18
|
})
|
|
18
19
|
Component(
|
|
19
20
|
connect(mapState)({
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<image class="title" src="{{remotePic.winner_background_new_title}}" />
|
|
3
3
|
<view class="check-winners">
|
|
4
4
|
<block wx:if="{{resultInfo.prize_activity_num}}">
|
|
5
|
-
<text>共{{resultInfo.prize_activity_num}}人参与,</text>
|
|
5
|
+
<text wx:if="{{isShowParticipant}}">共{{resultInfo.prize_activity_num}}人参与,</text>
|
|
6
6
|
<view class="inner" bind:tap="checkWinners">
|
|
7
7
|
<text>查看中奖名单</text>
|
|
8
8
|
<image class="right-arrow-icon" src="../../../../common/assets/images/lottery/white_right_arrow.png" />
|
|
@@ -10,7 +10,9 @@ const mapState = state => ({
|
|
|
10
10
|
prizeId: state.currentPrizeId,
|
|
11
11
|
backTo: state.winnersBackTo,
|
|
12
12
|
myLotteryVisible: state.myLotteryVisible,
|
|
13
|
-
myLotteryContent: state.myLotteryContent
|
|
13
|
+
myLotteryContent: state.myLotteryContent,
|
|
14
|
+
isShowParticipant: state.isShowParticipant
|
|
15
|
+
|
|
14
16
|
})
|
|
15
17
|
Component(
|
|
16
18
|
connect(mapState)({
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
<view class="winner-number">
|
|
15
15
|
<image class="emoji-icon" src="../../../common/assets/images/lottery/winner_list_smile_icon.svg" />
|
|
16
16
|
<view class="message-box">
|
|
17
|
-
<text class="message"
|
|
17
|
+
<text class="message" wx:if="{{isShowParticipant}}">共{{winnersInfo.prize_activity_num}}人参与,</text>
|
|
18
|
+
<text class="message">{{winnersInfo.count}}人中奖</text>
|
|
18
19
|
</view>
|
|
19
20
|
</view>
|
|
20
21
|
<scroll-view scroll-y="true" style="height: calc(100% - 198rpx);">
|
|
@@ -114,5 +114,6 @@ export const ACTION_TYPE = {
|
|
|
114
114
|
SET_ADDRESS_QUERY: 'set_address_query',
|
|
115
115
|
SET_ADDRESS_INFO: 'set_address_info',
|
|
116
116
|
SET_ADDRESS_SUBMIT_CALLBACK: 'set_address_submit_callback',
|
|
117
|
-
SET_PARTICIPATION_CONDITION: 'set_participation_condition'
|
|
117
|
+
SET_PARTICIPATION_CONDITION: 'set_participation_condition',
|
|
118
|
+
IS_SHOW_PARTICIPANT: 'is_show_participant'
|
|
118
119
|
}
|
|
@@ -182,6 +182,12 @@ export default function reducer(state, action) {
|
|
|
182
182
|
participationCondition: action.payload
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
+
case ACTION_TYPE.IS_SHOW_PARTICIPANT:
|
|
186
|
+
return {
|
|
187
|
+
...state,
|
|
188
|
+
isShowParticipant: action.payload
|
|
189
|
+
}
|
|
190
|
+
|
|
185
191
|
default:
|
|
186
192
|
return state
|
|
187
193
|
}
|
|
@@ -221,7 +221,7 @@ Component({
|
|
|
221
221
|
// sku 基本信息
|
|
222
222
|
this.setData({
|
|
223
223
|
// 默认主图
|
|
224
|
-
skuPicture : utils.replaceCDN(baseInfo.goods_img[0], '?
|
|
224
|
+
skuPicture : utils.replaceCDN(baseInfo.goods_img[0], '?imageMogr2/thumbnail/600x600>/ignore-error/1'),
|
|
225
225
|
// 商品限购
|
|
226
226
|
limitPurchase:baseInfo.limit_purchase,
|
|
227
227
|
hasBuy:limitData,
|
|
@@ -109,7 +109,7 @@ export const skuPropertyConvert = (skuProperty) => {
|
|
|
109
109
|
return {
|
|
110
110
|
id: d.attr_value,
|
|
111
111
|
name: d.attr_value,
|
|
112
|
-
image: utils.replaceCDN(d.attr_img, '?
|
|
112
|
+
image: utils.replaceCDN(d.attr_img, '?imageMogr2/thumbnail/600x600>/ignore-error/1')
|
|
113
113
|
}
|
|
114
114
|
})
|
|
115
115
|
})(e)
|
package/package.json
CHANGED
package/src/GoodsItem/index.js
CHANGED
|
@@ -234,7 +234,7 @@ Component({
|
|
|
234
234
|
}
|
|
235
235
|
},
|
|
236
236
|
filterSrc(data){
|
|
237
|
-
return utils.replaceCDN(data.goodsItem.img_url, '?
|
|
237
|
+
return utils.replaceCDN(data.goodsItem.img_url, '?imageMogr2/thumbnail/400x400>/ignore-error/1')
|
|
238
238
|
}
|
|
239
239
|
},
|
|
240
240
|
/**
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
&.red {
|
|
18
18
|
// 红色背景的抽奖弹窗顶部超出一部分,高度特殊计算
|
|
19
19
|
overflow: hidden;
|
|
20
|
-
height: calc(100% -
|
|
20
|
+
height: calc(100% - 320rpx);
|
|
21
21
|
background: transparent !important;
|
|
22
22
|
.close-icon {
|
|
23
23
|
top: 136rpx;
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
&.orange {
|
|
40
|
-
height: calc(100% -
|
|
40
|
+
height: calc(100% - 422rpx);
|
|
41
41
|
background: transparent !important;
|
|
42
42
|
.close-icon {
|
|
43
43
|
top: 24rpx;
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
&.white {
|
|
51
|
-
height: calc(100% -
|
|
51
|
+
height: calc(100% - 422rpx);
|
|
52
52
|
background: #fff;
|
|
53
53
|
.close-icon {
|
|
54
54
|
top: 24rpx;
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
}
|
|
61
61
|
// custom-classes
|
|
62
62
|
&.address-collection-popup {
|
|
63
|
-
height: calc(100% -
|
|
63
|
+
height: calc(100% - 422rpx);
|
|
64
64
|
background: #f5f5f5;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
}
|
|
16
16
|
.common-popup.red {
|
|
17
17
|
overflow: hidden;
|
|
18
|
-
height: calc(100% -
|
|
18
|
+
height: calc(100% - 320rpx);
|
|
19
19
|
background: transparent !important;
|
|
20
20
|
}
|
|
21
21
|
.common-popup.red .close-icon {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
background: linear-gradient(to right, #FE8758, #FE9656);
|
|
35
35
|
}
|
|
36
36
|
.common-popup.orange {
|
|
37
|
-
height: calc(100% -
|
|
37
|
+
height: calc(100% - 422rpx);
|
|
38
38
|
background: transparent !important;
|
|
39
39
|
}
|
|
40
40
|
.common-popup.orange .close-icon {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
left: 0;
|
|
46
46
|
}
|
|
47
47
|
.common-popup.white {
|
|
48
|
-
height: calc(100% -
|
|
48
|
+
height: calc(100% - 422rpx);
|
|
49
49
|
background: #fff;
|
|
50
50
|
}
|
|
51
51
|
.common-popup.white .close-icon {
|
|
@@ -56,6 +56,6 @@
|
|
|
56
56
|
height: 240rpx;
|
|
57
57
|
}
|
|
58
58
|
.common-popup.address-collection-popup {
|
|
59
|
-
height: calc(100% -
|
|
59
|
+
height: calc(100% - 422rpx);
|
|
60
60
|
background: #f5f5f5;
|
|
61
61
|
}
|
|
@@ -20,13 +20,14 @@ Component(
|
|
|
20
20
|
data: {
|
|
21
21
|
remotePic,
|
|
22
22
|
prizeInfo: {},
|
|
23
|
-
selectedIndex: 0
|
|
23
|
+
selectedIndex: 0,
|
|
24
|
+
isShowParticipant: 0 //0 不展示,1 展示
|
|
24
25
|
},
|
|
25
26
|
computed: {
|
|
26
27
|
countdownLabel(data) {
|
|
27
28
|
return `${
|
|
28
29
|
data.prizeInfo.prize_activity_num ? `${data.prizeInfo.prize_activity_num}人已参与` : '暂无人参与'
|
|
29
|
-
}
|
|
30
|
+
}`
|
|
30
31
|
},
|
|
31
32
|
joinPrompt(data) {
|
|
32
33
|
const joinBtnMap = {
|
|
@@ -108,7 +109,9 @@ Component(
|
|
|
108
109
|
if (data.code === 0) {
|
|
109
110
|
const prizeInfo = data.data || {}
|
|
110
111
|
this.setData({prizeInfo})
|
|
112
|
+
this.setData({isShowParticipant: prizeInfo.is_show_participant})
|
|
111
113
|
this.store.dispatch({type: 'set_participation_condition', payload: prizeInfo.prize_condition})
|
|
114
|
+
this.store.dispatch({type: 'is_show_participant', payload: prizeInfo.is_show_participant})
|
|
112
115
|
}
|
|
113
116
|
})
|
|
114
117
|
.catch(err => {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<text wx:else>本次抽奖无人中奖</text>
|
|
13
13
|
</view>
|
|
14
14
|
<view wx:else class="countdown-box">
|
|
15
|
-
<text class="label">{{countdownLabel}}
|
|
15
|
+
<text class="label" wx:if="{{isShowParticipant}}">{{countdownLabel}},</text><text class="label">开奖倒计时</text>
|
|
16
16
|
<lottery-countdown></lottery-countdown>
|
|
17
17
|
</view>
|
|
18
18
|
<view class="prize-box">
|
|
@@ -3,7 +3,10 @@ import {connect} from '../../../store/index'
|
|
|
3
3
|
|
|
4
4
|
const computedBehavior = require('miniprogram-computed').behavior
|
|
5
5
|
|
|
6
|
-
const mapState = state => ({
|
|
6
|
+
const mapState = state => ({
|
|
7
|
+
lotteryInfo: state.lotteryInfo,
|
|
8
|
+
isShowParticipant: state.isShowParticipant
|
|
9
|
+
})
|
|
7
10
|
Component(
|
|
8
11
|
connect(mapState)({
|
|
9
12
|
behaviors: [computedBehavior],
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<image class="losing-icon" mode="widthFix" src="{{remotePic.losing_lottery}}" />
|
|
7
7
|
<view class="check-winners">
|
|
8
8
|
<block wx:if="{{resultInfo.prize_activity_num}}">
|
|
9
|
-
<text>共{{resultInfo.prize_activity_num}}人参与,</text>
|
|
9
|
+
<text wx:if="{{isShowParticipant}}">共{{resultInfo.prize_activity_num}}人参与,</text>
|
|
10
10
|
<view class="inner" bind:tap="checkWinners">
|
|
11
11
|
<text class="inner-under-line">查看中奖名单</text>
|
|
12
12
|
</view>
|
|
@@ -13,7 +13,8 @@ const computedBehavior = require('miniprogram-computed').behavior
|
|
|
13
13
|
const mapState = state => ({
|
|
14
14
|
baseInfo: state.baseInfo,
|
|
15
15
|
lotteryStatus: state.lotteryStatus,
|
|
16
|
-
participationCondition: state.participationCondition
|
|
16
|
+
participationCondition: state.participationCondition,
|
|
17
|
+
isShowParticipant: state.isShowParticipant
|
|
17
18
|
})
|
|
18
19
|
Component(
|
|
19
20
|
connect(mapState)({
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<image class="title" src="{{remotePic.winner_background_new_title}}" />
|
|
3
3
|
<view class="check-winners">
|
|
4
4
|
<block wx:if="{{resultInfo.prize_activity_num}}">
|
|
5
|
-
<text>共{{resultInfo.prize_activity_num}}人参与,</text>
|
|
5
|
+
<text wx:if="{{isShowParticipant}}">共{{resultInfo.prize_activity_num}}人参与,</text>
|
|
6
6
|
<view class="inner" bind:tap="checkWinners">
|
|
7
7
|
<text>查看中奖名单</text>
|
|
8
8
|
<image class="right-arrow-icon" src="../../../../common/assets/images/lottery/white_right_arrow.png" />
|
|
@@ -10,7 +10,9 @@ const mapState = state => ({
|
|
|
10
10
|
prizeId: state.currentPrizeId,
|
|
11
11
|
backTo: state.winnersBackTo,
|
|
12
12
|
myLotteryVisible: state.myLotteryVisible,
|
|
13
|
-
myLotteryContent: state.myLotteryContent
|
|
13
|
+
myLotteryContent: state.myLotteryContent,
|
|
14
|
+
isShowParticipant: state.isShowParticipant
|
|
15
|
+
|
|
14
16
|
})
|
|
15
17
|
Component(
|
|
16
18
|
connect(mapState)({
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
<view class="winner-number">
|
|
15
15
|
<image class="emoji-icon" src="../../../common/assets/images/lottery/winner_list_smile_icon.svg" />
|
|
16
16
|
<view class="message-box">
|
|
17
|
-
<text class="message"
|
|
17
|
+
<text class="message" wx:if="{{isShowParticipant}}">共{{winnersInfo.prize_activity_num}}人参与,</text>
|
|
18
|
+
<text class="message">{{winnersInfo.count}}人中奖</text>
|
|
18
19
|
</view>
|
|
19
20
|
</view>
|
|
20
21
|
<scroll-view scroll-y="true" style="height: calc(100% - 198rpx);">
|
package/src/Lottery/constants.js
CHANGED
|
@@ -114,5 +114,6 @@ export const ACTION_TYPE = {
|
|
|
114
114
|
SET_ADDRESS_QUERY: 'set_address_query',
|
|
115
115
|
SET_ADDRESS_INFO: 'set_address_info',
|
|
116
116
|
SET_ADDRESS_SUBMIT_CALLBACK: 'set_address_submit_callback',
|
|
117
|
-
SET_PARTICIPATION_CONDITION: 'set_participation_condition'
|
|
117
|
+
SET_PARTICIPATION_CONDITION: 'set_participation_condition',
|
|
118
|
+
IS_SHOW_PARTICIPANT: 'is_show_participant'
|
|
118
119
|
}
|
|
@@ -182,6 +182,12 @@ export default function reducer(state, action) {
|
|
|
182
182
|
participationCondition: action.payload
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
+
case ACTION_TYPE.IS_SHOW_PARTICIPANT:
|
|
186
|
+
return {
|
|
187
|
+
...state,
|
|
188
|
+
isShowParticipant: action.payload
|
|
189
|
+
}
|
|
190
|
+
|
|
185
191
|
default:
|
|
186
192
|
return state
|
|
187
193
|
}
|
|
@@ -221,7 +221,7 @@ Component({
|
|
|
221
221
|
// sku 基本信息
|
|
222
222
|
this.setData({
|
|
223
223
|
// 默认主图
|
|
224
|
-
skuPicture : utils.replaceCDN(baseInfo.goods_img[0], '?
|
|
224
|
+
skuPicture : utils.replaceCDN(baseInfo.goods_img[0], '?imageMogr2/thumbnail/600x600>/ignore-error/1'),
|
|
225
225
|
// 商品限购
|
|
226
226
|
limitPurchase:baseInfo.limit_purchase,
|
|
227
227
|
hasBuy:limitData,
|
|
@@ -109,7 +109,7 @@ export const skuPropertyConvert = (skuProperty) => {
|
|
|
109
109
|
return {
|
|
110
110
|
id: d.attr_value,
|
|
111
111
|
name: d.attr_value,
|
|
112
|
-
image: utils.replaceCDN(d.attr_img, '?
|
|
112
|
+
image: utils.replaceCDN(d.attr_img, '?imageMogr2/thumbnail/600x600>/ignore-error/1')
|
|
113
113
|
}
|
|
114
114
|
})
|
|
115
115
|
})(e)
|