jufubao-base 1.0.117 → 1.0.119-beta10

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.
Files changed (29) hide show
  1. package/package.json +4 -3
  2. package/src/components/JfbBaseCard/Attr.js +380 -287
  3. package/src/components/JfbBaseCard/JfbBaseCard.vue +51 -2
  4. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +95 -18
  5. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +1 -1
  6. package/src/components/JfbBaseCardInfo/Attr.js +21 -0
  7. package/src/components/JfbBaseCardInfo/JfbBaseCardInfo.vue +40 -4
  8. package/src/components/JfbBaseCardInfoEntry/Attr.js +11 -0
  9. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +33 -4
  10. package/src/components/JfbBaseCardMerge/JfbBaseCardMerge.vue +10 -9
  11. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +10 -10
  12. package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +6 -1
  13. package/src/components/JfbBaseConList/JfbBaseConList.vue +4 -2
  14. package/src/components/JfbBaseConPhone/Api.js +70 -0
  15. package/src/components/JfbBaseConPhone/Attr.js +10 -0
  16. package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +495 -0
  17. package/src/components/JfbBaseConPhone/JfbBaseConPhoneLess.less +80 -0
  18. package/src/components/JfbBaseConPhone/JfbBaseConPhoneMixin.js +30 -0
  19. package/src/components/JfbBaseConPhone/Mock.js +26 -0
  20. package/src/components/JfbBaseMySetting/Api.js +43 -0
  21. package/src/components/JfbBaseMySetting/Attr.js +23 -0
  22. package/src/components/JfbBaseMySetting/JfbBaseMySetting.vue +236 -0
  23. package/src/components/JfbBaseMySetting/JfbBaseMySettingLess.less +80 -0
  24. package/src/components/JfbBaseMySetting/JfbBaseMySettingMixin.js +30 -0
  25. package/src/components/JfbBaseMySetting/Mock.js +5 -0
  26. package/src/components/JfbBaseMySetting/XdListItem.vue +135 -0
  27. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +33 -8
  28. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
  29. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +34 -8
@@ -145,7 +145,10 @@
145
145
  :color="mainColor"
146
146
  icon="iconyouhuiquan1-011"
147
147
  ></xd-font-icon>
148
- <view>{{ tabIndex === 1 ? login_name : "转换" }}</view>
148
+ <view class="login_style" :style="{
149
+ backgroundColor: '#FFFFFF',
150
+ ...loginStyle
151
+ }">{{ tabIndex === 1 ? login_name : "转换" }}</view>
149
152
  </view>
150
153
  <view class="jfb-base-card__body-card-item-right">
151
154
  <view class="jfb-base-card__body-card-item-right-top">
@@ -179,7 +182,10 @@
179
182
  </view>
180
183
  <view
181
184
  @click.stop="toDetail(item)"
182
- :style="{ background: mainColor }"
185
+ :style="{
186
+ backgroundColor: mainColor,
187
+ ...lookStyle
188
+ }"
183
189
  >查看</view
184
190
  >
185
191
  </view>
@@ -194,6 +200,8 @@
194
200
  :key="index"
195
201
  :cardInfo="item"
196
202
  :tabIndex="tabIndex"
203
+ :loginStyle="loginStyle"
204
+ :lookStyle="lookStyle"
197
205
  @toDetail="toDetail(item)"
198
206
  @bindLogin="handleBindLogin(item)">
199
207
  </xd-card-v2>
@@ -254,6 +262,22 @@ export default {
254
262
  jwxSDK: (state) => state.jwxSDK,
255
263
  jfbAuthorize: (state) => state.jfbAuthorize,
256
264
  }),
