tianyi 4 weeks ago
parent
commit
3b05229728
  1. 23
      components/tab-bar/myCenter.vue

23
components/tab-bar/myCenter.vue

@ -1,10 +1,11 @@
<template>
<view class="page1">
<view>22222222</view>
<view style="margin-top: 100px;" @click="navigatorTo('merchant')">商家入驻</view>
<view style="margin-top: 100px;" @click="navigatorTo('merchantCenter')">商家中心-{{shopCounts}}</view>
<view style="margin-top: 100px;" @click="navigatorTo('jianzhizhuce')">兼职注册</view>
<view style="margin-top: 100px;" v-if="worker" @click="navigatorTo('jianzhizhuye')">兼职主页-{{workerCounts}}</view>
<view style="margin-top: 80px;" @click="navigatorTo('merchant')">商家入驻</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;" v-if="worker" @click="navigatorTo('jianzhizhuye')">兼职主页</view>
<view style="margin-top: 80px;" @click="navigatorTo('jianzhichaping','cha')">兼职差评-{{workerCounts}}</view>
<view style="margin-top: 80px;" @click="navigatorTo('jianzhichaping','')">兼职查看评价</view>
<!-- 未注册兼职弹窗 -->
<uni-popup ref="jianzhiPopup" background-color="rgba(2, 171, 255, 1)" borderRadius="40px 40px 40px 40px">
<view class="jianzhi-content" @tap="navigatorTo('partTimeReg')">
@ -109,7 +110,7 @@
url: '/package2/shop/merchantCenter'
})
},
navigatorTo(e){
navigatorTo(e,index){
let url = ""
if(e=='addgoods'){
url = '/package1/myCenter/addGoods'
@ -131,9 +132,15 @@
}else if(e=='addType'){
url = '/package1/myCenter/addType'
}else if(e=='goodsList'){
url = '/package1/myCenter/goodsList'
url = '/package1/myCenter/goodsList'
}else if(e=='merchant'){
url = '/package2/shop/merchantRegister'
}else if(e=='jianzhichaping'){
let item = {
shopScore:uni.getStorageSync('worker').score,
id:uni.getStorageSync('worker').workerId
}
url = '/package1/group/shopEvaluate?item=' + JSON.stringify(item) + '&isMerchant=2&isCha=' + (index =='cha'?1:0)
}else if(e == 'partTimeReg'){
let worker = uni.getStorageSync('worker')
let that = this
@ -168,7 +175,7 @@
return
}
}else if(e=='jianzhizhuye'){
url = '/package2/partTimeJob/partTimeJobCenter?type=worker'
url = '/package2/partTimeJob/partTimeJobCenter'
}
uni.navigateTo({
url: url

Loading…
Cancel
Save