From f636691cd7f37d52c9772d8a4c3de1dfc995cc21 Mon Sep 17 00:00:00 2001 From: ltlzx <942659938@qq.com> Date: Wed, 20 Jul 2022 17:54:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=83=A8=E5=88=86=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E3=80=81=E5=AF=B9=E6=8E=A5=E7=A1=AE=E8=AE=A4=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E4=BD=BF=E7=94=A8=E7=BA=A2=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/account/myOrders.vue | 375 +++++++++++++++++---------------- pages/account/myReview.vue | 20 +- pages/index/index.vue | 32 ++- pages/order/confirmation.vue | 27 ++- pages/productDetails/index.vue | 10 +- 5 files changed, 261 insertions(+), 203 deletions(-) diff --git a/pages/account/myOrders.vue b/pages/account/myOrders.vue index 7fa91b2..314681e 100644 --- a/pages/account/myOrders.vue +++ b/pages/account/myOrders.vue @@ -153,249 +153,259 @@ diff --git a/pages/index/index.vue b/pages/index/index.vue index ba3de95..8bb3238 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -69,25 +69,30 @@ - - + + + - + + - + + - + + - + + - + @@ -661,8 +666,12 @@ .hotSells1_item_img{ width: 100%; height: 266.67rpx; - background-color: #999999; + // background-color: #999999; margin-bottom: 23.33rpx; + image{ + width: 100%; + height: 100%; + } } } .hotSells2_item{ @@ -673,8 +682,13 @@ .hotSells2_item_img{ width: 100%; height: 224rpx; - background-color: #999999; + // background-color: #999999; margin-bottom: 25.33rpx; + + image{ + width: 100%; + height: 100%; + } } } } diff --git a/pages/order/confirmation.vue b/pages/order/confirmation.vue index 5a8d618..53c63a8 100644 --- a/pages/order/confirmation.vue +++ b/pages/order/confirmation.vue @@ -55,7 +55,7 @@ Coupons - -US$12.5 + -US${{total.bonus}} @@ -82,7 +82,7 @@ Discount : - -US${{total.discount || 0}} + -US${{total.bonus || 0}} @@ -124,20 +124,21 @@ - + - $20.00 + ${{item.type_money}} Min.spend $200.00 - All-purpose + {{item.type_name}} The tide zone is available 2022.09.23 10:37 - 2022.12.23 10:37 - - + + + @@ -223,7 +224,17 @@ } }, methods:{ - + // 使用红包 + useCoupons(id){ + let data={_action:'cartselectbonus',bonus:id,consignee:this.address} + defaultRequest3(data,'consignee').then(res=>{ + console.info(res) + if(res.error==0){ + this.total=res.data.total + this.order=res.data.order + } + }) + }, // 获取调用支付信息数据 getPayDate(id,will_get_integral){ let data={_action:'payorder',order_id:id,order_type:'GOODSBUY',payment_method:'alipay.native'} diff --git a/pages/productDetails/index.vue b/pages/productDetails/index.vue index 63b86bc..69209cd 100644 --- a/pages/productDetails/index.vue +++ b/pages/productDetails/index.vue @@ -172,7 +172,7 @@ - + Reviews({{goodsDate.comment_summary[0].commentcount}}) @@ -244,7 +244,7 @@ - US$314.00 + US${{goodsDate.is_promote==0? goodsDate.shop_price *cartQuery.goods_number:goodsDate.promote_price *cartQuery.goods_number}} @@ -382,6 +382,12 @@ } }, methods:{ + // 跳转到评论详情 + goReview(){ + uni.navigateTo({ + url:'../account/myReview?goods_id='+this.query.goods_id + }) + }, // 添加到购物车 addCart(){ if(this.goods_attr_list.length==0){