| | |
| | | </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="paidan-label">接受系统自动派单</view> |
| | | <view class="paidan-right"> |
| | | <text>关闭</text> |
| | | <u-switch activeColor="#00BC12" v-model="autoReceiveStatus"></u-switch> |
| | | <u-switch activeColor="#00BC12" @change="updateMemberInfo" v-model="autoReceiveStatus"></u-switch> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | <text>收费标准</text> |
| | | <u-icon name="arrow-right" color="#111111" size="18"></u-icon> |
| | | </view> |
| | | <view class="list-hz-item" @click="jump(2)"> |
| | | <view class="list-hz-item" @click="jump(isLogin?2:5)"> |
| | | <text>工人赚钱</text> |
| | | <view class="list-hz-item-r"> |
| | | <text>可接用工订单</text> |
| | | <text v-if="userInfo.workerIdentity === 2">已认证</text> |
| | | <text class="orangetxt" v-else-if="userInfo.workerIdentity === 1">认证中</text> |
| | | <text class="redtxt" v-else-if="userInfo.workerIdentity === 3">认证失败</text> |
| | | <text v-else>可接用工订单</text> |
| | | <u-icon name="arrow-right" color="#111111" size="18"></u-icon> |
| | | </view> |
| | | </view> |
| | | <view class="list-hz-item" @click="jump(3)"> |
| | | <view class="list-hz-item" @click="jump(isLogin?3:5)"> |
| | | <text>司机赚钱</text> |
| | | <view class="list-hz-item-r"> |
| | | <text>可接用工订单</text> |
| | | <text v-if="userInfo.driverIdentity === 2">已认证</text> |
| | | <text class="orangetxt" v-else-if="userInfo.driverIdentity === 1">认证中</text> |
| | | <text class="redtxt" v-else-if="userInfo.driverIdentity === 3">认证失败</text> |
| | | <text v-else>可接运货订单</text> |
| | | <u-icon name="arrow-right" color="#111111" size="18"></u-icon> |
| | | </view> |
| | | </view> |
| | | <view class="list-hz-item" @click="jump(4)"> |
| | | <view class="list-hz-item" @click="jump(isLogin?4:5)"> |
| | | <text>我能供餐</text> |
| | | <view class="list-hz-item-r"> |
| | | <text>可接用工订单</text> |
| | | <text v-if="userInfo.chefIdentity === 2">已认证</text> |
| | | <text class="orangetxt" v-else-if="userInfo.chefIdentity === 1">认证中</text> |
| | | <text class="redtxt" v-else-if="userInfo.chefIdentity === 3">认证失败</text> |
| | | <text v-else>可接用餐订单</text> |
| | | <u-icon name="arrow-right" color="#111111" size="18"></u-icon> |
| | | </view> |
| | | </view> |
| | |
| | | this.isLogin=false |
| | | this.autoReceiveStatus=false; |
| | | this.useIdentity =0 |
| | | |
| | | if(this.token &&this.token!='' && this.userInfo && JSON.stringify(this.userInfo) != '{}'){ |
| | | this.isLogin=true |
| | | this.getUserInfo() |
| | |
| | | }, |
| | | jumpService(flag) { |
| | | uni.navigateTo({ |
| | | url: '/pages/withdrawal/withdrawal' |
| | | url: '/pages/rich-text-page/rich-text-page?flag='+flag |
| | | }) |
| | | }, |
| | | jump(type) { |
| | |
| | | }) |
| | | break; |
| | | case 2: |
| | | if(!this.userInfo.workerIdentity ||this.userInfo.workerIdentity ==0){ |
| | | uni.navigateTo({ |
| | | url: '/pages/employment-certification/employment-certification' |
| | | url: '/pages/employment-certification/employment-certification?flag=0' |
| | | }) |
| | | }else{ |
| | | uni.navigateTo({ |
| | | url: '/pages/certification-results/certification-results?flag=0' |
| | | }) |
| | | } |
| | | break; |
| | | break; |
| | | case 3: |
| | | if(!this.userInfo.driverIdentity ||this.userInfo.driverIdentity ==0){ |
| | | uni.navigateTo({ |
| | | url: '/pages/freight-certification/freight-certification' |
| | | url: '/pages/employment-certification/employment-certification?flag=1' |
| | | }) |
| | | }else{ |
| | | uni.navigateTo({ |
| | | url: '/pages/certification-results/certification-results?flag=1' |
| | | }) |
| | | } |
| | | break; |
| | | case 4: |
| | | if(!this.userInfo.chefIdentity ||this.userInfo.chefIdentity ==0){ |
| | | uni.navigateTo({ |
| | | url: '/pages/catering-certification/catering-certification' |
| | | url: '/pages/employment-certification/employment-certification?flag=2' |
| | | }) |
| | | |
| | | }else{ |
| | | uni.navigateTo({ |
| | | url: '/pages/certification-results/certification-results?flag=2' |
| | | }) |
| | | } |
| | | break; |
| | | case 5: |
| | | uni.navigateTo({ |
| | | url: '/pages/login/login' |
| | | }) |
| | | break; |
| | | |
| | | case 6: |
| | | uni.navigateTo({ |
| | | url: '/pages/withdrawal/withdrawal' |
| | | }) |
| | | break; |
| | | case 7: |
| | | uni.navigateTo({ |
| | | url: '/pages/certification-results/certification-results' |
| | | }) |
| | | break; |
| | | } |
| | |
| | | console.log(222,res) |
| | | if(res.code ===200){ |
| | | that.userInfo.useIdentity = param.useIdentity |
| | | uni.$emit('refresh') |
| | | } |
| | | }).finally(() => { |
| | | that.changing1 = false |
| | | }) |
| | | } , |
| | | updateMemberInfo() { |
| | | updateMemberInfo(e) { |
| | | if(this.changing){ |
| | | return |
| | | } |
| | |
| | | .list { |
| | | width: 100%; |
| | | padding: 0 30rpx; |
| | | padding-bottom: 30px; |
| | | box-sizing: border-box; |
| | | .list-hz { |
| | | width: 100%; |
| | |
| | | color: #5BBE38; |
| | | margin-top: 80rpx; |
| | | border: 1rpx solid #15CF52; |
| | | bottom: 50px; |
| | | } |
| | | .bluetxt{ |
| | | color:blue !important ; |
| | | } |
| | | .redtxt{ |
| | | color:#FF0000 !important ; |
| | | } |
| | | .orangetxt{ |
| | | color: #FF7200 !important ; |
| | | } |
| | | </style> |