xiaoe_mp_npm 0.5.36-alpha1 → 0.5.37
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/GoodsItem/index.js +14 -3
- package/miniprogram_dist/GoodsItem/index.wxml +5 -1
- package/miniprogram_dist/LiveGoodsList/index.js +10 -3
- package/miniprogram_dist/LiveGoodsList/index.wxml +5 -1
- package/miniprogram_dist/TeacherGoodsList/index.wxml +2 -1
- package/miniprogram_dist/common/api/liveGoodsList.js +23 -0
- package/package.json +2 -2
- package/src/GoodsItem/index.js +14 -3
- package/src/GoodsItem/index.wxml +5 -1
- package/src/LiveGoodsList/index.js +10 -3
- package/src/LiveGoodsList/index.wxml +5 -1
- package/src/TeacherGoodsList/index.wxml +2 -1
- package/src/common/api/liveGoodsList.js +23 -0
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @LastEditTime: 2021-11-18 19:49:11
|
|
8
8
|
*/
|
|
9
9
|
import { debounce } from "../common/utils/index"
|
|
10
|
-
import { getUserPermission, snapCheck } from "../common/api/liveGoodsList"
|
|
10
|
+
import { getUserPermission, getUserPermissionNew, snapCheck, snapCheckNew } from "../common/api/liveGoodsList"
|
|
11
11
|
import {
|
|
12
12
|
ASSOCIATION,
|
|
13
13
|
PUNCH_CARD
|
|
@@ -74,6 +74,10 @@ Component({
|
|
|
74
74
|
}, () => this.countTime())
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
|
+
index: {
|
|
78
|
+
type: Number,
|
|
79
|
+
value: 0
|
|
80
|
+
},
|
|
77
81
|
sending: {
|
|
78
82
|
type: Boolean,
|
|
79
83
|
value: false
|
|
@@ -119,6 +123,11 @@ Component({
|
|
|
119
123
|
style:{
|
|
120
124
|
type: String,
|
|
121
125
|
value: ''
|
|
126
|
+
},
|
|
127
|
+
// 是否是新带货接口灰度
|
|
128
|
+
isGrayMarketing: {
|
|
129
|
+
type: Boolean,
|
|
130
|
+
value: false
|
|
122
131
|
}
|
|
123
132
|
},
|
|
124
133
|
|
|
@@ -306,7 +315,8 @@ Component({
|
|
|
306
315
|
coupon_id: this.data.goodsItem.coupon_id,
|
|
307
316
|
alive_id: this.data.aliveInfo.alive_id
|
|
308
317
|
}
|
|
309
|
-
|
|
318
|
+
const url = this.properties.isGrayMarketing ? snapCheckNew : snapCheck
|
|
319
|
+
url(params).then(res => {
|
|
310
320
|
this.hideToast()
|
|
311
321
|
let { code, data } = res.data
|
|
312
322
|
if (code === 0) {
|
|
@@ -388,7 +398,8 @@ Component({
|
|
|
388
398
|
app_id:this.data.aliveInfo.app_id,
|
|
389
399
|
user_id:this.data.aliveInfo.user_id,
|
|
390
400
|
}
|
|
391
|
-
|
|
401
|
+
const url = this.properties.isGrayMarketing ? getUserPermissionNew : getUserPermission
|
|
402
|
+
url(params).then((res) => {
|
|
392
403
|
let { code, data } = res.data
|
|
393
404
|
if (code === 0) {
|
|
394
405
|
resolve(!!data.auth_state)
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
borderRadius="{{'2.13vmin'}}"
|
|
18
18
|
src="{{filterSrc}}"
|
|
19
19
|
/>
|
|
20
|
-
<text class="index {{isIOS && 'ios-index'}}" style="{{!isStudent ? 'border-radius: 1.07vmin 0 1.07vmin 0;' : ''}}">{{
|
|
20
|
+
<text class="index {{isIOS && 'ios-index'}}" style="{{!isStudent ? 'border-radius: 1.07vmin 0 1.07vmin 0;' : ''}}">{{index + 1}}</text>
|
|
21
21
|
<text class="goods-type {{isIOS && 'ios-goods-type'}}">{{goodsItem.resource_type_name}}</text>
|
|
22
22
|
<image wx:if="{{ isShowExamplaining }}" class="goods-explaining" src="../../common/assets/images/liveGoodsList/explaining.png" />
|
|
23
23
|
</view>
|
|
@@ -85,3 +85,7 @@
|
|
|
85
85
|
<text class="switch-txt">学员端展示商品</text>
|
|
86
86
|
</view>
|
|
87
87
|
</view>
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @LastEditTime: 2021-11-18 19:52:02
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import { getGoodsList, getCouponSwitch } from "../common/api/liveGoodsList"
|
|
10
|
+
import { getGoodsList,getGoodsListNew, getCouponSwitch } from "../common/api/liveGoodsList"
|
|
11
11
|
import Dialog from '@vant/weapp/dialog/dialog';
|
|
12
12
|
import {
|
|
13
13
|
ASSOCIATION,
|
|
@@ -104,6 +104,11 @@ Component({
|
|
|
104
104
|
overlayStyle: {
|
|
105
105
|
type: String,
|
|
106
106
|
value: ''
|
|
107
|
+
},
|
|
108
|
+
// 是否是新带货接口灰度
|
|
109
|
+
isGrayMarketing: {
|
|
110
|
+
type: Boolean,
|
|
111
|
+
value: false
|
|
107
112
|
}
|
|
108
113
|
},
|
|
109
114
|
data: {
|
|
@@ -205,7 +210,8 @@ Component({
|
|
|
205
210
|
page: 1,
|
|
206
211
|
port: 1
|
|
207
212
|
}
|
|
208
|
-
|
|
213
|
+
const url = this.properties.isGrayMarketing ? getGoodsListNew : getGoodsList
|
|
214
|
+
url(params).then((res) => {
|
|
209
215
|
console.log('2222222222')
|
|
210
216
|
let {data, code} = res.data
|
|
211
217
|
if (code === 0 && data && data.length > 0) {
|
|
@@ -233,7 +239,8 @@ Component({
|
|
|
233
239
|
app_id:this.properties.aliveInfo.app_id,
|
|
234
240
|
user_id:this.properties.aliveInfo.user_id,
|
|
235
241
|
}
|
|
236
|
-
getGoodsList
|
|
242
|
+
const url = this.properties.isGrayMarketing ? getGoodsListNew : getGoodsList
|
|
243
|
+
url(params).then(res=>{
|
|
237
244
|
let { data, code } = res.data
|
|
238
245
|
if (code === 0) {
|
|
239
246
|
// 关闭弹窗的时候返回的数据丢弃 // 上拉加载与下拉刷新一起触发时丢弃上拉加载数据
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
aliveInfo="{{aliveInfo}}"
|
|
37
37
|
allContactPay="{{allContactPay}}"
|
|
38
38
|
goodsInfo="{{formExplainingGoods}}"
|
|
39
|
+
index="{{explainingGoodsIndex}}"
|
|
39
40
|
coupon_switch="{{coupon_switch}}"
|
|
40
41
|
bind:sendNewMsg="sendNewMsg"
|
|
41
42
|
bind:showConfirmOrder="showConfirmOrder"
|
|
@@ -46,6 +47,7 @@
|
|
|
46
47
|
envName="{{ENV_NAME}}"
|
|
47
48
|
sensorReportParams="{{sensorReportParams}}"
|
|
48
49
|
isFullScreen="{{ popPosition === 'right'}}"
|
|
50
|
+
isGrayMarketing="{{ isGrayMarketing}}"
|
|
49
51
|
></goods-item>
|
|
50
52
|
</block>
|
|
51
53
|
<!-- 讲解中的商品 end -->
|
|
@@ -55,6 +57,7 @@
|
|
|
55
57
|
wx:key="index"
|
|
56
58
|
goodsInfo="{{goodsItem}}"
|
|
57
59
|
allContactPay="{{allContactPay}}"
|
|
60
|
+
index="{{index}}"
|
|
58
61
|
coupon_switch="{{coupon_switch}}"
|
|
59
62
|
bind:sendNewMsg="sendNewMsg"
|
|
60
63
|
bind:showConfirmOrder="showConfirmOrder"
|
|
@@ -67,6 +70,7 @@
|
|
|
67
70
|
envName="{{ENV_NAME}}"
|
|
68
71
|
sensorReportParams="{{sensorReportParams}}"
|
|
69
72
|
isFullScreen="{{ popPosition === 'right'}}"
|
|
73
|
+
isGrayMarketing="{{ isGrayMarketing}}"
|
|
70
74
|
></goods-item>
|
|
71
75
|
<view class="finished-text" wx:if="{{!refreshing && finishedTxt !== 'no-data'}}">{{finishedTxt}}</view>
|
|
72
76
|
<view class="no-data" wx:if="{{!refreshing && finishedTxt === 'no-data'}}">
|
|
@@ -78,4 +82,4 @@
|
|
|
78
82
|
</view>
|
|
79
83
|
</custom-popup>
|
|
80
84
|
</view>
|
|
81
|
-
<van-dialog id="van-dialog" confirm-button-color="#105cfb" catchtap="stopEvent"/>
|
|
85
|
+
<van-dialog id="van-dialog" confirm-button-color="#105cfb" catchtap="stopEvent"/>
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
<view wx:for="{{goodsInfo}}" wx:for-item="goodsItem" wx:key="index" style="margin-top: 3.2vmin;">
|
|
15
15
|
<goods-item
|
|
16
16
|
goodsInfo="{{goodsItem}}"
|
|
17
|
+
index="{{index}}"
|
|
17
18
|
aliveInfo="{{aliveInfo}}"
|
|
18
19
|
bind:sendGoodsCard="sendGoodsCard"
|
|
19
20
|
class="goods-item"
|
|
@@ -37,4 +38,4 @@
|
|
|
37
38
|
<view class="chat-text">请联系管理员,或前往电脑端管理台【直播间设置-互动设置-直播带货配置】添加商品</view>
|
|
38
39
|
</block>
|
|
39
40
|
</view>
|
|
40
|
-
<!-- 商品列表 end-->
|
|
41
|
+
<!-- 商品列表 end-->
|
|
@@ -19,9 +19,14 @@ let gateway = (data = "_alive/") => {
|
|
|
19
19
|
|
|
20
20
|
const GOODS_LIST = {
|
|
21
21
|
GOODS_LIST: `${gateway()}xe.ecommerce.alive_goods_system.marketing.list.get/1.0.0`,
|
|
22
|
+
GOODS_LIST_NEW: `${gateway()}xe.ecommerce.marketing.list.get/3.0.0`,
|
|
22
23
|
COUPON_SWITCH: `${gateway()}xe.marketing.coupon.switch.config/1.0.0`,
|
|
23
24
|
USER_PERMISSION: `${gateway()}xe.ecommerce.alive_goods_system.check.permission/1.0.0`,
|
|
25
|
+
USER_PERMISSION_NEW: `${gateway()}xe.ecommerce.check.permission/3.0.0`,
|
|
26
|
+
|
|
24
27
|
SNAP_CHECK: `${gateway()}xe.ecommerce.alive_goods_system.check.snap_up/1.0.0`,
|
|
28
|
+
SNAP_CHECK_NEW: `${gateway()}xe.ecommerce.check.snap_up/3.0.0`,
|
|
29
|
+
|
|
25
30
|
SHOW_GOODS: `${gateway()}xe.user.display_package.edit`
|
|
26
31
|
};
|
|
27
32
|
|
|
@@ -30,6 +35,11 @@ const getGoodsList = (params, isNeedBiz = true, config = {}) => {
|
|
|
30
35
|
return http.player.post(GOODS_LIST.GOODS_LIST, params, isNeedBiz, config);
|
|
31
36
|
}
|
|
32
37
|
|
|
38
|
+
// 获取商品列表-new
|
|
39
|
+
const getGoodsListNew = (params, isNeedBiz = false, config = {}) => {
|
|
40
|
+
return http.player.post(GOODS_LIST.GOODS_LIST_NEW, params, isNeedBiz, config);
|
|
41
|
+
}
|
|
42
|
+
|
|
33
43
|
// 获取券后价展示店铺设置
|
|
34
44
|
const getCouponSwitch = (params, isNeedBiz = true, config = {}) => {
|
|
35
45
|
return http.player.post(GOODS_LIST.COUPON_SWITCH, params, isNeedBiz, config);
|
|
@@ -40,11 +50,21 @@ const getUserPermission = (params, isNeedBiz = true, config = {}) => {
|
|
|
40
50
|
return http.player.post(GOODS_LIST.USER_PERMISSION, params, isNeedBiz, config);
|
|
41
51
|
}
|
|
42
52
|
|
|
53
|
+
// 获取权益接口-new
|
|
54
|
+
const getUserPermissionNew = (params, isNeedBiz = false, config = {}) => {
|
|
55
|
+
return http.player.post(GOODS_LIST.USER_PERMISSION_NEW, params, isNeedBiz, config);
|
|
56
|
+
}
|
|
57
|
+
|
|
43
58
|
// 去抢购
|
|
44
59
|
const snapCheck = (params, isNeedBiz = true, config = {}) => {
|
|
45
60
|
return http.player.post(GOODS_LIST.SNAP_CHECK, params, isNeedBiz, config);
|
|
46
61
|
}
|
|
47
62
|
|
|
63
|
+
// 去抢购-new
|
|
64
|
+
const snapCheckNew = (params, isNeedBiz = false, config = {}) => {
|
|
65
|
+
return http.player.post(GOODS_LIST.SNAP_CHECK_NEW, params, isNeedBiz, config);
|
|
66
|
+
}
|
|
67
|
+
|
|
48
68
|
//展示隐藏商品
|
|
49
69
|
const showGoods = (params, isNeedBiz = true, config = {}) => {
|
|
50
70
|
return http.player.post(GOODS_LIST.SHOW_GOODS, params, isNeedBiz, config);
|
|
@@ -52,8 +72,11 @@ const showGoods = (params, isNeedBiz = true, config = {}) => {
|
|
|
52
72
|
|
|
53
73
|
module.exports = {
|
|
54
74
|
getGoodsList,
|
|
75
|
+
getGoodsListNew,
|
|
55
76
|
getCouponSwitch,
|
|
56
77
|
getUserPermission,
|
|
78
|
+
getUserPermissionNew,
|
|
57
79
|
snapCheck,
|
|
80
|
+
snapCheckNew,
|
|
58
81
|
showGoods
|
|
59
82
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xiaoe_mp_npm",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.37",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "miniprogram_dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -75,4 +75,4 @@
|
|
|
75
75
|
"miniprogram-computed": "4.2.1",
|
|
76
76
|
"mp-plugins-info-collection": "1.1.2"
|
|
77
77
|
}
|
|
78
|
-
}
|
|
78
|
+
}
|
package/src/GoodsItem/index.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @LastEditTime: 2021-11-18 19:49:11
|
|
8
8
|
*/
|
|
9
9
|
import { debounce } from "../common/utils/index"
|
|
10
|
-
import { getUserPermission, snapCheck } from "../common/api/liveGoodsList"
|
|
10
|
+
import { getUserPermission, getUserPermissionNew, snapCheck, snapCheckNew } from "../common/api/liveGoodsList"
|
|
11
11
|
import {
|
|
12
12
|
ASSOCIATION,
|
|
13
13
|
PUNCH_CARD
|
|
@@ -74,6 +74,10 @@ Component({
|
|
|
74
74
|
}, () => this.countTime())
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
|
+
index: {
|
|
78
|
+
type: Number,
|
|
79
|
+
value: 0
|
|
80
|
+
},
|
|
77
81
|
sending: {
|
|
78
82
|
type: Boolean,
|
|
79
83
|
value: false
|
|
@@ -119,6 +123,11 @@ Component({
|
|
|
119
123
|
style:{
|
|
120
124
|
type: String,
|
|
121
125
|
value: ''
|
|
126
|
+
},
|
|
127
|
+
// 是否是新带货接口灰度
|
|
128
|
+
isGrayMarketing: {
|
|
129
|
+
type: Boolean,
|
|
130
|
+
value: false
|
|
122
131
|
}
|
|
123
132
|
},
|
|
124
133
|
|
|
@@ -306,7 +315,8 @@ Component({
|
|
|
306
315
|
coupon_id: this.data.goodsItem.coupon_id,
|
|
307
316
|
alive_id: this.data.aliveInfo.alive_id
|
|
308
317
|
}
|
|
309
|
-
|
|
318
|
+
const url = this.properties.isGrayMarketing ? snapCheckNew : snapCheck
|
|
319
|
+
url(params).then(res => {
|
|
310
320
|
this.hideToast()
|
|
311
321
|
let { code, data } = res.data
|
|
312
322
|
if (code === 0) {
|
|
@@ -388,7 +398,8 @@ Component({
|
|
|
388
398
|
app_id:this.data.aliveInfo.app_id,
|
|
389
399
|
user_id:this.data.aliveInfo.user_id,
|
|
390
400
|
}
|
|
391
|
-
|
|
401
|
+
const url = this.properties.isGrayMarketing ? getUserPermissionNew : getUserPermission
|
|
402
|
+
url(params).then((res) => {
|
|
392
403
|
let { code, data } = res.data
|
|
393
404
|
if (code === 0) {
|
|
394
405
|
resolve(!!data.auth_state)
|
package/src/GoodsItem/index.wxml
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
borderRadius="{{'2.13vmin'}}"
|
|
18
18
|
src="{{filterSrc}}"
|
|
19
19
|
/>
|
|
20
|
-
<text class="index {{isIOS && 'ios-index'}}" style="{{!isStudent ? 'border-radius: 1.07vmin 0 1.07vmin 0;' : ''}}">{{
|
|
20
|
+
<text class="index {{isIOS && 'ios-index'}}" style="{{!isStudent ? 'border-radius: 1.07vmin 0 1.07vmin 0;' : ''}}">{{index + 1}}</text>
|
|
21
21
|
<text class="goods-type {{isIOS && 'ios-goods-type'}}">{{goodsItem.resource_type_name}}</text>
|
|
22
22
|
<image wx:if="{{ isShowExamplaining }}" class="goods-explaining" src="../../common/assets/images/liveGoodsList/explaining.png" />
|
|
23
23
|
</view>
|
|
@@ -85,3 +85,7 @@
|
|
|
85
85
|
<text class="switch-txt">学员端展示商品</text>
|
|
86
86
|
</view>
|
|
87
87
|
</view>
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @LastEditTime: 2021-11-18 19:52:02
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import { getGoodsList, getCouponSwitch } from "../common/api/liveGoodsList"
|
|
10
|
+
import { getGoodsList,getGoodsListNew, getCouponSwitch } from "../common/api/liveGoodsList"
|
|
11
11
|
import Dialog from '@vant/weapp/dialog/dialog';
|
|
12
12
|
import {
|
|
13
13
|
ASSOCIATION,
|
|
@@ -104,6 +104,11 @@ Component({
|
|
|
104
104
|
overlayStyle: {
|
|
105
105
|
type: String,
|
|
106
106
|
value: ''
|
|
107
|
+
},
|
|
108
|
+
// 是否是新带货接口灰度
|
|
109
|
+
isGrayMarketing: {
|
|
110
|
+
type: Boolean,
|
|
111
|
+
value: false
|
|
107
112
|
}
|
|
108
113
|
},
|
|
109
114
|
data: {
|
|
@@ -205,7 +210,8 @@ Component({
|
|
|
205
210
|
page: 1,
|
|
206
211
|
port: 1
|
|
207
212
|
}
|
|
208
|
-
|
|
213
|
+
const url = this.properties.isGrayMarketing ? getGoodsListNew : getGoodsList
|
|
214
|
+
url(params).then((res) => {
|
|
209
215
|
console.log('2222222222')
|
|
210
216
|
let {data, code} = res.data
|
|
211
217
|
if (code === 0 && data && data.length > 0) {
|
|
@@ -233,7 +239,8 @@ Component({
|
|
|
233
239
|
app_id:this.properties.aliveInfo.app_id,
|
|
234
240
|
user_id:this.properties.aliveInfo.user_id,
|
|
235
241
|
}
|
|
236
|
-
getGoodsList
|
|
242
|
+
const url = this.properties.isGrayMarketing ? getGoodsListNew : getGoodsList
|
|
243
|
+
url(params).then(res=>{
|
|
237
244
|
let { data, code } = res.data
|
|
238
245
|
if (code === 0) {
|
|
239
246
|
// 关闭弹窗的时候返回的数据丢弃 // 上拉加载与下拉刷新一起触发时丢弃上拉加载数据
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
aliveInfo="{{aliveInfo}}"
|
|
37
37
|
allContactPay="{{allContactPay}}"
|
|
38
38
|
goodsInfo="{{formExplainingGoods}}"
|
|
39
|
+
index="{{explainingGoodsIndex}}"
|
|
39
40
|
coupon_switch="{{coupon_switch}}"
|
|
40
41
|
bind:sendNewMsg="sendNewMsg"
|
|
41
42
|
bind:showConfirmOrder="showConfirmOrder"
|
|
@@ -46,6 +47,7 @@
|
|
|
46
47
|
envName="{{ENV_NAME}}"
|
|
47
48
|
sensorReportParams="{{sensorReportParams}}"
|
|
48
49
|
isFullScreen="{{ popPosition === 'right'}}"
|
|
50
|
+
isGrayMarketing="{{ isGrayMarketing}}"
|
|
49
51
|
></goods-item>
|
|
50
52
|
</block>
|
|
51
53
|
<!-- 讲解中的商品 end -->
|
|
@@ -55,6 +57,7 @@
|
|
|
55
57
|
wx:key="index"
|
|
56
58
|
goodsInfo="{{goodsItem}}"
|
|
57
59
|
allContactPay="{{allContactPay}}"
|
|
60
|
+
index="{{index}}"
|
|
58
61
|
coupon_switch="{{coupon_switch}}"
|
|
59
62
|
bind:sendNewMsg="sendNewMsg"
|
|
60
63
|
bind:showConfirmOrder="showConfirmOrder"
|
|
@@ -67,6 +70,7 @@
|
|
|
67
70
|
envName="{{ENV_NAME}}"
|
|
68
71
|
sensorReportParams="{{sensorReportParams}}"
|
|
69
72
|
isFullScreen="{{ popPosition === 'right'}}"
|
|
73
|
+
isGrayMarketing="{{ isGrayMarketing}}"
|
|
70
74
|
></goods-item>
|
|
71
75
|
<view class="finished-text" wx:if="{{!refreshing && finishedTxt !== 'no-data'}}">{{finishedTxt}}</view>
|
|
72
76
|
<view class="no-data" wx:if="{{!refreshing && finishedTxt === 'no-data'}}">
|
|
@@ -78,4 +82,4 @@
|
|
|
78
82
|
</view>
|
|
79
83
|
</custom-popup>
|
|
80
84
|
</view>
|
|
81
|
-
<van-dialog id="van-dialog" confirm-button-color="#105cfb" catchtap="stopEvent"/>
|
|
85
|
+
<van-dialog id="van-dialog" confirm-button-color="#105cfb" catchtap="stopEvent"/>
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
<view wx:for="{{goodsInfo}}" wx:for-item="goodsItem" wx:key="index" style="margin-top: 3.2vmin;">
|
|
15
15
|
<goods-item
|
|
16
16
|
goodsInfo="{{goodsItem}}"
|
|
17
|
+
index="{{index}}"
|
|
17
18
|
aliveInfo="{{aliveInfo}}"
|
|
18
19
|
bind:sendGoodsCard="sendGoodsCard"
|
|
19
20
|
class="goods-item"
|
|
@@ -37,4 +38,4 @@
|
|
|
37
38
|
<view class="chat-text">请联系管理员,或前往电脑端管理台【直播间设置-互动设置-直播带货配置】添加商品</view>
|
|
38
39
|
</block>
|
|
39
40
|
</view>
|
|
40
|
-
<!-- 商品列表 end-->
|
|
41
|
+
<!-- 商品列表 end-->
|
|
@@ -19,9 +19,14 @@ let gateway = (data = "_alive/") => {
|
|
|
19
19
|
|
|
20
20
|
const GOODS_LIST = {
|
|
21
21
|
GOODS_LIST: `${gateway()}xe.ecommerce.alive_goods_system.marketing.list.get/1.0.0`,
|
|
22
|
+
GOODS_LIST_NEW: `${gateway()}xe.ecommerce.marketing.list.get/3.0.0`,
|
|
22
23
|
COUPON_SWITCH: `${gateway()}xe.marketing.coupon.switch.config/1.0.0`,
|
|
23
24
|
USER_PERMISSION: `${gateway()}xe.ecommerce.alive_goods_system.check.permission/1.0.0`,
|
|
25
|
+
USER_PERMISSION_NEW: `${gateway()}xe.ecommerce.check.permission/3.0.0`,
|
|
26
|
+
|
|
24
27
|
SNAP_CHECK: `${gateway()}xe.ecommerce.alive_goods_system.check.snap_up/1.0.0`,
|
|
28
|
+
SNAP_CHECK_NEW: `${gateway()}xe.ecommerce.check.snap_up/3.0.0`,
|
|
29
|
+
|
|
25
30
|
SHOW_GOODS: `${gateway()}xe.user.display_package.edit`
|
|
26
31
|
};
|
|
27
32
|
|
|
@@ -30,6 +35,11 @@ const getGoodsList = (params, isNeedBiz = true, config = {}) => {
|
|
|
30
35
|
return http.player.post(GOODS_LIST.GOODS_LIST, params, isNeedBiz, config);
|
|
31
36
|
}
|
|
32
37
|
|
|
38
|
+
// 获取商品列表-new
|
|
39
|
+
const getGoodsListNew = (params, isNeedBiz = false, config = {}) => {
|
|
40
|
+
return http.player.post(GOODS_LIST.GOODS_LIST_NEW, params, isNeedBiz, config);
|
|
41
|
+
}
|
|
42
|
+
|
|
33
43
|
// 获取券后价展示店铺设置
|
|
34
44
|
const getCouponSwitch = (params, isNeedBiz = true, config = {}) => {
|
|
35
45
|
return http.player.post(GOODS_LIST.COUPON_SWITCH, params, isNeedBiz, config);
|
|
@@ -40,11 +50,21 @@ const getUserPermission = (params, isNeedBiz = true, config = {}) => {
|
|
|
40
50
|
return http.player.post(GOODS_LIST.USER_PERMISSION, params, isNeedBiz, config);
|
|
41
51
|
}
|
|
42
52
|
|
|
53
|
+
// 获取权益接口-new
|
|
54
|
+
const getUserPermissionNew = (params, isNeedBiz = false, config = {}) => {
|
|
55
|
+
return http.player.post(GOODS_LIST.USER_PERMISSION_NEW, params, isNeedBiz, config);
|
|
56
|
+
}
|
|
57
|
+
|
|
43
58
|
// 去抢购
|
|
44
59
|
const snapCheck = (params, isNeedBiz = true, config = {}) => {
|
|
45
60
|
return http.player.post(GOODS_LIST.SNAP_CHECK, params, isNeedBiz, config);
|
|
46
61
|
}
|
|
47
62
|
|
|
63
|
+
// 去抢购-new
|
|
64
|
+
const snapCheckNew = (params, isNeedBiz = false, config = {}) => {
|
|
65
|
+
return http.player.post(GOODS_LIST.SNAP_CHECK_NEW, params, isNeedBiz, config);
|
|
66
|
+
}
|
|
67
|
+
|
|
48
68
|
//展示隐藏商品
|
|
49
69
|
const showGoods = (params, isNeedBiz = true, config = {}) => {
|
|
50
70
|
return http.player.post(GOODS_LIST.SHOW_GOODS, params, isNeedBiz, config);
|
|
@@ -52,8 +72,11 @@ const showGoods = (params, isNeedBiz = true, config = {}) => {
|
|
|
52
72
|
|
|
53
73
|
module.exports = {
|
|
54
74
|
getGoodsList,
|
|
75
|
+
getGoodsListNew,
|
|
55
76
|
getCouponSwitch,
|
|
56
77
|
getUserPermission,
|
|
78
|
+
getUserPermissionNew,
|
|
57
79
|
snapCheck,
|
|
80
|
+
snapCheckNew,
|
|
58
81
|
showGoods
|
|
59
82
|
}
|