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,14 +137,18 @@ ...@@ -138,14 +137,18 @@
this.isshowagreement = false this.isshowagreement = false
}, },
apply(){ apply(){
if(this.checked==false){ let that = this
uni.requestSubscribeMessage({
tmplIds: that.userinfo.template_message_list,
complete (res) {
if(that.checked==false){
uni.showToast({ uni.showToast({
title: "请先查看分销协议并同意", title: "请先查看分销协议并同意",
icon: "none" icon: "none"
}); });
return false return false
} }
if(this.name==''){ if(that.name==''){
uni.showToast({ uni.showToast({
title: "请输入真实姓名", title: "请输入真实姓名",
icon: "none" icon: "none"
...@@ -153,7 +156,7 @@ ...@@ -153,7 +156,7 @@
return false return false
} }
if(this.mobile==''){ if(that.mobile==''){
uni.showToast({ uni.showToast({
title: "请填写手机号码", title: "请填写手机号码",
...@@ -167,10 +170,10 @@ ...@@ -167,10 +170,10 @@
let pages = getCurrentPages(); // 当前页面 let pages = getCurrentPages(); // 当前页面
let beforePage = pages[pages.length - 2]; // 前一个页面 let beforePage = pages[pages.length - 2]; // 前一个页面
this.request2( that.request2(
{ {
url: '/api/AppletUser/SetUserApplyForBeDistrbutor', url: '/api/AppletUser/SetUserApplyForBeDistrbutor',
data: this.msg data: that.msg
}, },
(res) => { (res) => {
uni.hideLoading(); uni.hideLoading();
...@@ -183,6 +186,9 @@ ...@@ -183,6 +186,9 @@
},1000) },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