Commit a4624fba by 陈玉桐

fix

parent b41ddcef
...@@ -23,17 +23,20 @@ Page({ ...@@ -23,17 +23,20 @@ Page({
url: app.globalData.apiUrl + 'Teenages/profile', url: app.globalData.apiUrl + 'Teenages/profile',
method: 'POST', method: 'POST',
data: { data: {
token: wx.getStorageSync('token'), // token: wx.getStorageSync('token'),
token: 'odVEJwPxEE7WTM5NY5aS4AUgSQ6I',
}, },
success: function (res) { success: function (res) {
// 请求成功后关闭Loading // 请求成功后关闭Loading
wx.hideLoading(); wx.hideLoading();
if(res.data.errno==200){ if(res.data.errno==200){
if(res.data.data){
me.setData({ me.setData({
date: res.data.data.birthday, date: res.data.data.birthday,
name: res.data.data.name, name: res.data.data.name,
sex: res.data.data.gender sex: res.data.data.gender
}) })
}
}else{ }else{
wx.showModal({ wx.showModal({
title: '提示', 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