jufubao-mall 2.0.78 → 2.0.80

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.78",
3
+ "version": "2.0.80",
4
4
  "private": false,
5
5
  "description": "聚福宝商城业务组件插件包",
6
6
  "main": "index.js",
@@ -496,9 +496,18 @@
496
496
  },
497
497
 
498
498
  onJfbLoad(options) {
499
+ console.log(options,'options')
499
500
  //设置业务请求代码
500
501
  this.setNameSpace(options);
501
- this.special_id = options.special_id;
502
+ if(options['special_id']) {
503
+ this.special_id = options.special_id;
504
+ }
505
+ else if (options["x-params"]) {
506
+ let match = Base64.decode(options["x-params"]).match(/^special_id:(\d+)$/);
507
+ if(match) {
508
+ this.special_id = match[1];
509
+ }
510
+ }
502
511
  this.options = options;
503
512
  this.getSpecialHomeInfo()
504
513
  },