jufubao-base 1.0.119-beta2 → 1.0.119-beta21

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 (95) hide show
  1. package/package.json +4 -3
  2. package/src/components/JfbBaseCard/JfbBaseCard.vue +9 -6
  3. package/src/components/JfbBaseCardBind/JfbBaseCardBind.vue +8 -4
  4. package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2.vue +8 -8
  5. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +9 -4
  6. package/src/components/JfbBaseCardInfo/JfbBaseCardInfo.vue +24 -32
  7. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +46 -50
  8. package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfo.vue +13 -5
  9. package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +8 -2
  10. package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +8 -4
  11. package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +146 -89
  12. package/src/components/JfbBaseMySetting/Api.js +2 -2
  13. package/src/components/JfbBaseMySetting/Attr.js +5 -4
  14. package/src/components/JfbBaseMySetting/JfbBaseMySetting.vue +3 -25
  15. package/src/components/JfbBaseMySetting/Mock.js +2 -1
  16. package/src/components/JfbBasePay/JfbBasePay.vue +8 -3
  17. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
  18. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +268 -238
  19. package/src/components/{JfbBaseConFlashHome → JfbBaseWallet}/Api.js +1 -1
  20. package/src/components/JfbBaseWallet/Attr.js +101 -0
  21. package/src/components/JfbBaseWallet/JfbBaseWallet.vue +306 -0
  22. package/src/components/{JfbBaseSaasHome/JfbBaseSaasHomeLess.less → JfbBaseWallet/JfbBaseWalletLess.less} +2 -2
  23. package/src/components/{JfbBaseSaasHome/JfbBaseSaasHomeMixin.js → JfbBaseWallet/JfbBaseWalletMixin.js} +1 -1
  24. package/src/components/{JfbBaseConFlashHome → JfbBaseWallet}/Mock.js +1 -0
  25. package/src/components/{JfbBaseSaasNewsList → JfbBaseWalletDetail}/Api.js +5 -5
  26. package/src/components/{JfbBaseSaasNewsDetail → JfbBaseWalletDetail}/Attr.js +3 -1
  27. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetail.vue +175 -0
  28. package/src/components/{JfbBaseConFlashList/JfbBaseConFlashListLess.less → JfbBaseWalletDetail/JfbBaseWalletDetailLess.less} +2 -2
  29. package/src/components/{JfbBaseConFlashHome/JfbBaseConFlashHomeMixin.js → JfbBaseWalletDetail/JfbBaseWalletDetailMixin.js} +1 -1
  30. package/src/components/JfbBaseWalletDetail/Mock.js +6 -0
  31. package/src/components/{JfbBaseSaasNewsDetail → JfbBaseWalletEffective}/Api.js +7 -7
  32. package/src/components/JfbBaseWalletEffective/Attr.js +15 -0
  33. package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffective.vue +176 -0
  34. package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveLess.less +80 -0
  35. package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveMixin.js +30 -0
  36. package/src/components/JfbBaseWalletEffective/Mock.js +21 -0
  37. package/src/components/JfbBaseWalletIndex/Api.js +48 -0
  38. package/src/components/JfbBaseWalletIndex/Attr.js +33 -0
  39. package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndex.vue +821 -0
  40. package/src/components/{JfbBaseConFlashHome/JfbBaseConFlashHomeLess.less → JfbBaseWalletIndex/JfbBaseWalletIndexLess.less} +2 -2
  41. package/src/components/{JfbBaseConFlashList/JfbBaseConFlashListMixin.js → JfbBaseWalletIndex/JfbBaseWalletIndexMixin.js} +1 -1
  42. package/src/components/JfbBaseWalletIndex/Mock.js +7 -0
  43. package/src/components/JfbBaseWalletItem/Api.js +37 -0
  44. package/src/components/JfbBaseWalletItem/Attr.js +33 -0
  45. package/src/components/JfbBaseWalletItem/JfbBaseWalletItem.vue +501 -0
  46. package/src/components/{JfbBaseSaasLogin/JfbBaseSaasLoginLess.less → JfbBaseWalletItem/JfbBaseWalletItemLess.less} +2 -2
  47. package/src/components/{JfbBaseSaasLogin/JfbBaseSaasLoginMixin.js → JfbBaseWalletItem/JfbBaseWalletItemMixin.js} +1 -1
  48. package/src/components/JfbBaseWalletItem/Mock.js +7 -0
  49. package/src/components/JfbBaseConFlashHome/Attr.js +0 -129
  50. package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHome.vue +0 -388
  51. package/src/components/JfbBaseConFlashList/Api.js +0 -60
  52. package/src/components/JfbBaseConFlashList/Attr.js +0 -117
  53. package/src/components/JfbBaseConFlashList/JfbBaseConFlashList.vue +0 -656
  54. package/src/components/JfbBaseConFlashList/Mock.js +0 -5
  55. package/src/components/JfbBaseSaasBlessDetail/Api.js +0 -59
  56. package/src/components/JfbBaseSaasBlessDetail/Attr.js +0 -24
  57. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetail.vue +0 -315
  58. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailLess.less +0 -80
  59. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailMixin.js +0 -30
  60. package/src/components/JfbBaseSaasBlessDetail/Mock.js +0 -5
  61. package/src/components/JfbBaseSaasBlessDialog/Api.js +0 -25
  62. package/src/components/JfbBaseSaasBlessDialog/Attr.js +0 -50
  63. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialog.vue +0 -274
  64. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogLess.less +0 -80
  65. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogMixin.js +0 -30
  66. package/src/components/JfbBaseSaasBlessDialog/Mock.js +0 -5
  67. package/src/components/JfbBaseSaasBlessReceive/Api.js +0 -25
  68. package/src/components/JfbBaseSaasBlessReceive/Attr.js +0 -24
  69. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceive.vue +0 -183
  70. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveLess.less +0 -80
  71. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveMixin.js +0 -30
  72. package/src/components/JfbBaseSaasBlessReceive/Mock.js +0 -5
  73. package/src/components/JfbBaseSaasHome/Api.js +0 -48
  74. package/src/components/JfbBaseSaasHome/Attr.js +0 -35
  75. package/src/components/JfbBaseSaasHome/JfbBaseSaasHome.vue +0 -356
  76. package/src/components/JfbBaseSaasHome/Mock.js +0 -5
  77. package/src/components/JfbBaseSaasLogin/Api.js +0 -39
  78. package/src/components/JfbBaseSaasLogin/Attr.js +0 -37
  79. package/src/components/JfbBaseSaasLogin/JfbBaseSaasLogin.vue +0 -410
  80. package/src/components/JfbBaseSaasLogin/Mock.js +0 -5
  81. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetail.vue +0 -144
  82. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailLess.less +0 -80
  83. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailMixin.js +0 -30
  84. package/src/components/JfbBaseSaasNewsDetail/Mock.js +0 -5
  85. package/src/components/JfbBaseSaasNewsList/Attr.js +0 -24
  86. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsList.vue +0 -181
  87. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListLess.less +0 -80
  88. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListMixin.js +0 -30
  89. package/src/components/JfbBaseSaasNewsList/Mock.js +0 -5
  90. package/src/components/JfbBaseSassPhoneCollect/Api.js +0 -39
  91. package/src/components/JfbBaseSassPhoneCollect/Attr.js +0 -438
  92. package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollect.vue +0 -266
  93. package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectLess.less +0 -80
  94. package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectMixin.js +0 -30
  95. package/src/components/JfbBaseSassPhoneCollect/Mock.js +0 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.119-beta2",
