Commit 1d343ebb authored by zhangjianguo's avatar zhangjianguo

分销商 审核订阅

parent a2e28dee
......@@ -110,7 +110,6 @@
methods: {
getUserInfo(){
uni.showNavigationBarLoading();
let h = this.apiheader();
this.request2(
{
......@@ -138,51 +137,58 @@
this.isshowagreement = false
},
apply(){
if(this.checked==false){
uni.showToast({
title: "请先查看分销协议并同意",
icon: "none"
});
return false
}
if(this.name==''){
uni.showToast({
title: "请输入真实姓名",
icon: "none"
});
return false
}
if(this.mobile==''){
uni.showToast({
title: "请填写手机号码",
icon: "none"
});
return false
}
uni.showLoading({
title: '加载中...'
});
let pages = getCurrentPages(); // 当前页面
let beforePage = pages[pages.length - 2]; // 前一个页面
this.request2(
{
url: '/api/AppletUser/SetUserApplyForBeDistrbutor',
data: this.msg
},
(res) => {
uni.hideLoading();
setTimeout(()=>{
uni.navigateBack({
success: function() {
beforePage.onLoad(); // 执行前一个页面的created方法
}
});
},1000)
let that = this
uni.requestSubscribeMessage({
tmplIds: that.userinfo.template_message_list,
complete (res) {
if(that.checked==false){
uni.showToast({
title: "请先查看分销协议并同意",
icon: "none"
});
return false
}
if(that.name==''){
uni.showToast({
title: "请输入真实姓名",
icon: "none"
});
return false
}
if(that.mobile==''){
uni.showToast({
title: "请填写手机号码",
icon: "none"
});
return false
}
uni.showLoading({
title: '加载中...'
});
let pages = getCurrentPages(); // 当前页面
let beforePage = pages[pages.length - 2]; // 前一个页面
that.request2(
{
url: '/api/AppletUser/SetUserApplyForBeDistrbutor',
data: that.msg
},
(res) => {
uni.hideLoading();
setTimeout(()=>{
uni.navigateBack({
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