| | |
| | | export default { |
| | | components: { sunuiMverify }, |
| | | computed: { |
| | | ...mapState(['navHeight', 'statusbarHeight']) |
| | | ...mapState(['navHeight', 'statusbarHeight','userInfo','token','openid']) |
| | | }, |
| | | onShow(options){ |
| | | this.type = 0 |
| | | if(this.token &&this.token!='' && this.userInfo && JSON.stringify(this.userInfo) != '{}'){ |
| | | this.isLogin=true |
| | | } |
| | | if (this.userInfo && this.userInfo.useIdentity == 1) { |
| | | this.type =1 |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | isLogin: false, |
| | | typeId: 1, |
| | | typeWorkId: 1, |
| | | carId: 1, |
| | |
| | | { name: '小货车', id: 2 } |
| | | ], |
| | | btn: require('@/static/image/btn.png'), |
| | | type: 1 |
| | | type: 0 |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | this.carId = e |
| | | }, |
| | | jump() { |
| | | console.log(this.userInfo,this.token,this.openid) |
| | | if(!this.userInfo ||!this.token ){ |
| | | uni.navigateTo({ |
| | | url: '/pages/login/login' |
| | | }) |
| | | } |
| | | if (this.typeId === 1) { |
| | | uni.navigateTo({ |
| | | url: '/pages/using-workers/using-workers' |