From 326bdb73c590cb669af344cfdc4ee6f02bf1b0a8 Mon Sep 17 00:00:00 2001
From: Mr Ke <kelq@hugeinfo.com.cn>
Date: Wed, 27 May 2020 10:16:11 +0800
Subject: [PATCH] 链接指纹是杯页面
---
SunshineLnsMinApp/pages/personInfo/personInfo.js | 23 +++++++++++------------
1 files changed, 11 insertions(+), 12 deletions(-)
diff --git a/SunshineLnsMinApp/pages/personInfo/personInfo.js b/SunshineLnsMinApp/pages/personInfo/personInfo.js
index 0118cd4..631c322 100644
--- a/SunshineLnsMinApp/pages/personInfo/personInfo.js
+++ b/SunshineLnsMinApp/pages/personInfo/personInfo.js
@@ -69,28 +69,26 @@
//接口
var openId = wx.getStorageSync("openId");
var that = this;
+ wx.showLoading();
wx.request({
url: app.globalData.url + '/api/ma/user/findByOpenId?openId=' + openId,
success: function(res) {
+ wx.hideLoading();
if (res.data.code == '0') {
var data = res.data.data;
- if (data.idcard) {
- if (!data.birthday) {
- data.birthday = app.IdCard(data.idcard, 1);
- }
- if (!data.wxSex) {
- data.wxSex = app.IdCard(data.idcard, 2);
- }
- } else {
- data.birthday = '1985-01-01'
+ if (!data.userType) {
+ data.userType = 0;
+ }
+ if (!data.birthday) {
+ data.birthday = '1985-01-01';
+ }
+ if (!data.wxSex) {
+ data.wxSex = app.IdCard(data.idcard, 2);
}
if (data.nation == "0") {
data.nation = 0;
} else {
data.nation = that.data.nations.findIndex(e => e == data.nation);
- }
- if (!data.userType) {
- data.userType = 0
}
var attList = data.attachments || [];
var evalList1001 = app.where(attList, {
@@ -116,6 +114,7 @@
id
}))
}
+ console.log('data', data)
that.setData({
peopleInfo: data,
evalList,
--
Gitblit v1.8.0