Commit a4624fba by 陈玉桐

fix

parent b41ddcef
......@@ -23,17 +23,20 @@ Page({
url: app.globalData.apiUrl + 'Teenages/profile',
method: 'POST',
data: {
token: wx.getStorageSync('token'),
// token: wx.getStorageSync('token'),
token: 'odVEJwPxEE7WTM5NY5aS4AUgSQ6I',
},
success: function (res) {
// 请求成功后关闭Loading
wx.hideLoading();
if(res.data.errno==200){
me.setData({
date: res.data.data.birthday,
name: res.data.data.name,
sex: res.data.data.gender
})
if(res.data.data){
me.setData({
date: res.data.data.birthday,
name: res.data.data.name,
sex: res.data.data.gender
})
}
}else{
wx.showModal({
title: '提示',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment