| | |
| | | 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> |
| | |
| | | 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; |
| | |
| | | }, |
| | | 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:'退出失败!', |
| | | }) |
| | | }) |
| | | } |
| | | } |
| | | }; |