jufubao-base 1.0.331-beta3 → 1.0.332-beta1
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/get.package.path.js
CHANGED
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
const getPackagePath = (threePackagePath, packname = 'gxd-commands-bussiness')=>{
|
|
10
10
|
if(packname === 'gxd-commands-bussiness') {
|
|
11
|
-
return `/Users/shiyonggao/
|
|
11
|
+
return `/Users/shiyonggao/home/root/Base-Jufubao/xd-commands-bussiness/${threePackagePath}`;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
if (packname === 'gxd-uni-library-editx') {
|
|
15
|
-
return `/Users/shiyonggao/
|
|
15
|
+
return `/Users/shiyonggao/home/root/Base-Jufubao/xd-uni-library-editx/${threePackagePath}`;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
};
|
package/package.json
CHANGED
|
@@ -790,6 +790,7 @@ export default {
|
|
|
790
790
|
|
|
791
791
|
|
|
792
792
|
handleClick(entry, item){
|
|
793
|
+
//如果是小程序,则跳到兑换码开通plus会员页
|
|
793
794
|
if(entry.redirect_type === "WMP"){
|
|
794
795
|
let redirectData = entry.redirect_data;
|
|
795
796
|
let site_path = redirectData.site_path;
|
|
@@ -805,7 +806,8 @@ export default {
|
|
|
805
806
|
let code_content = this.getParams(res.card_qrcode, "code_content")
|
|
806
807
|
let sitePath = site_path.replace("${qrcode}", Base64.encodeURI(code_content));
|
|
807
808
|
// this.handleH5ToMP(app_id, sitePath, '');
|
|
808
|
-
|
|
809
|
+
//is_return_is_used=Y 表示兑换码页面会用到is_return_is_used参数来判断兑换码已使用跳首页的逻辑。
|
|
810
|
+
let query = encodeURIComponent(`path=${sitePath}&is_return_is_used=Y`);
|
|
809
811
|
let wxLink = `weixin://dl/business/?appid=${app_id}&path=pages/loading/loading&query=${query}&env_version=release`;
|
|
810
812
|
console.log(wxLink)
|
|
811
813
|
window.location.href = wxLink;
|
|
@@ -92,6 +92,7 @@
|
|
|
92
92
|
description: "",
|
|
93
93
|
vipSuccessPath: "",
|
|
94
94
|
payPath: "",
|
|
95
|
+
is_return_is_used: "",
|
|
95
96
|
}
|
|
96
97
|
},
|
|
97
98
|
computed: {
|
|
@@ -123,6 +124,7 @@
|
|
|
123
124
|
onJfbLoad(options) {
|
|
124
125
|
if(options['ecode']) {
|
|
125
126
|
this.exchange_code = options['ecode'];
|
|
127
|
+
this.is_return_is_used = options['is_return_is_used'] || "N";
|
|
126
128
|
let data = {};
|
|
127
129
|
if(options.code_type) data['code_type'] = options['code_type']
|
|
128
130
|
this.searchCode(data);
|
|
@@ -159,7 +161,7 @@
|
|
|
159
161
|
data: {
|
|
160
162
|
exchange_code: exchange_code,
|
|
161
163
|
version: '1.5.1',
|
|
162
|
-
is_return_is_used:
|
|
164
|
+
is_return_is_used: this.is_return_is_used,
|
|
163
165
|
...otherData
|
|
164
166
|
}
|
|
165
167
|
}).then(res => {
|
|
@@ -294,22 +294,16 @@
|
|
|
294
294
|
data: {
|
|
295
295
|
exchange_code: exchange_code,
|
|
296
296
|
version: '1.5.1',
|
|
297
|
-
is_return_is_used: "Y",
|
|
298
297
|
...otherData
|
|
299
298
|
}
|
|
300
299
|
}).then(res => {
|
|
301
300
|
this.$xdHideLoading();
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
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
|
-
}
|
|
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
|
+
})
|
|
313
307
|
resolve(res);
|
|
314
308
|
}).catch(e=>{
|
|
315
309
|
this.$xdHideLoading();
|