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.
@@ -226,7 +226,11 @@ Component({
226
226
  shopFreightSwitch: {
227
227
  type: Boolean,
228
228
  value: false
229
- }
229
+ },
230
+ isGrayGoodsPreheat: {
231
+ type: Boolean,
232
+ value: false
233
+ },
230
234
  },
231
235
 
232
236
  lifetimes: {
@@ -215,6 +215,7 @@
215
215
  <block wx:if="{{visibleSwitchStatusBtn}}">
216
216
  <view class="option-btn-wrap">
217
217
  <view
218
+ wx:if="{{isGrayGoodsPreheat}}"
218
219
  class="option-btn"
219
220
  catch:tap="changePrizeShow"
220
221
  data-item="{{goodsItem}}"
@@ -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.formatData(this.data.goodsInfo);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xiaoe_mp_npm",
3
- "version": "1.1.9",
3
+ "version": "1.1.10",
4
4
  "description": "",
5
5
  "main": "miniprogram_dist/index.js",
6
6
  "scripts": {
@@ -226,7 +226,11 @@ Component({
226
226
  shopFreightSwitch: {
227
227
  type: Boolean,
228
228
  value: false
229
- }
229
+ },
230
+ isGrayGoodsPreheat: {
231
+ type: Boolean,
232
+ value: false
233
+ },
230
234
  },
231
235
 
232
236
  lifetimes: {
@@ -215,6 +215,7 @@
215
215
  <block wx:if="{{visibleSwitchStatusBtn}}">
216
216
  <view class="option-btn-wrap">
217
217
  <view
218
+ wx:if="{{isGrayGoodsPreheat}}"
218
219
  class="option-btn"
219
220
  catch:tap="changePrizeShow"
220
221
  data-item="{{goodsItem}}"
@@ -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.formatData(this.data.goodsInfo);
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>