jufubao-base 1.0.67-beta202 → 1.0.67-beta203

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-beta202",
3
+ "version": "1.0.67-beta203",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -20,7 +20,7 @@
20
20
  <view class="jfb-base-con-dialog__body-dialog" v-if="isShow">
21
21
  <view class="jfb-base-con-dialog__body-dialog-mask"></view>
22
22
  <view class="jfb-base-con-dialog__body-dialog-content">
23
- <view class="jfb-base-con-dialog__body-dialog-content-num">
23
+ <view v-if="list.length>1" class="jfb-base-con-dialog__body-dialog-content-num">
24
24
  <text>{{ currentIndex + 1 }}/{{ list.length }}</text>
25
25
  </view>
26
26
  <view style="display: flex; align-items: center">
@@ -16,10 +16,15 @@
16
16
  <view class="jfb-base-con-list__edit-icon" @click="delEdit">删除</view>
17
17
  </view>
18
18
  <!-- #endif -->
19
- <view class="jfb-base-con-list__body">
20
- <view class="jfb-base-con-list__body-header">
21
- <image :src="background"></image>
22
- </view>
19
+ <view
20
+ class="jfb-base-con-list__body"
21
+ :style="{
22
+ backgroundImage: `url(${background})`,
23
+ backgroundSize: '100% 100%',
24
+ backgroundRepeat: 'no-repeat',
25
+ height: `${layoutInfo.bodyMinHeightRpx}rpx`,
26
+ }"
27
+ >
23
28
  <view class="jfb-base-con-list__body-content">
24
29
  <view class="jfb-base-con-list__body-content-header">
25
30
  <view class="jfb-base-con-list__body-content-header-left">
@@ -50,35 +55,70 @@
50
55
  <view :style="{ color: mainColor }">满减券</view>
51
56
  <view>{{ item.prize_name }}</view>
52
57
  </view>
53
- <view class="jfb-base-con-list__body-content-list-item-left-num">
58
+ </view>
59
+ <view class="jfb-base-con-list__body-content-list-item-right">
60
+ <view
61
+ class="jfb-base-con-list__body-content-list-item-right-name"
62
+ >
54
63
  <view>{{ item.prize_name }}</view>
55
- <view :style="{ color: mainColor,display:'flex',alignItems:'center' }">
56
- <xd-font-icon style="margin-right:10rpx" size="24" icon="icondanchuangguanbi_xian"></xd-font-icon>
64
+ <xd-font-icon
65
+ v-if="item.remain_card_count > 0"
66
+ size="100"
67
+ :style="{
68
+ color: item.can_take === 'N' ? '#D6D6D6' : mainColor,
69
+ position: 'absolute',
70
+ right: '-30rpx',
71
+ top: '-40rpx',
72
+ }"
73
+ :icon="
74
+ item.can_take === 'N' ? 'iconyilingqu' : 'icondailingqu'
75
+ "
76
+ ></xd-font-icon>
77
+ <xd-font-icon
78
+ v-else
79
+ size="100"
80
+ :style="{
81
+ color: '#D6D6D6',
82
+ position: 'absolute',
83
+ right: '-30rpx',
84
+ top: '-40rpx',
85
+ }"
86
+ icon="iconyifawan"
87
+ ></xd-font-icon>
88
+ </view>
89
+ <view class="jfb-base-con-list__body-content-list-item-right-num">
90
+ <view
91
+ :style="{
92
+ color: mainColor,
93
+ display: 'flex',
94
+ alignItems: 'center',
95
+ fontSize: '28rpx',
96
+ }"
97
+ >
98
+ <xd-font-icon
99
+ style="margin-right: 10rpx"
100
+ size="22"
101
+ icon="icondanchuangguanbi_xian"
102
+ ></xd-font-icon>
57
103
  {{ item.prize_num }}
58
- </view>
104
+ </view>
105
+
106
+ <xd-button
107
+ size="small"
108
+ :disabled="item.can_take === 'N'"
109
+ @click="getCoupont(item)"
110
+ type="primary"
111
+ :style="btn"
112
+ >{{ item.can_take === "N" ? "已领取" : "领取" }}</xd-button
113
+ >
59
114
  </view>
60
115
  </view>
61
- <view class="jfb-base-con-list__body-content-list-item-right">
62
- <xd-font-icon
63
- size="100"
64
- :style="{ color: disabled ? '#D6D6D6' : mainColor }"
65
- :icon="disabled ? 'iconyilingqu' : 'icondailingqu'"
66
- ></xd-font-icon>
67
- </view>
68
116
  </view>
69
117
  </view>
70
118
  </view>
71
- <view style="height: 120rpx"></view>
72
- <view class="bottom_btn" :style="prod_bottom">
73
- <xd-button
74
- :disabled="disabled"
75
- @click="getCoupont"
76
- type="primary"
77
- :style="btn"
78
- width="60%"
79
- >{{ disabled ? "已领取" : "一键领取" }}</xd-button
80
- >
81
- </view>
119
+ <view class="jfb-base-con-list__body-foot"
120
+ >可在个人中心-我的票券进行查看</view
121
+ >
82
122
  <xd-dailog
83
123
  :cancel="false"
84
124
  :confirm="false"
