From 6d1bcc421cebfc893f61357389e8c3f377b58a35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=9D=E5=86=9B=E5=8D=8E?= Date: Sun, 16 Mar 2025 22:51:13 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=90=9C=E7=B4=A2=E9=A1=B5?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- order/orderConfirm/orderConfirm.vue | 12 +- order/orderConfirm/style.scss | 2 +- pages.json | 16 ++ pages/cart/cart.vue | 11 +- pages/cart/style.scss | 26 ++- pages/index/index.vue | 13 +- pages/index/style.scss | 8 +- pages/user/style.scss | 4 +- userserve/SearchList/SearchList.vue | 194 ++++++++++++++++++++++ userserve/SearchList/style.scss | 194 ++++++++++++++++++++++ userserve/SearchProduct/SearchProduct.vue | 135 +++++++++++++++ userserve/SearchProduct/style.scss | 86 ++++++++++ userserve/addressEdit/style.scss | 2 +- userserve/addressList/style.scss | 6 +- userserve/location/style.scss | 8 +- 15 files changed, 682 insertions(+), 35 deletions(-) create mode 100644 userserve/SearchList/SearchList.vue create mode 100644 userserve/SearchList/style.scss create mode 100644 userserve/SearchProduct/SearchProduct.vue create mode 100644 userserve/SearchProduct/style.scss diff --git a/order/orderConfirm/orderConfirm.vue b/order/orderConfirm/orderConfirm.vue index a0988af..90da254 100644 --- a/order/orderConfirm/orderConfirm.vue +++ b/order/orderConfirm/orderConfirm.vue @@ -91,7 +91,7 @@ 订单备注 - + @@ -191,6 +191,15 @@ const show = ref(false); const timList = ref([]); //使用pinia:storeToRefs方法包裹(保持响应式更新,不使用视图无法更新) //const { count,doubleCount } = storeToRefs(counterStore); +const isIos = ref(false); +const System = () =>{ + const phone = wx.getSystemInfoSync(); + if (phone.platform == 'ios') { + isIos.value = true + } else if (phone.platform == 'android') { + isIos.value = false + } +}; const OpenShop = ()=>{ shopShow.value ? shopPopup.value.close():shopPopup.value.open(); }; @@ -246,6 +255,7 @@ const onAddress=()=>{ }) }; onLoad((options) => { + System(); timeFun(); }); onShow(() => { diff --git a/order/orderConfirm/style.scss b/order/orderConfirm/style.scss index b3f5a85..63a809c 100644 --- a/order/orderConfirm/style.scss +++ b/order/orderConfirm/style.scss @@ -28,7 +28,7 @@ page{ color: #000000; .cont_default{ font-size: 20rpx; - background-color: #FFF4CD; + background-color: rgba(249, 212, 72, 0.2); border-radius: 10rpx; color: #F9D448; margin-right: 10rpx; diff --git a/pages.json b/pages.json index 2e5eb6d..fcb66f5 100644 --- a/pages.json +++ b/pages.json @@ -178,6 +178,22 @@ "navigationBarBackgroundColor": "#FFFFFF" } }, + { + "path": "SearchProduct/SearchProduct", + "style": { + "navigationBarTitleText": "", + "navigationBarBackgroundColor": "#FFFFFF", + "navigationStyle": "custom" + } + }, + { + "path": "SearchList/SearchList", + "style": { + "navigationBarTitleText": "", + "navigationBarBackgroundColor": "#FFFFFF", + "navigationStyle": "custom" + } + }, { "path": "addressList/addressList", "style": { diff --git a/pages/cart/cart.vue b/pages/cart/cart.vue index 54eace0..0a92bf9 100644 --- a/pages/cart/cart.vue +++ b/pages/cart/cart.vue @@ -2,16 +2,16 @@ - - 东方体育中心 + + 人间都汇·汤泉养生 购物车 我常买 - 优惠券(3) - {{showEdit?'退出管理':'管理'}} + 优惠券(3) + {{showEdit?'退出管理':'管理'}} @@ -31,7 +31,7 @@ - {{item.title}} + {{item.title}} {{item.desc}} {{item.price}}59.9 @@ -506,6 +506,5 @@ onReachBottom(()=>{ margin-bottom: 20rpx !important; border-radius: 25rpx !important; background-color: #fff !important; - box-shadow: 0 4rpx 8rpx rgba(0,0,0,.05) !important; } \ No newline at end of file diff --git a/pages/cart/style.scss b/pages/cart/style.scss index 555b930..a2af68f 100644 --- a/pages/cart/style.scss +++ b/pages/cart/style.scss @@ -31,7 +31,7 @@ page{ height: 21px; background-image: url('../../static/location.png'); background-size: cover; - margin: 0px 2px 0px 10px; + margin: 0px 1px 0px 10px; } .head_location::after{ vertical-align: middle; @@ -42,8 +42,8 @@ page{ border-left: 10rpx solid transparent; border-right: 10rpx solid transparent; border-top: 11rpx solid #FFFFFF; - margin-left: 3px; - margin-top: 1.5px; + margin-left: 1.5px; + margin-top: 0.8px; } .head_location_active{ .location_title{ @@ -74,7 +74,7 @@ page{ } .head_w{ color: #333333; - font-size: 30rpx; + font-size: 28rpx; padding-left: 15px; padding-right: 15px; } @@ -116,6 +116,7 @@ page{ // box-shadow: 0rpx 4rpx 8rpx 0rpx rgba(0, 0, 0, 0.05); display: flex; justify-content: space-between; + align-items: center; padding: 20rpx 0rpx 20rpx 0rpx; .cart_selected{ width: 50rpx; @@ -161,12 +162,21 @@ page{ } } .cart_shop_cont{ - width: 410rpx; + width: 390rpx; + padding-right: 20rpx; .cart_title{ - font-size: 28rpx; + font-size: 27rpx; color: #333333; font-weight: 500; - min-height: 85rpx; + .cart_text{ + min-height: 65rpx; + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + word-break: break-all; + } } .cart_desc{ font-size: 24rpx; @@ -617,7 +627,6 @@ page{ font-weight: 400; } .cart_bottom{ - margin-top: 20rpx; display: flex; align-items: center; justify-content: space-between; @@ -629,7 +638,6 @@ page{ .cart_counter{ display: flex; align-items: center; - margin-right: 20rpx; .cart_counter_btn{ width: 55rpx; height: 50rpx; diff --git a/pages/index/index.vue b/pages/index/index.vue index d776359..313aec7 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,11 +1,11 @@