jufubao-base 1.0.311-beta5 → 1.0.311-beta7

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.311-beta5",
3
+ "version": "1.0.311-beta7",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -274,14 +274,14 @@ export default {
274
274
  if(this.qrcode&&this.info.card_number){
275
275
  card_number = this.info.card_number;
276
276
  }
277
+ let path = this.getUrlCallback(this.my_card_url || this.backUrl);
278
+ if(res.jump_page==='detail'){
279
+ path = this.getUrlCallback(this.back_detail_url)+`?card_number=${card_number}`;
280
+ }
277
281
  if(this.hasCon){
278
282
  this.toShowCouponDialog();
279
283
  this.$bus.$on("onCloseConDialog",(container_id) => {
280
284
  if(container_id === this.hasCon){
281
- let path = this.getUrlCallback(this.backUrl)
282
- if(res.jump_page==='detail'){
283
- path = this.getUrlCallback(this.back_detail_url)+`?card_number=${card_number}`
284
- }
285
285
  this.$xdUniHelper.redirectTo({
286
286
  url: path,
287
287
  });
@@ -291,10 +291,6 @@ export default {
291
291
  this.$xdAlert({
292
292
  content: "票券绑定成功",
293
293
  close: () => {
294
- let path = this.getUrlCallback(this.backUrl)
295
- if(res.jump_page==='detail'){
296
- path = this.getUrlCallback(this.back_detail_url)+`?card_number=${card_number}`
297
- }
298
294
  this.$xdUniHelper.redirectTo({
299
295
  url: path,
300
296
  });
@@ -110,6 +110,7 @@ export default {
110
110
  inCallbackUrlOrg:'',//是否带有回调地址
111
111
  is_show_balance: "N", //是否显示余额
112
112
  hasCon: "", //是否有优惠券
113
+ card_number: "", //票券号码
113
114
  };
114
115
  },
115
116
  watch: {
@@ -165,7 +166,7 @@ export default {
165
166
  let base = this.jfbAuthorize.getBasePath(this);
166
167
  let url = `${location.origin}${base}${this.backUrl}`;
167
168
  if(res.jump_page==='detail'){
168
- url = `${location.origin}${base}${this.back_detail_url}`+`?card_number=${this.showValueKey['card_number']}`;
169
+ url = `${location.origin}${base}${this.back_detail_url}`+`?card_number=${this.card_number}`;
169
170
  }
170
171
  url = this.getUrlCallback(url)
171
172
  this.$xdLog.setARMSInfo({url}, 'static_qr_card_bind');
@@ -178,7 +179,7 @@ export default {
178
179
  //#ifndef H5
179
180
  let wPath = this.getUrlCallback(this.backUrl);
180
181
  if(res.jump_page==='detail'){
181
- wPath = this.getUrlCallback(this.back_detail_url)+`?card_number=${this.showValueKey['card_number']}`;
182
+ wPath = this.getUrlCallback(this.back_detail_url)+`?card_number=${this.card_number}`;
182
183
  }
183
184
  this.$xdUniHelper.redirectTo({
184
185
  url:wPath,
@@ -194,7 +195,7 @@ export default {
194
195
  let base = this.jfbAuthorize.getBasePath(this);
195
196
  let url = `${location.origin}${base}${this.backUrl}`;
196
197
  if(res.jump_page==='detail'){
197
- url = `${location.origin}${base}${this.back_detail_url}`+`?card_number=${this.showValueKey['card_number']}`;
198
+ url = `${location.origin}${base}${this.back_detail_url}`+`?card_number=${this.card_number}`;
198
199
  }
199
200
  url = this.getUrlCallback(url)
200
201
  this.$xdLog.setARMSInfo({url}, 'static_qr_card_bind');
@@ -207,7 +208,7 @@ export default {
207
208
  //#ifndef H5
208
209
  let wPath = this.getUrlCallback(this.backUrl)
209
210
  if(res.jump_page==='detail'){
210
- wPath = this.getUrlCallback(this.back_detail_url)+`?card_number=${this.showValueKey['card_number']}`
211
+ wPath = this.getUrlCallback(this.back_detail_url)+`?card_number=${this.card_number}`
211
212
  }
212
213
  this.$xdUniHelper.redirectTo({
213
214
  url:wPath,
@@ -224,6 +225,7 @@ export default {
224
225
  },
225
226
  init() {
226
227
  this.backUrl = getContainerPropsValue( this.container, "content.back_url", { value: "" }).value;
228
+ this.back_detail_url = getContainerPropsValue( this.container, "content.back_detail_url", { value: "" }).value;
227
229
  this.is_show_balance = getContainerPropsValue(this.container, 'content.is_show_balance', "N");
228
230
  },
229
231
  onJfbLoad(options) {
@@ -251,6 +253,7 @@ export default {
251
253
  })
252
254
  .then((res) => {
253
255
  console.log('getSweepByQrCardDetail',res)
256
+ this.card_number = res.card_number;
254
257
  res.is_exchange_name = res.is_exchange === "Y" ? "可转换" : "不可转换";
255
258
  let temp = {};
256
259
  Object.keys(res).map((key) => {