jufubao-base 1.0.67-beta205 → 1.0.67-beta220

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.67-beta205",
3
+ "version": "1.0.67-beta220",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -161,6 +161,10 @@ export default {
161
161
  storage.remove(this.containerId);
162
162
  this.getDialogList();
163
163
  },
164
+ onJfbShow(options) {
165
+ this.isShow=false
166
+ this.onJfbLoad(options);
167
+ },
164
168
  handleToList() {
165
169
  this.$xdUniHelper.navigateTo({
166
170
  url: `${this.list_url}?activity_id=${this.activity_id}&distribution_method=homed`,
@@ -21,7 +21,7 @@
21
21
  v-if="couponList.length > 0"
22
22
  :style="{
23
23
  backgroundImage: `url(${background})`,
24
- backgroundSize: '100% 100%',
24
+ backgroundSize: '100%',
25
25
  backgroundRepeat: 'no-repeat',
26
26
  height: `${layoutInfo.bodyMinHeightRpx}rpx`,
27
27
  }"
@@ -46,15 +46,29 @@
46
46
  v-for="(item, index) in couponList"
47
47
  :key="index"
48
48
  class="jfb-base-con-list__body-content-list-item"
49
- :style="{ background: contentBackground }"
49
+ :style="{
50
+ background:
51
+ item.remain_card_count == 0 ? '#f3f3f3' : contentBackground,
52
+ }"
50
53
  >
51
54
  <view class="jfb-base-con-list__body-content-list-item-left">
52
55
  <view
53
56
  :style="item.couponBackground"
54
57
  class="jfb-base-con-list__body-content-list-item-left-info"
55
58
  >
56
- <view :style="{ color: mainColor }">满减券</view>
57
- <view>{{ item.prize_name }}</view>
59
+ <view
60
+ :style="{
61
+ color: item.remain_card_count == 0 ? '#D6D6D6' : mainColor,
62
+ textAlign: 'center'
63
+ }"
64
+ >{{ item.prize_type }}</view
65
+ >
66
+ <view
67
+ :style="{
68
+ color: item.remain_card_count == 0 ? '#D6D6D6' : '#fff',
69
+ }"
70
+ >{{ item.prize_name }}</view
71
+ >
58
72
  </view>
59
73
  </view>
60
74
  <view class="jfb-base-con-list__body-content-list-item-right">
@@ -66,10 +80,10 @@
66
80
  v-if="item.remain_card_count > 0"
67
81
  size="100"
68
82
  :style="{
69
- color: item.can_take === 'N' ? '#D6D6D6' : mainColor,
83
+ color: item.can_take === 'N' ? '#D6D6D6' : iconColor,
70
84
  position: 'absolute',
71
85
  right: '-30rpx',
72
- top: '-40rpx',
86
+ top: '-30rpx',
73
87
  }"
74
88
  :icon="
75
89
  item.can_take === 'N' ? 'iconyilingqu' : 'icondailingqu'
@@ -82,7 +96,7 @@
82
96
  color: '#D6D6D6',
83
97
  position: 'absolute',
84
98
  right: '-30rpx',
85
- top: '-40rpx',
99
+ top: '-58rpx',
86
100
  }"
87
101
  icon="iconyifawan"
88
102
  ></xd-font-icon>
@@ -90,7 +104,7 @@
90
104
  <view
91
105
  class="jfb-base-con-list__body-content-list-item-right-num"
92
106
  >
93
- <view
107
+ <!-- <view
94
108
  :style="{
95
109
  color: mainColor,
96
110
  display: 'flex',
@@ -104,15 +118,18 @@
104
118
  icon="icondanchuangguanbi_xian"
105
119
  ></xd-font-icon>
106
120
  {{ item.prize_num }}
107
- </view>
121
+ </view> -->
122
+ <view></view>
108
123
 
109
124
  <xd-button
125
+ v-if="item.can_take === 'Y'"
110
126
  size="small"