3
+ "version": "1.0.119-beta21",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -48,6 +48,7 @@
48
48
  "@vue/shared": "^3.0.0",
49
49
  "color": "^3.1.3",
50
50
  "core-js": "^2.6.5",
51
+ "dingtalk-jsapi": "^3.0.31",
51
52
  "flyio": "^0.6.2",
52
53
  "gxd-commands-bussiness": "^1.0.12",
53
54
  "gxd-uni-library-editx": "1.0.17-beta2",
@@ -56,10 +57,10 @@
56
57
  "path-to-regexp": "^6.2.1",
57
58
  "qs": "^6.9.6",
58
59
  "regenerator-runtime": "^0.12.1",
60
+ "vconsole": "^3.15.0",
59
61
  "vue": "^2.6.10",
60
62
  "vue-clipboard2": "^0.3.1",
61
- "vuex": "^3.2.0",
62
- "vconsole": "^3.15.0"
63
+ "vuex": "^3.2.0"
63
64
  },
64
65
  "repository": {
65
66
  "type": "git",
@@ -294,6 +294,7 @@ export default {
294
294
  data() {
295
295
  return {
296
296
  options: {},
297
+ inCallbackUrlOrg:'',//是否带有回调地址
297
298
 
298
299
  //提示文案
299
300
  noticeBackgroundColor: "",
@@ -321,7 +322,7 @@ export default {
321
322
  allEntryPath: "", //综合福利入口页
322
323
  disabledUrl: "",
323
324
  cardLayout: "1", //票券布局
324
-
325
+
325
326
  //样式
326
327
  login_text_size: "",
327
328
  login_text_color: "",
@@ -389,6 +390,7 @@ export default {
389
390
  },
390
391
 
391
392
  handleToLink(path) {
393
+ path = this.getUrlCallback(path);
392
394
  this.$xdUniHelper.navigateTo({
393
395
  url: path,
394
396
  });
@@ -414,6 +416,7 @@ export default {
414
416
  });
415
417
  },
416
418
 
419
+
417
420
  /**
418
421
  * @description 扫码绑定
419
422
  */
@@ -425,10 +428,9 @@ export default {
425
428
  needResult: 1,
426
429
  scanType: ["qrCode"],
427
430
  success: (res) => {
431
+ let path = this.getUrlCallback(`${this.confirmUrl}?qrcode=${encodeURIComponent(res.resultStr)}`)
428
432
  this.$xdUniHelper.navigateTo({
429
- url: `${this.confirmUrl}?qrcode=${encodeURIComponent(
430
- res.resultStr
431
- )}`,
433
+ url: path,
432
434
  });
433
435
  },
434
436
  fail: (error) => {
@@ -443,8 +445,9 @@ export default {
443
445
  uni.scanCode({
444
446
  scanType: ["qrCode"],
445
447
  success: (res) => {
448
+ let path = this.getUrlCallback(`${this.confirmUrl}?qrcode=${encodeURIComponent(res.resultStr)}`)
446
449
  this.$xdUniHelper.navigateTo({
447
- url: `${this.confirmUrl}?qrcode=${encodeURIComponent(res.result)}`,
450
+ url: path,
448
451
  });
449
452
  },
450
453
  fail: (error) => {
@@ -469,7 +472,6 @@ export default {
469
472
  */
470
473
  handleBindLogin(item) {
471
474
  if (this.tabIndex === 1) {
472
- console.log("bindCardLogin", this.inCallback);
473
475
 
474
476
  //无效卡
475
477
  if (item["is_valid"] !== "Y") {
@@ -534,6 +536,7 @@ export default {
534
536
  this.$storage.set("inCallback", inCallback);
535
537
  try{
536
538
  inCallback = Base64.decode(inCallback);
539
+ this.inCallbackUrlOrg = options.inCallback;
537
540
  }catch (e){
538
541
  inCallback = null;
539
542
  }
@@ -69,6 +69,7 @@ export default {
69
69
 
70
70
  //页面跳转地址
71
71
  confirmUrl: "",
72
+ inCallbackUrlOrg:'',//是否带有回调地址
72
73
  };
73
74
  },
74
75
  computed: {
@@ -107,11 +108,14 @@ export default {
107
108
  }
108
109
  let cardNumber = Base64.encodeURI(this.cardNumber);
109
110
  let pwd = Base64.encodeURI(this.card_password);
110
- this.$xdUniHelper.navigateTo({
111
- url: `${this.confirmUrl}?card_number=${cardNumber}&pwd=${pwd}`,
112
- });
111
+ let url = this.getUrlCallback(`${this.confirmUrl}?card_number=${cardNumber}&pwd=${pwd}`)
112
+ this.$xdUniHelper.navigateTo({url});
113
+ },
114
+ onJfbLoad(options) {
115
+ if(options.inCallback) {
116
+ this.inCallbackUrlOrg = options.inCallback;
117
+ }
113
118
  },
114
- onJfbLoad(options) {},
115
119
  isEmpty(str) {
116
120
  if (str === null || str === "") {
117
121
  return true;
@@ -89,8 +89,8 @@
89
89
  },
90
90
  jwxSDK: null,
91
91
  validImageAPIUrl: "",
92
- //todo
93
92
  backUrl: "",
93
+ inCallbackUrlOrg:'',//是否带有回调地址
94
94
  }
95
95
  },
96
96
  watch: {
@@ -101,7 +101,7 @@
101
101
  created() {
102
102
  this.init(this.container);
103
103
  this.validImageAPIUrl = this.brandInfo['api_host'] + '/common/v1/valid_code/image/show'
104
-
104
+
105
105
  //#ifdef H5
106
106
  if (!this.$configProject.isPreview) {
107
107
  jfbRootExec("getH5WxAuthorize", {
@@ -121,7 +121,9 @@
121
121
  },
122
122
  methods: {
123
123
  onJfbLoad(options) {
124
-
124
+ if(options.inCallback) {
125
+ this.inCallbackUrlOrg = options.inCallback;
126
+ }
125
127
  },
126
128
  /**
127
129
  * @description 监听事件变化
@@ -129,16 +131,14 @@
129
131
  */
130
132
  init(container) {
131
133
  this.backUrl = getContainerPropsValue(container, "content.backUrl", {value: "/system/card/login"}).value;
132
- //this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
133
-
134
- //this.height = getContainerPropsValue(container, 'content.height', 10);
135
134
  },
136
135
  handleBindSuccess(){
137
136
  this.$xdAlert({
138
137
  content: "绑定成功",
139
138
  close: () => {
139
+ let path = this.getUrlCallback(`${this.backUrl}}`)
140
140
  this.$xdUniHelper.redirectTo({
141
- url: this.backUrl,
141
+ url: path,
142
142
  });
143
143
  },
144
144
  });
@@ -166,7 +166,7 @@
166
166
  let valid_token = this.$xdUniHelper.randomChar(20);
167
167
  this.$set(this.cardForm, "valid_token", valid_token);
168
168
  },
169
-
169
+
170
170
  doScanCode(){
171
171
  this.jwxSDK.scanQRCode({
172
172
  needResult: 1,
@@ -422,6 +422,7 @@ export default {
422
422
  data() {
423
423
  return {
424
424
  options:{},
425
+ inCallbackUrlOrg:'',//是否带有回调地址
425
426
 
426
427
  //提示文案
427
428
  noticeBackgroundColor: "",
@@ -491,6 +492,7 @@ export default {
491
492
  },
492
493
 
493
494
  handleToLink(path) {
495
+ path = this.getUrlCallback(path)
494
496
  this.$xdUniHelper.navigateTo({
495
497
  url: path,
496
498
  });
@@ -527,10 +529,9 @@ export default {
527
529
  needResult: 1,
528
530
  scanType: ["qrCode"],
529
531
  success: (res) => {
532
+ let path = this.getUrlCallback(`${this.confirmUrl}?qrcode=${encodeURIComponent(res.resultStr)}`)
530
533
  this.$xdUniHelper.navigateTo({
531
- url: `${this.confirmUrl}?qrcode=${encodeURIComponent(
532
- res.resultStr
533
- )}`,
534
+ url:path,
534
535
  });
535
536
  },
536
537
  fail: (error) => {
@@ -545,8 +546,9 @@ export default {
545
546
  uni.scanCode({
546
547
  scanType: ["qrCode"],
547
548
  success: (res) => {
549
+ let path = this.getUrlCallback(`${this.confirmUrl}?qrcode=${encodeURIComponent(res.resultStr)}`)
548
550
  this.$xdUniHelper.navigateTo({
549
- url: `${this.confirmUrl}?qrcode=${encodeURIComponent(res.result)}`,
551
+ url:path,
550
552
  });
551
553
  },
552
554
  fail: (error) => {
@@ -664,6 +666,9 @@ export default {
664
666
  this.$storage.set("inCallback", inCallback);
665
667
  try{
666
668
  inCallback = Base64.decode(inCallback);
669
+ if(options.inCallback) {
670
+ this.inCallbackUrlOrg = options.inCallback;
671
+ }
667
672
  }catch (e){
668
673
  inCallback = null;
669
674
  }
@@ -56,12 +56,8 @@
56
56
  v-for="(item, index) in valueKey"
57
57
  :key="index"
58
58
  >
59
- <view class="jfb-base-card-info__body-info-label">{{
60
- item.label
61
- }}</view>
62
- <view class="jfb-base-card-info__body-info-value">{{
63
- info[item.key]
64
- }}</view>
59
+ <view class="jfb-base-card-info__body-info-label">{{item.label}}</view>
60
+ <view class="jfb-base-card-info__body-info-value">{{info[item.key] }}</view>
65
61
  </view>
66
62
  <view v-if="isShowBalance" class="jfb-base-card-info__body-residue">
67
63
  <view class="jfb-base-card-info__body-residue-wrap">
@@ -95,9 +91,7 @@
95
91
  <view :style="{ height: '100rpx' }"></view>
96
92
  </view>
97
93
  <view class="jfb-base-card-info__body-footer" :style="prod_bottom">
98
- <xd-button type="primary" width="360rpx" @click="handleToLink"
99
- >立即绑定</xd-button
100
- >
94
+ <xd-button type="primary" width="360rpx" @click="handleToLink">立即绑定</xd-button>
101
95
  </view>
102
96
  </view>
103
97
  </view>
@@ -168,6 +162,8 @@ export default {
168
162
  backUrl: "",
169
163
  is_show_balance: "N", //是否显示余额
170
164
  my_card_url: "", //我的票券跳转地址
165
+
166
+ inCallbackUrlOrg:'',//是否带有回调地址
171
167
  };
172
168
  },
173
169
  computed: {
@@ -184,7 +180,6 @@ export default {
184
180
  created() {},
185
181
  methods: {
186
182
  toShowCouponDialog(){
187
- // jfbRootFnExec(this, 'onCustomEvent')("@showBaseConDialog", {user_card_number: "10001000001133"})
188
183
  if(this.info){
189
184
  jfbRootFnExec(this, 'onCustomEvent')("@showBaseConDialog", {user_card_number: this.info.card_number})
190
185
  }
@@ -202,7 +197,8 @@ export default {
202
197
  this.handlerAfterBindCard(res);
203
198
  })
204
199
  .catch();
205
- } else {
200
+ }
201
+ else {
206
202
  jfbRootExec("pwdCardBind", {
207
203
  vm: this,
208
204
  data: {
@@ -218,31 +214,39 @@ export default {
218
214
  }
219
215
  },
220
216
  handlerAfterBindCard(res){
217
+ //已绑定卡券处理
221
218
  if(res.pop_info && res.pop_info.pop_code === '1001'){
222
219
  this.handleBindConfirm();
223
220
  return;
224
221
  }
225
222
 
223
+ let path = this.getUrlCallback(this.my_card_url || this.backUrl);
224
+
225
+ //有优惠券处理
226
226
  if(this.hasCon){
227
227
  this.toShowCouponDialog();
228
228
  this.$bus.$on("onCloseConDialog",(container_id) => {
229
229
  if(container_id === this.hasCon){
230
230
  this.$xdUniHelper.redirectTo({
231
- url: this.backUrl,
231
+ url: path,
232
232
  });
233
233
  }
234
234
  })
235
- }else{
235
+ }
236
+
237
+ //票券绑定成功
238
+ else{
236
239
  this.$xdAlert({
237
240
  content: "票券绑定成功",
238
241
  close: () => {
239
242
  this.$xdUniHelper.redirectTo({
240
- url: this.backUrl,
243
+ url: path,
241
244
  });
242
245
  },
243
246
  });
244
247
  }
245
248
  },
249
+
246
250
  //卡券已被自己绑定时的弹框
247
251
  handleBindConfirm(){
248
252
  this.$xdConfirm({
@@ -254,9 +258,8 @@ export default {
254
258
  showClose: false,
255
259
  success: (res) => {
256
260
  if (res.confirm) {
257
- this.$xdUniHelper.redirectTo({
258
- url: this.my_card_url || this.backUrl,
259
- });
261
+ let path = this.getUrlCallback(this.my_card_url || this.backUrl);
262
+ this.$xdUniHelper.redirectTo({ url: path});
260
263
  }else{
261
264
  }
262
265
  }
@@ -284,17 +287,9 @@ export default {
284
287
  onJfbLoad(options) {
285
288
  this.init();
286
289
  this.qrcode = options.qrcode;
287
- console.log(this.$configProject.isPreview, "898989989");
288
- //正式环境判断参数错误
289
- // if(!this.$configProject.isPreview) {
290
- // if(!this.qrcode) {
291
- // this.$xdAlert({
292
- // content: '参数配置错误',
293
- // type: 'error'
294
- // });
295
- // return
296
- // }
297
- // }
290
+ if(options.inCallback) {
291
+ this.inCallbackUrlOrg = options.inCallback;
292
+ }
298
293
  if (this.qrcode) {
299
294
  jfbRootExec("getByQrCardDetail", {
300
295
  vm: this,
@@ -353,10 +348,7 @@ export default {
353
348
  .catch();
354
349
  },
355
350
  isEmpty(str) {
356
- if (str === null || str === "") {
357
- return true;
358
- }
359
- return false;
351
+ return str === null || str === "";
360
352
  },
361
353
  handleGetInfo() {
362
354
  if (this.isEmpty(this.card_password)) {
@@ -163,6 +163,7 @@ export default {
163
163
  backUrl: "",
164
164
  headerBg: {},
165
165
  my_card_url: "", //我的票券跳转地址
166
+ inCallbackUrlOrg:'',//是否带有回调地址
166
167
  };
167
168
  },
168
169
  watch: {
@@ -195,7 +196,7 @@ export default {
195
196
  }
196
197
  },
197
198
  });
198
- return
199
+ return
199
200
  }
200
201
  this.handleToBind()
201
202
  },
@@ -240,8 +241,9 @@ export default {
240
241
  this.toShowCouponDialog();
241
242
  this.$bus.$on("onCloseConDialog",(container_id) => {
242
243
  if(container_id === this.hasCon){
244
+ let path = this.getUrlCallback(this.backUrl)
243
245
  this.$xdUniHelper.redirectTo({
244
- url: this.backUrl,
246
+ url: path,
245
247
  });
246
248
  }
247
249
  })
@@ -249,8 +251,9 @@ export default {
249
251
  this.$xdAlert({
250
252
  content: "票券绑定成功",
251
253
  close: () => {
254
+ let path = this.getUrlCallback(this.backUrl)
252
255
  this.$xdUniHelper.redirectTo({
253
- url: this.backUrl,
256
+ url: path,
254
257
  });
255
258
  },
256
259
  });
@@ -267,8 +270,9 @@ export default {
267
270
  showClose: false,
268
271
  success: (res) => {
269
272
  if (res.confirm) {
273
+ let path = this.getUrlCallback(this.my_card_url || this.backUrl)
270
274
  this.$xdUniHelper.redirectTo({
271
- url: this.my_card_url || this.backUrl,
275
+ url: path,
272
276
  });
273
277
  }else{
274
278
  }
@@ -296,17 +300,9 @@ export default {
296
300
  onJfbLoad(options) {
297
301
  this.init();
298
302
  this.qrcode = options.qrcode;
299
- console.log(this.$configProject.isPreview, "898989989");
300
- //正式环境判断参数错误
301
- // if(!this.$configProject.isPreview) {
302
- // if(!this.qrcode) {
303
- // this.$xdAlert({
304
- // content: '参数配置错误',
305
- // type: 'error'
306
- // });
307
- // return
308
- // }
309
- // }
303
+ if(options.inCallback) {
304
+ this.inCallbackUrlOrg = options.inCallback;
305
+ }
310
306
  if (this.qrcode) {
311
307
  jfbRootExec("getByQrCardDetailEntry", {
312
308
  vm: this,
@@ -469,18 +465,18 @@ export default {
469
465
  overflow: hidden;
470
466
  border-radius: unit(16, rpx);
471
467
  margin-bottom: unit(30, rpx);
472
-
468
+
473
469
  &:last-child {
474
470
  margin-bottom: 0;
475
471
  }
476
-
477
-
472
+
473
+
478
474
  &__title {
479
475
  height: unit(56, rpx);
480
476
  display: flex;
481
477
  justify-content: flex-start;
482
478
  align-items: center;
483
-
479
+
484
480
  & > view {
485
481
  padding: 0 unit(80, rpx);
486
482
  font-size: unit(24, rpx);
@@ -489,23 +485,23 @@ export default {
489
485
  color: #fff;
490
486
  border-radius: 0 0 unit(16, rpx) 0;
491
487
  }
492
-
488
+
493
489
  }
494
-
490
+
495
491
  &__content {
496
492
  padding: unit(10, rpx) unit(40, rpx) 0;
497
493
  height: unit(86, rpx);
498
494
  display: flex;
499
495
  justify-content: space-between;
500
496
  align-items: center;
501
-
497
+
502
498
  & > view:first-child {
503
499
  font-size: unit(36, rpx);
504
500
  line-height: unit(86, rpx);
505
501
  color: #fff;
506
502
  font-weight: 700;
507
503
  }
508
-
504
+
509
505
  & > view:nth-child(2) {
510
506
  font-size: unit(24, rpx);
511
507
  display: flex;
@@ -516,32 +512,32 @@ export default {
516
512
  color: #fff;
517
513
  }
518
514
  }
519
-
515
+
520
516
  &__date {
521
517
  padding: 0 unit(40, rpx);
522
518
  font-size: unit(28, rpx);
523
519
  line-height: unit(32, rpx);
524
520
  color: #fff;
525
521
  }
526
-
522
+
527
523
  &__yue {
528
524
  padding: unit(10, rpx) unit(40, rpx) 0;
529
525
  font-size: unit(28, rpx);
530
526
  line-height: unit(32, rpx);
531
527
  color: #fff;
532
-
528
+
533
529
  & > text:nth-child(2) {
534
530
  font-weight: 700;
535
531
  }
536
532
  }
537
-
533
+
538
534
  &__other {
539
535
  display: flex;
540
536
  justify-content: flex-start;
541
537
  align-items: center;
542
538
  padding: unit(20, rpx) unit(40, rpx) 0;
543
539
  margin-top: unit(0, rpx);
544
-
540
+
545
541
  & > view {
546
542
  border-radius:unit(8, rpx);
547
543
  background: rgba(255, 255, 255, 0.2);
@@ -555,17 +551,17 @@ export default {
555
551
  padding: 0 unit(20, rpx);
556
552
  color: #fff;
557
553
  }
558
-
559
-
554
+
555
+
560
556
  }
561
-
557
+
562
558
  &__nodata {
563
559
  padding: unit(20, rpx) unit(40, rpx) 0;
564
560
  margin-top: unit(0, rpx);
565
561
  color: #fff;
566
562
  font-size: unit(28, rpx);
567
563
  }
568
-
564
+
569
565
  &__entry {
570
566
  padding: unit(20, rpx) unit(40, rpx) 0;
571
567
  & > view {
@@ -578,26 +574,26 @@ export default {
578
574
  font-weight: 500;
579
575
  }
580
576
  }
581
-
577
+
582
578
  &__entrys {
583
579
  margin: unit(20, rpx) unit(20, rpx) 0;
584
580
  padding: unit(30, rpx);
585
581
  border-radius: unit(16, rpx);
586
582
  background: rgba(255, 255, 255, 1);
587
583
  box-shadow: 0 unit(4, rpx) unit(8, rpx) rgba(156, 62, 0, 0.11);
588
-
584
+
589
585
  &-title {
590
586
  display: flex;
591
587
  justify-content: space-between;
592
588
  align-items: center;
593
-
594
-
589
+
590
+
595
591
  & > view:first-child {
596
592
  font-size: unit(28, rpx);
597
593
  font-weight: 500;
598
594
  flex: 1;
599
595
  }
600
-
596
+
601
597
  & > view:nth-child(2) {
602
598
  display: flex;
603
599
  justify-content: flex-start;
@@ -607,11 +603,11 @@ export default {
607
603
  color: #999;
608
604
  }
609
605
  }
610
-
606
+
611
607
  &-scroll {
612
-
608
+
613
609
  }
614
-
610
+
615
611
  &-item {
616
612
  display: flex;
617
613
  justify-content: flex-start;
@@ -619,7 +615,7 @@ export default {
619
615
  flex-flow: nowrap;
620
616
  margin-left: unit(-14, rpx);
621
617
  padding-top: unit(20, rpx);
622
-
618
+
623
619
  & > view {
624
620
  width: unit(120, rpx);
625
621
  margin-right: unit(10, rpx);
@@ -628,25 +624,25 @@ export default {
628
624
  justify-content: center;
629
625
  flex-direction: column;
630
626
  align-items: center;
631
-
627
+
632
628
  & > view:first-child {
633
629
  width: unit(76, rpx);
634
630
  height: unit(76, rpx);
635
631
  overflow: hidden;
636
-
632
+
637
633
  & > image {
638
634
  height: 100%;
639
635
  width: 100%;
640
636
  }
641
637
  }
642
-
638
+
643
639
  & > view:nth-child(2) {
644
640
  margin-top: unit(10, rpx);
645
641
  font-size: unit(24, rpx);
646
642
  line-height: unit(36, rpx);
647
643
  margin-bottom: unit(10, rpx);
648
644
  }
649
-
645
+
650
646
  & > view:nth-child(3) {
651
647
  display: flex;
652
648
  justify-content: flex-start;
@@ -655,17 +651,17 @@ export default {
655
651
  font-size: unit(20, rpx);
656
652
  color: #999;
657
653
  }
658
-
654
+
659
655
  &:last-child {
660
656
  margin-right: 0;
661
657
  }
662
-
658
+
663
659
  }
664
-
665
-
660
+
661
+
666
662
  }
667
663
  }
668
-
664
+
669
665
  &-warp {
670
666
  width: unit(700, rpx);
671
667
  // min-height: unit(290, rpx);