jufubao-food 1.0.15-beta7 → 1.0.15-beta9

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-food",
3
- "version": "1.0.15-beta7",
3
+ "version": "1.0.15-beta9",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件餐饮插件包",
6
6
  "main": "index.js",
@@ -439,8 +439,12 @@
439
439
  this.brand_id = options.brand_id;
440
440
  if(this.resource_shop_id){
441
441
  this.p_getFoodShopDetail(this.resource_shop_id);
442
- }else if(this.brand_id){
442
+ }else if(this.brand_id || this.$configProject['isPreview']){
443
443
  this.p_getFoodShopList();
444
+ }else{
445
+ this.$xdAlert({
446
+ content: '请配置品牌ID',
447
+ })
444
448
  }
445
449
  },
446
450
  /**
@@ -596,7 +600,7 @@
596
600
  })
597
601
  },
598
602
  p_getFoodShopDetail(resource_shop_id){
599
- let curShop = this.shopList[this.curShopIndex];
603
+ let curShop = this.shopList[this.curShopIndex]||{};
600
604
  jfbRootExec("getFoodShopDetail", {
601
605
  vm: this,
602
606
  data: {