265
+ loginStyle(){
266
+ let style = {};
267
+ if(this.login_text_size) style['fontSize'] = this.login_text_size + 'rpx';
268
+ if(this.login_text_color) style['color'] = this.login_text_color;
269
+ if(this.login_text_bg_color) style['backgroundColor'] = this.login_text_bg_color;
270
+ if(this.login_text_radius) style['borderRadius'] = this.login_text_radius + 'rpx'
271
+ return style;
272
+ },
273
+ lookStyle(){
274
+ let style = {};
275
+ if(this.look_text_size) style['fontSize'] = this.look_text_size + 'rpx';
276
+ if(this.look_text_color) style['color'] = this.look_text_color;
277
+ if(this.look_text_bg_color) style['backgroundColor'] = this.look_text_bg_color;
278
+ if(this.look_text_radius) style['borderRadius'] = this.look_text_radius + 'rpx'
279
+ return style;
280
+ }
257
281
  },
258
282
  watch: {
259
283
  tabIndex(newVal, oldVal) {
@@ -297,6 +321,16 @@ export default {
297
321
  allEntryPath: "", //综合福利入口页
298
322
  disabledUrl: "",
299
323
  cardLayout: "1", //票券布局
324
+
325
+ //样式
326
+ login_text_size: "",
327
+ login_text_color: "",
328
+ login_text_bg_color: "",
329
+ login_text_radius: "",
330
+ look_text_size: "",
331
+ look_text_color: "",
332
+ look_text_bg_color: "",
333
+ look_text_radius: "",
300
334
 
301
335
  showDisabled: 'Y',
302
336
 
@@ -342,6 +376,16 @@ export default {
342
376
  this.confirmUrl = getContainerPropsValue(container,"content.confirm_url",{value: ""}).value;
343
377
  this.allEntryPath = getContainerPropsValue(container,"content.allEntryPath",{value: ""}).value;
344
378
  this.login_name = getContainerPropsValue(container, "content.login_name", "登录");
379
+ //样式
380
+ this.login_text_size = getContainerPropsValue(container, 'content.login_text_size', 24);
381
+ this.login_text_color = getContainerPropsValue(container, 'content.login_text_color', '');
382
+ this.login_text_bg_color = getContainerPropsValue(container, 'content.login_text_bg_color', '');
383
+ this.login_text_radius = getContainerPropsValue(container, 'content.login_text_radius', '');
384
+
385
+ this.look_text_size = getContainerPropsValue(container, 'content.look_text_size', 24);
386
+ this.look_text_color = getContainerPropsValue(container, 'content.look_text_color', '');
387
+ this.look_text_bg_color = getContainerPropsValue(container, 'content.look_text_bg_color', '');
388
+ this.look_text_radius = getContainerPropsValue(container, 'content.look_text_radius', '');
345
389
  },
346
390
 
347
391
  handleToLink(path) {
@@ -701,6 +745,11 @@ export default {
701
745
  align-items: center;
702
746
  justify-content: center;
703
747
  font-size: unit(24, rpx);
748
+ .login_style{
749
+ min-width: 80rpx;
750
+ padding: 4rpx 16rpx;
751
+ text-align: center;
752
+ }
704
753
  }
705
754
 
706
755
  &-right {
@@ -16,7 +16,7 @@
16
16
  </view>
17
17
  <!-- #endif -->
18
18
  <view class="jfb-base-card-detail-entry__body" v-if="info!==null">
19
- <view class="card-list" :style="{
19
+ <!-- <view class="card-list" :style="{
20
20
  background: headerBg['color'],
21
21
  backgroundSize: '100%'
22
22
  }">
@@ -40,23 +40,40 @@
40
40
  <view><text>购买其他物品可抵:</text><text>{{info.other_card_point}} {{ info.unit }}</text></view>
41
41
  </view>
42
42
  </view>
43
- </view>
44
- <view class="jfb-base-card-detail-entry__body-qrcode">
45
- <view>
46
- <view>
47
- <image mode="aspectFit" :src="info.barcode"></image>
43
+ </view> -->
44
+ <view class="qrcode_card">
45
+ <view class="jfb-base-card-detail-entry__body-qrcode">
46
+ <view class="barcode_wrap">
47
+ <view>
48
+ <image mode="aspectFit" :src="info.barcode"></image>
49
+ </view>
50
+ </view>
51
+ <view class="qrcode_wrap" style="position: relative">
52
+ <image
53
+ :style="{width: '300rpx', height: '300rpx'}"
54
+ :src="info.card_qrcode"
55
+ ></image>
56
+ <image v-if="isBrandLogo" class="logo-icon" :src="brandLogo"></image>
57
+ </view>
58
+ <!-- <view :style="{marginTop: '20rpx'}" v-if="timeStr">消费二维码,有效期为{{ info["card_qrcode_expire"] / 60 }}分钟</view> -->
59
+ <view v-if="timeStr">{{ timeStr }}后自动刷新</view>
60
+ <view class="refresh_wrap" @click="handleRefresh">
61
+ <xd-font-icon icon="iconshuaxin"
62
+ style="margin-right: 24rpx;"
63
+ size="28"></xd-font-icon> 刷新二维码
48
64
  </view>
49
65
  </view>
50
- <view style="position: relative">
51
- <image
52
- :style="{width: '300rpx', height: '300rpx'}"
53
- :src="info.card_qrcode"
54
- ></image>
55
- <image v-if="isBrandLogo" class="logo-icon" :src="brandLogo"></image>
66
+ <view class="card_info">
67
+ <view class="card_type">{{ info['card_type_name'] }}</view>
68
+ <view class="card_sec">券号:{{ info.card_number }}</view>
69
+ <view class="card_sec">有效期:{{ info.end_time }}</view>
70
+ <view class="card_sec">余额:{{ info.card_point }}{{ info.unit }}</view>
71
+ <view class="card_other" v-if="info.other_card_point && info.card_point_type === 2">
72
+ <text>购买其他物品可抵:</text><text>{{info.other_card_point}} {{ info.unit }}</text>
73
+ </view>
56
74
  </view>
57
- <view :style="{marginTop: '20rpx'}" v-if="timeStr">消费二维码,有效期为{{ info["card_qrcode_expire"] / 60 }}分钟</view>
58
- <view v-if="timeStr">距离刷新还有{{ timeStr }}</view>
59
75
  </view>
76
+
60
77
  <view
61
78
  v-if="info.site_entry_settings&&info.site_entry_settings.length>0"
62
79
  class="jfb-base-card-detail-entry__body-business"
@@ -287,6 +304,11 @@ export default {
287
304
  // this.$refs["pwPay"].clearPwd();
288
305
  });
289
306
  },
307
+ handleRefresh(){
308
+ clearInterval(this.timeer);
309
+ this.detail();
310
+ // this.refrush();
311
+ },
290
312
  refrush() {
291
313
  if (this.stopTimer) return;
292
314
  if (this.time >= this.maxTime) {
@@ -558,6 +580,37 @@ export default {
558
580
  .jfb-base-card-detail-entry {
559
581
  &__body {
560
582
  color: #333;
583
+
584
+ .qrcode_card{
585
+ background-color: #FF2121;
586
+ border-radius: 24rpx;
587
+ padding: 24rpx;
588
+ &-title{
589
+ display: flex;
590
+ font-size: 32rpx;
591
+ }
592
+ .card_info{
593
+ color: #FFFFFF;
594
+ font-size: 28rpx;
595
+ padding-left: 40rpx;
596
+ .card_type{
597
+ font-size: 40rpx;
598
+ font-weight: 600;
599
+ margin-top: 70rpx;
600
+ }
601
+ .card_sec{
602
+ margin: 12rpx 0;
603
+ }
604
+ .card_other{
605
+ background-color: rgba(255,255,255, 0.2);
606
+ border-radius: 8rpx;
607
+ padding: 8rpx 20rpx;
608
+ display: inline-block;
609
+ }
610
+ }
611
+ }
612
+
613
+
561
614
  .logo-icon {
562
615
  width: unit(100, rpx) !important;
563
616
  height: unit(100, rpx) !important;
@@ -784,9 +837,20 @@ export default {
784
837
  line-height: unit(36, rpx);
785
838
  background: #fff;
786
839
  border-radius: unit(16,rpx);
787
- margin-top: unit(24, rpx);
788
- padding: unit(20,rpx) unit(70,rpx) unit(70,rpx) unit(70,rpx);
840
+ padding: unit(20,rpx) unit(70,rpx) 0 unit(70,rpx);
789
841
  color: #000;
842
+ position: relative;
843
+ &::after{
844
+ content: " ";
845
+ position: absolute;
846
+ left: 0;
847
+ bottom: -40rpx;
848
+ width: 100%;
849
+ height: 100rpx;
850
+ background: #FFFFFF;
851
+ border-radius: 100%;
852
+ z-index: 1;
853
+ }
790
854
 
791
855
  & > view {
792
856
  // margin-bottom: unit(20, rpx);
@@ -795,8 +859,21 @@ export default {
795
859
  margin-bottom: 0;
796
860
  }
797
861
  }
862
+ .refresh_wrap{
863
+ width: 300rpx;
864
+ height: 80rpx;
865
+ display: flex;
866
+ align-items: center;
867
+ border: 1px solid #999999;
868
+ color: #999999;
869
+ border-radius: 40rpx;
870
+ justify-content: center;
871
+ margin: 36rpx auto 0;
872
+ position: relative;
873
+ z-index: 10;
874
+ }
798
875
 
799
- & > view:nth-child(1) {
876
+ .barcode_wrap {
800
877
  display: flex;
801
878
  justify-content: center;
802
879
  align-items: center;
@@ -819,7 +896,7 @@ export default {
819
896
  }
820
897
  }
821
898
 
822
- & > view:nth-child(2) {
899
+ .qrcode_wrap {
823
900
  display: flex;
824
901
  justify-content: center;
825
902
  align-items: center;
@@ -177,7 +177,7 @@
177
177
  <text>券号:</text>
178
178
  <text>{{item.card_number}}</text>
179
179
  </view>
180
- <view @click.stop="toDetail(item)" v-if="0">
180
+ <view @click.stop="toDetail(item)">
181
181
  <view>
182
182
  <xd-font-icon icon="iconerweima" width="56" height="56" size="50" color="#fff"></xd-font-icon>
183
183
  </view>
@@ -15,6 +15,17 @@ export default {
15
15
  },
16
16
  inline: false,
17
17
  },
18
+ {
19
+ label: '我的票券跳转地址:', //label
20
+ ele: 'xd-select-pages-path', //package 名称
21
+ valueKey: 'my_card_url', //form[valueKey]
22
+ placeholder: '请选择我的票券跳转地址',
23
+ value: null,
24
+ setting: {
25
+ router: XdBus.getParentApi('getPagesTree'),
26
+ },
27
+ inline: false,
28
+ },
18
29
  {
19
30
  label: '券号框自定义文案:',
20
31
  ele: 'el-input',
@@ -33,5 +44,15 @@ export default {
33
44
  placeholder: '请输入密码框自定义文案',
34
45
  className: 'input80'
35
46
  },
47
+ {
48
+ label: "票券过期是否展示余额",
49
+ ele: "xd-radio",
50
+ valueKey: "is_show_balance",
51
+ value: "N",
52
+ list: [
53
+ {label: "是", value: "Y"},
54
+ {label: "否", value: "N"},
55
+ ]
56
+ }
36
57
  ],
37
58
  };
@@ -63,7 +63,7 @@
63
63
  info[item.key]
64
64
  }}</view>
65
65
  </view>
66
- <view class="jfb-base-card-info__body-residue">
66
+ <view v-if="isShowBalance" class="jfb-base-card-info__body-residue">
67
67
  <view class="jfb-base-card-info__body-residue-wrap">
68
68
  <view class="jfb-base-card-info__body-residue-label">
69
69
  <view :style="{ color: '#242424', fontSize: '28rpx' }"
@@ -166,12 +166,20 @@ export default {
166
166
 
167
167
  //页面跳转地址
168
168
  backUrl: "",
169
+ is_show_balance: "N", //是否显示余额
170
+ my_card_url: "", //我的票券跳转地址
169
171
  };
170
172
  },
171
173
  computed: {
172
174
  prod_bottom() {
173
175
  return this.fixedStyle({ height: 0, zIndex: 111 });
174
176
  },
177
+ isShowBalance(){
178
+ if(this.info.is_expired === "Y"){
179
+ return this.is_show_balance === "Y";
180
+ }
181
+ return true;
182
+ }
175
183
  },
176
184
  created() {},
177
185
  methods: {
@@ -187,10 +195,11 @@ export default {
187
195
  vm: this,
188
196
  data: {
189
197
  card_qrcode: this.qrcode,
198
+ is_show_pop: "Y"
190
199
  },
191
200
  })
192
201
  .then((res) => {
193
- this.handlerAfterBindCard();
202
+ this.handlerAfterBindCard(res);
194
203
  })
195
204
  .catch();
196
205
  } else {
@@ -199,15 +208,21 @@ export default {
199
208
  data: {
200
209
  card_password: this.card_password,
201
210
  card_number: this.card_number + "",
211
+ is_show_pop: "Y"
202
212
  },
203
213
  })
204
214
  .then((res) => {
205
- this.handlerAfterBindCard();
215
+ this.handlerAfterBindCard(res);
206
216
  })
207
217
  .catch();
208
218
  }
209
219
  },
210
- handlerAfterBindCard(){
220
+ handlerAfterBindCard(res){
221
+ if(res.pop_info && res.pop_info.pop_code === '1001'){
222
+ this.handleBindConfirm();
223
+ return;
224
+ }
225
+
211
226
  if(this.hasCon){
212
227
  this.toShowCouponDialog();
213
228
  this.$bus.$on("onCloseConDialog",(container_id) => {
@@ -228,6 +243,25 @@ export default {
228
243
  });
229
244
  }
230
245
  },
246
+ //卡券已被自己绑定时的弹框
247
+ handleBindConfirm(){
248
+ this.$xdConfirm({
249
+ $vm: this,
250
+ width: '90%',
251
+ content: '您已绑定该票券,无需再次绑定',
252
+ confirmText: '我的票券',
253
+ cancelText: '返回',
254
+ showClose: false,
255
+ success: (res) => {
256
+ if (res.confirm) {
257
+ this.$xdUniHelper.redirectTo({
258
+ url: this.my_card_url || this.backUrl,
259
+ });
260
+ }else{
261
+ }
262
+ }
263
+ })
264
+ },
231
265
  init() {
232
266
  this.backUrl = getContainerPropsValue(
233
267
  this.container,
@@ -244,6 +278,8 @@ export default {
244
278
  "content.card_pwd_placeholder",
245
279
  "请输入密码"
246
280
  );
281
+ this.is_show_balance = getContainerPropsValue(this.container, 'content.is_show_balance', "N");
282
+ this.my_card_url = getContainerPropsValue(this.container, 'content.my_card_url', { value: "" }).value;
247
283
  },
248
284
  onJfbLoad(options) {
249
285
  this.init();
@@ -15,6 +15,17 @@ export default {
15
15
  },
16
16
  inline: false,
17
17
  },
18
+ {
19
+ label: '我的票券跳转地址:', //label
20
+ ele: 'xd-select-pages-path', //package 名称
21
+ valueKey: 'my_card_url', //form[valueKey]
22
+ placeholder: '请选择我的票券跳转地址',
23
+ value: null,
24
+ setting: {
25
+ router: XdBus.getParentApi('getPagesTree'),
26
+ },
27
+ inline: false,
28
+ },
18
29
  {
19
30
  label: '券号框自定义文案:',
20
31
  ele: 'el-input',
@@ -162,6 +162,7 @@ export default {
162
162
  //页面跳转地址
163
163
  backUrl: "",
164
164
  headerBg: {},
165
+ my_card_url: "", //我的票券跳转地址
165
166
  };
166
167
  },
167
168
  watch: {
@@ -204,10 +205,11 @@ export default {
204
205
  vm: this,
205
206
  data: {
206
207
  card_qrcode: this.qrcode,
208
+ is_show_pop: "Y",
207
209
  },
208
210
  })
209
211
  .then((res) => {
210
- this.handlerAfterBindCard();
212
+ this.handlerAfterBindCard(res);
211
213
  })
212
214
  .catch();
213
215
  } else {
@@ -216,17 +218,24 @@ export default {
216
218
  data: {
217
219
  card_password: this.card_password,
218
220
  card_number: this.card_number + "",
219
- is_show_entry_settings: "Y"
221
+ is_show_entry_settings: "Y",
222
+ is_show_pop: "Y",
220
223
  },
221
224
  })
222
225
  .then((res) => {
223
226
  console.log(this.$xdAlert, "this.$xdAlertfsdfs");
224
- this.handlerAfterBindCard();
227
+ this.handlerAfterBindCard(res);
225
228
  })
226
229
  .catch();
227
230
  }
228
231
  },
229
- handlerAfterBindCard(){
232
+ handlerAfterBindCard(res){
233
+
234
+ if(res.pop_info && res.pop_info.pop_code === '1001'){
235
+ this.handleBindConfirm();
236
+ return;
237
+ }
238
+
230
239
  if(this.hasCon){
231
240
  this.toShowCouponDialog();
232
241
  this.$bus.$on("onCloseConDialog",(container_id) => {
@@ -247,6 +256,25 @@ export default {
247
256
  });
248
257
  }
249
258
  },
259
+ //卡券已被自己绑定时的弹框
260
+ handleBindConfirm(){
261
+ this.$xdConfirm({
262
+ $vm: this,
263
+ width: '90%',
264
+ content: '您已绑定该票券,无需再次绑定',
265
+ confirmText: '我的票券',
266
+ cancelText: '返回',
267
+ showClose: false,
268
+ success: (res) => {
269
+ if (res.confirm) {
270
+ this.$xdUniHelper.redirectTo({
271
+ url: this.my_card_url || this.backUrl,
272
+ });
273
+ }else{
274
+ }
275
+ }
276
+ })
277
+ },
250
278
  init() {
251
279
  this.backUrl = getContainerPropsValue(
252
280
  this.container,
@@ -263,6 +291,7 @@ export default {
263
291
  "content.card_pwd_placeholder",
264
292
  "请输入密码"
265
293
  );
294
+ this.my_card_url = getContainerPropsValue(this.container, 'content.my_card_url', { value: "" }).value;
266
295
  },
267
296
  onJfbLoad(options) {
268
297
  this.init();
@@ -45,6 +45,7 @@
45
45
  content-align="left"
46
46
  labelPosition="left"
47
47
  labelAlign="left"
48
+ v-if="0"
48
49
  >
49
50
  <view class="flex align-center">
50
51
  <xd-form-input
@@ -207,13 +208,13 @@ export default {
207
208
  this.$set(this.mergeForm, "valid_token", valid_token);
208
209
  },
209
210
  handleToSubmit() {
210
- if (!this.mergeForm.valid_code) {
211
- uni.showToast({
212
- title: "验证码不能为空!",
213
- icon: "none",
214
- });
215
- return;
216
- }
211
+ // if (!this.mergeForm.valid_code) {
212
+ // uni.showToast({
213
+ // title: "验证码不能为空!",
214
+ // icon: "none",
215
+ // });
216
+ // return;
217
+ // }
217
218
  this.$xdConfirm({
218
219
  title: "是否确认合并卡",
219
220
  isHtml: true,
@@ -237,8 +238,8 @@ export default {
237
238
  data: {
238
239
  from_card_number: this.mergeForm.from_card_number,
239
240
  to_card_number: this.mergeForm.to_card_number,
240
- valid_code: this.mergeForm.valid_code,
241
- valid_token: this.mergeForm.valid_token
241
+ // valid_code: this.mergeForm.valid_code,
242
+ // valid_token: this.mergeForm.valid_token
242
243
  },
243
244
  })
244
245
  .then((res) => {
@@ -62,7 +62,7 @@
62
62
  </view>
63
63
  </view>
64
64
  </view>
65
- <view class="code">
65
+ <view class="code" v-if="0">
66
66
  <view>验证码:</view>
67
67
  <view>
68
68
  <input v-model="valid_code" class="uni-input" placeholder="请输入验证码"/>
@@ -248,13 +248,13 @@ export default {
248
248
  },
249
249
 
250
250
  handleToSubmit() {
251
- if (!this.valid_code) {
252
- uni.showToast({
253
- title: "验证码不能为空!",
254
- icon: "none",
255
- });
256
- return;
257
- }
251
+ // if (!this.valid_code) {
252
+ // uni.showToast({
253
+ // title: "验证码不能为空!",
254
+ // icon: "none",
255
+ // });
256
+ // return;
257
+ // }
258
258
 
259
259
  let outPrice = this.$xdUniHelper.divisionFloatNumber(this.fromSelect.card_point, 100);
260
260
  let outHtml = `${this.fromSelect.value}(剩余:${outPrice})`;
@@ -269,8 +269,8 @@ export default {
269
269
  let params = {
270
270
  from_card_number: this.fromSelect.value,
271
271
  to_card_number: this.toSelect.value,
272
- valid_code: this.valid_code,
273
- valid_token: this.valid_token
272
+ // valid_code: this.valid_code,
273
+ // valid_token: this.valid_token
274
274
  };
275
275
 
276
276
  if (action.confirm) {
@@ -321,9 +321,14 @@ export default {
321
321
  otherParams = this.$xdUniHelper.jsonToParams(this.dispatchData);
322
322
  }
323
323
  } catch (error) {}
324
+ let curCoup = this.list[this.currentIndex];
325
+ let linkUrl = this.list_url;
326
+ if(curCoup.show_url){
327
+ linkUrl = curCoup.show_url
328
+ }
324
329
 
325
330
  this.$xdUniHelper.navigateTo({
326
- url: `${this.list_url}?activity_id=${this.activity_id}&distribution_method=${this.distribution_method}&${otherParams}`,
331
+ url: `${linkUrl}?activity_id=${this.activity_id}&distribution_method=${this.distribution_method}&${otherParams}`,
327
332
  });
328
333
  },
329
334
  handleClose() {
@@ -153,6 +153,7 @@ export default {
153
153
  done: false,
154
154
  message: "",
155
155
  options: {},
156
+ next_url: "",
156
157
 
157
158
  collectedPath: "",
158
159
  };
@@ -197,6 +198,7 @@ export default {
197
198
  this.used_up_url = res.used_up_url && getServiceUrl(res.used_up_url);
198
199
  this.can_take = res.can_take;
199
200
  this.has_times = res.has_times;
201
+ this.next_url = res.next_url;
200
202
 
201
203
  this.couponList =
202
204
  res.list &&
@@ -258,7 +260,7 @@ export default {
258
260
  });
259
261
  console.log("couponList", this.couponList);
260
262
  this.message = res.message;
261
- this.notice = res.rule;
263
+ this.notice = res.about;
262
264
  this.done = true;
263
265
  })
264
266
  .catch((err) => {
@@ -267,7 +269,7 @@ export default {
267
269
  },
268
270
  toCoupon(){
269
271
  this.$xdUniHelper.navigateTo({
270
- url: this.collectedPath,
272
+ url: this.next_url || this.collectedPath,
271
273
  });
272
274
  },
273
275
  getCoupont(item) {