* 星探任务 | * 星探任务 | ||||
*/ | */ | ||||
goScout() { | goScout() { | ||||
app.wxRequest(app.globalData.urlRoot + "userInfo/getCertificationInfo", {}, res => { | |||||
app.wxRequest(app.globalData.urlRoot + "userInfo/getCertificationInfoV2", {}, res => { | |||||
console.log(res); | console.log(res); | ||||
if (res.code == 200) { | if (res.code == 200) { | ||||
if (!app.globalData.certificationInfo) { | if (!app.globalData.certificationInfo) { |
},200); | },200); | ||||
}, | }, | ||||
getCertificationInfo:function(){ | getCertificationInfo:function(){ | ||||
app.wxRequest(app.globalData.urlRoot + "userInfo/getCertificationInfo", {}, res => { | |||||
app.wxRequest(app.globalData.urlRoot + "userInfo/getCertificationInfoV2", {}, res => { | |||||
if(res.code==200){ | if(res.code==200){ | ||||
this.setData({ | this.setData({ | ||||
certificationInfo:true | certificationInfo:true |
}) | }) | ||||
} | } | ||||
} | } | ||||
console.log(1); | |||||
if(!app.globalData.isStar){ | if(!app.globalData.isStar){ | ||||
this.phonebolb(); | this.phonebolb(); | ||||
}else{ | }else{ | ||||
}, | }, | ||||
enterPoster(){//荐车晋级 | enterPoster(){//荐车晋级 | ||||
if(this.data.starInfo==200 || app.globalData.isStar){ | if(this.data.starInfo==200 || app.globalData.isStar){ | ||||
wx.navigateTo({ | |||||
url: '/pages/poster/poster' | |||||
}) | |||||
if(app.globalData.isStar && app.globalData.isStar.agentDetail){ | |||||
wx.navigateTo({ | |||||
url: '/pages/poster/poster' | |||||
}) | |||||
}else{ | |||||
wx.navigateTo({ | |||||
url: '/pages/supplement/supplement' | |||||
}) | |||||
} | |||||
}else if(this.data.starInfo==-307){ | }else if(this.data.starInfo==-307){ | ||||
wx.navigateTo({ | wx.navigateTo({ | ||||
url: '/pages/mobileVerification/mobileVerification' | url: '/pages/mobileVerification/mobileVerification' | ||||
} | } | ||||
}, | }, | ||||
phonebolb: function (_phone) { | phonebolb: function (_phone) { | ||||
app.wxRequest(app.globalData.urlRoot + "userInfo/getCertificationInfo", {}, res => { | |||||
app.wxRequest(app.globalData.urlRoot + "userInfo/getCertificationInfoV2", {}, res => { | |||||
this.data.starInfo = res.code; | this.data.starInfo = res.code; | ||||
if (res.code == 200) { | if (res.code == 200) { | ||||
app.globalData.isStar = res.data; | app.globalData.isStar = res.data; |
this.triggerEvent('scoutRule') | this.triggerEvent('scoutRule') | ||||
}, | }, | ||||
cutPage:function(){ | cutPage:function(){ | ||||
app.wxRequest(app.globalData.urlRoot + "userInfo/getCertificationInfo", {}, res => { | |||||
app.wxRequest(app.globalData.urlRoot + "userInfo/getCertificationInfoV2", {}, res => { | |||||
if (res.code == 200) { | if (res.code == 200) { | ||||
app.globalData.authenticationStatus = res.data; | app.globalData.authenticationStatus = res.data; | ||||
if (!app.globalData.certificationInfo) { | if (!app.globalData.certificationInfo) { |
*/ | */ | ||||
scout: function () { | scout: function () { | ||||
if(this.data.starInfo==200 || app.globalData.isStar){ | if(this.data.starInfo==200 || app.globalData.isStar){ | ||||
wx.navigateTo({ | wx.navigateTo({ | ||||
url: '/pages/scout/scout' | url: '/pages/scout/scout' | ||||
}) | }) | ||||
} | } | ||||
}, | }, | ||||
phonebolb: function (_phone) { | phonebolb: function (_phone) { | ||||
app.wxRequest(app.globalData.urlRoot + "userInfo/getCertificationInfo", {}, res => { | |||||
app.wxRequest(app.globalData.urlRoot + "userInfo/getCertificationInfoV2", {}, res => { | |||||
this.data.starInfo = res.code; | this.data.starInfo = res.code; | ||||
if (res.code == 200) { | if (res.code == 200) { | ||||
app.globalData.isStar = res.data; | app.globalData.isStar = res.data; |
// wx.navigateBack({ | // wx.navigateBack({ | ||||
// delta: 1, | // delta: 1, | ||||
// }) | // }) | ||||
app.globalData.isStar.agentDetail = data.agentDetail; | |||||
app.globalData.isStar.realName = data.realName; | |||||
app.globalData.isStar.province = data.province; | |||||
app.globalData.isStar.city = data.city; | |||||
var isStar = wx.getStorageSync('isStar'); | |||||
isStar.agentDetail = data.agentDetail; | |||||
isStar.realName = data.realName; | |||||
isStar.province = data.province; | |||||
isStar.city = data.city; | |||||
wx.setStorageSync('isStar', isStar); | |||||
wx.redirectTo({ | wx.redirectTo({ | ||||
url: '../poster/poster', | url: '../poster/poster', | ||||
}) | }) |