From 6cb6b9806701e77456ba3d82477afab3e600367e Mon Sep 17 00:00:00 2001 From: Double-_-Z <2492419643@qq.com> Date: Fri, 7 Feb 2025 18:25:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=8D=E6=9B=B4=E6=96=B0=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E5=85=BC=E5=AE=B9=E8=B0=83=E8=8A=82=EF=BC=8C=E5=89=A9?= =?UTF-8?q?=E4=B8=8B=E4=B8=BB=E8=A6=81=E6=98=AF=E7=80=91=E5=B8=83=E6=B5=81?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E4=BA=A4=E4=BA=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/mobile_web/home/home.vue | 28 ++++++ pages/mobile_web/index/index.vue | 17 +++- pages/mobile_web/wall/detail.vue | 155 +++++++++++++++++++++++++++++-- pages/mobile_web/work/work.vue | 34 ++++++- 4 files changed, 221 insertions(+), 13 deletions(-) diff --git a/pages/mobile_web/home/home.vue b/pages/mobile_web/home/home.vue index 5d94df0..035be45 100644 --- a/pages/mobile_web/home/home.vue +++ b/pages/mobile_web/home/home.vue @@ -80,9 +80,19 @@ :image="item.path"> {{ item.serviceName || '暂无' }} + + + + + + + + + + 做同款 @@ -95,9 +105,19 @@ :image="item.path"> {{ item.serviceName || '暂无' }} + + + + + + + + + + 做同款 @@ -259,12 +279,20 @@ export default { this.workList = result.map((item)=>{ let nowResult = {...item,path: that.getWorkPath(item.path)}; if(nowResult.sourcePath) nowResult.sourcePath = that.getWorkPath(item.sourcePath); + // #ifdef MP + nowResult.magicWand = that.fileUrl+that.magicWand; + nowResult.signIcon = that.fileUrl+that.sign; + // #endif return nowResult; }); }else{ this.workList.push(...result.map((item)=>{ let nowResult = {...item,path: that.getWorkPath(item.path)}; if(nowResult.sourcePath) nowResult.sourcePath = that.getWorkPath(item.sourcePath); + // #ifdef MP + nowResult.magicWand = that.fileUrl+that.magicWand; + nowResult.signIcon = that.fileUrl+that.sign; + // #endif return nowResult; })); } diff --git a/pages/mobile_web/index/index.vue b/pages/mobile_web/index/index.vue index 41910b7..84e62c4 100644 --- a/pages/mobile_web/index/index.vue +++ b/pages/mobile_web/index/index.vue @@ -75,8 +75,8 @@ export default { // #endif this.scrollTop = e.scrollTop; }, - - onShow(){ + // #ifdef MP + onLoad(){ let index = uni.getStorageSync('current'); this.current = index?index:0; this.isLogin = this.$store.state.vuex_token; @@ -84,6 +84,19 @@ export default { uni.pageScrollTo({scrollTop: 0}); } this.changeCurrent(this.current); + }, + // #endif + onShow(){ + // 小程序不要刷新 + // #ifndef MP + let index = uni.getStorageSync('current'); + this.current = index?index:0; + this.isLogin = this.$store.state.vuex_token; + if(this.current === 1){ + uni.pageScrollTo({scrollTop: 0}); + } + this.changeCurrent(this.current); + // #endif // #ifndef H5 }, // #endif diff --git a/pages/mobile_web/wall/detail.vue b/pages/mobile_web/wall/detail.vue index b6f51c2..db5d04e 100644 --- a/pages/mobile_web/wall/detail.vue +++ b/pages/mobile_web/wall/detail.vue @@ -41,16 +41,26 @@