From 79745a1b12fa6d69edd3a353cb11b8ae02b8d4aa Mon Sep 17 00:00:00 2001 From: zhangwei <1504152376@qq.com> Date: 星期一, 26 八月 2024 17:16:53 +0800 Subject: [PATCH] 投递与确认 --- src/pages/mine/index.vue | 23 ++++++++++++++++++----- 1 files changed, 18 insertions(+), 5 deletions(-) diff --git a/src/pages/mine/index.vue b/src/pages/mine/index.vue index 422e527..62c8609 100644 --- a/src/pages/mine/index.vue +++ b/src/pages/mine/index.vue @@ -41,7 +41,7 @@ 鑱屼綅绠$悊 </view> </view> - <view class="tool_item" @click="toPage('/otherPages/member/sendCompany/sendCompany')"> + <view class="tool_item" @click="toEnterprise"> <image src="@/static/image/qiye.png" mode="aspectFit" class="item_img"></image> <view class="tool_label"> 鎴戠殑浼佷笟 @@ -216,7 +216,9 @@ }, onShow: function() { this.resourceBanner(); - this.isLogin = true; + + this.token = this.$db.get('userToken') ? this.$db.get('userToken') : '' + this.isLogin = this.token?true:false; }, onShareAppMessage: function() { return { @@ -227,9 +229,15 @@ }, methods: { tologin() { - uni.navigateTo({ - url: '/pages/login/index' - }) + if(this.isLogin){ + uni.navigateTo({ + url: '/pages/mine/mine' + }) + }else{ + uni.navigateTo({ + url: '/pages/login/index' + }) + } }, toOrder() { uni.navigateTo({ @@ -241,6 +249,11 @@ url: '/pages/release/index' }) }, + toEnterprise(){ + uni.navigateTo({ + url: '/pages/enterprise/index' + }) + }, checkToken: function(t) {}, loginOutInit: function() {}, -- Gitblit v1.9.1