@@ -119,7 +159,6 @@ export default {
119
159
  return {
120
160
  contentBackground: "",
121
161
  couponList: [],
122
- disabled: false,
123
162
  notice: "",
124
163
  showRule: false,
125
164
  btn: "",
@@ -135,9 +174,6 @@ export default {
135
174
  };
136
175
  },
137
176
  computed: {
138
- prod_bottom() {
139
- return this.fixedStyle({ height: 0, zIndex: 111 });
140
- },
141
177
  couponBackground() {
142
178
  return {
143
179
  background: `url(${this.app_coupon_url})`,
@@ -181,15 +217,16 @@ export default {
181
217
  background: `url(${getServiceUrl(res.app_activity_button)})`,
182
218
  backgroundSize: "100% 100%",
183
219
  backgroundRepeat: "no-repeat",
220
+ margin: "0",
184
221
  }
185
- : { background: this.mainColor };
222
+ : { background: this.mainColor, margin: "0" };
186
223
  this.couponList = res.list;
187
224
  })
188
225
  .catch((err) => {
189
226
  console.log(err, "err");
190
227
  });
191
228
  },
192
- getCoupont() {
229
+ getCoupont(item) {
193
230
  this.$xdShowLoading({});
194
231
  jfbRootExec("getAllCoupon", {
195
232
  vm: this,
@@ -197,6 +234,7 @@ export default {
197
234
  distribution_method: this.method,
198
235
  namespace: this.pageBusinessCode,
199
236
  activity_id: this.activity_id,
237
+ prize_id: item.prize_id,
200
238
  },
201
239
  })
202
240
  .then((res) => {
@@ -223,7 +261,7 @@ export default {
223
261
  time: 2000,
224
262
  isClose: false,
225
263
  });
226
- this.disabled = true;
264
+ this.getList();
227
265
  if (this.timeer) {
228
266
  clearTimeout(this.timeer);
229
267
  }
@@ -232,12 +270,11 @@ export default {
232
270
  if (res.status_type === "error") {
233
271
  this.$xdHideLoading();
234
272
  this.$xdAlert({
235
- content: "领取失败",
273
+ content: res.message,
236
274
  zIndex: 3200,
237
275
  time: 2000,
238
276
  isClose: false,
239
277
  });
240
- this.disabled = false;
241
278
  if (this.timeer) {
242
279
  clearTimeout(this.timeer);
243
280
  }
@@ -318,22 +355,15 @@ export default {
318
355
  .jfb-base-con-list {
319
356
  &__body {
320
357
  position: relative;
321
- &-header {
322
- height: unit(600, rpx);
323
- & > image {
324
- width: 100%;
325
- height: 100%;
326
- }
327
- }
358
+ overflow-y: auto;
328
359
  &-content {
329
360
  border-radius: unit(20, rpx);
330
361
  background: #fff;
331
- padding: unit(40, rpx);
332
- position: absolute;
333
- top: unit(164, rpx);
334
- left: 50%;
335
- transform: translateX(-50%);
336
- width: unit(600, rpx);
362
+ padding: unit(34, rpx);
363
+ margin-top: unit(164, rpx);
364
+ margin-right: auto;
365
+ margin-left: auto;
366
+ width: unit(650, rpx);
337
367
 
338
368
  &-header {
339
369
  display: flex;
@@ -364,15 +394,14 @@ export default {
364
394
  margin-top: unit(20, rpx);
365
395
 
366
396
  &-item {
367
- margin-top: unit(20, rpx);
368
397
  display: flex;
369
398
  justify-content: space-between;
370
399
  align-items: center;
371
400
  padding: unit(20, rpx) unit(30, rpx);
372
401
  border-radius: unit(12, rpx);
402
+ margin: unit(20, rpx) auto 0 auto;
373
403
  &-left {
374
404
  display: flex;
375
-
376
405
  &-info {
377
406
  padding: unit(20, rpx) unit(36, rpx);
378
407
  & > view:first-child {
@@ -385,30 +414,31 @@ export default {
385
414
  color: #fff;
386
415
  }
387
416
  }
388
-
417
+ }
418
+ &-right {
419
+ margin-left: unit(24, rpx);
420
+ flex: 1;
421
+ &-name {
422
+ position: relative;
423
+ font-size: unit(40, rpx);
424
+ color: #000;
425
+ display: flex;
426
+ align-items: center;
427
+ justify-content: space-between;
428
+ }
389
429
  &-num {
390
- margin-left: unit(24, rpx);
391
- margin-top: unit(10, rpx);
392
- & > view:first-child {
393
- font-size: unit(40, rpx);
394
- margin-bottom: unit(16, rpx);
395
- }
396
- & > view:nth-child(2) {
397
- font-size: unit(28, rpx);
398
- }
430
+ margin-top: unit(40, rpx);
431
+ display: flex;
432
+ justify-content: space-between;
399
433
  }
400
434
  }
401
435
  }
402
436
  }
403
437
  }
404
- .bottom_btn {
405
- position: fixed;
406
- width: 100%;
407
- display: flex;
408
- justify-content: center;
409
- align-items: center;
410
- height: unit(120, rpx);
411
- background: #ffffff;
438
+ &-foot {
439
+ color: #a6a6a6;
440
+ font-size: unit(24, rpx);
441
+ text-align: center;
412
442
  }
413
443
  }
414
444
  }