Bläddra i källkod

bug修复

master
suizhijia 5 år sedan
förälder
incheckning
50dd5108a8
6 ändrade filer med 25 tillägg och 10 borttagningar
  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 Visa fil

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

+ 1
- 1
496_dongfengqichen/pages/luckyStar/luckyStar.js Visa fil

@@ -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

+ 11
- 5
496_dongfengqichen/pages/myCenter/myCenter.js Visa fil

@@ -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;

+ 1
- 1
496_dongfengqichen/pages/scoutRule/scoutRule.js Visa fil

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

+ 1
- 2
496_dongfengqichen/pages/star/star.js Visa fil

@@ -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;

+ 10
- 0
496_dongfengqichen/pages/supplement/supplement.js Visa fil

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

Laddar…
Avbryt
Spara