tianyi 2 weeks ago
parent
commit
76eb5852c3
  1. 11
      components/tab-bar/delivery.vue
  2. 4
      components/tab-bar/myCenter.vue
  3. 1
      components/tab-bar/postList.vue

11
components/tab-bar/delivery.vue

@ -462,7 +462,6 @@
if (worker == '' || worker == undefined || worker == null) {
this.tui.toast('您还没有注册兼职')
}
console.log("配送初始化")
this.menuButtonInfo = uni.getMenuButtonBoundingClientRect()
this.isOnLine = uni.getStorageSync('worker').isOnLine
if (uni.getStorageSync('area')) {
@ -482,7 +481,6 @@
type: 'gcj02',
isHighAccuracy: true,
success: (res) => {
console.log('位置', res)
that.latitude = res.latitude;
that.longitude = res.longitude;
@ -492,14 +490,10 @@
}, false, false, true).then((res) => {
}).catch((res) => {});
},
fail: (err) => {
console.log('获取位置失败', err);
}
});
},
onReachPage() {
console.log("11111")
if (this.searchForm.pageNum >= this.totalPages) return;
this.searchForm.pageNum++;
this.getDelivery();
@ -538,7 +532,6 @@
},
getDelivery() {
let that = this
console.log('1111', uni.getStorageSync('worker'))
this.tui.request("/mall/delivery/pagebyworker", "POST", this.searchForm, false, false).then((res) => {
that.loadStatus = 'nomore';
if (res.code == 200) {
@ -824,7 +817,6 @@
this.$forceUpdate()
},
ceshi(e) {
console.log("11111111", e)
if (e.detail.code) {
// code
this.tui.request("/social/wechat/getPhone", "POST", {
@ -837,9 +829,6 @@
}
})
} else {
//
console.log('用户取消授权');
}
}
}

4
components/tab-bar/myCenter.vue

@ -4,7 +4,7 @@
<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')">兼职主页-{{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>
<!-- 未注册兼职弹窗 -->
<uni-popup ref="jianzhiPopup" background-color="rgba(2, 171, 255, 1)" borderRadius="40px 40px 40px 40px">
@ -50,7 +50,6 @@
init(){
this.schoolShop = uni.getStorageSync('schoolShop')
console.log("我的初始化",this.schoolShop)
this.worker = uni.getStorageSync('worker')
let shopId = uni.getStorageSync('shopId')
let worker = uni.getStorageSync('worker')
@ -151,7 +150,6 @@
}else if(e == 'partTimeReg'){
let worker = uni.getStorageSync('worker')
let that = this
console.log("111",worker)
//
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) => {

1
components/tab-bar/postList.vue

@ -221,7 +221,6 @@
},
methods: {
init() {
console.log("配送初始化")
this.menuButtonInfo = uni.getMenuButtonBoundingClientRect()
this.$forceUpdate()
},

Loading…
Cancel
Save