运费支持多运费选择

master
gongfuxiang 2024-02-13 23:17:07 +08:00
parent 35a0360e0a
commit 5a17e7d0f0
5 changed files with 43 additions and 5 deletions

View File

@ -336,6 +336,7 @@
"186cxy": "個,可用",
"70u2vy": "至",
"o7722q": "查看地圖",
"876tgh": "運送管道",
"45ovhs": "優惠劵",
"58rs1a": "門店次卡",
"33fugm": "使用",

View File

@ -344,6 +344,7 @@
"186cxy": "Available",
"70u2vy": "to",
"o7722q": "consult a map",
"876tgh": "shipping method",
"45ovhs": "Coupons",
"58rs1a": "Store Secondary Card",
"33fugm": "apply",

View File

@ -336,6 +336,7 @@
"186cxy": "Uno, disponible",
"70u2vy": "A",
"o7722q": "Ver el mapa",
"876tgh": "Modo de transporte",
"45ovhs": "Cupones preferenciales",
"58rs1a": "Tarjeta secundaria de la tienda",
"33fugm": "Uso",

View File

@ -340,6 +340,7 @@
"186cxy": "个,可用",
"70u2vy": " 至 ",
"o7722q": "查看地图",
"876tgh": "运送方式",
"45ovhs": "优惠劵",
"58rs1a": "门店次卡",
"33fugm": "使用",

View File

@ -82,9 +82,23 @@
<component-buy-ordergoodsform ref="buy_ordergoodsform" :propData="item.plugins_ordergoodsform_data" :propGoodsID="item.goods_id"></component-buy-ordergoodsform>
</view>
</view>
</view>
<!-- 运费 -->
<view v-if="(group.plugins_freightfee_data || null) != null && (group.plugins_freightfee_data.default || null) != null && (group.plugins_freightfee_data.fee_list || null) != null && group.plugins_freightfee_data.fee_list.length > 0" class="buy-data-item oh">
<text class="cr-base">{{$t('buy.buy.876tgh')}}</text>
<view class="fr cp">
<view class="dis-inline-block va-m">
<picker :data-wid="group.id" @change="plugins_freightfee_change_event" :value="group.plugins_freightfee_data.default.key" :range="group.plugins_freightfee_data.fee_list" range-key="fee_name">
<view class="cr-grey">{{ group.plugins_freightfee_data.default.fee_name }}</view>
</picker>
</view>
<view class="dis-inline-block va-m lh-xs">
<iconfont name="icon-arrow-right" color="#999"></iconfont>
</view>
</view>
</view>
<!-- 优惠劵 -->
<view v-if="(plugins_coupon_data || null) != null && (plugins_coupon_data[index] || null) != null && (plugins_coupon_data[index].coupon_data || null) != null && (plugins_coupon_data[index].coupon_data.coupon_list || null) != null && plugins_coupon_data[index].coupon_data.coupon_list.length > 0" class="buy-data-item" :data-index="index" @tap="plugins_coupon_open_event">
<view v-if="(plugins_coupon_data || null) != null && (plugins_coupon_data[index] || null) != null && (plugins_coupon_data[index].coupon_data || null) != null && (plugins_coupon_data[index].coupon_data.coupon_list || null) != null && plugins_coupon_data[index].coupon_data.coupon_list.length > 0" class="buy-data-item oh" :data-index="index" @tap="plugins_coupon_open_event">
<text class="cr-base">{{$t('buy.buy.45ovhs')}}</text>
<view class="fr cp">
<text class="cr-grey va-m">{{ (plugins_choice_coupon_value || null) != null && (plugins_choice_coupon_value[group.id] || null) != null ? plugins_choice_coupon_value[group.id] : $t('buy.buy.553mxo') }}</text>
@ -96,7 +110,7 @@
<!-- 门店次卡 -->
<view v-if="(plugins_realstore_data || null) != null && (plugins_realstore_data[group.id] || null) != null" class="plugins-realstore-container-view">
<block v-for="(item, index2) in plugins_realstore_data[group.id]['data']" :key="index2">
<view class="buy-data-item oh wh-auto">
<view class="buy-data-item oh oh wh-auto">
<text class="cr-base va-m">{{$t('buy.buy.58rs1a')}}</text>
<image class="image circle br va-m margin-left-lg" :src="item.images" mode="aspectFill"></image>
<text class="cr-grey va-m margin-left-xs text-size-xs">x{{ item.stock }}</text>
@ -155,7 +169,7 @@
</view>
<!-- 时间选择 -->
<view v-if="(buy_datetime_info || null) != null && (buy_datetime_info.is_select || false) == true" class="buy-data-item padding-horizontal-main bg-white border-radius-main spacing-mb">
<view v-if="(buy_datetime_info || null) != null && (buy_datetime_info.is_select || false) == true" class="buy-data-item oh padding-horizontal-main bg-white border-radius-main spacing-mb">
<text class="cr-base">{{ buy_datetime_info.title }}</text>
<view class="right-value single-text dis-inline-block fr tr">
<component-time-select :propTitle="buy_datetime_info.title" :propPlaceholder="buy_datetime_info.placeholder" :propRangeDay="buy_datetime_info.range_day || 2" :propRangeStartTime="buy_datetime_info.time_start" :propRangeEndTime="buy_datetime_info.time_end" :propDisabled="buy_datetime_info.disabled" :propIsShow="buy_datetime_info.status" @selectEvent="buy_datetime_event">
@ -346,7 +360,9 @@
popup_plugins_realstore_group_id: 0,
popup_plugins_realstore_card_index: 0,
//
plugins_intellectstools_data: null,
plugins_intellectstools_data: null,
//
plugins_freightfee_choice_data: {},
//
pay_url: '',
@ -629,7 +645,15 @@
},
//
request_data_ext_params_merge(data) {
request_data_ext_params_merge(data) {
//
var fee = this.plugins_freightfee_choice_data || null;
if(fee != null) {
for (var i in fee) {
data['freightfee_id_' + i] = fee[i];
}
}
//
var coupon_ids = this.plugins_use_coupon_ids;
if ((coupon_ids || null) != null && coupon_ids.length > 0) {
@ -897,6 +921,16 @@
});
this.init();
}
},
//
plugins_freightfee_change_event(e) {
var temp = this.plugins_freightfee_choice_data;
temp[e.currentTarget.dataset.wid] = parseInt(e.detail.value);
this.setData({
plugins_freightfee_choice_data: temp,
});
this.init();
},
//