wangfukang 2 days ago
parent
commit
5039387160
  1. 6
      components/tab-bar/delivery.vue
  2. 3
      components/tab-bar/myCenter.vue

6
components/tab-bar/delivery.vue

@ -383,7 +383,10 @@
this.isOnLine = uni.getStorageSync('worker').isOnLine this.isOnLine = uni.getStorageSync('worker').isOnLine
if(uni.getStorageSync('area')){ if(uni.getStorageSync('area')){
this.searchForm.regionId = JSON.parse(uni.getStorageSync('area')).id; this.searchForm.regionId = JSON.parse(uni.getStorageSync('area')).id;
} }
if(uni.getStorageSync('worker')){
this.searchForm.workerId = uni.getStorageSync('worker').workerId
}
this.getDelivery() this.getDelivery()
this.$forceUpdate() this.$forceUpdate()
}, },
@ -427,6 +430,7 @@
}, },
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) {

3
components/tab-bar/myCenter.vue

@ -94,6 +94,9 @@
} }
url = '/package1/myCenter/partTimeJobRegister' url = '/package1/myCenter/partTimeJobRegister'
this.$refs.jianzhiPopup.close() this.$refs.jianzhiPopup.close()
uni.navigateTo({
url: url
})
} else { } else {
that.tui.toast(res.message) that.tui.toast(res.message)
return return

Loading…
Cancel
Save