111
- :disabled="item.can_take === 'N'"
127
+ :disabled="item.remain_card_count ==0"
112
128
  @click="getCoupont(item)"
113
129
  type="primary"
114
130
  :style="item.btn"
115
- >{{ item.can_take === "N" ? "已领取" : "领取" }}</xd-button
131
+ :color="item.remain_card_count ==0 ? '#AAA' : '#fff'"
132
+ >领取</xd-button
116
133
  >
117
134
  </view>
118
135
  </view>
@@ -128,7 +145,8 @@
128
145
  class="empty_data"
129
146
  :style="{ minHeight: layoutInfo.bodyMinHeightPx + 'px' }"
130
147
  >
131
- <image src="https://img.jufubao.cn/component/sp_nodata.png"></image>
148
+ <image :src="emptyBg"></image>
149
+ {{ message }}
132
150
  </view>
133
151
  <xd-dailog
134
152
  :cancel="false"
@@ -165,10 +183,11 @@ export default {
165
183
  XdDailog,
166
184
  XdContentXss,
167
185
  },
168
- mixins: [componentsMixins, extsMixins, JfbBaseConListMixin],
186
+ mixins: [componentsMixins, extsMixins, JfbBaseConListMixin, colorCardMixins],
169
187
  data() {
170
188
  return {
171
189
  contentBackground: "",
190
+ iconColor: "",
172
191
  couponList: [],
173
192
  notice: "",
174
193
  showRule: false,
@@ -183,10 +202,14 @@ export default {
183
202
  timeer: null,
184
203
  order_num: null,
185
204
  done: false,
205
+ message: "",
186
206
  };
187
207
  },
188
208
  computed: {
189
209
  ...mapState(["pageBusinessCode"]),
210
+ emptyBg() {
211
+ return this.getNoData();
212
+ },
190
213
  },
191
214
  watch: {
192
215
  container(value) {
@@ -204,6 +227,7 @@ export default {
204
227
  methods: {
205
228
  init(value) {
206
229
  this.contentBackground = Color(this.mainColor).alpha(0.2).toString();
230
+ this.iconColor = Color(this.mainColor).alpha(0.3).toString();
207
231
  },
208
232
  getList() {
209
233
  jfbRootExec("getCouponList", {
@@ -226,14 +250,17 @@ export default {
226
250
  background: `url(${getServiceUrl(
227
251
  res.app_coupon_button_bg_url
228
252
  )})`,
229
- backgroundSize: "100% 100%",
253
+ backgroundSize: "100%",
230
254
  backgroundRepeat: "no-repeat",
231
255
  margin: "0",
232
256
  }
233
- : { background: this.mainColor, margin: "0" };
257
+ : {
258
+ background: this.mainColor,
259
+ margin: "0",
260
+ };
234
261
  item.couponBackground = {
235
262
  background: `url(${getServiceUrl(res.app_coupon_url)})`,
236
- backgroundSize: "100% 100%",
263
+ backgroundSize: "100%",
237
264
  backgroundRepeat: "no-repeat",
238
265
  };
239
266
  } else {
@@ -242,12 +269,14 @@ export default {
242
269
  background: `url(${getServiceUrl(
243
270
  res.app_coupon_invalid_url
244
271
  )})`,
245
- backgroundSize: "100% 100%",
272
+ backgroundSize: "100%",
246
273
  backgroundRepeat: "no-repeat",
247
274
  };
248
275
  }
249
276
  return item;
250
277
  });
278
+ console.log("couponList", this.couponList);
279
+ this.message = res.message;
251
280
  this.done = true;
252
281
  })
253
282
  .catch((err) => {
@@ -480,7 +509,7 @@ export default {
480
509
  color: #a6a6a6;
481
510
  font-size: unit(24, rpx);
482
511
  text-align: center;
483
- margin-top: unit(40,rpx);
512
+ margin-top: unit(40, rpx);
484
513
  }
485
514
  }
486
515
  }