jufubao-mall 2.0.27-beta2 → 2.0.27-beta4
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 +133 -61
- package/src/components/JfbMallConfirm/Mock.js +1 -1
- package/src/components/JfbMallConfirm/XdAddrDefault.vue +26 -13
- package/src/components/JfbMallConfirm/XdAddrOld.vue +1 -1
- package/src/components/JfbMallConfirm/XdListItem.vue +10 -2
- package/src/components/JfbMallConfirm/cusAttr/content.js +53 -6
- package/src/components/JfbMallConfirm/cusAttr/style.js +47 -49
- package/src/components/JfbMallConfirm/shopList.vue +68 -32
- package/src/components/JfbMallResourceShopList/Api.js +1 -1
- package/src/components/JfbMallResourceShopList/Attr.js +12 -289
- package/src/components/JfbMallResourceShopList/JfbMallResourceShopList.vue +823 -187
- package/src/components/JfbMallResourceShopList/Mock.js +309 -37
- package/src/components/JfbMallResourceShopList/XdQueryFilter.vue +334 -247
- package/src/components/JfbMallResourceShopList/cusAttr/advanced.js +135 -0
- package/src/components/JfbMallResourceShopList/cusAttr/content.js +449 -0
- package/src/components/JfbMallResourceShopList/cusAttr/style.js +448 -0
- package/src/components/JfbMallShop/JfbMallShop.vue +48 -50
package/package.json
CHANGED
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
<view v-if="showTopLine === 'B'" class="decorate" style="bottom: 0;"></view>
|
|
31
31
|
</view>
|
|
32
32
|
<view v-if="showBuyer == 'Y'" class="buyer_info section" :style=[blockSectionStyleComp]>
|
|
33
|
-
<view
|
|
34
|
-
<input v-model="buyer_phone_number" class="uni-input" :focus="true" placeholder="
|
|
33
|
+
<view>订购信息</view>
|
|
34
|
+
<input v-model="buyer_phone_number" class="uni-input" :focus="true" placeholder="请填写订购人手机号" />
|
|
35
35
|
</view>
|
|
36
36
|
<!-- 商品信息 -->
|
|
37
37
|
<view class="prod_info_wrap">
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
prod_tit_one:prod.brand_name||prod.product_sku_name||(showActivityPrice==='Y'&&prod.is_activity==='Y')
|
|
50
50
|
}">{{prod.product_name}}</view>
|
|
51
51
|
<view class="prod_brand" :style="{color:brandTextColor}" v-if="prod.brand_name">{{prod.brand_name}}</view>
|
|
52
|
-
<view class="prod_specs" v-if="prod.product_sku_name"
|
|
52
|
+
<view class="prod_specs" v-if="prod.product_sku_name">规格:{{prod.product_sku_name}}</view>
|
|
53
53
|
<view class="prod_price">
|
|
54
54
|
<view style="display:flex;align-items:center">
|
|
55
55
|
<!-- <xd-unit :price="prod.sale_price" :isOld="false" color="#333" :iconSize="0.3" :fontSize="32"/> -->
|
|
@@ -73,50 +73,55 @@
|
|
|
73
73
|
</view>
|
|
74
74
|
</view>
|
|
75
75
|
</view>
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
76
|
+
<!-- 配送信息 -->
|
|
77
|
+
<view v-if="shop.support_delivery_method_options.length" class="delivery">
|
|
78
|
+
<xd-list-item v-if="shop.sub_show_delivery_method==='Y'" label="配送方式" showRight paddingLR="48rpx" paddingTB="24rpx" showBottom size="large">
|
|
79
|
+
<picker @change="e => bindPickerChange(e, shopIndex)"
|
|
80
|
+
range-key="label" :range="shop.support_delivery_method_options"
|
|
81
|
+
:value="shop.support_delivery_method_options.findIndex(ll => ll.value == shop.deliveryPickValue)"
|
|
82
|
+
>
|
|
83
|
+
<view style="color: #333333;">{{shop.deliveryPickLabel || "选择配送方式"}}</view>
|
|
84
|
+
</picker>
|
|
85
|
+
</xd-list-item>
|
|
86
|
+
<template>
|
|
87
|
+
<xd-list-item v-if="shop.sub_show_delivery_price==='Y'" label="配送费用" showBottom paddingLR="48rpx" paddingTB="24rpx">
|
|
88
|
+
<xd-unit :price="shop.user_logistics_amount_origin" :fontSize="28" :isOld="false"></xd-unit>
|
|
89
|
+
</xd-list-item>
|
|
90
|
+
<xd-list-item v-if="shop.deliveryPickValue === 'samecity' && shop.is_support_delivery == 'Y'"
|
|
91
|
+
:label="shop.time_label" showRight paddingLR="48rpx" paddingTB="24rpx" showBottom
|
|
92
|
+
@click="toSetSelectTime(shopIndex,shop)">
|
|
93
|
+
{{shop.selectTime ? shop.selectTime.dateTime : "请选择"}}
|
|
85
94
|
</xd-list-item>
|
|
86
|
-
<
|
|
87
|
-
|
|
88
|
-
|
|
95
|
+
<template v-if="shop.deliveryPickValue === 'takeout'" >
|
|
96
|
+
<!-- 配送方式:到店自提 -->
|
|
97
|
+
<xd-list-item label="选择门店" show-right paddingLR="48rpx" paddingTB="24rpx" showBottom @click="toSetSelectShop(shopIndex)">
|
|
98
|
+
<view style="text-overflow: ellipsis;overflow: hidden;white-space: nowrap;width: 460rpx;text-align: right;">
|
|
99
|
+
{{shop.choseShop ? shop.choseShop.resource_shop_name : "请选择"}}
|
|
100
|
+
</view>
|
|
89
101
|
</xd-list-item>
|
|
90
|
-
<xd-list-item v-if="shop.
|
|
91
|
-
{{shop.
|
|
102
|
+
<xd-list-item v-if="shop.takeoutTimeList" :label="shop.time_label" show-right paddingLR="48rpx" paddingTB="24rpx" @click="toSetTakeoutTime(shopIndex,shop)">
|
|
103
|
+
<view style="">{{shop.takeoutTime ? shop.takeoutTime.dateTime : '请选择'}}</view>
|
|
92
104
|
</xd-list-item>
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
</view>
|
|
104
|
-
</view>
|
|
105
|
-
</view>
|
|
106
|
-
<xd-list-item v-if="shop.delivery_message" :label="shop.delivery_message" paddingLR="48rpx" size="large"></xd-list-item>
|
|
107
|
-
<view v-if="shop.is_support_delivery == 'N'" :style="{background:bgColor,color:warningColor}" class="err_message">
|
|
108
|
-
{{shop.message}}
|
|
109
|
-
</view>
|
|
105
|
+
</template>
|
|
106
|
+
</template>
|
|
107
|
+
</view>
|
|
108
|
+
<!-- <xd-list-item v-if="shop.delivery_message" :label="shop.delivery_message" paddingLR="48rpx" size="large"></xd-list-item> -->
|
|
109
|
+
<view v-if="showLogisticsTip === 'Y' && shop.deliveryPickValue === 'logistics'" class="logistics_tip">
|
|
110
|
+
{{logisticsTipText}}
|
|
111
|
+
</view>
|
|
112
|
+
<view v-if="shop.is_support_delivery == 'N'" :style="{background:bgColor,color:warningColor}" class="err_message">
|
|
113
|
+
{{shop.message}}
|
|
114
|
+
</view>
|
|
110
115
|
</view>
|
|
111
116
|
</view>
|
|
112
117
|
|
|
113
118
|
<!-- 订单备注信息 -->
|
|
114
119
|
<view v-if="showOrderComment == 'Y'" class="order_comment section" :style=[blockSectionStyleComp]>
|
|
115
120
|
<view class="title">备注信息</view>
|
|
116
|
-
<
|
|
121
|
+
<input v-model="comment" class="order_market" :maxlength="50" placeholder="建议留言前先与平台沟通确认,最多只支持50字"/>
|
|
117
122
|
</view>
|
|
118
123
|
<!-- 展示vip -->
|
|
119
|
-
<view v-if="is_show_vip_card_list === 'Y'" class="section" :style=[blockSectionStyleComp]>
|
|
124
|
+
<view v-if="is_show_vip_card_list === 'Y'" class="section" style="overflow: hidden;" :style=[blockSectionStyleComp]>
|
|
120
125
|
<cus-vip-list :list="vipCardList"
|
|
121
126
|
:vip_card_id="vip_card_id"
|
|
122
127
|
:plus_saving_money="orderFee.plus_saving_money"
|
|
@@ -137,7 +142,7 @@
|
|
|
137
142
|
<view v-if="showPrice === 'Y' || otherPayMethod.filter(it => it.method!=='third').length" class="money_box">
|
|
138
143
|
<template v-if="showPrice === 'Y'">
|
|
139
144
|
<xd-list-item v-if="isShowPlusSavingMoney" label="PLUS专享立减" showBottom paddingLR="48rpx">
|
|
140
|
-
<view slot="label" style="color: #
|
|
145
|
+
<view slot="label" style="color: #7F5629;">PLUS专享立减</view>
|
|
141
146
|
<xd-unit :largeZero="false" :price="-orderFee.plus_saving_money" :isOld="false" :fontSize="28" :iconSize="0.3"></xd-unit>
|
|
142
147
|
</xd-list-item>
|
|
143
148
|
<xd-list-item v-if="showLogisticsDiscount&&main_show_delivery_price==='Y'" label="运费减免" :showBottom="!!showPayMethods.length" paddingLR="48rpx">
|
|
@@ -149,17 +154,20 @@
|
|
|
149
154
|
<xd-list-item v-if="item.method === 'card'" :key="item.method" :label="item.show_name" paddingLR="48rpx" showBottom :showRight="!(choseCoupon && choseCoupon.cardPayPrice)" @click="toChoseCard">
|
|
150
155
|
<view slot="label">{{item.show_name}} <text v-if="choseCard && choseCard.cardPayPrice" style="color:red;margin-left: 4px;">(已选{{ choseCard.selectedCardList.length }}张)</text></view>
|
|
151
156
|
<view v-if="(choseCoupon && choseCoupon.cardPayPrice)">
|
|
152
|
-
<view style="color:#CCCCCC;font-size:
|
|
157
|
+
<view style="color:#CCCCCC;font-size: 24rpx">已使用其他票券,不可用</view>
|
|
153
158
|
</view>
|
|
154
159
|
<view v-else>
|
|
155
160
|
<!-- <view v-if="choseCard && choseCard.cardPayPrice" slot="label">{{item.show_name}} <text style="color:red;margin-left: 4px;">(已选{{ choseCard.selectedCardList.length }}张)</text></view> -->
|
|
156
161
|
<xd-unit v-if="choseCard && choseCard.cardPayPrice" :price="choseCard.cardPayPrice" :isOld="false" :fontSize="28" :iconSize="0.3"></xd-unit>
|
|
157
|
-
<view v-else
|
|
162
|
+
<view v-else>{{cardList.length}}张可用</view>
|
|
158
163
|
</view>
|
|
159
164
|
</xd-list-item>
|
|
160
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
|
+
<view slot="label">
|
|
167
|
+
{{ item.show_name }}<text style="color:red;margin-left: 8px;font-size: 24rpx;">(剩余{{ wallet_total_amount }})</text>
|
|
168
|
+
</view>
|
|
161
169
|
<view v-if="(choseCoupon && choseCoupon.cardPayPrice)">
|
|
162
|
-
<view style="color:#CCCCCC;font-size:
|
|
170
|
+
<view style="color:#CCCCCC;font-size: 24rpx">已使用其他票券,不可用</view>
|
|
163
171
|
</view>
|
|
164
172
|
<view v-else>
|
|
165
173
|
<xd-unit v-if="choseWallet && choseWallet.walletPayPrice" :price='choseWallet.walletPayPrice' :isOld="false" :fontSize="28" :iconSize="0.3"></xd-unit>
|
|
@@ -171,19 +179,19 @@
|
|
|
171
179
|
{{item.show_name}} <text style="color:red;margin-left: 4px;">(已选{{ choseCoupon.selectedCardList.length }}张)</text>
|
|
172
180
|
</view>
|
|
173
181
|
<view v-else>
|
|
174
|
-
<view style="color:#CCCCCC;font-size:
|
|
175
|
-
<view v-else
|
|
182
|
+
<view style="color:#CCCCCC;font-size: 24rpx" v-if="(choseWallet && choseWallet.walletPayPrice)||(choseCard && choseCard.cardPayPrice)">已使用其他票券,不可用</view>
|
|
183
|
+
<view v-else>{{couponList.length}}张可用</view>
|
|
176
184
|
</view>
|
|
177
185
|
</xd-list-item>
|
|
178
186
|
</template>
|
|
179
187
|
</view>
|
|
180
188
|
<view v-if="!is_plus_site && orderFee.total_amount && showPrice === 'Y'" class="money_box">
|
|
181
|
-
<xd-list-item label="
|
|
189
|
+
<xd-list-item label="订单金额" paddingLR="48rpx">
|
|
182
190
|
<xd-unit :price="orderFee.total_amount" :isOld="false" :fontSize="28" :iconSize="0.3"></xd-unit>
|
|
183
191
|
</xd-list-item>
|
|
184
192
|
</view>
|
|
185
193
|
</view>
|
|
186
|
-
<view :style=
|
|
194
|
+
<view :style=[fixedBottomPlaceholder]></view>
|
|
187
195
|
<!-- 靠低支付, 增加淘福客布局 -->
|
|
188
196
|
<view class="fixe_bottom" :style="prod_bottom">
|
|
189
197
|
<view class="fixed_bottom_body" :style="[bottomBoxStyle]">
|
|
@@ -245,12 +253,14 @@
|
|
|
245
253
|
:addSettleCard="addSettleCard"
|
|
246
254
|
@onChose="handleCardChose"
|
|
247
255
|
@onAlert="handleCardChoseAlert"
|
|
256
|
+
@onInit="handleCardInit"
|
|
248
257
|
>
|
|
249
258
|
</xd-card-pay-chose>
|
|
250
259
|
</template>
|
|
251
260
|
<xd-wallet-chose
|
|
252
261
|
v-if="payWallet"
|
|
253
262
|
ref="xdWalletChose"
|
|
263
|
+
:defaultUseFirst="defaultUseWalletFirst"
|
|
254
264
|
:hadChoseWallet="choseWallet && choseWallet.selectedWalletList"
|
|
255
265
|
:layoutInfo="layoutInfo"
|
|
256
266
|
:show.sync="showWalletChose"
|
|
@@ -258,6 +268,7 @@
|
|
|
258
268
|
:useBindedWallet="useBindedWallet"
|
|
259
269
|
@onChose="handleWalletChose"
|
|
260
270
|
@onAlert="() => hasAlertCardChose = true"
|
|
271
|
+
@onInit="handleWalletInit"
|
|
261
272
|
></xd-wallet-chose>
|
|
262
273
|
<cus-coupon-chose
|
|
263
274
|
v-if="payCoupon"
|
|
@@ -276,6 +287,7 @@
|
|
|
276
287
|
:getSettleListCoupons="getSettleListCoupons"
|
|
277
288
|
:setSettleSelectCoupon="setSettleSelectCoupon"
|
|
278
289
|
:layoutStyle="coupon_layout"
|
|
290
|
+
@onInit="handleCouponInit"
|
|
279
291
|
></cus-coupon-chose>
|
|
280
292
|
<xd-select-time
|
|
281
293
|
v-if="showSelectTime"
|
|
@@ -301,7 +313,7 @@
|
|
|
301
313
|
></xd-select-time>
|
|
302
314
|
<xd-down-drawer
|
|
303
315
|
:show.sync="showShopList"
|
|
304
|
-
height="
|
|
316
|
+
height="45vh"
|
|
305
317
|
>
|
|
306
318
|
<template v-if="showShopList">
|
|
307
319
|
<view :style="{height: '100rpx'}"></view>
|
|
@@ -435,13 +447,18 @@
|
|
|
435
447
|
showCardPayChoseWay: "", //支付按钮: pay_btn; 选择票券:chose_card
|
|
436
448
|
choseCard: null,
|
|
437
449
|
hasAlertCardChose: false,
|
|
450
|
+
cardList: [],
|
|
438
451
|
|
|
439
452
|
showWalletChose: false,
|
|
440
453
|
choseWallet: null,
|
|
454
|
+
wallet_total_amount: "",
|
|
441
455
|
|
|
442
456
|
//优惠券
|
|
443
457
|
choseCoupon: null,
|
|
444
458
|
showCouponChose: false,
|
|
459
|
+
couponList: [],
|
|
460
|
+
|
|
461
|
+
fixedBottomBodyHeight: 0,
|
|
445
462
|
|
|
446
463
|
//面板
|
|
447
464
|
xnamespace: "",
|
|
@@ -505,6 +522,9 @@
|
|
|
505
522
|
skipTip: "N",
|
|
506
523
|
skipToPay: "",
|
|
507
524
|
guidePay: "",
|
|
525
|
+
showLogisticsTip: "Y",
|
|
526
|
+
logisticsTipText: "",
|
|
527
|
+
checkPayMethod: [],
|
|
508
528
|
}
|
|
509
529
|
},
|
|
510
530
|
computed: {
|
|
@@ -595,6 +615,11 @@
|
|
|
595
615
|
})
|
|
596
616
|
return flat;
|
|
597
617
|
},
|
|
618
|
+
fixedBottomPlaceholder() {
|
|
619
|
+
return {
|
|
620
|
+
height: (this.fixedBottomBodyHeight + 14) + 'px'
|
|
621
|
+
}
|
|
622
|
+
},
|
|
598
623
|
prod_bottom() {
|
|
599
624
|
return this.fixedStyle({height: 0, zIndex: 111});
|
|
600
625
|
},
|
|
@@ -638,12 +663,8 @@
|
|
|
638
663
|
return result;
|
|
639
664
|
},
|
|
640
665
|
bottomBoxStyle(){
|
|
641
|
-
let padding = `${this.checkValue(this.bottomPadding.top, 20)}rpx`;
|
|
642
|
-
padding = `${padding} ${this.checkValue(this.bottomPadding.right, 20)}rpx`;
|
|
643
|
-
padding = `${padding} ${this.checkValue(this.bottomPadding.bottom, 20)}rpx`;
|
|
644
|
-
padding = `${padding} ${this.checkValue(this.bottomPadding.left, 20)}rpx`;
|
|
645
666
|
return {
|
|
646
|
-
padding:
|
|
667
|
+
padding: this.getMarginAndPadding(this.bottomPadding, 20)
|
|
647
668
|
}
|
|
648
669
|
},
|
|
649
670
|
bodyStyleComp(){
|
|
@@ -673,8 +694,10 @@
|
|
|
673
694
|
boxShadow: this.addrShadow,
|
|
674
695
|
overflow: 'hidden'
|
|
675
696
|
}
|
|
676
|
-
|
|
677
697
|
return style;
|
|
698
|
+
},
|
|
699
|
+
defaultUseWalletFirst(){
|
|
700
|
+
return this.checkPayMethod.includes('wallet');
|
|
678
701
|
}
|
|
679
702
|
},
|
|
680
703
|
watch: {
|
|
@@ -773,22 +796,25 @@
|
|
|
773
796
|
this.skipTip = getContainerPropsValue(container, "content.skipTip", "N");
|
|
774
797
|
this.skipToPay = getContainerPropsValue(container, "content.skipToPay", "N");
|
|
775
798
|
this.guidePay = getContainerPropsValue(container, "content.guidePay", "");
|
|
799
|
+
this.showLogisticsTip = gCPVal(container, 'showLogisticsTip', "Y");
|
|
800
|
+
this.logisticsTipText = gCPVal(container, 'logisticsTipText', '订单生成后72小时发货,如遇节假日发货顺延');
|
|
801
|
+
console.log("this.showLogisticsTip", this.showLogisticsTip);
|
|
776
802
|
if(this.useMode === "market"){
|
|
777
803
|
this.showPrice = "Y"
|
|
778
804
|
}
|
|
779
805
|
|
|
780
|
-
let contStyle = this.getRelationStatus(container,'cont_style',{ sectionHeightStatus: ['sectionHeight'], lrPaddingStatus: ['lrPadding'] }, `{"spacing":
|
|
806
|
+
let contStyle = this.getRelationStatus(container,'cont_style',{ sectionHeightStatus: ['sectionHeight'], lrPaddingStatus: ['lrPadding'] }, `{"spacing":16,"margin":{"bottom":0,"top":0,"left":16,"right":16},"backgroundColor": "rgba(245, 245, 245, 1)"}`);
|
|
781
807
|
this.sectionHeight = gCPVal(container, 'sectionHeight', [16], {sKey: "sectionHeightStatus", fields: ['sectionHeight'], cusFields: ['cont_style', 'spacing', contStyle]});
|
|
782
808
|
this.lrPadding = gCPVal(container, 'lrPadding', [0], {sKey:'lrPaddingStatus',fields:['lrPadding'],isPMR: true, cusFields: ['cont_style', 'margin', contStyle]})
|
|
783
809
|
|
|
784
|
-
let addrStyle = this.getRelationStatus(container,'addr_style',{ addrLrPaddingStatus: ['addrLrPadding'] }, `{"margin":{"bottom":0,"top":
|
|
810
|
+
let addrStyle = this.getRelationStatus(container,'addr_style',{ addrLrPaddingStatus: ['addrLrPadding'] }, `{"margin":{"bottom":0,"top":16,"left":16,"right":16}}`);
|
|
785
811
|
this.addrLrPadding = gCPVal(container, 'addrLrPadding', [0], {sKey:'addrLrPaddingStatus',fields:['addrLrPadding'],isPMR: true, cusFields: ['addr_style', 'margin', addrStyle]});
|
|
786
812
|
|
|
787
813
|
this.brandTextColor = gCPVal(container, 'brandTextColor', [this.mainColor], {sKey: "brandTextStatus", fields: ['brandTextColor']})
|
|
788
814
|
this.blessFontSize = gCPVal(container, 'blessFontSize', [24], {sKey: 'formTipStatus', fields: ['blessFontSize', 'blessTextColor']});
|
|
789
|
-
this.blessTextColor = gCPVal(container, 'blessTextColor', [this.
|
|
815
|
+
this.blessTextColor = gCPVal(container, 'blessTextColor', [this.dangerColor], {sKey: "formTipStatus", fields: ['blessFontSize', 'blessTextColor']});
|
|
790
816
|
this.priceTextColor = gCPVal(container, 'priceTextColor', [this.mainColor], {sKey: "activityPriceStatus", fields: ['priceTextColor']})
|
|
791
|
-
this.bottomPadding = gCPVal(container, 'bottomPadding', [
|
|
817
|
+
this.bottomPadding = gCPVal(container, 'bottomPadding', [20], {sKey: "bottomPaddingStatus", fields: ['bottomPadding']});
|
|
792
818
|
this.bottomBtnRadius = gCPVal(container, 'bottomBtnRadius', [40], {sKey: "btnStyleStatus", fields: ['bottomBtnRadius', 'bottomBtnHeight', 'bottomPayText']});
|
|
793
819
|
this.bottomBtnHeight = gCPVal(container, 'bottomBtnHeight', [60], {sKey: "btnStyleStatus", fields: ['bottomBtnRadius', 'bottomBtnHeight', 'bottomPayText']});
|
|
794
820
|
this.bottomPayText = gCPVal(container, 'bottomPayText', ["支付"], {sKey: "btnStyleStatus", fields: ['bottomBtnRadius', 'bottomBtnHeight', 'bottomPayText']});
|
|
@@ -816,17 +842,34 @@
|
|
|
816
842
|
this.bodyPadding = gCPVal(container,'bodyPadding', [0], {sKey:'bodyPaddingStatus',fields:['bodyPadding'],isPMR: true});
|
|
817
843
|
|
|
818
844
|
this.radius = gCPVal(container, 'radius', [this.gStyleValue.radius, 0], {sKey: "radiusStatus", fields: ['radius']})||0
|
|
819
|
-
let blockShadow = gCPVal(container, 'blockShadow', [
|
|
845
|
+
let blockShadow = gCPVal(container, 'blockShadow', ['none'], {sKey: "blockShadowStatus", fields: ['blockShadow']});
|
|
820
846
|
this.blockShadow = blockShadow ? this.getBSStr(blockShadow, 'shadow') : 'none';
|
|
821
847
|
|
|
822
848
|
this.addrRadius = gCPVal(container, 'addrRadius', [this.gStyleValue.radius, 0], {sKey:'addrRadiusStatus',fields:['addrRadius']})||0;
|
|
823
|
-
let addrShadow = gCPVal(container, 'addrShadow', [
|
|
849
|
+
let addrShadow = gCPVal(container, 'addrShadow', ['none'], {sKey: "addrShadowStatus", fields: ['addrShadow']});
|
|
824
850
|
this.addrShadow = addrShadow ? this.getBSStr(addrShadow, 'shadow') : 'none';
|
|
825
851
|
this.coupon_layout = gCPVal(container, 'coupon_layout', ['1']);
|
|
852
|
+
this.checkPayMethod = gCPVal(container, 'checkPayMethod', []);
|
|
853
|
+
console.log("this.checkPayMethod", this.checkPayMethod);
|
|
826
854
|
|
|
827
855
|
if(this.skipToPay === 'N'){
|
|
828
856
|
this.hasAlertCardChose = true;
|
|
829
857
|
}
|
|
858
|
+
this.$nextTick(() => {
|
|
859
|
+
setTimeout(() => {
|
|
860
|
+
this.getDomReadyRect();
|
|
861
|
+
}, 200)
|
|
862
|
+
});
|
|
863
|
+
},
|
|
864
|
+
getDomReadyRect(){
|
|
865
|
+
return new Promise((resolve, reject) => {
|
|
866
|
+
let query = uni.createSelectorQuery();
|
|
867
|
+
query.select('.fixed_bottom_body').boundingClientRect(rect => {
|
|
868
|
+
console.log('getDomReadyRect', rect);
|
|
869
|
+
this.fixedBottomBodyHeight = rect.height;
|
|
870
|
+
resolve(rect);
|
|
871
|
+
}).exec();
|
|
872
|
+
});
|
|
830
873
|
},
|
|
831
874
|
//选择元宝
|
|
832
875
|
toChoseWallet(){
|
|
@@ -842,6 +885,9 @@
|
|
|
842
885
|
console.log(this.choseWallet)
|
|
843
886
|
this.showWalletChose = false;
|
|
844
887
|
},
|
|
888
|
+
handleWalletInit(total){
|
|
889
|
+
this.wallet_total_amount = this.$xdUniHelper.divisionFloatNumber(total, 100);
|
|
890
|
+
},
|
|
845
891
|
|
|
846
892
|
//only选择满减券
|
|
847
893
|
toChoseCoupon(){
|
|
@@ -854,6 +900,9 @@
|
|
|
854
900
|
this.choseCoupon = data;
|
|
855
901
|
this.showCouponChose = false;
|
|
856
902
|
},
|
|
903
|
+
handleCouponInit(coupList){
|
|
904
|
+
this.couponList = coupList;
|
|
905
|
+
},
|
|
857
906
|
|
|
858
907
|
//only选择卡片
|
|
859
908
|
toChoseCard(){
|
|
@@ -877,6 +926,9 @@
|
|
|
877
926
|
duration: 0
|
|
878
927
|
})
|
|
879
928
|
},
|
|
929
|
+
handleCardInit(cardList){
|
|
930
|
+
this.cardList = cardList;
|
|
931
|
+
},
|
|
880
932
|
getUserWalletList(cb){
|
|
881
933
|
jfbRootExec("getUserWallet", {
|
|
882
934
|
vm: this,
|
|
@@ -1579,6 +1631,9 @@
|
|
|
1579
1631
|
display: flex;
|
|
1580
1632
|
align-items: center;
|
|
1581
1633
|
font-size: 28rpx;
|
|
1634
|
+
::v-deep .uni-input-placeholder{
|
|
1635
|
+
color: #999999;
|
|
1636
|
+
}
|
|
1582
1637
|
.uni-input{
|
|
1583
1638
|
font-size: 28rpx;
|
|
1584
1639
|
height: 64rpx;
|
|
@@ -1590,10 +1645,23 @@
|
|
|
1590
1645
|
}
|
|
1591
1646
|
}
|
|
1592
1647
|
.prod_info_wrap{
|
|
1648
|
+
::v-deep .uni-input-placeholder{
|
|
1649
|
+
color: #999999;
|
|
1650
|
+
}
|
|
1651
|
+
.logistics_tip{
|
|
1652
|
+
padding: 0 48rpx 24rpx;
|
|
1653
|
+
font-size: 24rpx;
|
|
1654
|
+
color: var(--g-theme-dangerColor);
|
|
1655
|
+
}
|
|
1593
1656
|
.err_message{
|
|
1594
1657
|
padding: 20rpx 48rpx;
|
|
1595
1658
|
font-size: 24rpx;
|
|
1596
1659
|
}
|
|
1660
|
+
.delivery{
|
|
1661
|
+
::v-deep .xd-my-list-item:last-child{
|
|
1662
|
+
border-bottom: none !important;
|
|
1663
|
+
}
|
|
1664
|
+
}
|
|
1597
1665
|
.shop_name{
|
|
1598
1666
|
padding: 24rpx 48rpx;
|
|
1599
1667
|
border-bottom: 1px solid #eee;
|
|
@@ -1653,7 +1721,7 @@
|
|
|
1653
1721
|
}
|
|
1654
1722
|
}
|
|
1655
1723
|
.wish_comment{
|
|
1656
|
-
padding: 0 48rpx
|
|
1724
|
+
padding: 0 48rpx;
|
|
1657
1725
|
input{
|
|
1658
1726
|
background: #F7F7F7;
|
|
1659
1727
|
height: 68rpx;
|
|
@@ -1663,7 +1731,7 @@
|
|
|
1663
1731
|
}
|
|
1664
1732
|
.bless_tip{
|
|
1665
1733
|
font-size: 26rpx;
|
|
1666
|
-
margin:
|
|
1734
|
+
margin: 20rpx 0 24rpx;
|
|
1667
1735
|
}
|
|
1668
1736
|
}
|
|
1669
1737
|
}
|
|
@@ -1673,14 +1741,18 @@
|
|
|
1673
1741
|
font-size: 28rpx;
|
|
1674
1742
|
margin-bottom: 24rpx;
|
|
1675
1743
|
}
|
|
1676
|
-
|
|
1744
|
+
.order_market{
|
|
1677
1745
|
border-radius: 8rpx;
|
|
1678
1746
|
box-sizing: border-box;
|
|
1679
1747
|
background: #F7F7F7;
|
|
1680
1748
|
width: 100%;
|
|
1681
1749
|
padding: 20rpx;
|
|
1682
|
-
height: 168rpx;
|
|
1683
1750
|
font-size: unit(24,rpx);
|
|
1751
|
+
height: 74rpx;
|
|
1752
|
+
|
|
1753
|
+
::v-deep .uni-input-placeholder{
|
|
1754
|
+
color: #999999;
|
|
1755
|
+
}
|
|
1684
1756
|
}
|
|
1685
1757
|
}
|
|
1686
1758
|
.fixe_bottom{
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view class="xd-addr-default">
|
|
3
3
|
<view v-if="curAddr" class="addr_wrap">
|
|
4
|
-
<view class="icon_addr">
|
|
5
|
-
<xd-font-icon size="32" style="color: #B1B1B1;" icon="icondizhitubiao"></xd-font-icon>
|
|
6
|
-
</view>
|
|
7
4
|
<view class="addr_info">
|
|
8
5
|
<view class="addr_name">{{curAddr.name}} <text class="_phone">{{curAddr.phone}}</text></view>
|
|
9
6
|
<view class="address-detail">
|
|
10
|
-
|
|
7
|
+
<view class="icon_wrap">
|
|
8
|
+
<xd-font-icon size="28" style="color: #999999;" icon="icondizhitubiao"></xd-font-icon>
|
|
9
|
+
</view>
|
|
10
|
+
<view style="flex:1;width: 500rpx;">
|
|
11
|
+
{{curAddr.province_name}}{{curAddr.city_name}}{{curAddr.area_name}}{{curAddr.street_name}}{{curAddr.address_detail}}{{curAddr.house_number}}
|
|
12
|
+
</view>
|
|
11
13
|
</view>
|
|
12
14
|
<view class="address-prompt-message">
|
|
13
15
|
为方便您顺利收件,请填写真实姓名
|
|
14
16
|
</view>
|
|
15
17
|
</view>
|
|
16
18
|
<view class="arrow_right">
|
|
17
|
-
<xd-font-icon size="32" style="color: #B1B1B1;" icon="iconxiangyou_xian"></xd-font-icon>
|
|
19
|
+
<!-- <xd-font-icon size="32" style="color: #B1B1B1;" icon="iconxiangyou_xian"></xd-font-icon> -->
|
|
18
20
|
</view>
|
|
19
21
|
</view>
|
|
20
22
|
<view class="empty_addr" v-else>
|
|
@@ -57,7 +59,7 @@
|
|
|
57
59
|
.addr_wrap{
|
|
58
60
|
display: flex;
|
|
59
61
|
align-items: center;
|
|
60
|
-
padding:
|
|
62
|
+
padding: 32rpx 0 32rpx 48rpx;
|
|
61
63
|
.icon_addr{
|
|
62
64
|
display: flex;
|
|
63
65
|
width: 70rpx;
|
|
@@ -74,20 +76,31 @@
|
|
|
74
76
|
flex: 1;
|
|
75
77
|
width: 400rpx;
|
|
76
78
|
.addr_name{
|
|
77
|
-
font-size:
|
|
78
|
-
|
|
79
|
+
font-size: 28rpx;
|
|
80
|
+
font-weight: 500;
|
|
81
|
+
color: #333333;
|
|
82
|
+
padding-left: 44rpx;
|
|
79
83
|
}
|
|
80
84
|
._phone{
|
|
81
|
-
color: #797d82;
|
|
82
85
|
margin-left: 8rpx;
|
|
83
86
|
}
|
|
84
87
|
.address-detail{
|
|
85
|
-
font-size:
|
|
86
|
-
color: #
|
|
88
|
+
font-size: 28rpx;
|
|
89
|
+
color: #666666;
|
|
90
|
+
margin: 20rpx 0 8rpx;
|
|
91
|
+
display: flex;
|
|
92
|
+
align-items: flex-start;
|
|
93
|
+
|
|
94
|
+
.icon_wrap{
|
|
95
|
+
width: 44rpx;
|
|
96
|
+
padding: 8rpx 12rpx 0 0rpx;
|
|
97
|
+
box-sizing: border-box;
|
|
98
|
+
}
|
|
87
99
|
}
|
|
88
100
|
.address-prompt-message{
|
|
89
|
-
font-size:
|
|
90
|
-
color:
|
|
101
|
+
font-size: 24rpx;
|
|
102
|
+
color: var(--g-theme-dangerColor);
|
|
103
|
+
padding-left: 44rpx;
|
|
91
104
|
}
|
|
92
105
|
}
|
|
93
106
|
}
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
v-if="showRight"
|
|
25
25
|
:style="{
|
|
26
26
|
marginLeft: '10rpx',
|
|
27
|
-
color:
|
|
27
|
+
color: rIconColor
|
|
28
28
|
}"
|
|
29
29
|
size="24"
|
|
30
30
|
icon="iconxiangyou_xian"
|
|
@@ -52,7 +52,7 @@ export default {
|
|
|
52
52
|
},
|
|
53
53
|
paddingTB:{
|
|
54
54
|
type: String,
|
|
55
|
-
default: "
|
|
55
|
+
default: "20rpx"
|
|
56
56
|
},
|
|
57
57
|
paddingLR: {
|
|
58
58
|
type: String,
|
|
@@ -81,6 +81,10 @@ export default {
|
|
|
81
81
|
className: {
|
|
82
82
|
type: String,
|
|
83
83
|
default: ''
|
|
84
|
+
},
|
|
85
|
+
rIconColor: {
|
|
86
|
+
type: String,
|
|
87
|
+
default: '#333333'
|
|
84
88
|
}
|
|
85
89
|
}
|
|
86
90
|
|
|
@@ -99,6 +103,8 @@ export default {
|
|
|
99
103
|
.my-list_label{
|
|
100
104
|
font-size: 28rpx;
|
|
101
105
|
font-weight: 400;
|
|
106
|
+
height: 40rpx;
|
|
107
|
+
line-height: 40rpx;
|
|
102
108
|
}
|
|
103
109
|
}
|
|
104
110
|
&.size_default{
|
|
@@ -106,6 +112,8 @@ export default {
|
|
|
106
112
|
.my-list_label{
|
|
107
113
|
font-size: 28rpx;
|
|
108
114
|
font-weight: 400;
|
|
115
|
+
height: 40rpx;
|
|
116
|
+
line-height: 40rpx;
|
|
109
117
|
}
|
|
110
118
|
}
|
|
111
119
|
&.size_small{
|