|
|
|
@ -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) { |
|
|
|
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); |
|
|
|
|