jufubao-food 1.0.12-beta12 → 1.0.12-beta14
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
|
@@ -94,6 +94,12 @@
|
|
|
94
94
|
<xd-unit :price="orderInfo.product_total_amount" :isOld="false" :fontSize="24" :iconSize="0.3"></xd-unit>
|
|
95
95
|
</xd-list-item>
|
|
96
96
|
</view>
|
|
97
|
+
<view v-if="isShowPlusSaveMoney" class="section">
|
|
98
|
+
<xd-list-item label="" paddingLR="60rpx" size="small">
|
|
99
|
+
<view slot="label" style="color: #86541E;">PLUS专享立减</view>
|
|
100
|
+
<xd-unit :price="-plus_saving_money" :largeZero="false" :isOld="false" :fontSize="24" :iconSize="0.3"></xd-unit>
|
|
101
|
+
</xd-list-item>
|
|
102
|
+
</view>
|
|
97
103
|
|
|
98
104
|
<view class="section">
|
|
99
105
|
<template v-for="item in otherPayMethod">
|
|
@@ -215,8 +221,8 @@
|
|
|
215
221
|
</view>
|
|
216
222
|
</view>
|
|
217
223
|
<view slot="btn" style="display: flex;margin-top: 40rpx;">
|
|
218
|
-
<xd-button type="info" size="small" @click="handleChangeStop">更换门店</xd-button>
|
|
219
|
-
<xd-button type="primary" size="small"
|
|
224
|
+
<xd-button v-if="shopInfo.is_switch_shop==='Y'" style="margin-right: 40rpx;"type="info" size="small" @click="handleChangeStop">更换门店</xd-button>
|
|
225
|
+
<xd-button type="primary" size="small" @click="handleCreatePayConfirm">就是这家</xd-button>
|
|
220
226
|
</view>
|
|
221
227
|
</XdDailog>
|
|
222
228
|
|
|
@@ -247,6 +253,7 @@
|
|
|
247
253
|
import XdWalletChose from "@/components/XdWalletChose/XdWalletChose"
|
|
248
254
|
import CusCouponChose from '@/components/CusCouponChose/CusCouponChose'
|
|
249
255
|
import XdDailog from "@/components/XdDailog/XdDailog"
|
|
256
|
+
import CusVipList from "@/components/CusVipList/CusVipList"
|
|
250
257
|
import { jfbRootExec } from "@/utils/xd.event";
|
|
251
258
|
import JfbFoodConfirmV2Mixin from "./JfbFoodConfirmV2Mixin";
|
|
252
259
|
import { getContainerPropsValue, gCPVal } from "@/utils/xd.base";
|
|
@@ -265,13 +272,15 @@
|
|
|
265
272
|
XdCardPayChose,
|
|
266
273
|
XdWalletChose,
|
|
267
274
|
CusCouponChose,
|
|
268
|
-
XdDailog
|
|
275
|
+
XdDailog,
|
|
276
|
+
CusVipList
|
|
269
277
|
},
|
|
270
278
|
mixins: [
|
|
271
279
|
componentsMixins, extsMixins, JfbFoodConfirmV2Mixin, OrderMixin
|
|
272
280
|
],
|
|
273
281
|
data() {
|
|
274
282
|
return {
|
|
283
|
+
isVip: false,
|
|
275
284
|
options: {},
|
|
276
285
|
consume_mode: "",
|
|
277
286
|
order_id: "", //订单ID
|
|
@@ -399,6 +408,11 @@
|
|
|
399
408
|
let result = this.$xdUniHelper.cutFloatNumber(total_amount, total);
|
|
400
409
|
return result;
|
|
401
410
|
},
|
|
411
|
+
//是否展示vip减免
|
|
412
|
+
isShowPlusSaveMoney(){
|
|
413
|
+
if(this.is_show_vip_card_list === 'Y') return this.vip_card_id;
|
|
414
|
+
else return this.isVip && this.plus_saving_money;
|
|
415
|
+
},
|
|
402
416
|
},
|
|
403
417
|
watch: {
|
|
404
418
|
container(value, oldValue) {
|
|
@@ -409,7 +423,7 @@
|
|
|
409
423
|
created() {
|
|
410
424
|
this.is_plus_site = this.projectAttr.headers['X-Site-Group']==="vip";
|
|
411
425
|
this.init(this.container);
|
|
412
|
-
|
|
426
|
+
this.isVip = this.getTokenForKey('user_level') === 'VIP';
|
|
413
427
|
//todo
|
|
414
428
|
},
|
|
415
429
|
methods: {
|
|
@@ -527,7 +541,7 @@
|
|
|
527
541
|
if(!this.meal_method && mealMethods.length){
|
|
528
542
|
this.meal_method = mealMethods[0].value;
|
|
529
543
|
}
|
|
530
|
-
this.plus_saving_money = res.plus_saving_money || 0;
|
|
544
|
+
this.plus_saving_money = res.order_info.plus_saving_money || 0;
|
|
531
545
|
this.main_order_id = res.order_info.main_order_id
|
|
532
546
|
|
|
533
547
|
//支付方式跟用户相关,与订单无关。
|
|
@@ -766,7 +780,7 @@
|
|
|
766
780
|
return false;
|
|
767
781
|
}
|
|
768
782
|
return {
|
|
769
|
-
|
|
783
|
+
buyer_phone_number: this.buyer_phone_number,
|
|
770
784
|
comment: this.comment,
|
|
771
785
|
meal_method: this.meal_method,
|
|
772
786
|
};
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
<view v-else>
|
|
79
79
|
<xd-number v-if="item.num" v-model="item.num" circle @change="val => handleCartNumChange(val, item)"></xd-number>
|
|
80
80
|
<!-- <xd-font-icon v-else icon="iconaddcart" :color="mainColor" size="46"></xd-font-icon> -->
|
|
81
|
-
<view class="icon_add_cart" v-else @click="
|
|
81
|
+
<view class="icon_add_cart" v-else @click="toProductDetail(item)">+</view>
|
|
82
82
|
</view>
|
|
83
83
|
</view>
|
|
84
84
|
</view>
|