diff --git a/package1/myCenter/partTimeJobRegister.vue b/package1/myCenter/partTimeJobRegister.vue index 9dc9e85..ba6a171 100644 --- a/package1/myCenter/partTimeJobRegister.vue +++ b/package1/myCenter/partTimeJobRegister.vue @@ -224,7 +224,7 @@ }, onLoad() { - this.getShopArea() + this.getShopArea() this.getWorkerMessage() }, onShow() { @@ -233,7 +233,7 @@ methods: { getWorkerMessage(){ let that = this - that.tui.request("/app/workerRelaPrice/getByWorkerId?workerId=W" + uni.getStorageSync('id'), "GET", {}, false, true).then((res) => { + that.tui.request("/app/workerRelaPrice/getByWorkerId?workerId=" + uni.getStorageSync('worker').workerId, "GET", {}, false, true).then((res) => { if (res.code == 200) { if(res.result != null){ let data = res.result; @@ -404,7 +404,13 @@ this.tui.request('/app/workerRelaPrice/batchAdd', 'post', submitData).then(res => { uni.hideLoading(); if (res.code == 200) { - uni.showToast({title: '提交成功'}); + let user = res.result; + uni.setStorageSync('officialAccountOpenid',user.officialAccountOpenid) + if(user.officialAccountOpenid == null || user.officialAccountOpenid == '' || user.officialAccountOpenid == undefined){ + uni.showToast({title: '您还没有关注公众号,关注公众号后可提现佣金'}); + }else{ + uni.showToast({title: '提交成功'}); + } setTimeout(() => { uni.navigateBack(); }, 1500);