xiaoe_mp_npm 1.1.26-test03 → 1.1.26-test04
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/LiveGoodsList/index.js +8 -2
- package/miniprogram_dist/LiveGoodsList/index.wxml +1 -1
- package/miniprogram_dist/TeacherGoodsList/index.js +5 -0
- package/miniprogram_dist/TeacherGoodsList/index.wxml +1 -1
- package/package.json +1 -1
- package/src/LiveGoodsList/index.js +8 -2
- package/src/LiveGoodsList/index.wxml +1 -1
- package/src/TeacherGoodsList/index.js +5 -0
- package/src/TeacherGoodsList/index.wxml +1 -1
|
@@ -65,6 +65,8 @@ Component({
|
|
|
65
65
|
this.setData({
|
|
66
66
|
show: newVal,
|
|
67
67
|
refreshing: newVal,
|
|
68
|
+
refreshBtnStatus: false,
|
|
69
|
+
refreshHandleStatus: false,
|
|
68
70
|
})
|
|
69
71
|
newVal && this.data.explainingGoods?.resource_id && this.getExplainingGoodsInfo()
|
|
70
72
|
newVal && !this.data.isLottery && this.getPreferentialPriceSetting() // 抽奖弹窗不调优惠券接口
|
|
@@ -230,6 +232,7 @@ Component({
|
|
|
230
232
|
isGoodsTagGroupOn: false, // 商品标签开关
|
|
231
233
|
tagGroupList: [], // 商品标签列表
|
|
232
234
|
refreshBtnStatus: false, // 刷新按钮展示状态
|
|
235
|
+
refreshHandleStatus: false, // 刷新按钮点击状态
|
|
233
236
|
tag_group_id: '0', // 当前选中的商品标签ID
|
|
234
237
|
popupHeaderStyle: 'border-radius: 24rpx 24rpx 0 0;',
|
|
235
238
|
contentStyle: "",
|
|
@@ -312,8 +315,10 @@ Component({
|
|
|
312
315
|
},
|
|
313
316
|
methods: {
|
|
314
317
|
handleRefresh() {
|
|
315
|
-
this.
|
|
316
|
-
|
|
318
|
+
this.setData({refreshHandleStatus: true}, () => {
|
|
319
|
+
this.searchBack()
|
|
320
|
+
this.onLoad()
|
|
321
|
+
})
|
|
317
322
|
},
|
|
318
323
|
handleExplainingGoods(val) {
|
|
319
324
|
if (!val.id || val.id === -1) {
|
|
@@ -932,6 +937,7 @@ Component({
|
|
|
932
937
|
finishedTxt,
|
|
933
938
|
finished,
|
|
934
939
|
refreshBtnStatus: (page_index === 1 || this.data.page_index === 1) ? false : this.data.refreshBtnStatus,
|
|
940
|
+
refreshHandleStatus: false,
|
|
935
941
|
total
|
|
936
942
|
}, () => {
|
|
937
943
|
this.triggerEvent('getGoodsListLength', {
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
<view wx:if="{{refreshBtnStatus}}" class="refresh" catch:tap="handleRefresh">
|
|
86
86
|
<view class="text">商品列表有更新</view>
|
|
87
87
|
<image
|
|
88
|
-
class="icon {{
|
|
88
|
+
class="icon {{refreshHandleStatus && 'icon-refresh'}}"
|
|
89
89
|
src="https://commonresource-1252524126.cdn.xiaoeknow.com/image/mjl231wm0vsf.svg"
|
|
90
90
|
/>
|
|
91
91
|
</view>
|
|
@@ -65,6 +65,8 @@ Component({
|
|
|
65
65
|
observer(newVal) {
|
|
66
66
|
this.setData({
|
|
67
67
|
refreshing: newVal,
|
|
68
|
+
refreshBtnStatus: false,
|
|
69
|
+
refreshHandleStatus: false,
|
|
68
70
|
})
|
|
69
71
|
console.log(newVal)
|
|
70
72
|
|
|
@@ -140,6 +142,7 @@ Component({
|
|
|
140
142
|
changeStateLoading: false, // 商品状态更改中
|
|
141
143
|
searchStatus: false, // 是否是搜索状态
|
|
142
144
|
refreshBtnStatus: false, // 刷新按钮展示状态
|
|
145
|
+
refreshHandleStatus: false, // 刷新按钮点击状态
|
|
143
146
|
allSearchList: [], // 所有搜索商品列表
|
|
144
147
|
},
|
|
145
148
|
lifetimes: {
|
|
@@ -157,6 +160,7 @@ Component({
|
|
|
157
160
|
handleRefresh() {
|
|
158
161
|
this.setData({
|
|
159
162
|
refreshing: true,
|
|
163
|
+
refreshHandleStatus: true
|
|
160
164
|
}, () => {
|
|
161
165
|
this.onLoad()
|
|
162
166
|
})
|
|
@@ -785,6 +789,7 @@ Component({
|
|
|
785
789
|
finishedTxt,
|
|
786
790
|
finished,
|
|
787
791
|
refreshBtnStatus: this.data.page_index === 1 ? false : this.data.refreshBtnStatus,
|
|
792
|
+
refreshHandleStatus: false,
|
|
788
793
|
total,
|
|
789
794
|
is_jurisdiction,
|
|
790
795
|
})
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<view wx:if="{{refreshBtnStatus}}" class="refresh" catch:tap="handleRefresh">
|
|
20
20
|
<view class="text">商品列表有更新</view>
|
|
21
21
|
<image
|
|
22
|
-
class="icon {{
|
|
22
|
+
class="icon {{refreshHandleStatus && 'icon-refresh'}}"
|
|
23
23
|
src="https://commonresource-1252524126.cdn.xiaoeknow.com/image/mjl231wm0vsf.svg"
|
|
24
24
|
/>
|
|
25
25
|
</view>
|
package/package.json
CHANGED
|
@@ -65,6 +65,8 @@ Component({
|
|
|
65
65
|
this.setData({
|
|
66
66
|
show: newVal,
|
|
67
67
|
refreshing: newVal,
|
|
68
|
+
refreshBtnStatus: false,
|
|
69
|
+
refreshHandleStatus: false,
|
|
68
70
|
})
|
|
69
71
|
newVal && this.data.explainingGoods?.resource_id && this.getExplainingGoodsInfo()
|
|
70
72
|
newVal && !this.data.isLottery && this.getPreferentialPriceSetting() // 抽奖弹窗不调优惠券接口
|
|
@@ -230,6 +232,7 @@ Component({
|
|
|
230
232
|
isGoodsTagGroupOn: false, // 商品标签开关
|
|
231
233
|
tagGroupList: [], // 商品标签列表
|
|
232
234
|
refreshBtnStatus: false, // 刷新按钮展示状态
|
|
235
|
+
refreshHandleStatus: false, // 刷新按钮点击状态
|
|
233
236
|
tag_group_id: '0', // 当前选中的商品标签ID
|
|
234
237
|
popupHeaderStyle: 'border-radius: 24rpx 24rpx 0 0;',
|
|
235
238
|
contentStyle: "",
|
|
@@ -312,8 +315,10 @@ Component({
|
|
|
312
315
|
},
|
|
313
316
|
methods: {
|
|
314
317
|
handleRefresh() {
|
|
315
|
-
this.
|
|
316
|
-
|
|
318
|
+
this.setData({refreshHandleStatus: true}, () => {
|
|
319
|
+
this.searchBack()
|
|
320
|
+
this.onLoad()
|
|
321
|
+
})
|
|
317
322
|
},
|
|
318
323
|
handleExplainingGoods(val) {
|
|
319
324
|
if (!val.id || val.id === -1) {
|
|
@@ -932,6 +937,7 @@ Component({
|
|
|
932
937
|
finishedTxt,
|
|
933
938
|
finished,
|
|
934
939
|
refreshBtnStatus: (page_index === 1 || this.data.page_index === 1) ? false : this.data.refreshBtnStatus,
|
|
940
|
+
refreshHandleStatus: false,
|
|
935
941
|
total
|
|
936
942
|
}, () => {
|
|
937
943
|
this.triggerEvent('getGoodsListLength', {
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
<view wx:if="{{refreshBtnStatus}}" class="refresh" catch:tap="handleRefresh">
|
|
86
86
|
<view class="text">商品列表有更新</view>
|
|
87
87
|
<image
|
|
88
|
-
class="icon {{
|
|
88
|
+
class="icon {{refreshHandleStatus && 'icon-refresh'}}"
|
|
89
89
|
src="https://commonresource-1252524126.cdn.xiaoeknow.com/image/mjl231wm0vsf.svg"
|
|
90
90
|
/>
|
|
91
91
|
</view>
|
|
@@ -65,6 +65,8 @@ Component({
|
|
|
65
65
|
observer(newVal) {
|
|
66
66
|
this.setData({
|
|
67
67
|
refreshing: newVal,
|
|
68
|
+
refreshBtnStatus: false,
|
|
69
|
+
refreshHandleStatus: false,
|
|
68
70
|
})
|
|
69
71
|
console.log(newVal)
|
|
70
72
|
|
|
@@ -140,6 +142,7 @@ Component({
|
|
|
140
142
|
changeStateLoading: false, // 商品状态更改中
|
|
141
143
|
searchStatus: false, // 是否是搜索状态
|
|
142
144
|
refreshBtnStatus: false, // 刷新按钮展示状态
|
|
145
|
+
refreshHandleStatus: false, // 刷新按钮点击状态
|
|
143
146
|
allSearchList: [], // 所有搜索商品列表
|
|
144
147
|
},
|
|
145
148
|
lifetimes: {
|
|
@@ -157,6 +160,7 @@ Component({
|
|
|
157
160
|
handleRefresh() {
|
|
158
161
|
this.setData({
|
|
159
162
|
refreshing: true,
|
|
163
|
+
refreshHandleStatus: true
|
|
160
164
|
}, () => {
|
|
161
165
|
this.onLoad()
|
|
162
166
|
})
|
|
@@ -785,6 +789,7 @@ Component({
|
|
|
785
789
|
finishedTxt,
|
|
786
790
|
finished,
|
|
787
791
|
refreshBtnStatus: this.data.page_index === 1 ? false : this.data.refreshBtnStatus,
|
|
792
|
+
refreshHandleStatus: false,
|
|
788
793
|
total,
|
|
789
794
|
is_jurisdiction,
|
|
790
795
|
})
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<view wx:if="{{refreshBtnStatus}}" class="refresh" catch:tap="handleRefresh">
|
|
20
20
|
<view class="text">商品列表有更新</view>
|
|
21
21
|
<image
|
|
22
|
-
class="icon {{
|
|
22
|
+
class="icon {{refreshHandleStatus && 'icon-refresh'}}"
|
|
23
23
|
src="https://commonresource-1252524126.cdn.xiaoeknow.com/image/mjl231wm0vsf.svg"
|
|
24
24
|
/>
|
|
25
25
|
</view>
|