jufubao-mall 1.0.2 → 1.0.3

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": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "private": false,
5
5
  "description": "聚福宝商城业务组件插件包",
6
6
  "main": "index.js",
@@ -271,11 +271,12 @@
271
271
  })
272
272
  },
273
273
  toBrand(brand){
274
- let { brand_icon, brand_name, params, ...otherParams } = brand;
275
- let otherP = this.$xdUniHelper.jsonToParams(Object.assign(otherParams, params || {}));
274
+ let { params , brand_id} = brand;
275
+ let pa = Object.assign({brand_id}, params || {}) , otherP = '';
276
+ if(!this.$xdUniHelper.isEmpty(pa)) otherP = `&${this.$xdUniHelper.jsonToParams(pa)}`
276
277
  if(brand.brand_type === 'sell'){
277
278
  this.$xdUniHelper.navigateTo({
278
- url: this.offlineBrandPath + `?consume_mode=SELL&${otherP}`
279
+ url: this.offlineBrandPath + `?consume_mode=SELL&brand_type=MA${otherP}`
279
280
  })
280
281
  }else{
281
282
  this.$xdUniHelper.navigateTo({