jufubao-mall 2.0.27-beta4 → 2.0.27-beta6
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 +1 -1
- package/src/components/JfbMallConfirm/JfbMallConfirm.vue +58 -10
- package/src/components/JfbMallConfirm/Mock.js +2 -2
- package/src/components/JfbMallConfirm/cusAttr/content.js +17 -17
- package/src/components/JfbMallConfirm/cusAttr/style.js +1 -1
- package/src/components/JfbMallConfirm/shopList.vue +16 -14
package/package.json
CHANGED
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
<xd-list-item v-if="shop.sub_show_delivery_price==='Y'" label="配送费用" showBottom paddingLR="48rpx" paddingTB="24rpx">
|
|
88
88
|
<xd-unit :price="shop.user_logistics_amount_origin" :fontSize="28" :isOld="false"></xd-unit>
|
|
89
89
|
</xd-list-item>
|
|
90
|
-
<xd-list-item v-if="shop.deliveryPickValue === 'samecity'
|
|
90
|
+
<xd-list-item v-if="shop.deliveryPickValue === 'samecity'"
|
|
91
91
|
:label="shop.time_label" showRight paddingLR="48rpx" paddingTB="24rpx" showBottom
|
|
92
92
|
@click="toSetSelectTime(shopIndex,shop)">
|
|
93
93
|
{{shop.selectTime ? shop.selectTime.dateTime : "请选择"}}
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
</xd-list-item>
|
|
165
165
|
<xd-list-item v-if="item.method === 'wallet'" :key="item.method" :label="item.show_name" paddingLR="48rpx" showBottom :showRight="!(choseCoupon && choseCoupon.cardPayPrice)" @click="toChoseWallet">
|
|
166
166
|
<view slot="label">
|
|
167
|
-
{{ item.show_name }}<text style="color:
|
|
167
|
+
{{ item.show_name }}<text :style="{color:mainColor}" style="margin-left: 8px;font-size: 24rpx;">(剩余{{ wallet_total_amount }})</text>
|
|
168
168
|
</view>
|
|
169
169
|
<view v-if="(choseCoupon && choseCoupon.cardPayPrice)">
|
|
170
170
|
<view style="color:#CCCCCC;font-size: 24rpx">已使用其他票券,不可用</view>
|
|
@@ -205,7 +205,11 @@
|
|
|
205
205
|
</view>
|
|
206
206
|
<view v-else class="flex_l" :style="{
|
|
207
207
|
justifyContent: bottomPricePosition
|
|
208
|
-
}"
|
|
208
|
+
}">
|
|
209
|
+
<view>
|
|
210
|
+
<view class="t_price">实付:<xd-unit :price="orderNeedPayPrice" :isOld="false"></xd-unit></view>
|
|
211
|
+
<view v-if="orderDiscountPrice > 0" class="b_price">共省<xd-unit :price="orderDiscountPrice" :isOld="false" :fontSize="24" :iconSize="0.3"></xd-unit></view>
|
|
212
|
+
</view>
|
|
209
213
|
</view>
|
|
210
214
|
<view>
|
|
211
215
|
<xd-button :disabled="is_can_buy!=='Y'"
|
|
@@ -481,7 +485,7 @@
|
|
|
481
485
|
address_layout: 'old',
|
|
482
486
|
sectionHeight: 16,
|
|
483
487
|
orderInfoHeight: 16,
|
|
484
|
-
showTopLine: "
|
|
488
|
+
showTopLine: "B",
|
|
485
489
|
blessTextColor: "",
|
|
486
490
|
priceTextColor: "",
|
|
487
491
|
bottomPadding: {},
|
|
@@ -525,6 +529,7 @@
|
|
|
525
529
|
showLogisticsTip: "Y",
|
|
526
530
|
logisticsTipText: "",
|
|
527
531
|
checkPayMethod: [],
|
|
532
|
+
ticketPositionStatus: "N"
|
|
528
533
|
}
|
|
529
534
|
},
|
|
530
535
|
computed: {
|
|
@@ -662,9 +667,19 @@
|
|
|
662
667
|
let result = this.$xdUniHelper.cutFloatNumber(total_amount, total);
|
|
663
668
|
return result;
|
|
664
669
|
},
|
|
670
|
+
orderDiscountPrice(){
|
|
671
|
+
let total = 0;
|
|
672
|
+
if(this.orderFee.user_logistics_discount_amount){
|
|
673
|
+
total = this.$xdUniHelper.addFloatNumber(total, this.orderFee.user_logistics_discount_amount);
|
|
674
|
+
}
|
|
675
|
+
if(this.isShowPlusSavingMoney){
|
|
676
|
+
total = this.$xdUniHelper.addFloatNumber(total, this.orderFee.plus_saving_money);
|
|
677
|
+
}
|
|
678
|
+
return total;
|
|
679
|
+
},
|
|
665
680
|
bottomBoxStyle(){
|
|
666
681
|
return {
|
|
667
|
-
padding: this.getMarginAndPadding(this.bottomPadding,
|
|
682
|
+
padding: this.getMarginAndPadding(this.bottomPadding, 16)
|
|
668
683
|
}
|
|
669
684
|
},
|
|
670
685
|
bodyStyleComp(){
|
|
@@ -770,6 +785,18 @@
|
|
|
770
785
|
this.jwxSDK = res.jwxSDK;
|
|
771
786
|
})
|
|
772
787
|
// #endif
|
|
788
|
+
|
|
789
|
+
if(this.ticketPositionStatus === 'Y'){
|
|
790
|
+
this.$nextTick(() => {
|
|
791
|
+
setTimeout(() => {
|
|
792
|
+
uni.pageScrollTo({
|
|
793
|
+
scrollTop: 10000,
|
|
794
|
+
duration: 200
|
|
795
|
+
})
|
|
796
|
+
}, 1000)
|
|
797
|
+
})
|
|
798
|
+
|
|
799
|
+
}
|
|
773
800
|
},
|
|
774
801
|
/**
|
|
775
802
|
* @description 监听事件变化
|
|
@@ -792,12 +819,13 @@
|
|
|
792
819
|
this.useMode = getContainerPropsValue(container, 'content.useMode', "market");
|
|
793
820
|
this.showPrice = getContainerPropsValue(container, 'content.showPrice', "Y");
|
|
794
821
|
this.address_layout = getContainerPropsValue(container, 'content.address_layout', "old");
|
|
795
|
-
this.showTopLine = getContainerPropsValue(container, 'content.showTopLine', "
|
|
822
|
+
this.showTopLine = getContainerPropsValue(container, 'content.showTopLine', "B");
|
|
796
823
|
this.skipTip = getContainerPropsValue(container, "content.skipTip", "N");
|
|
797
|
-
this.skipToPay = getContainerPropsValue(container, "content.skipToPay", "
|
|
824
|
+
this.skipToPay = getContainerPropsValue(container, "content.skipToPay", "Y");
|
|
798
825
|
this.guidePay = getContainerPropsValue(container, "content.guidePay", "");
|
|
799
826
|
this.showLogisticsTip = gCPVal(container, 'showLogisticsTip', "Y");
|
|
800
827
|
this.logisticsTipText = gCPVal(container, 'logisticsTipText', '订单生成后72小时发货,如遇节假日发货顺延');
|
|
828
|
+
this.ticketPositionStatus = gCPVal(container, 'ticketPositionStatus', "N")
|
|
801
829
|
console.log("this.showLogisticsTip", this.showLogisticsTip);
|
|
802
830
|
if(this.useMode === "market"){
|
|
803
831
|
this.showPrice = "Y"
|
|
@@ -814,7 +842,7 @@
|
|
|
814
842
|
this.blessFontSize = gCPVal(container, 'blessFontSize', [24], {sKey: 'formTipStatus', fields: ['blessFontSize', 'blessTextColor']});
|
|
815
843
|
this.blessTextColor = gCPVal(container, 'blessTextColor', [this.dangerColor], {sKey: "formTipStatus", fields: ['blessFontSize', 'blessTextColor']});
|
|
816
844
|
this.priceTextColor = gCPVal(container, 'priceTextColor', [this.mainColor], {sKey: "activityPriceStatus", fields: ['priceTextColor']})
|
|
817
|
-
this.bottomPadding = gCPVal(container, 'bottomPadding', [
|
|
845
|
+
this.bottomPadding = gCPVal(container, 'bottomPadding', [16], {sKey: "bottomPaddingStatus", fields: ['bottomPadding']});
|
|
818
846
|
this.bottomBtnRadius = gCPVal(container, 'bottomBtnRadius', [40], {sKey: "btnStyleStatus", fields: ['bottomBtnRadius', 'bottomBtnHeight', 'bottomPayText']});
|
|
819
847
|
this.bottomBtnHeight = gCPVal(container, 'bottomBtnHeight', [60], {sKey: "btnStyleStatus", fields: ['bottomBtnRadius', 'bottomBtnHeight', 'bottomPayText']});
|
|
820
848
|
this.bottomPayText = gCPVal(container, 'bottomPayText', ["支付"], {sKey: "btnStyleStatus", fields: ['bottomBtnRadius', 'bottomBtnHeight', 'bottomPayText']});
|
|
@@ -1507,7 +1535,14 @@
|
|
|
1507
1535
|
|
|
1508
1536
|
bindPickerChange(e, index){
|
|
1509
1537
|
let pickIndex = e.detail.value;
|
|
1510
|
-
|
|
1538
|
+
let tempShopList = this.$xdUniHelper.cloneDeep(this.shopList);
|
|
1539
|
+
this.tempShopList = tempShopList.map((item, ii) => {
|
|
1540
|
+
if(index === ii){
|
|
1541
|
+
item.takeoutTime = null;
|
|
1542
|
+
item.selectTime = null;
|
|
1543
|
+
}
|
|
1544
|
+
return item;
|
|
1545
|
+
});
|
|
1511
1546
|
this.shopList = this.shopList.map((item,ii) => {
|
|
1512
1547
|
if(index === ii){
|
|
1513
1548
|
let cur = item.support_delivery_method_options[pickIndex];
|
|
@@ -1537,7 +1572,7 @@
|
|
|
1537
1572
|
@padding_l_r: 50rpx;
|
|
1538
1573
|
.jfb-mall-confirm {
|
|
1539
1574
|
&__body{
|
|
1540
|
-
|
|
1575
|
+
overflow: auto;
|
|
1541
1576
|
color: #333333;
|
|
1542
1577
|
.section{
|
|
1543
1578
|
margin-bottom: var(--section-height);
|
|
@@ -1771,6 +1806,19 @@
|
|
|
1771
1806
|
padding: 0 32rpx;
|
|
1772
1807
|
color: #ff5733;
|
|
1773
1808
|
}
|
|
1809
|
+
.t_price{
|
|
1810
|
+
display: flex;
|
|
1811
|
+
align-items: center;
|
|
1812
|
+
font-weight: 500;
|
|
1813
|
+
color: #FF2C18;
|
|
1814
|
+
}
|
|
1815
|
+
.b_price{
|
|
1816
|
+
display: flex;
|
|
1817
|
+
align-items: center;
|
|
1818
|
+
font-size: 24rpx;
|
|
1819
|
+
color: #FF2C18;
|
|
1820
|
+
font-weight: 400;
|
|
1821
|
+
}
|
|
1774
1822
|
}
|
|
1775
1823
|
}
|
|
1776
1824
|
}
|
|
@@ -224,7 +224,7 @@ module.exports = {
|
|
|
224
224
|
product_thumb:
|
|
225
225
|
"https://sandbox-img.jufubao.cn/uploads/20230406/0b890cd5a947d9c5724b412d34cd4000.png",
|
|
226
226
|
product_form_data:
|
|
227
|
-
'[{"id":"blessing","type":"input","struct":{"title":"祝福语","explain":"
|
|
227
|
+
'[{"id":"blessing","type":"input","struct":{"title":"祝福语","explain":"请务必准确填写号码,号码错误将无法进行退还操作。","default":"","placeholder":"","required":true},"options":[],"value":"祝福语"}]',
|
|
228
228
|
brand_id: 3,
|
|
229
229
|
brand_name: "北京味多美蛋糕叔叔/HEYTEA/喜茶/凯蒂猫/Quange/全格",
|
|
230
230
|
aftersale_service: ",refund,exchange",
|
|
@@ -278,7 +278,7 @@ module.exports = {
|
|
|
278
278
|
product_thumb:
|
|
279
279
|
"https://sandbox-img.jufubao.cn/uploads/20230406/0b890cd5a947d9c5724b412d34cd4000.png",
|
|
280
280
|
product_form_data:
|
|
281
|
-
'[{"id":"blessing","type":"input","struct":{"title":"祝福语","explain":"
|
|
281
|
+
'[{"id":"blessing","type":"input","struct":{"title":"祝福语","explain":"请务必准确填写号码,号码错误将无法进行退还操作。","default":"","placeholder":"","required":true},"options":[],"value":"祝福语"}]',
|
|
282
282
|
brand_id: 3,
|
|
283
283
|
brand_name: "北京味多美蛋糕叔叔/HEYTEA/喜茶/凯蒂猫/Quange/全格",
|
|
284
284
|
aftersale_service: ",refund,exchange",
|
|
@@ -56,7 +56,7 @@ export default function (data, gValue,gColor,oldData){
|
|
|
56
56
|
label: "引导支付",
|
|
57
57
|
ele: "xd-radio",
|
|
58
58
|
valueKey: "skipToPay",
|
|
59
|
-
value: dataVal({data, key:'skipToPay', dValue: '
|
|
59
|
+
value: dataVal({data, key:'skipToPay', dValue: 'Y', gValue}),
|
|
60
60
|
groupKey: "content",
|
|
61
61
|
labelInline: true,
|
|
62
62
|
className: 'input100',
|
|
@@ -68,25 +68,25 @@ export default function (data, gValue,gColor,oldData){
|
|
|
68
68
|
]
|
|
69
69
|
},
|
|
70
70
|
//2.0新属性
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
71
|
+
{
|
|
72
|
+
label: "票券定位",
|
|
73
|
+
ele: "xd-radio",
|
|
74
|
+
valueKey: "ticketPositionStatus",
|
|
75
|
+
value: dataVal({data, key: "ticketPositionStatus", dValue: "N", gValue}),
|
|
76
|
+
groupKey: "content",
|
|
77
|
+
labelInline: true,
|
|
78
|
+
inline: false,
|
|
79
|
+
notice: "开启后会提示票券选择,点击自动滚动到选择支付位置",
|
|
80
|
+
list: [
|
|
81
|
+
{ label: "显示", value: "Y" },
|
|
82
|
+
{ label: "隐藏", value: "N" },
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
85
|
{
|
|
86
86
|
label: "使用新票券",
|
|
87
87
|
ele: "xd-radio",
|
|
88
88
|
valueKey: "bindCard",
|
|
89
|
-
value: dataVal({data, key:'bindCard', dValue: "", gValue}),
|
|
89
|
+
value: dataVal({data, key:'bindCard', dValue: "1", gValue}),
|
|
90
90
|
groupKey:'content',
|
|
91
91
|
labelInline: true,
|
|
92
92
|
inline: false,
|
|
@@ -158,7 +158,7 @@ export default function (data, gValue,gColor,oldData){
|
|
|
158
158
|
label: "横线",
|
|
159
159
|
ele: "xd-radio",
|
|
160
160
|
valueKey: "showTopLine",
|
|
161
|
-
value: dataVal({data, key:'showTopLine', dValue: "
|
|
161
|
+
value: dataVal({data, key:'showTopLine', dValue: "B", gValue}),
|
|
162
162
|
groupKey:'content',
|
|
163
163
|
labelInline: true,
|
|
164
164
|
isTplRef: true, //内容引用模版被禁用
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view class="chose_shop_list">
|
|
3
3
|
<view class="shop_header">
|
|
4
|
-
<
|
|
5
|
-
city-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
<view style="display: flex;align-items: center;">
|
|
5
|
+
<xd-city-show
|
|
6
|
+
city-location-type="baidu"
|
|
7
|
+
@done="handleCityDone"
|
|
8
|
+
@onChange="handleCityChange"
|
|
9
|
+
color="#333"></xd-city-show>
|
|
10
|
+
</view>
|
|
9
11
|
<view class="shop-search">
|
|
10
12
|
<input
|
|
11
13
|
class="uni-input"
|
|
@@ -15,7 +17,7 @@
|
|
|
15
17
|
@confirm="handleInput"
|
|
16
18
|
/>
|
|
17
19
|
<view>
|
|
18
|
-
<xd-font-icon icon="iconsousuo_mian" color="#999999" size="
|
|
20
|
+
<xd-font-icon icon="iconsousuo_mian" color="#999999" size="28"></xd-font-icon>
|
|
19
21
|
</view>
|
|
20
22
|
</view>
|
|
21
23
|
</view>
|
|
@@ -109,7 +111,7 @@ export default {
|
|
|
109
111
|
<style lang="less" scoped>
|
|
110
112
|
.chose_shop_list{
|
|
111
113
|
background: #F7F7F7;
|
|
112
|
-
padding: 16rpx;
|
|
114
|
+
padding: 0 16rpx 16rpx;
|
|
113
115
|
position: relative;
|
|
114
116
|
height: 45vh;
|
|
115
117
|
}
|
|
@@ -126,14 +128,14 @@ export default {
|
|
|
126
128
|
color: #999999 !important;
|
|
127
129
|
|
|
128
130
|
.xd-iconfont {
|
|
129
|
-
font-size:
|
|
131
|
+
font-size: 24rpx !important;
|
|
130
132
|
}
|
|
131
133
|
}
|
|
132
134
|
}
|
|
133
135
|
.shop-search {
|
|
134
|
-
border:1px solid #
|
|
136
|
+
border:1px solid #f8f8f8;
|
|
135
137
|
width: 420rpx;
|
|
136
|
-
padding:
|
|
138
|
+
padding: 16rpx 32rpx;
|
|
137
139
|
border-radius: 40rpx;
|
|
138
140
|
background-color: #f8f8f8;
|
|
139
141
|
display: flex;
|
|
@@ -147,7 +149,7 @@ export default {
|
|
|
147
149
|
|
|
148
150
|
|
|
149
151
|
& .uni-input {
|
|
150
|
-
font-size:
|
|
152
|
+
font-size: 24rpx;
|
|
151
153
|
flex: 1;
|
|
152
154
|
color: #333;
|
|
153
155
|
line-height: 36rpx;
|
|
@@ -189,6 +191,7 @@ export default {
|
|
|
189
191
|
.shop_list{
|
|
190
192
|
height: 100%;
|
|
191
193
|
overflow-y: auto;
|
|
194
|
+
padding-top: 16rpx;
|
|
192
195
|
.shop_item{
|
|
193
196
|
display: flex;
|
|
194
197
|
background: #FFFFFF;
|
|
@@ -210,8 +213,7 @@ export default {
|
|
|
210
213
|
flex-direction: column;
|
|
211
214
|
width: 200rpx;
|
|
212
215
|
flex: 1;
|
|
213
|
-
margin-left:
|
|
214
|
-
justify-content: space-between;
|
|
216
|
+
margin-left: 16rpx;
|
|
215
217
|
|
|
216
218
|
.addr_text{
|
|
217
219
|
width: 420rpx;
|
|
@@ -245,7 +247,7 @@ export default {
|
|
|
245
247
|
align-items: center;
|
|
246
248
|
color: #999999;
|
|
247
249
|
font-size: 24rpx;
|
|
248
|
-
margin-top:
|
|
250
|
+
margin-top: 16rpx;
|
|
249
251
|
line-height: 1.6;
|
|
250
252
|
._icon{
|
|
251
253
|
width: 40rpx;
|