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

1
components/tab-bar/postList.vue

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

Loading…
Cancel
Save