jufubao-base 1.0.300 → 1.0.301-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.300",
3
+ "version": "1.0.301-beta1",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -347,8 +347,17 @@
347
347
  this.showLocationDialog = false
348
348
  }
349
349
  }
350
- if(this.options.shop_id || this.isPreview){
351
- this.shop_id = this.options.shop_id;
350
+ let xParams = {};
351
+ if(options['x-params']){
352
+ let decodeParams = Base64.decode(options['x-params']);
353
+ decodeParams.split(",").forEach(item => {
354
+ let paramArr = item.split(":");
355
+ xParams[paramArr[0]] = paramArr[1];
356
+ })
357
+ }
358
+ let params_shop_id = options.shop_id || xParams['shop_id'] || '';
359
+ if(params_shop_id || this.isPreview){
360
+ this.shop_id = params_shop_id;
352
361
  this.resource_shop_id = this.options.resource_shop_id;
353
362
  let isFirst = true;
354
363
  this.p_getAsyncStep((err) => {