diff --git a/lang/cht.json b/lang/cht.json index ad329e00..f85607ed 100644 --- a/lang/cht.json +++ b/lang/cht.json @@ -336,6 +336,7 @@ "186cxy": "個,可用", "70u2vy": "至", "o7722q": "查看地圖", + "876tgh": "運送管道", "45ovhs": "優惠劵", "58rs1a": "門店次卡", "33fugm": "使用", diff --git a/lang/en.json b/lang/en.json index 4834ba6c..28570e5a 100644 --- a/lang/en.json +++ b/lang/en.json @@ -344,6 +344,7 @@ "186cxy": "Available", "70u2vy": "to", "o7722q": "consult a map", + "876tgh": "shipping method", "45ovhs": "Coupons", "58rs1a": "Store Secondary Card", "33fugm": "apply", diff --git a/lang/spa.json b/lang/spa.json index ec36b4db..00ffe36b 100644 --- a/lang/spa.json +++ b/lang/spa.json @@ -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", diff --git a/lang/zh.json b/lang/zh.json index f1aa467c..3bbbc77a 100644 --- a/lang/zh.json +++ b/lang/zh.json @@ -340,6 +340,7 @@ "186cxy": "个,可用", "70u2vy": " 至 ", "o7722q": "查看地图", + "876tgh": "运送方式", "45ovhs": "优惠劵", "58rs1a": "门店次卡", "33fugm": "使用", diff --git a/pages/buy/buy.vue b/pages/buy/buy.vue index a1fa4f16..a25e945b 100644 --- a/pages/buy/buy.vue +++ b/pages/buy/buy.vue @@ -82,9 +82,23 @@ + + + + {{$t('buy.buy.876tgh')}} + + + + {{ group.plugins_freightfee_data.default.fee_name }} + + + + + + - + {{$t('buy.buy.45ovhs')}} {{ (plugins_choice_coupon_value || null) != null && (plugins_choice_coupon_value[group.id] || null) != null ? plugins_choice_coupon_value[group.id] : $t('buy.buy.553mxo') }} @@ -96,7 +110,7 @@ - + {{$t('buy.buy.58rs1a')}} x{{ item.stock }} @@ -155,7 +169,7 @@ - + {{ buy_datetime_info.title }} @@ -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(); }, // 地址选择事件