| | |
| | | </view> |
| | | <view class="statistics"> |
| | | <view class="statistics-box" v-if="!isLogin || userInfo.useIdentity !=1"> |
| | | <view class="statistics-item" > |
| | | <view class="statistics-item" @click="jumpOrderList('0')" > |
| | | <text>{{isLogin?(userInfo.userCenterVO.releaseTaskTotal||0):'-'}}</text> |
| | | <text>总发单数</text> |
| | | </view> |
| | | <view class="statistics-x"></view> |
| | | <view class="statistics-item"> |
| | | <view class="statistics-item" @click="jumpOrderList('1')" > |
| | | <text class="redtxt">{{isLogin?(userInfo.userCenterVO.waitReceiveTotal||0):'-'}}</text> |
| | | <text>待接单</text> |
| | | </view> |
| | | <view class="statistics-item"> |
| | | <view class="statistics-item" @click="jumpOrderList('2')" > |
| | | <text>{{isLogin?(userInfo.userCenterVO.doingTotal||0):'-'}}</text> |
| | | <text>进行中</text> |
| | | </view> |
| | | <view class="statistics-item"> |
| | | <view class="statistics-item" @click="jumpOrderList('3')" > |
| | | <text>{{isLogin?(userInfo.userCenterVO.waitCommentTotal||0):'-'}}</text> |
| | | <text>待评价</text> |
| | | </view> |
| | | </view> |
| | | <view class="statistics-box" v-else> |
| | | <view class="statistics-item" > |
| | | <view class="statistics-item" @click="jumpOrderList('4')" > |
| | | <text>{{isLogin?(userInfo.userCenterVO.receiveTotal||0):'-'}}</text> |
| | | <text>已接单</text> |
| | | </view> |
| | | <view class="statistics-x"></view> |
| | | <view class="statistics-item"> |
| | | <view class="statistics-item" @click="jumpOrderList('5')"> |
| | | <text>{{isLogin?(userInfo.userCenterVO.taskingTotal||0):'-'}}</text> |
| | | <text>进行中</text> |
| | | </view> |
| | | <view class="statistics-item"> |
| | | <view class="statistics-item" @click="jumpOrderList('6')"> |
| | | <text>{{isLogin?(userInfo.userCenterVO.doneTotal||0):'-'}}</text> |
| | | <text>已完成</text> |
| | | </view> |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | jumpOrderList(flag){ |
| | | const app = getApp(); |
| | | app.globalData.orderStatus = flag; |
| | | uni.switchTab({ |
| | | url: '/pages/demand-hall/demand-hall' |
| | | }) |
| | | }, |
| | | getUserInfo() { |
| | | var that = this; |
| | | this.$u.api.getMemberInfo({}).then(res =>{ |
| | |
| | | switch(type) { |
| | | case 1: |
| | | uni.navigateTo({ |
| | | url: '/pages/set-up/set-up' |
| | | url: '/packageA/pages/set-up/set-up' |
| | | }) |
| | | break; |
| | | case 2: |
| | | if(!this.userInfo.workerIdentity ||this.userInfo.workerIdentity ==0){ |
| | | uni.navigateTo({ |
| | | url: '/pages/employment-certification/employment-certification?flag=0' |
| | | url: '/packageA/pages/employment-certification/employment-certification?flag=0' |
| | | }) |
| | | }else{ |
| | | uni.navigateTo({ |
| | | url: '/pages/certification-results/certification-results?flag=0' |
| | | url: '/packageA/pages/certification-results/certification-results?flag=0' |
| | | }) |
| | | } |
| | | break; |
| | |
| | | case 3: |
| | | if(!this.userInfo.driverIdentity ||this.userInfo.driverIdentity ==0){ |
| | | uni.navigateTo({ |
| | | url: '/pages/employment-certification/employment-certification?flag=1' |
| | | url: '/packageA/pages/employment-certification/employment-certification?flag=1' |
| | | }) |
| | | }else{ |
| | | uni.navigateTo({ |
| | | url: '/pages/certification-results/certification-results?flag=1' |
| | | url: '/packageA/pages/certification-results/certification-results?flag=1' |
| | | }) |
| | | } |
| | | break; |
| | | case 4: |
| | | if(!this.userInfo.chefIdentity ||this.userInfo.chefIdentity ==0){ |
| | | uni.navigateTo({ |
| | | url: '/pages/employment-certification/employment-certification?flag=2' |
| | | url: '/packageA/pages/employment-certification/employment-certification?flag=2' |
| | | }) |
| | | }else{ |
| | | uni.navigateTo({ |
| | | url: '/pages/certification-results/certification-results?flag=2' |
| | | url: '/packageA/pages/certification-results/certification-results?flag=2' |
| | | }) |
| | | } |
| | | break; |
| | |
| | | break; |
| | | case 6: |
| | | uni.navigateTo({ |
| | | url: '/pages/withdrawal/withdrawal' |
| | | url: '/packageA/pages/withdrawal/withdrawal' |
| | | }) |
| | | break; |
| | | case 7: |
| | | uni.navigateTo({ |
| | | url: '/pages/certification-results/certification-results' |
| | | url: '/packageA/pages/certification-results/certification-results' |
| | | }) |
| | | break; |
| | | } |