suizhijia 5 роки тому
джерело
коміт
50dd5108a8
6 змінених файлів з 25 додано та 10 видалено
  1. +1
    -1
      496_dongfengqichen/pages/everyday/everyday.js
  2. +1
    -1
      496_dongfengqichen/pages/luckyStar/luckyStar.js
  3. +11
    -5
      496_dongfengqichen/pages/myCenter/myCenter.js
  4. +1
    -1
      496_dongfengqichen/pages/scoutRule/scoutRule.js
  5. +1
    -2
      496_dongfengqichen/pages/star/star.js
  6. +10
    -0
      496_dongfengqichen/pages/supplement/supplement.js

+ 1
- 1
496_dongfengqichen/pages/everyday/everyday.js Переглянути файл

* 星探任务 * 星探任务
*/ */
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) {

+ 1
- 1
496_dongfengqichen/pages/luckyStar/luckyStar.js Переглянути файл

},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

+ 11
- 5
496_dongfengqichen/pages/myCenter/myCenter.js Переглянути файл

}) })
} }
} }
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;

+ 1
- 1
496_dongfengqichen/pages/scoutRule/scoutRule.js Переглянути файл

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) {

+ 1
- 2
496_dongfengqichen/pages/star/star.js Переглянути файл

*/ */
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;

+ 10
- 0
496_dongfengqichen/pages/supplement/supplement.js Переглянути файл

// 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',
}) })

Завантаження…
Відмінити
Зберегти