jufubao-base 1.0.41 → 1.0.42-beta2

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.41",
3
+ "version": "1.0.42-beta2",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -103,18 +103,16 @@
103
103
  item['image_url'] = getServiceUrl(item.image_url);
104
104
  item['image_url2'] = item.image_url2 ? getServiceUrl(item.image_url2) : "";
105
105
  item['image_url3'] = item.image_url3 ? getServiceUrl(item.image_url3) : "";
106
-
107
106
  let jumpUrl = item.path;
108
107
  //#ifdef H5
109
108
  jumpUrl = `//${host}/${dir}${path}`;
110
109
  //#endif
111
-
110
+ let nsp = Base64.encodeURI(JSON.stringify({business_code: item['business_code']}));
112
111
  if(item['redirect_data']['fixed_business_code'] === '') {
113
- let nsp = Base64.encodeURI(JSON.stringify({business_code: item['business_code']}));
114
- item['redirect_data']['path'] = `${jumpUrl}?x-common=${nsp}`
112
+ item['redirect_data']['path'] = `${jumpUrl}?x-common=${nsp}&vs=${new Date().getTime()}`
115
113
  }
116
114
  else{
117
- item['redirect_data']['path'] = `${jumpUrl}`
115
+ item['redirect_data']['path'] = `${jumpUrl}?x-common=${nsp}&vs=${new Date().getTime()}`
118
116
  }
119
117
  return item;
120
118
  });
@@ -141,7 +139,6 @@
141
139
  })
142
140
  },
143
141
 
144
-
145
142
  onJfbBack(options) {
146
143
  this.$xdUniHelper.navigateBack()
147
144
  },
@@ -180,6 +180,9 @@
180
180
  if (url === '') {
181
181
  return;
182
182
  }
183
+
184
+ if(url.indexOf('?') === -1) url = `${url}?vs=${new Date().getTime()}`;
185
+ else url = `${url}&vs=${new Date().getTime()}`;
183
186
  this.$xdUniHelper.navigateTo({url})
184
187
  }
185
188
  },