| | |
| | | <view class="info-box-head" > |
| | | <view class="info-box-head-image" @click="jump(isLogin?1:5)"> |
| | | <image v-if="userInfo.fullCoverImage&&userInfo.fullCoverImage !=''" :src="userInfo.fullCoverImage" mode="widthFix"></image> |
| | | <image v-else src="/static/logo.png" mode="widthFix"></image> |
| | | <image v-else src="/static/icon/img@2x.png" mode="widthFix"></image> |
| | | </view> |
| | | <view class="info-box-head-info" v-if="isLogin"> |
| | | <view class="info-box-head-info-name" @click="jump(1)">{{userInfo.nickName||'匿名'}}</view> |
| | |
| | | </view> |
| | | <view class="info-box-label">账户余额</view> |
| | | <view class="info-box-price"> |
| | | <text>¥{{isLogin?(userInfo.amount || 0) :0.00}}</text> |
| | | <view class="info-box-price-btn" @click="jump(6)">去提现</view> |
| | | <text>¥{{isLogin?((userInfo.amount|| 0)/100).toFixed(2) :0.00}}</text> |
| | | <view class="info-box-price-btn" @click="jump(isLogin?6:5)">去提现</view> |
| | | </view> |
| | | </view> |
| | | </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; |
| | | } |
| | |
| | | console.log(222,res) |
| | | if(res.code ===200){ |
| | | that.userInfo.useIdentity = param.useIdentity |
| | | that.$store.commit('setUserInfo', that.userInfo) |
| | | uni.$emit('refresh') |
| | | } |
| | | }).finally(() => { |
| | | that.changing1 = false |