付延余
2022-07-26 7c3218e12105b87cab21e9ced57c99c339ffac10
components/common/popup-menu/popup-menu.vue
@@ -7,23 +7,40 @@
                isLink
                url="/pages/home/home" style="color:blue"
            >
            <image src="@/static/menuIcon/menu-home.png" slot="icon" size="32" name="search"/></u-cell>
               <image src="@/static/menuIcon/menu-home.png" slot="icon" size="32" name="search"/>
            </u-cell>
            <u-cell
                v-if="$store.state.shenqingMenu"
               v-cloak
                title="我的申请"
                isLink
                url="/pages/my-application/my-application"
            >
            <image src="@/static/menuIcon/menu-application.png" slot="icon" size="32" name="search"/></u-cell></u-cell>
                 <image src="@/static/menuIcon/menu-application.png" slot="icon" size="32" name="search"/>
            </u-cell>
            <u-cell
                title="我的待办"
                isLink
                url="/pages/my-todo/my-todo"
            >            <image src="@/static/menuIcon/menu-todo.png" slot="icon" size="32" name="search"/></u-cell></u-cell>
            >
                <image src="@/static/menuIcon/menu-todo.png" slot="icon" size="32" name="search"/>
            </u-cell>
            <u-cell
                title="我的已办"
                isLink
                url="/pages/my-have-todo/my-have-todo"
            >            <image src="@/static/menuIcon/menu-havedo.png" slot="icon" size="32" name="search"/></u-cell></u-cell>
            >
                <image src="@/static/menuIcon/menu-havedo.png" slot="icon" size="32" name="search"/>
            </u-cell>
            <u-cell
               v-if="$store.state.rijihuaMenu"
               v-cloak
                title="日发运计划"
                isLink
                url="/pages/jihua/jihua" style="color:blue"
            >
                <image src="@/static/menuIcon/menu-shipment.png" slot="icon" size="32" name="search"/>
            </u-cell>
         </u-cell-group>
         <u-button text="退出" type="primary" @click="menuPopupClick"></u-button>
      </u-popup>
@@ -51,13 +68,16 @@
         menuShow:false
      };
   },
   onShow() {
      alert(111);
   },
   methods: {
      menuClick(){
         this.menuShow = !this.menuShow
         this.$emit('menuShow',this.menuShow)
      },
      open() {
         console.log('open');
         console.log(this.$store.state,'shenqingMenu====')
      },
      close() {
         this.menuShow = false;
@@ -65,7 +85,22 @@
      },
      menuPopupClick(){
         this.menuShow = false;
         redirectLogin();
         uni.request({
            url:'/auth/token/logout',
            method:'DELETE',
            header:{
               'TENANT-ID': 5,
               Authorization: 'Bearer ' + uni.getStorageSync('access_token'),
               VERSION: 'zzl'
            }
         }).then(res=>{
          redirectLogin();
         }).catch(err=>{
            uni.showToast({
               title:'退出失败!',
            })
         })
      }
   }
};