jufubao-food 1.0.15-beta5 → 1.0.15-beta51
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
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
</view>
|
|
99
99
|
<view v-if="isShowPlusSaveMoney" class="section">
|
|
100
100
|
<xd-list-item label="" paddingLR="60rpx" size="small">
|
|
101
|
-
<view slot="label" style="color: #86541E;">PLUS
|
|
101
|
+
<view slot="label" style="color: #86541E;">PLUS会员立减</view>
|
|
102
102
|
<xd-unit :price="-plus_saving_money" :largeZero="false" :isOld="false" :fontSize="24" :iconSize="0.3"></xd-unit>
|
|
103
103
|
</xd-list-item>
|
|
104
104
|
</view>
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<!-- #endif -->
|
|
18
18
|
<view class="jfb-food-product-list__body" :style="[bodyStyleComp]">
|
|
19
19
|
<view v-if="shopInfo">
|
|
20
|
-
<view class="shop_info" :style="{top: layoutInfo.top+'rpx'}" @click="
|
|
20
|
+
<view class="shop_info" :style="{top: layoutInfo.top+'rpx'}" @click="handleSwitchShop">
|
|
21
21
|
<view class="flex-center">
|
|
22
22
|
<xd-font-icon icon="icona-Buy2" size="36" style="margin-right: 8rpx;"></xd-font-icon>
|
|
23
23
|
<view class="shop_name">{{ shopInfo.shop_name }}</view><text style="margin:0 20rpx;">|</text> <text class="_distance">{{ shopInfo.distance }}</text>
|
|
@@ -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
|
/**
|
|
@@ -548,9 +552,16 @@
|
|
|
548
552
|
this.showTakeoutShop = true;
|
|
549
553
|
},
|
|
550
554
|
handleSwitchShop(){
|
|
551
|
-
|
|
552
|
-
|
|
555
|
+
//切换门店
|
|
556
|
+
let curPage = this.$xdUniHelper.getCurrentPages();
|
|
557
|
+
let query = {...curPage.query};
|
|
558
|
+
let callback= Base64.encode(curPage.path + '?' + this.$xdUniHelper.jsonToParams(query));
|
|
559
|
+
this.$xdUniHelper.redirectTo({
|
|
560
|
+
url: this.switchStorePath + '?brand_id=' + this.brand_id + '&callback=' + callback
|
|
553
561
|
})
|
|
562
|
+
// this.$xdUniHelper.navigateTo({
|
|
563
|
+
// url: this.switchStorePath + "?brand_id=" + this.brand_id + "&resource_shop_id=" + this.resource_shop_id,
|
|
564
|
+
// })
|
|
554
565
|
},
|
|
555
566
|
setCurShop(index){
|
|
556
567
|
if(this.curShopIndex !== index){
|
|
@@ -589,7 +600,7 @@
|
|
|
589
600
|
})
|
|
590
601
|
},
|
|
591
602
|
p_getFoodShopDetail(resource_shop_id){
|
|
592
|
-
let curShop = this.shopList[this.curShopIndex];
|
|
603
|
+
let curShop = this.shopList[this.curShopIndex]||{};
|
|
593
604
|
jfbRootExec("getFoodShopDetail", {
|
|
594
605
|
vm: this,
|
|
595
606
|
data: {
|
|
@@ -1041,6 +1052,10 @@
|
|
|
1041
1052
|
.jfb-food-product-list {
|
|
1042
1053
|
&__body{
|
|
1043
1054
|
background-color: #FFFFFF;
|
|
1055
|
+
::v-deep .xd-up-drawer__warper{
|
|
1056
|
+
border-radius: 24rpx 24rpx 0 0 !important;
|
|
1057
|
+
overflow: hidden;
|
|
1058
|
+
}
|
|
1044
1059
|
.empty_shop{
|
|
1045
1060
|
background-color: #FFFFFF;
|
|
1046
1061
|
height: 100%;
|
|
@@ -1349,7 +1364,7 @@
|
|
|
1349
1364
|
.prod_specs{
|
|
1350
1365
|
padding-top: unit(10, rpx);
|
|
1351
1366
|
display: block;
|
|
1352
|
-
font-size:
|
|
1367
|
+
font-size: 24rpx;
|
|
1353
1368
|
color: #999999;
|
|
1354
1369
|
line-height: unit(32, rpx);
|
|
1355
1370
|
}
|