From 40adae87680f47e32ffbc85d19bf9f93f8871f0f Mon Sep 17 00:00:00 2001 From: gongfuxiang Date: Mon, 5 Feb 2024 16:20:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=AF=E5=88=86=E5=85=91=E6=8D=A2=E5=8F=8A?= =?UTF-8?q?=E5=95=86=E5=93=81=E6=98=AF=E5=90=A6=E5=B1=95=E7=A4=BA=E5=92=8C?= =?UTF-8?q?=E7=AC=A6=E5=8F=B7=E5=8F=8A=E5=8D=95=E4=BD=8D=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 4 +- common/css/page.css | 5 ++ components/binding-list/binding-list.vue | 23 ++++----- components/cart/cart.vue | 9 ++-- components/goods-buy/goods-buy.vue | 9 ++-- components/goods-list/goods-list.vue | 52 +++++++++++++-------- components/magic-list/magic-list.vue | 13 +++--- pages/buy/buy.vue | 59 +++++++++++++++--------- pages/goods-detail/goods-detail.vue | 15 +++--- pages/plugins/binding/detail/detail.vue | 9 ++-- pages/plugins/points/index/index.vue | 5 +- 11 files changed, 120 insertions(+), 83 deletions(-) diff --git a/App.vue b/App.vue index 972572ef..393fe4d6 100644 --- a/App.vue +++ b/App.vue @@ -7,10 +7,10 @@ data: { // 基础配置 // 数据接口请求地址 - request_url: 'https://d1.shopxo.vip/', + request_url: 'http://shopxo.com/', // 静态资源地址(如系统根目录不在public目录下面请在静态地址后面加public目录、如:https://d1.shopxo.vip/public/) - static_url: 'https://d1.shopxo.vip/', + static_url: 'http://shopxo.com/', // 系统类型(默认default、如额外独立小程序、可与程序分身插件实现不同主体小程序及支付独立) system_type: 'default', diff --git a/common/css/page.css b/common/css/page.css index 6a584683..fb8d8189 100644 --- a/common/css/page.css +++ b/common/css/page.css @@ -1024,6 +1024,11 @@ button[disabled].bg-grey { .goods-data-grid-list .item .error-msg { line-height: 341rpx; } +.goods-data-grid-list .item .open-grid-btn { + width: calc(100% - 80rpx); + min-height: 50rpx; + line-height: 50rpx; +} /** * 头部客服信息弹窗 diff --git a/components/binding-list/binding-list.vue b/components/binding-list/binding-list.vue index d5f11f64..f66234fc 100644 --- a/components/binding-list/binding-list.vue +++ b/components/binding-list/binding-list.vue @@ -9,22 +9,14 @@ {{ item.title }} - - {{ propCurrencySymbol }} - - - {{ item.estimate_price }} - + {{ propCurrencySymbol }} + {{ item.estimate_price }} {{$t('detail.detail.6026t4')}} - - {{ propCurrencySymbol }} - - - {{ item.estimate_discount_price }} - + {{ propCurrencySymbol }} + {{ item.estimate_discount_price }} @@ -38,8 +30,11 @@ {{ gv.title }} - {{ propCurrencySymbol }}{{ gv.price }} - {{$t('detail.detail.6026t4')}}{{ propCurrencySymbol }}{{ gv.discount_price }} + + {{ gv.show_price_symbol }}{{ gv.price }} + {{ gv.show_price_unit }} + + {{$t('detail.detail.6026t4')}}{{ gv.show_price_symbol }}{{ gv.discount_price }} diff --git a/components/cart/cart.vue b/components/cart/cart.vue index 115d71f0..b0d4c417 100644 --- a/components/cart/cart.vue +++ b/components/cart/cart.vue @@ -87,9 +87,12 @@ - - {{ currency_symbol }} - {{ item.price }} + + + {{ item.show_price_symbol }} + {{ item.price }} + + {{ item.show_price_unit }} diff --git a/components/goods-buy/goods-buy.vue b/components/goods-buy/goods-buy.vue index d4537330..4042c450 100644 --- a/components/goods-buy/goods-buy.vue +++ b/components/goods-buy/goods-buy.vue @@ -12,10 +12,13 @@ - {{ propCurrencySymbol }}{{ goods_spec_base_price }} - {{ propCurrencySymbol }}{{ goods_spec_base_original_price }} + + {{ goods.show_price_symbol }}{{ goods_spec_base_price }} + {{ goods.show_price_unit }} + + {{ goods.show_original_price_symbol }}{{ goods_spec_base_original_price }}{{ goods.show_original_price_unit }} - + {{ $t('goods-detail.goods-detail.1s79t4') }} {{ goods_spec_base_inventory }} {{ goods.inventory_unit }} diff --git a/components/goods-list/goods-list.vue b/components/goods-list/goods-list.vue index afeac416..24b34659 100644 --- a/components/goods-list/goods-list.vue +++ b/components/goods-list/goods-list.vue @@ -20,11 +20,14 @@ {{ item.title }} {{ item.simple_desc }} - - {{ item.price_icon }} - {{ propCurrencySymbol }} - {{ item[propPriceField] }} - + + + {{ item.price_icon }} + {{ item.show_price_symbol }} + {{ item[propPriceField] }} + {{ item.show_price_unit }} + + @@ -59,25 +62,31 @@ {{ item.title }} - - + + - {{ item.price_icon }} - {{ propCurrencySymbol }} - {{ item[propPriceField] }} + + {{ item.price_icon }} + {{ item.show_price_symbol }} + {{ item[propPriceField] }} + {{ item.show_price_unit }} + - - {{ propCurrencySymbol }} - {{ item[propPriceField] }} - + + + {{ item.show_price_symbol }} + {{ item[propPriceField] }} + {{ item.show_price_unit }} + + {{ item.integral }}{{ $t('index.index.t26j9z') }} - + {{ grid_btn_config.name }} @@ -129,11 +138,14 @@ - - {{ item.price_icon }} - {{ propCurrencySymbol }} - {{ item[propPriceField] }} - + + + {{ item.price_icon }} + {{ item.show_price_symbol }} + {{ item[propPriceField] }} + {{ item.show_price_unit }} + + diff --git a/components/magic-list/magic-list.vue b/components/magic-list/magic-list.vue index 63c9d8eb..261f1e03 100644 --- a/components/magic-list/magic-list.vue +++ b/components/magic-list/magic-list.vue @@ -16,15 +16,16 @@ {{ item.describe }} - + - - - + + + - {{ propCurrencySymbol }} - {{ listItem.min_price }} + {{ gv.show_price_symbol }} + {{ gv.min_price }} + {{ gv.show_price_unit }} diff --git a/pages/buy/buy.vue b/pages/buy/buy.vue index b36442b4..a1fa4f16 100644 --- a/pages/buy/buy.vue +++ b/pages/buy/buy.vue @@ -65,9 +65,14 @@ {{ spec.value }} - - {{ currency_symbol }}{{ item.price }} - {{ currency_symbol }}{{ item.original_price }} + + + {{ item.show_price_symbol }}{{ item.price }} + {{ item.show_price_unit }} + + + {{ item.show_original_price_symbol }}{{ item.original_price }}{{ item.show_original_price_unit }} + x{{ item.stock }} @@ -106,14 +111,15 @@ - - {{ item.name }} - {{ item.tips }} + + + {{ item.name }} + {{ item.tips }} + - {{ currency_symbol }}{{ group.order_base.total_price }} {{ currency_symbol }}{{ group.order_base.actual_price }} @@ -128,16 +134,13 @@ {{$t('buy.buy.4di4i2')}} - - -{{ currency_symbol }}{{ plugins_points_data.discount_price }} - - - - - - - - + + + -{{ currency_symbol }}{{ plugins_points_data.discount_price }} + + + + {{$t('buy.buy.q800ri')}}{{ plugins_points_data.user_integral }}{{$t('buy.buy.w96878')}} @@ -313,7 +316,6 @@ user_note_value: '', user_note_status: false, is_first: 1, - extension_data: [], common_site_type: 0, extraction_address: [], site_model: 0, @@ -531,13 +533,28 @@ disabled: temp_dt.disabled || '', // 未选择错误提示 error_msg: temp_dt.error_msg || this.$t('buy.buy.q8u066'), - }; + }; + + // 商品数据处理 + var goods_list = data.goods_list; + for(var i in goods_list) { + // 扩展数据处理, + var temp_extension_data = []; + if((goods_list[i]['order_base'] || null) != null && (goods_list[i]['order_base']['extension_data'] || null) != null) { + var temp_ext = goods_list[i]['order_base']['extension_data']; + for(var t in temp_ext) { + if(temp_ext[t]['is_buy_show'] == undefined || temp_ext[t]['is_buy_show'] == 1) { + temp_extension_data.push(temp_ext[t]); + } + } + } + goods_list[i]['order_base']['extension_data'] = temp_extension_data; + } // 设置数据 this.setData({ - goods_list: data.goods_list, + goods_list: goods_list, total_price: data.base.actual_price, - extension_data: data.extension_data || [], data_list_loding_status: 3, common_site_type: data.common_site_type || 0, extraction_address: data.base.extraction_address || [], diff --git a/pages/goods-detail/goods-detail.vue b/pages/goods-detail/goods-detail.vue index 34c0b399..e50fe5eb 100644 --- a/pages/goods-detail/goods-detail.vue +++ b/pages/goods-detail/goods-detail.vue @@ -71,9 +71,7 @@ - {{ - lv.name - }} + {{ lv.name }} @@ -88,14 +86,15 @@ {{ show_field_price_text }} - {{ currency_symbol }}{{ goods_spec_base_price }} + {{ goods.show_price_symbol }}{{ goods_spec_base_price }} + {{ goods.show_price_unit }} - {{ currency_symbol }}{{ goods_spec_base_original_price }} + {{ goods.show_original_price_symbol }}{{ goods_spec_base_original_price }}{{ goods.show_original_price_unit }} - - {{ goods.plugins_points_data.points_value }} - {{goods.plugins_points_data.points_value_last_unit}} + + {{ goods.plugins_points_data.points_value }} + {{goods.plugins_points_data.points_unit}} diff --git a/pages/plugins/binding/detail/detail.vue b/pages/plugins/binding/detail/detail.vue index 49f5da85..c7dcd896 100644 --- a/pages/plugins/binding/detail/detail.vue +++ b/pages/plugins/binding/detail/detail.vue @@ -19,9 +19,12 @@ - - {{ currency_symbol }} - {{ item.price }} + + + {{ item.show_price_symbol }} + {{ item.price }} + + {{ item.show_price_unit }} {{$t('detail.detail.6026t4')}}{{ currency_symbol }} {{ item.discount_price }} diff --git a/pages/plugins/points/index/index.vue b/pages/plugins/points/index/index.vue index 3883181c..1e85ece4 100644 --- a/pages/plugins/points/index/index.vue +++ b/pages/plugins/points/index/index.vue @@ -29,8 +29,7 @@ {{ user.user_name_view }} - {{$t('index.index.b46kge')}} + {{$t('index.index.b46kge')}} {{ user_integral.integral || 0 }} {{$t('index.index.t26j9z')}} @@ -69,7 +68,7 @@ - +