|
|
@ -4,7 +4,7 @@ |
|
|
<view style="margin-top: 80px;" @click="navigatorTo('merchantCenter')">商家中心-{{shopCounts}}</view> |
|
|
<view style="margin-top: 80px;" @click="navigatorTo('merchantCenter')">商家中心-{{shopCounts}}</view> |
|
|
<view style="margin-top: 80px;" @click="navigatorTo('jianzhizhuce')">兼职注册</view> |
|
|
<view style="margin-top: 80px;" @click="navigatorTo('jianzhizhuce')">兼职注册</view> |
|
|
<view style="margin-top: 80px;" v-if="worker" @click="navigatorTo('jianzhizhuye')">兼职主页-{{workerCounts}}</view> |
|
|
<view style="margin-top: 80px;" v-if="worker" @click="navigatorTo('jianzhizhuye')">兼职主页-{{workerCounts}}</view> |
|
|
<view style="margin-top: 80px;" @click="navigatorTo('qianbao')">钱包余额-{{balance}}</view> |
|
|
<view style="margin-top: 80px;" @click="navigatorTo('qianbao')">钱包余额 ¥{{balance}}</view> |
|
|
<view style="margin-top: 80px;" @click="navigatorTo('dingdan')">我的订单</view> |
|
|
<view style="margin-top: 80px;" @click="navigatorTo('dingdan')">我的订单</view> |
|
|
<!-- 未注册兼职弹窗 --> |
|
|
<!-- 未注册兼职弹窗 --> |
|
|
<uni-popup ref="jianzhiPopup" background-color="rgba(2, 171, 255, 1)" borderRadius="40px 40px 40px 40px"> |
|
|
<uni-popup ref="jianzhiPopup" background-color="rgba(2, 171, 255, 1)" borderRadius="40px 40px 40px 40px"> |
|
|
@ -50,7 +50,6 @@ |
|
|
init(){ |
|
|
init(){ |
|
|
|
|
|
|
|
|
this.schoolShop = uni.getStorageSync('schoolShop') |
|
|
this.schoolShop = uni.getStorageSync('schoolShop') |
|
|
console.log("我的初始化",this.schoolShop) |
|
|
|
|
|
this.worker = uni.getStorageSync('worker') |
|
|
this.worker = uni.getStorageSync('worker') |
|
|
let shopId = uni.getStorageSync('shopId') |
|
|
let shopId = uni.getStorageSync('shopId') |
|
|
let worker = uni.getStorageSync('worker') |
|
|
let worker = uni.getStorageSync('worker') |
|
|
@ -151,7 +150,6 @@ |
|
|
}else if(e == 'partTimeReg'){ |
|
|
}else if(e == 'partTimeReg'){ |
|
|
let worker = uni.getStorageSync('worker') |
|
|
let worker = uni.getStorageSync('worker') |
|
|
let that = this |
|
|
let that = this |
|
|
console.log("111",worker) |
|
|
|
|
|
//当前人不是配送员身份 |
|
|
//当前人不是配送员身份 |
|
|
if(worker == undefined || worker == '' || worker == null){ |
|
|
if(worker == undefined || worker == '' || worker == null){ |
|
|
that.tui.request("/worker/admin/add", "POST", {userId:uni.getStorageSync('id'),isChangeArea:1,region:JSON.parse(uni.getStorageSync('area')).id}, false, true).then((res) => { |
|
|
that.tui.request("/worker/admin/add", "POST", {userId:uni.getStorageSync('id'),isChangeArea:1,region:JSON.parse(uni.getStorageSync('area')).id}, false, true).then((res) => { |
|
|
|