jufubao-base 1.0.329 → 1.0.331-beta3

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.329",
3
+ "version": "1.0.331-beta3",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -803,8 +803,12 @@ export default {
803
803
  }).then(res => {
804
804
  //从res.card_qrcode中提取参数code_content
805
805
  let code_content = this.getParams(res.card_qrcode, "code_content")
806
- let sitePath = site_path.replace("${qrcode}", code_content);
807
- this.handleH5ToMP(app_id, sitePath, '');
806
+ let sitePath = site_path.replace("${qrcode}", Base64.encodeURI(code_content));
807
+ // this.handleH5ToMP(app_id, sitePath, '');
808
+ let query = encodeURIComponent(`path=${sitePath}`);
809
+ let wxLink = `weixin://dl/business/?appid=${app_id}&path=pages/loading/loading&query=${query}&env_version=release`;
810
+ console.log(wxLink)
811
+ window.location.href = wxLink;
808
812
  })
809
813
  }
810
814
  return;
@@ -159,12 +159,19 @@
159
159
  data: {
160
160
  exchange_code: exchange_code,
161
161
  version: '1.5.1',
162
+ is_return_is_used: "Y",
162
163
  ...otherData
163
164
  }
164
165
  }).then(res => {
165
166
  this.$xdHideLoading();
166
- this.step = 2;
167
- this.vipInfo = res;
167
+ if(res.is_used === 'Y'){
168
+ this.$xdUniHelper.navigateTo({
169
+ url: "/main/zhrk/zhrk"
170
+ })
171
+ }else{
172
+ this.step = 2;
173
+ this.vipInfo = res;
174
+ }
168
175
  resolve(res);
169
176
  }).catch(e=>{
170
177
  this.$xdHideLoading();
@@ -294,16 +294,22 @@
294
294
  data: {
295
295
  exchange_code: exchange_code,
296
296
  version: '1.5.1',
297
+ is_return_is_used: "Y",
297
298
  ...otherData
298
299
  }
299
300
  }).then(res => {
300
301
  this.$xdHideLoading();
301
- // this.step = 2;
302
- this.vipInfo = res;
303
- let codeType = otherData.code_type ? `&code_type=${otherData.code_type}` : '';
304
- this.$xdUniHelper.navigateTo({
305
- url: this.exchangeCodePath + `?ecode=${exchange_code}${codeType}`
306
- })
302
+ if(res.is_used === 'Y'){
303
+ this.$xdUniHelper.navigateTo({
304
+ url: "/main/zhrk/zhrk"
305
+ })
306
+ }else{
307
+ this.vipInfo = res;
308
+ let codeType = otherData.code_type ? `&code_type=${otherData.code_type}` : '';
309
+ this.$xdUniHelper.navigateTo({
310
+ url: this.exchangeCodePath + `?ecode=${exchange_code}${codeType}`
311
+ })
312
+ }
307
313
  resolve(res);
308
314
  }).catch(e=>{
309
315
  this.$xdHideLoading();