Commit 1d343ebb authored by zhangjianguo's avatar zhangjianguo

分销商 审核订阅

parent a2e28dee
...@@ -110,7 +110,6 @@ ...@@ -110,7 +110,6 @@
methods: { methods: {
getUserInfo(){ getUserInfo(){
uni.showNavigationBarLoading(); uni.showNavigationBarLoading();
let h = this.apiheader();
this.request2( this.request2(
{ {
...@@ -138,51 +137,58 @@ ...@@ -138,51 +137,58 @@
this.isshowagreement = false this.isshowagreement = false
}, },
apply(){ apply(){
if(this.checked==false){ let that = this
uni.showToast({ uni.requestSubscribeMessage({
title: "请先查看分销协议并同意", tmplIds: that.userinfo.template_message_list,
icon: "none" complete (res) {
}); if(that.checked==false){
return false uni.showToast({
} title: "请先查看分销协议并同意",
if(this.name==''){ icon: "none"
uni.showToast({ });
title: "请输入真实姓名", return false
icon: "none" }
}); if(that.name==''){
return false uni.showToast({
} title: "请输入真实姓名",
icon: "none"
if(this.mobile==''){ });
return false
uni.showToast({ }
title: "请填写手机号码",
icon: "none" if(that.mobile==''){
});
return false uni.showToast({
} title: "请填写手机号码",
uni.showLoading({ icon: "none"
title: '加载中...' });
}); return false
}
let pages = getCurrentPages(); // 当前页面 uni.showLoading({
let beforePage = pages[pages.length - 2]; // 前一个页面 title: '加载中...'
this.request2( });
{
url: '/api/AppletUser/SetUserApplyForBeDistrbutor', let pages = getCurrentPages(); // 当前页面
data: this.msg let beforePage = pages[pages.length - 2]; // 前一个页面
}, that.request2(
(res) => { {
uni.hideLoading(); url: '/api/AppletUser/SetUserApplyForBeDistrbutor',
setTimeout(()=>{ data: that.msg
uni.navigateBack({ },
success: function() { (res) => {
beforePage.onLoad(); // 执行前一个页面的created方法 uni.hideLoading();
} setTimeout(()=>{
}); uni.navigateBack({
},1000) success: function() {
beforePage.onLoad(); // 执行前一个页面的created方法
}
});
},1000)
}
);
} }
); })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment