xiaoe_mp_npm 1.1.9 → 1.1.10
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 +5 -1
- package/miniprogram_dist/GoodsItem/index.wxml +1 -0
- package/miniprogram_dist/TeacherGoodsList/index.js +7 -1
- package/miniprogram_dist/TeacherGoodsList/index.wxml +4 -2
- package/package.json +1 -1
- package/src/GoodsItem/index.js +5 -1
- package/src/GoodsItem/index.wxml +1 -0
- package/src/TeacherGoodsList/index.js +7 -1
- package/src/TeacherGoodsList/index.wxml +4 -2
|
@@ -53,6 +53,10 @@ const MARKET_ACTIVITY_MAP = {
|
|
|
53
53
|
Component({
|
|
54
54
|
behaviors: [computedBehavior],
|
|
55
55
|
properties: {
|
|
56
|
+
isGrayGoodsPreheat: {
|
|
57
|
+
type: Boolean,
|
|
58
|
+
value: false,
|
|
59
|
+
},
|
|
56
60
|
sensorReportParams: {
|
|
57
61
|
type: Object,
|
|
58
62
|
value: {}
|
|
@@ -342,7 +346,9 @@ Component({
|
|
|
342
346
|
}
|
|
343
347
|
})
|
|
344
348
|
})
|
|
345
|
-
this.
|
|
349
|
+
this.setData({
|
|
350
|
+
goodsInfo: this.data.goodsInfo
|
|
351
|
+
})
|
|
346
352
|
break
|
|
347
353
|
default:
|
|
348
354
|
break
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
isManage="{{true}}"
|
|
44
44
|
sendingGoodId="{{sendingGoodId}}"
|
|
45
45
|
sendingIndex="{{sendingIndex}}"
|
|
46
|
+
isGrayGoodsPreheat="{{isGrayGoodsPreheat}}"
|
|
46
47
|
></goods-item>
|
|
47
48
|
</van-checkbox>
|
|
48
49
|
</view>
|
|
@@ -51,6 +52,7 @@
|
|
|
51
52
|
<block wx:else>
|
|
52
53
|
<view wx:for="{{goodsInfo}}" wx:for-item="goodsItem" wx:key="index">
|
|
53
54
|
<goods-item
|
|
55
|
+
isGrayGoodsPreheat="{{isGrayGoodsPreheat}}"
|
|
54
56
|
goodsInfo="{{goodsItem}}"
|
|
55
57
|
aliveInfo="{{aliveInfo}}"
|
|
56
58
|
bind:sendGoodsCard="sendGoodsCard"
|
|
@@ -94,8 +96,8 @@
|
|
|
94
96
|
<text>已选</text>
|
|
95
97
|
<text class="selected-num">{{selectGoods.length}}</text>
|
|
96
98
|
</view>
|
|
97
|
-
<view class="select-btn show" data-type="hide" bindtap="changeHidePrice">预热</view>
|
|
98
|
-
<view class="select-btn show" data-type="show" bindtap="changeHidePrice">开价</view>
|
|
99
|
+
<view class="select-btn show" wx:if="{{isGrayGoodsPreheat}}" data-type="hide" bindtap="changeHidePrice">预热</view>
|
|
100
|
+
<view class="select-btn show" wx:if="{{isGrayGoodsPreheat}}" data-type="show" bindtap="changeHidePrice">开价</view>
|
|
99
101
|
<view class="select-btn show" data-type="show" bindtap="changeShowType">显示</view>
|
|
100
102
|
<view class="select-btn hide" data-type="hide" bindtap="changeShowType">隐藏</view>
|
|
101
103
|
</view>
|
package/package.json
CHANGED
package/src/GoodsItem/index.js
CHANGED
package/src/GoodsItem/index.wxml
CHANGED
|
@@ -53,6 +53,10 @@ const MARKET_ACTIVITY_MAP = {
|
|
|
53
53
|
Component({
|
|
54
54
|
behaviors: [computedBehavior],
|
|
55
55
|
properties: {
|
|
56
|
+
isGrayGoodsPreheat: {
|
|
57
|
+
type: Boolean,
|
|
58
|
+
value: false,
|
|
59
|
+
},
|
|
56
60
|
sensorReportParams: {
|
|
57
61
|
type: Object,
|
|
58
62
|
value: {}
|
|
@@ -342,7 +346,9 @@ Component({
|
|
|
342
346
|
}
|
|
343
347
|
})
|
|
344
348
|
})
|
|
345
|
-
this.
|
|
349
|
+
this.setData({
|
|
350
|
+
goodsInfo: this.data.goodsInfo
|
|
351
|
+
})
|
|
346
352
|
break
|
|
347
353
|
default:
|
|
348
354
|
break
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
isManage="{{true}}"
|
|
44
44
|
sendingGoodId="{{sendingGoodId}}"
|
|
45
45
|
sendingIndex="{{sendingIndex}}"
|
|
46
|
+
isGrayGoodsPreheat="{{isGrayGoodsPreheat}}"
|
|
46
47
|
></goods-item>
|
|
47
48
|
</van-checkbox>
|
|
48
49
|
</view>
|
|
@@ -51,6 +52,7 @@
|
|
|
51
52
|
<block wx:else>
|
|
52
53
|
<view wx:for="{{goodsInfo}}" wx:for-item="goodsItem" wx:key="index">
|
|
53
54
|
<goods-item
|
|
55
|
+
isGrayGoodsPreheat="{{isGrayGoodsPreheat}}"
|
|
54
56
|
goodsInfo="{{goodsItem}}"
|
|
55
57
|
aliveInfo="{{aliveInfo}}"
|
|
56
58
|
bind:sendGoodsCard="sendGoodsCard"
|
|
@@ -94,8 +96,8 @@
|
|
|
94
96
|
<text>已选</text>
|
|
95
97
|
<text class="selected-num">{{selectGoods.length}}</text>
|
|
96
98
|
</view>
|
|
97
|
-
<view class="select-btn show" data-type="hide" bindtap="changeHidePrice">预热</view>
|
|
98
|
-
<view class="select-btn show" data-type="show" bindtap="changeHidePrice">开价</view>
|
|
99
|
+
<view class="select-btn show" wx:if="{{isGrayGoodsPreheat}}" data-type="hide" bindtap="changeHidePrice">预热</view>
|
|
100
|
+
<view class="select-btn show" wx:if="{{isGrayGoodsPreheat}}" data-type="show" bindtap="changeHidePrice">开价</view>
|
|
99
101
|
<view class="select-btn show" data-type="show" bindtap="changeShowType">显示</view>
|
|
100
102
|
<view class="select-btn hide" data-type="hide" bindtap="changeShowType">隐藏</view>
|
|
101
103
|
</view>
|