xiaoe_mp_npm 0.5.29-alpha1 → 0.5.29-alpha3
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 +0 -1
- package/miniprogram_dist/GoodsItem/index.js +6 -2
- package/miniprogram_dist/LiveGoodsList/index.js +5 -0
- package/miniprogram_dist/LiveGoodsList/index.wxml +2 -0
- package/package.json +1 -1
- package/src/GoodsItem/index.js +6 -2
- package/src/LiveGoodsList/index.js +5 -0
- package/src/LiveGoodsList/index.wxml +2 -0
package/.gitlab-ci.yml
CHANGED
|
@@ -94,6 +94,11 @@ Component({
|
|
|
94
94
|
type: Object,
|
|
95
95
|
value: {},
|
|
96
96
|
},
|
|
97
|
+
// 是否去客服内支付
|
|
98
|
+
allContactPay: {
|
|
99
|
+
type: Boolean,
|
|
100
|
+
value: false
|
|
101
|
+
},
|
|
97
102
|
//店铺设置是否展示券后价
|
|
98
103
|
coupon_switch: {
|
|
99
104
|
type: Boolean,
|
|
@@ -207,8 +212,7 @@ Component({
|
|
|
207
212
|
// 以下各种情况,按去查看 -> 已抢光 -> 查看详情 -> 免费领取 -> 券后 -> 去抢购 优先级展示
|
|
208
213
|
// 超级会员全免权益
|
|
209
214
|
let svipAllFree = data.goodsItem.resource_rights_type === 1
|
|
210
|
-
|
|
211
|
-
if (!data.IOSMiniProgramCanBuy) {
|
|
215
|
+
if (data.allContactPay || (data.isIOS && !data.IOSMiniProgramCanBuy)) {
|
|
212
216
|
// IOS小程序中不能买的展示去查看,跳转到小程序客服
|
|
213
217
|
return "去查看"
|
|
214
218
|
} else if (data.goodsItem.hasStock && data.goodsItem.leftStock === 0) {
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
<block wx:if="{{showExplainingGoods}}">
|
|
34
34
|
<goods-item
|
|
35
35
|
aliveInfo="{{aliveInfo}}"
|
|
36
|
+
allContactPay="{{allContactPay}}"
|
|
36
37
|
goodsInfo="{{formExplainingGoods}}"
|
|
37
38
|
index="{{explainingGoodsIndex}}"
|
|
38
39
|
coupon_switch="{{coupon_switch}}"
|
|
@@ -53,6 +54,7 @@
|
|
|
53
54
|
wx:for-item="goodsItem"
|
|
54
55
|
wx:key="index"
|
|
55
56
|
goodsInfo="{{goodsItem}}"
|
|
57
|
+
allContactPay="{{allContactPay}}"
|
|
56
58
|
index="{{index}}"
|
|
57
59
|
coupon_switch="{{coupon_switch}}"
|
|
58
60
|
bind:sendNewMsg="sendNewMsg"
|
package/package.json
CHANGED
package/src/GoodsItem/index.js
CHANGED
|
@@ -94,6 +94,11 @@ Component({
|
|
|
94
94
|
type: Object,
|
|
95
95
|
value: {},
|
|
96
96
|
},
|
|
97
|
+
// 是否去客服内支付
|
|
98
|
+
allContactPay: {
|
|
99
|
+
type: Boolean,
|
|
100
|
+
value: false
|
|
101
|
+
},
|
|
97
102
|
//店铺设置是否展示券后价
|
|
98
103
|
coupon_switch: {
|
|
99
104
|
type: Boolean,
|
|
@@ -207,8 +212,7 @@ Component({
|
|
|
207
212
|
// 以下各种情况,按去查看 -> 已抢光 -> 查看详情 -> 免费领取 -> 券后 -> 去抢购 优先级展示
|
|
208
213
|
// 超级会员全免权益
|
|
209
214
|
let svipAllFree = data.goodsItem.resource_rights_type === 1
|
|
210
|
-
|
|
211
|
-
if (!data.IOSMiniProgramCanBuy) {
|
|
215
|
+
if (data.allContactPay || (data.isIOS && !data.IOSMiniProgramCanBuy)) {
|
|
212
216
|
// IOS小程序中不能买的展示去查看,跳转到小程序客服
|
|
213
217
|
return "去查看"
|
|
214
218
|
} else if (data.goodsItem.hasStock && data.goodsItem.leftStock === 0) {
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
<block wx:if="{{showExplainingGoods}}">
|
|
34
34
|
<goods-item
|
|
35
35
|
aliveInfo="{{aliveInfo}}"
|
|
36
|
+
allContactPay="{{allContactPay}}"
|
|
36
37
|
goodsInfo="{{formExplainingGoods}}"
|
|
37
38
|
index="{{explainingGoodsIndex}}"
|
|
38
39
|
coupon_switch="{{coupon_switch}}"
|
|
@@ -53,6 +54,7 @@
|
|
|
53
54
|
wx:for-item="goodsItem"
|
|
54
55
|
wx:key="index"
|
|
55
56
|
goodsInfo="{{goodsItem}}"
|
|
57
|
+
allContactPay="{{allContactPay}}"
|
|
56
58
|
index="{{index}}"
|
|
57
59
|
coupon_switch="{{coupon_switch}}"
|
|
58
60
|
bind:sendNewMsg="sendNewMsg"
|