|
|
@@ -8,12 +8,16 @@ import {
|
|
|
import {
|
|
|
updataStorageData
|
|
|
} from '../../utils/storage.js'
|
|
|
+import {
|
|
|
+ checkPhone
|
|
|
+} from '../../services/wx.js'
|
|
|
var app = getApp()
|
|
|
|
|
|
Page({
|
|
|
data: {
|
|
|
imgServerUrl: imgServerUrl,
|
|
|
userInfo: {},
|
|
|
+ noPhone:true,
|
|
|
},
|
|
|
onShow: function() {
|
|
|
if (app.globalData.userInfo) {
|
|
|
@@ -42,15 +46,17 @@ Page({
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
- if (app.globalData.noPhone) {
|
|
|
- app.globalData.noPhone = false
|
|
|
- wx.switchTab({
|
|
|
- url: '/pages/index/index',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
this.fetchData();
|
|
|
this.getUserResume();
|
|
|
+ if (this.data.noPhone){
|
|
|
+ //检查手机号
|
|
|
+ checkPhone({
|
|
|
+ user_id: app.globalData.userId,
|
|
|
+ user_token: app.globalData.userToken
|
|
|
+ }).then(data => {
|
|
|
+ console.log("hh")
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
//获取用户简历详情
|
|
|
getUserResume() {
|