jufubao-base 1.0.242-beta7 → 1.0.242-beta9
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
|
@@ -605,8 +605,8 @@ export default {
|
|
|
605
605
|
},
|
|
606
606
|
|
|
607
607
|
onJfbLoad(options) {
|
|
608
|
-
if(options['x-
|
|
609
|
-
let decodeParams = Base64.decode(options['x-
|
|
608
|
+
if(options['x-share']){
|
|
609
|
+
let decodeParams = Base64.decode(options['x-share']);
|
|
610
610
|
try{
|
|
611
611
|
let commonParams = JSON.parse(decodeParams);
|
|
612
612
|
this.share_code = commonParams.share_code;
|
|
@@ -788,6 +788,7 @@ export default {
|
|
|
788
788
|
data: {
|
|
789
789
|
third_auth_code: loginRes.code,
|
|
790
790
|
provider_id: this.quickLogin.provider_id,
|
|
791
|
+
share_code: this.share_code
|
|
791
792
|
},
|
|
792
793
|
})
|
|
793
794
|
.then((res) => {
|
|
@@ -371,8 +371,8 @@ export default {
|
|
|
371
371
|
this.auth_code = options.auth_code;
|
|
372
372
|
this.provider_id = options.provider_id;
|
|
373
373
|
this.callback_url = options.callback_url;
|
|
374
|
-
if(options['x-
|
|
375
|
-
let decodeParams = Base64.decode(options['x-
|
|
374
|
+
if(options['x-share']){
|
|
375
|
+
let decodeParams = Base64.decode(options['x-share']);
|
|
376
376
|
try{
|
|
377
377
|
let commonParams = JSON.parse(decodeParams);
|
|
378
378
|
this.share_code = commonParams.share_code;
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
//todo
|
|
67
67
|
shareImage: "",
|
|
68
68
|
savaImage: "",
|
|
69
|
+
shareData: {},
|
|
69
70
|
}
|
|
70
71
|
},
|
|
71
72
|
computed: {
|
|
@@ -119,6 +120,7 @@
|
|
|
119
120
|
item.wx_mini_share_image = getServiceUrl(item.wx_mini_share_image);
|
|
120
121
|
return item;
|
|
121
122
|
});
|
|
123
|
+
this.shareData = res;
|
|
122
124
|
})
|
|
123
125
|
},
|
|
124
126
|
handleSwitch(e){
|
|
@@ -128,9 +130,9 @@
|
|
|
128
130
|
let shareIndex = this.shareIndex;
|
|
129
131
|
let curShare = this.shareList[shareIndex];
|
|
130
132
|
this.setShareInfo({
|
|
131
|
-
title:
|
|
133
|
+
title: this.shareData.wx_mini_title,
|
|
132
134
|
imageUrl: curShare.wx_mini_share_image,
|
|
133
|
-
path:
|
|
135
|
+
path: this.shareData.wx_mini_path,
|
|
134
136
|
});
|
|
135
137
|
},
|
|
136
138
|
toSaveImg(){
|
|
@@ -256,8 +256,8 @@
|
|
|
256
256
|
this.auth_code = options.auth_code;
|
|
257
257
|
this.provider_id = options.provider_id;
|
|
258
258
|
if(options.url) this.nextUrl = Base64.decode(options.url);
|
|
259
|
-
if(options['x-
|
|
260
|
-
let decodeParams = Base64.decode(options['x-
|
|
259
|
+
if(options['x-share']){
|
|
260
|
+
let decodeParams = Base64.decode(options['x-share']);
|
|
261
261
|
try{
|
|
262
262
|
let commonParams = JSON.parse(decodeParams);
|
|
263
263
|
this.share_code = commonParams.share_code;
|