From 6d51fc93c5ea5e8a68eb8030c85a63bd7a83db71 Mon Sep 17 00:00:00 2001 From: syt <854400391@qq.com> Date: Mon, 30 Sep 2024 13:57:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E7=BA=BF=E4=BA=BA=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/face/face.vue | 28 +++++++++++++++++++--------- pages/index/index.vue | 20 ++++++++++++++++---- pages/mendainlist/mendainlist.vue | 19 +++++++++++++++---- pages/order/order.vue | 4 ++-- pages/user/index.vue | 8 ++++++-- static/zaixian.png | Bin 0 -> 3549 bytes 6 files changed, 58 insertions(+), 21 deletions(-) create mode 100644 static/zaixian.png diff --git a/pages/face/face.vue b/pages/face/face.vue index 5314cc7..17a88f0 100644 --- a/pages/face/face.vue +++ b/pages/face/face.vue @@ -45,11 +45,13 @@ path: "", yrenlianlist:[], jqrllist:[], - userxixin:{} + userxixin:{}, + type: "" } }, - onLoad() { + onLoad(o) { this.top = uni.getSystemInfoSync().statusBarHeight + this.type = o.type this.memberInfo() }, methods: { @@ -74,7 +76,7 @@ qudbtn(){ // this.$refs.popup.close('center') // var tjlist=[...this.yrenlianlist,...this.jqrllist] - + const that = this; uni.uploadFile({ url: that.ymurl+'/api/uploadFile', filePath: that.path, @@ -98,9 +100,13 @@ }); setTimeout(function(){ - uni.switchTab({ - url:'/pages/user/index' - }) + if(that.type == 'order'){ + uni.navigateBack({delta:1}) + }else{ + uni.switchTab({ + url:'/pages/user/index' + }) + } },2000) } }) @@ -146,9 +152,13 @@ }); setTimeout(function(){ - uni.switchTab({ - url:'/pages/user/index' - }) + if(that.type == 'order'){ + uni.navigateBack({delta:1}) + }else{ + uni.switchTab({ + url:'/pages/user/index' + }) + } },2000) } }) diff --git a/pages/index/index.vue b/pages/index/index.vue index 92d9c10..bac5a0b 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -22,7 +22,9 @@ - {{item.name}} + {{item.name}} + {{item.one_line_num}}人 + @@ -105,7 +107,7 @@ console.log(res) }) }, - onReady() { + onShow() { this.viplist=[] this.cardList(1) // this.storeList(1) @@ -270,7 +272,7 @@ } } -