jufubao-mall 2.0.63 → 2.0.64-beta101

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-mall",
3
- "version": "2.0.63",
3
+ "version": "2.0.64-beta101",
4
4
  "private": false,
5
5
  "description": "聚福宝商城业务组件插件包",
6
6
  "main": "index.js",
@@ -249,10 +249,17 @@ export default {
249
249
  }).then(res => {
250
250
  if(res.handle_status === 'Y'){
251
251
  this.$xdHideLoading();
252
- if(res.pay_url){
253
- this.$xdUniHelper.redirectTo({
254
- url: res.pay_url
255
- }, false, true)
252
+ if(res['pay_url']){
253
+ let url = res['pay_url'];
254
+
255
+ // #ifdef H5
256
+ //判断是否为微信小程序宿主
257
+ if(navigator.userAgent.match(/miniprogram/i)
258
+ && res['pay_jump_type'] === 'wx_mini'
259
+ ) url = `/pages/jumptomp/jumptomp?callback=${Base64.encodeURI(url)}`;
260
+ //#endif
261
+
262
+ this.$xdUniHelper.redirectTo({url}, false, true)
256
263
  }else{
257
264
  cb({
258
265
  order_id: res.main_order_id,
@@ -243,7 +243,7 @@
243
243
  this.getSearchList();
244
244
  },
245
245
  handleToSearch(hot) {
246
- if (hot === this.keyword) return;
246
+ // if (hot === this.keyword) return;
247
247
  this.keyword = hot;
248
248
  this.page_token = 1;
249
249
  this.getSearchList();