jufubao-food 1.0.15-beta6 → 1.0.15-beta8
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
|
@@ -439,7 +439,7 @@
|
|
|
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
444
|
}
|
|
445
445
|
},
|
|
@@ -548,9 +548,16 @@
|
|
|
548
548
|
this.showTakeoutShop = true;
|
|
549
549
|
},
|
|
550
550
|
handleSwitchShop(){
|
|
551
|
-
|
|
552
|
-
|
|
551
|
+
//切换门店
|
|
552
|
+
let curPage = this.$xdUniHelper.getCurrentPages();
|
|
553
|
+
let query = {...curPage.query};
|
|
554
|
+
let callback= Base64.encode(curPage.path + '?' + this.$xdUniHelper.jsonToParams(query));
|
|
555
|
+
this.$xdUniHelper.redirectTo({
|
|
556
|
+
url: this.switchStorePath + '?brand_id=' + this.brand_id + '&callback=' + callback
|
|
553
557
|
})
|
|
558
|
+
// this.$xdUniHelper.navigateTo({
|
|
559
|
+
// url: this.switchStorePath + "?brand_id=" + this.brand_id + "&resource_shop_id=" + this.resource_shop_id,
|
|
560
|
+
// })
|
|
554
561
|
},
|
|
555
562
|
setCurShop(index){
|
|
556
563
|
if(this.curShopIndex !== index){
|
|
@@ -589,7 +596,7 @@
|
|
|
589
596
|
})
|
|
590
597
|
},
|
|
591
598
|
p_getFoodShopDetail(resource_shop_id){
|
|
592
|
-
let curShop = this.shopList[this.curShopIndex];
|
|
599
|
+
let curShop = this.shopList[this.curShopIndex]||{};
|
|
593
600
|
jfbRootExec("getFoodShopDetail", {
|
|
594
601
|
vm: this,
|
|
595
602
|
data: {
|
|
@@ -1041,6 +1048,10 @@
|
|
|
1041
1048
|
.jfb-food-product-list {
|
|
1042
1049
|
&__body{
|
|
1043
1050
|
background-color: #FFFFFF;
|
|
1051
|
+
::v-deep .xd-up-drawer__warper{
|
|
1052
|
+
border-radius: 24rpx 24rpx 0 0 !important;
|
|
1053
|
+
overflow: hidden;
|
|
1054
|
+
}
|
|
1044
1055
|
.empty_shop{
|
|
1045
1056
|
background-color: #FFFFFF;
|
|
1046
1057
|
height: 100%;
|
|
@@ -1349,7 +1360,7 @@
|
|
|
1349
1360
|
.prod_specs{
|
|
1350
1361
|
padding-top: unit(10, rpx);
|
|
1351
1362
|
display: block;
|
|
1352
|
-
font-size:
|
|
1363
|
+
font-size: 24rpx;
|
|
1353
1364
|
color: #999999;
|
|
1354
1365
|
line-height: unit(32, rpx);
|
|
1355
1366
|
}
|