@@ -86,7 +86,7 @@ Page({ | |||
* 星探任务 | |||
*/ | |||
goScout() { | |||
app.wxRequest(app.globalData.urlRoot + "userInfo/getCertificationInfo", {}, res => { | |||
app.wxRequest(app.globalData.urlRoot + "userInfo/getCertificationInfoV2", {}, res => { | |||
console.log(res); | |||
if (res.code == 200) { | |||
if (!app.globalData.certificationInfo) { |
@@ -544,7 +544,7 @@ Page({ | |||
},200); | |||
}, | |||
getCertificationInfo:function(){ | |||
app.wxRequest(app.globalData.urlRoot + "userInfo/getCertificationInfo", {}, res => { | |||
app.wxRequest(app.globalData.urlRoot + "userInfo/getCertificationInfoV2", {}, res => { | |||
if(res.code==200){ | |||
this.setData({ | |||
certificationInfo:true |
@@ -305,7 +305,7 @@ Page({ | |||
}) | |||
} | |||
} | |||
console.log(1); | |||
if(!app.globalData.isStar){ | |||
this.phonebolb(); | |||
}else{ | |||
@@ -1083,9 +1083,15 @@ Page({ | |||
}, | |||
enterPoster(){//荐车晋级 | |||
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){ | |||
wx.navigateTo({ | |||
url: '/pages/mobileVerification/mobileVerification' | |||
@@ -1097,7 +1103,7 @@ Page({ | |||
} | |||
}, | |||
phonebolb: function (_phone) { | |||
app.wxRequest(app.globalData.urlRoot + "userInfo/getCertificationInfo", {}, res => { | |||
app.wxRequest(app.globalData.urlRoot + "userInfo/getCertificationInfoV2", {}, res => { | |||
this.data.starInfo = res.code; | |||
if (res.code == 200) { | |||
app.globalData.isStar = res.data; |
@@ -23,7 +23,7 @@ Component({ | |||
this.triggerEvent('scoutRule') | |||
}, | |||
cutPage:function(){ | |||
app.wxRequest(app.globalData.urlRoot + "userInfo/getCertificationInfo", {}, res => { | |||
app.wxRequest(app.globalData.urlRoot + "userInfo/getCertificationInfoV2", {}, res => { | |||
if (res.code == 200) { | |||
app.globalData.authenticationStatus = res.data; | |||
if (!app.globalData.certificationInfo) { |
@@ -57,7 +57,6 @@ Page({ | |||
*/ | |||
scout: function () { | |||
if(this.data.starInfo==200 || app.globalData.isStar){ | |||
wx.navigateTo({ | |||
url: '/pages/scout/scout' | |||
}) | |||
@@ -72,7 +71,7 @@ Page({ | |||
} | |||
}, | |||
phonebolb: function (_phone) { | |||
app.wxRequest(app.globalData.urlRoot + "userInfo/getCertificationInfo", {}, res => { | |||
app.wxRequest(app.globalData.urlRoot + "userInfo/getCertificationInfoV2", {}, res => { | |||
this.data.starInfo = res.code; | |||
if (res.code == 200) { | |||
app.globalData.isStar = res.data; |
@@ -221,6 +221,16 @@ Page({ | |||
// wx.navigateBack({ | |||
// 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({ | |||
url: '../poster/poster', | |||
}) |