From a863748a1b5cae47a48a6fd0172ab2fe8db27e26 Mon Sep 17 00:00:00 2001 From: chen <2659004835@qq.com> Date: Fri, 20 May 2022 11:22:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=A6=96=E9=A1=B5=E3=80=81?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E9=A1=B5=E5=88=86=E4=BA=AB=E3=80=81=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=BC=9A=E5=91=98=E4=BB=B7=E9=A2=9C=E8=89=B2=E3=80=81?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=86=E7=B1=BB=E5=88=97=E8=A1=A8=E6=A0=B7?= =?UTF-8?q?=E5=BC=8Fbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 1 + component/pageHead.vue | 13 +++-- pages/classify/classify.vue | 36 +++++++------ pages/commodity/commodity.vue | 95 ++++++++++++++++++----------------- pages/index/index.vue | 17 ++++--- 5 files changed, 86 insertions(+), 76 deletions(-) diff --git a/App.vue b/App.vue index 21622b4..ac80fbe 100644 --- a/App.vue +++ b/App.vue @@ -19,5 +19,6 @@ min-height: 100vh; background-color: #f5f5f5; } + .colorff0{color: #FF0000;} /*每个页面公共css */ diff --git a/component/pageHead.vue b/component/pageHead.vue index 86771ef..9fd08cb 100644 --- a/component/pageHead.vue +++ b/component/pageHead.vue @@ -70,16 +70,21 @@ this.customBar=customBar+100+"rpx" - - console.log( this.customBar) uni.setStorageSync('customBar',customBar+100); - } }) }, methods: { navigateBackFun(){ - uni.navigateBack() + // uni.navigateBack() + uni.navigateBack({ + delta:1, + success: (res) => {},fail: (err) => { + uni.reLaunch({ + url:'/pages/index/index' + }) + } + }) }, diff --git a/pages/classify/classify.vue b/pages/classify/classify.vue index ef5e647..8f8952e 100644 --- a/pages/classify/classify.vue +++ b/pages/classify/classify.vue @@ -12,14 +12,11 @@ - - - {{item.title}} - - - - + + + {{item.title}} + + @@ -39,7 +36,7 @@ - 会员价:¥{{item.vip_price}} + 会员价:¥{{item.vip_price}} @@ -74,7 +71,8 @@ is_home: 0, }, ifMember:false, - ifMemberPrice:false + ifMemberPrice:false, + windowWidth:uni.getSystemInfoSync().screenWidth - 80 } }, onLoad() { @@ -204,7 +202,13 @@