jufubao-third 1.0.17-beta3 → 1.0.17-beta5
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
|
@@ -272,7 +272,13 @@ export default {
|
|
|
272
272
|
//判断是否为微信小程序宿主
|
|
273
273
|
if(navigator.userAgent.match(/miniprogram/i)
|
|
274
274
|
&& res['pay_jump_type'] === 'wx_mini'
|
|
275
|
-
)
|
|
275
|
+
) {
|
|
276
|
+
const {host, deploy_dir} = this.brandInfo;
|
|
277
|
+
const success_url = `https://${host}/${deploy_dir}${this.orderSuccessPath}?order_id=${res['order_id']}`;
|
|
278
|
+
if(res['pay_url'].indexOf('?') > -1) url += `&success_url=${Base64.encodeURI(success_url)}`;
|
|
279
|
+
else url += `?success_url=${Base64.encodeURI(success_url)}`;
|
|
280
|
+
url = `/pages/jumptomp/jumptomp?callback=${Base64.encodeURI(url)}&isThird=1`;
|
|
281
|
+
}
|
|
276
282
|
//#endif
|
|
277
283
|
|
|
278
284
|
this.$xdUniHelper.redirectTo({url}, false, true)
|