|
|
@@ -1,5 +1,6 @@
|
|
|
"use strict";
|
|
|
const common_vendor = require("../../common/vendor.js");
|
|
|
+const common_assets = require("../../common/assets.js");
|
|
|
const utils_previewImage = require("../../utils/previewImage.js");
|
|
|
const utils_api = require("../../utils/api.js");
|
|
|
const utils_des = require("../../utils/des.js");
|
|
|
@@ -14,6 +15,9 @@ const _sfc_main = {
|
|
|
userInfo.value = common_vendor.index.getStorageSync("userInfo");
|
|
|
}
|
|
|
});
|
|
|
+ common_vendor.onShow(() => {
|
|
|
+ userInfo.value = common_vendor.index.getStorageSync("userInfo");
|
|
|
+ });
|
|
|
const getUserInfo = async (id) => {
|
|
|
const res = await utils_api.myRequest({
|
|
|
url: "/wanzai/api/smartUser/queryInfoData",
|
|
|
@@ -24,9 +28,14 @@ const _sfc_main = {
|
|
|
const result = JSON.parse(utils_des.decryptDes(res.data));
|
|
|
userInfo.value = result;
|
|
|
};
|
|
|
+ const handleEditPhone = () => {
|
|
|
+ common_vendor.index.navigateTo({
|
|
|
+ url: "/pages/editPhone/editPhone"
|
|
|
+ });
|
|
|
+ };
|
|
|
return (_ctx, _cache) => {
|
|
|
return common_vendor.e({
|
|
|
- a: common_vendor.t(userInfo.value.cardNo),
|
|
|
+ a: common_vendor.t(userInfo.value.cardNo || "暂无"),
|
|
|
b: common_vendor.t(userInfo.value.name),
|
|
|
c: userInfo.value.identityId == 1
|
|
|
}, userInfo.value.identityId == 1 ? {} : {}, {
|
|
|
@@ -36,7 +45,7 @@ const _sfc_main = {
|
|
|
}, userInfo.value.identityId == 3 ? {} : {}, {
|
|
|
f: common_vendor.t(userInfo.value.idCard ? userInfo.value.idCard : "暂无"),
|
|
|
g: common_vendor.t(userInfo.value.sexId == 0 ? "女" : "男"),
|
|
|
- h: common_vendor.t(userInfo.value.departmentName),
|
|
|
+ h: common_vendor.t(userInfo.value.departmentName || "暂无"),
|
|
|
i: userInfo.value.headImage
|
|
|
}, userInfo.value.headImage ? {
|
|
|
j: userInfo.value.headImage,
|
|
|
@@ -48,13 +57,15 @@ const _sfc_main = {
|
|
|
o: common_vendor.t(userInfo.value.campus ? userInfo.value.campus : "暂无"),
|
|
|
p: common_vendor.t(userInfo.value.dormitoryNumber ? userInfo.value.dormitoryNumber : "暂无"),
|
|
|
q: common_vendor.t(userInfo.value.phone ? userInfo.value.phone : "暂无"),
|
|
|
- r: common_vendor.t(userInfo.value.affiliateName ? userInfo.value.affiliateName : "暂无"),
|
|
|
- s: common_vendor.t(userInfo.value.title ? userInfo.value.title : "暂无"),
|
|
|
- t: common_vendor.t(userInfo.value.address ? userInfo.value.address : "暂无"),
|
|
|
- v: common_vendor.t(userInfo.value.nation ? userInfo.value.nation : "暂无"),
|
|
|
- w: common_vendor.t(userInfo.value.ofStudent ? userInfo.value.ofStudent : "暂无"),
|
|
|
- x: common_vendor.t(userInfo.value.graduate ? userInfo.value.graduate : "暂无"),
|
|
|
- y: common_vendor.t(userInfo.value.zhiwu ? userInfo.value.zhiwu : "暂无")
|
|
|
+ r: common_assets._imports_0$2,
|
|
|
+ s: common_vendor.o(handleEditPhone),
|
|
|
+ t: common_vendor.t(userInfo.value.affiliateName ? userInfo.value.affiliateName : "暂无"),
|
|
|
+ v: common_vendor.t(userInfo.value.title ? userInfo.value.title : "暂无"),
|
|
|
+ w: common_vendor.t(userInfo.value.address ? userInfo.value.address : "暂无"),
|
|
|
+ x: common_vendor.t(userInfo.value.nation ? userInfo.value.nation : "暂无"),
|
|
|
+ y: common_vendor.t(userInfo.value.ofStudent ? userInfo.value.ofStudent : "暂无"),
|
|
|
+ z: common_vendor.t(userInfo.value.graduate ? userInfo.value.graduate : "暂无"),
|
|
|
+ A: common_vendor.t(userInfo.value.zhiwu ? userInfo.value.zhiwu : "暂无")
|
|
|
});
|
|
|
};
|
|
|
}
|