zhangwei
2024-08-26 79745a1b12fa6d69edd3a353cb11b8ae02b8d4aa
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() {},