Browse Source

修改 新的关注公众号 用户绑定 以及配送员上下线,设置接单规则

master
wangfukang 4 weeks ago
parent
commit
0c6ab9a961
  1. 12
      package1/myCenter/partTimeJobRegister.vue

12
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);

Loading…
Cancel
Save