9999
This commit is contained in:
parent
146f6870a8
commit
e840b0810c
|
|
@ -125,7 +125,7 @@
|
|||
if(uni.getStorageSync('allinfo').name){
|
||||
form.id = uni.getStorageSync('allinfo').id
|
||||
changePayer(form).then((res)=>{
|
||||
console.log("res",res)
|
||||
// console.log("res",res)
|
||||
if(res.success){
|
||||
getMessage(uni.getStorageSync('openid')).then(res=>{
|
||||
uni.setStorageSync('allinfo', res.result);
|
||||
|
|
@ -288,10 +288,7 @@
|
|||
height: 100%;
|
||||
color: #999999;
|
||||
overflow: hidden;
|
||||
/* 隐藏超出内容 */
|
||||
white-space: nowrap;
|
||||
/* 不换行 */
|
||||
// font-size: 25rpx;
|
||||
text-overflow: ellipsis;
|
||||
width: 350rpx;
|
||||
display: flex;
|
||||
|
|
|
|||
|
|
@ -113,18 +113,15 @@
|
|||
width: 90%;
|
||||
margin-left: 5%;
|
||||
margin-top: 30rpx;
|
||||
// height: 1200rpx;
|
||||
border-radius: 35rpx;
|
||||
background-color: rgb(245, 251, 254);
|
||||
|
||||
.content-title {
|
||||
display: flex;
|
||||
// align-items: center;
|
||||
height: 100rpx;
|
||||
position: relative;
|
||||
|
||||
.content-weight {
|
||||
// font-size: 35rpx;
|
||||
font-weight: 600;
|
||||
margin-left: 20rpx;
|
||||
margin-top: 20rpx;
|
||||
|
|
@ -143,7 +140,6 @@
|
|||
.white-photo {
|
||||
width: 90%;
|
||||
margin-left: 5%;
|
||||
// margin-top: 30rpx;
|
||||
height: 300rpx;
|
||||
border-radius: 35rpx;
|
||||
background-color: #fff;
|
||||
|
|
@ -162,12 +158,10 @@
|
|||
margin-left: 5%;
|
||||
margin-top: 30rpx;
|
||||
margin-bottom: 30rpx;
|
||||
// height: 800rpx;
|
||||
border-radius: 35rpx;
|
||||
background-color: #fff;
|
||||
box-shadow: 4rpx 4rpx 8rpx rgba(0, 0, 0, 0.1);
|
||||
justify-content: space-around;
|
||||
// align-items: center;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
.message-title{
|
||||
|
|
@ -184,7 +178,6 @@
|
|||
}
|
||||
.message-weight{
|
||||
font-size: 30rpx;
|
||||
// font-weight: 600;
|
||||
}
|
||||
}
|
||||
.one{
|
||||
|
|
|
|||
|
|
@ -88,7 +88,8 @@
|
|||
|
||||
|
||||
</view>
|
||||
<view class="right-top-card" style="margin-top: 17rpx;padding: 0 30rpx;padding-top: 20rpx;font-size: 25rpx;">
|
||||
<view class="right-top-card"
|
||||
style="margin-top: 17rpx;padding: 0 30rpx;padding-top: 20rpx;font-size: 25rpx;">
|
||||
<view class="">
|
||||
{{ item.departName }}
|
||||
|
||||
|
|
@ -353,28 +354,37 @@
|
|||
onUnload(() => {
|
||||
if (timer) clearInterval(timer)
|
||||
})
|
||||
|
||||
const openLook = (res) => {
|
||||
content.value = res;
|
||||
show.value = true
|
||||
}
|
||||
const clickButton = (item, index) => {
|
||||
|
||||
switch (index) {
|
||||
case 5:
|
||||
if (item.elderModifyStatus == '1') {
|
||||
openLook("长者信息正在审核中,请等待")
|
||||
} else {
|
||||
queryElders(item.elderId, item.orgCode).then(res => {
|
||||
// workArray.value = res.result
|
||||
console.log("AAAAA", res.result[0])
|
||||
uni.navigateTo({
|
||||
url: `/pages/addoldman/oldmanall?element=${JSON.stringify(res.result[0])}`
|
||||
});
|
||||
})
|
||||
}
|
||||
|
||||
break
|
||||
case 6:
|
||||
if (item.guardianModifyStatus == '1') {
|
||||
openLook("监护人信息正在审核中,请等待")
|
||||
} else {
|
||||
queryElders(item.elderId, item.orgCode).then(res => {
|
||||
// workArray.value = res.result
|
||||
console.log("AAAAA", res.result[0])
|
||||
uni.navigateTo({
|
||||
url: `/pages/addoldman/jianhurenall?element=${JSON.stringify(res.result[0])}`
|
||||
});
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
break
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
// 全局请求封装
|
||||
// export const base_url = 'http://192.168.2.19:8081/opeapi'
|
||||
export const base_url = 'https://www.focusnu.com/opeapi'
|
||||
export const base_url = 'http://192.168.2.19:8081/opeapi'
|
||||
// export const base_url = 'https://www.focusnu.com/opeapi'
|
||||
|
||||
// 请求超出时间
|
||||
const timeout = 5000
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"index.js","sources":["request/index.js"],"sourcesContent":["// 全局请求封装\n// export const base_url = 'http://192.168.2.19:8081/opeapi'\r\nexport const base_url = 'https://www.focusnu.com/opeapi'\r\n\n// 请求超出时间\nconst timeout = 5000\n \n// 需要修改token,和根据实际修改请求头\nexport default (params) => {\n\tlet url = params.url;\n\tlet method = params.method || \"get\";\n\tlet data = params.data || {};\n\tlet header = {\n\t\t'X-Access-Token': uni.getStorageSync('token') || '',\n\t\t'Content-Type': 'application/json;charset=UTF-8',\n\t\t'Authorization': 'Basic c2FiZXI6c2FiZXJfc2VjcmV0',\r\n\t\t\n\t\t...params.header\n\t}\n\treturn new Promise((resolve, reject) => {\n\t\tuni.request({\n\t\t\turl: base_url + url,\n\t\t\tmethod: method,\n\t\t\theader: header,\n\t\t\tdata: data,\n timeout,\n\t\t\tsuccess(response) {\n\t\t\t\tconst res = response\n\t\t\t\t// 根据返回的状态码做出对应的操作\r\n\t\t\t\n\t\t\t\tif (res.statusCode == 200) {\n\t\t\t\t\tresolve(res.data);\n\t\t\t\t} else {\n\t\t\t\t\tuni.clearStorageSync()\n\t\t\t\t\tswitch (res.statusCode) {\n\t\t\t\t\t\tcase 401:\r\n\t\t\t\t\t\t\tif(!params.no401){\r\n\t\t\t\t\t\t\t\tuni.showModal({\r\n\t\t\t\t\t\t\t\t\ttitle: \"登录过期\",\r\n\t\t\t\t\t\t\t\t\tcontent: \"登录过期,请重新登录\",\r\n\t\t\t\t\t\t\t\t\tshowCancel: false,\r\n\t\t\t\t\t\t\t\t\tsuccess() {\r\n\t\t\t\t\t\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\t\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\t\t\t\t\t\t\turl: \"/pages/login/callback\",\r\n\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t}, 1000);\r\n\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 404:\n\t\t\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\t\t\ttitle: '请求地址不存在...',\r\n\t\t\t\t\t\t\t\ticon: \"error\",\n\t\t\t\t\t\t\t\tduration: 2000,\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\t\t\ttitle: '请重试...',\r\n\t\t\t\t\t\t\t\ticon: \"error\",\n\t\t\t\t\t\t\t\tduration: 2000,\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\tfail(err) {\n\t\t\t\tif (err.errMsg.indexOf('request:fail') !== -1) {\n\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\ttitle: '网络异常',\n\t\t\t\t\t\ticon: \"error\",\n\t\t\t\t\t\tduration: 2000\n\t\t\t\t\t})\n\t\t\t\t} else {\n\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\ttitle: '未知异常',\n\t\t\t\t\t\tduration: 2000\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\treject(err);\n \n\t\t\t}\n\t\t});\n\t}).catch(() => {});\n};"],"names":["uni"],"mappings":";;AAEY,MAAC,WAAW;AAGxB,MAAM,UAAU;AAGhB,MAAe,UAAA,CAAC,WAAW;AAC1B,MAAI,MAAM,OAAO;AACjB,MAAI,SAAS,OAAO,UAAU;AAC9B,MAAI,OA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AAW;AACNA,wBAAAA,MAAI,UAAU;AAAA,YACb,OAAO;AAAA,YACP,UAAU;AAAA,UAChB,CAAM;AAAA,QACD;AACD,eAAO,GAAG;AAAA,MAEV;AAAA,IACJ,CAAG;AAAA,EACH,CAAE,EAAE,MAAM,MAAM;AAAA,EAAA,CAAE;AAClB;;;"}
|
||||
{"version":3,"file":"index.js","sources":["request/index.js"],"sourcesContent":["// 全局请求封装\nexport const base_url = 'http://192.168.2.19:8081/opeapi'\r\n// export const base_url = 'https://www.focusnu.com/opeapi'\r\n\n// 请求超出时间\nconst timeout = 5000\n \n// 需要修改token,和根据实际修改请求头\nexport default (params) => {\n\tlet url = params.url;\n\tlet method = params.method || \"get\";\n\tlet data = params.data || {};\n\tlet header = {\n\t\t'X-Access-Token': uni.getStorageSync('token') || '',\n\t\t'Content-Type': 'application/json;charset=UTF-8',\n\t\t'Authorization': 'Basic c2FiZXI6c2FiZXJfc2VjcmV0',\r\n\t\t\n\t\t...params.header\n\t}\n\treturn new Promise((resolve, reject) => {\n\t\tuni.request({\n\t\t\turl: base_url + url,\n\t\t\tmethod: method,\n\t\t\theader: header,\n\t\t\tdata: data,\n timeout,\n\t\t\tsuccess(response) {\n\t\t\t\tconst res = response\n\t\t\t\t// 根据返回的状态码做出对应的操作\r\n\t\t\t\n\t\t\t\tif (res.statusCode == 200) {\n\t\t\t\t\tresolve(res.data);\n\t\t\t\t} else {\n\t\t\t\t\tuni.clearStorageSync()\n\t\t\t\t\tswitch (res.statusCode) {\n\t\t\t\t\t\tcase 401:\r\n\t\t\t\t\t\t\tif(!params.no401){\r\n\t\t\t\t\t\t\t\tuni.showModal({\r\n\t\t\t\t\t\t\t\t\ttitle: \"登录过期\",\r\n\t\t\t\t\t\t\t\t\tcontent: \"登录过期,请重新登录\",\r\n\t\t\t\t\t\t\t\t\tshowCancel: false,\r\n\t\t\t\t\t\t\t\t\tsuccess() {\r\n\t\t\t\t\t\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\t\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\t\t\t\t\t\t\turl: \"/pages/login/callback\",\r\n\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t}, 1000);\r\n\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 404:\n\t\t\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\t\t\ttitle: '请求地址不存在...',\r\n\t\t\t\t\t\t\t\ticon: \"error\",\n\t\t\t\t\t\t\t\tduration: 2000,\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\t\t\ttitle: '请重试...',\r\n\t\t\t\t\t\t\t\ticon: \"error\",\n\t\t\t\t\t\t\t\tduration: 2000,\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\tfail(err) {\n\t\t\t\tif (err.errMsg.indexOf('request:fail') !== -1) {\n\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\ttitle: '网络异常',\n\t\t\t\t\t\ticon: \"error\",\n\t\t\t\t\t\tduration: 2000\n\t\t\t\t\t})\n\t\t\t\t} else {\n\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\ttitle: '未知异常',\n\t\t\t\t\t\tduration: 2000\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\treject(err);\n \n\t\t\t}\n\t\t});\n\t}).catch(() => {});\n};"],"names":["uni"],"mappings":";;AACY,MAAC,WAAW;AAIxB,MAAM,UAAU;AAGhB,MAAe,UAAA,CAAC,WAAW;AAC1B,MAAI,MAAM,OAAO;AACjB,MAAI,SAAS,OAAO,UAAU;AAC9B,MAAI,OAAO,OAAO,QAAQ;AAC1B,MAA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AU;AAAA,YACb,OAAO;AAAA,YACP,UAAU;AAAA,UAChB,CAAM;AAAA,QACD;AACD,eAAO,GAAG;AAAA,MAEV;AAAA,IACJ,CAAG;AAAA,EACH,CAAE,EAAE,MAAM,MAAM;AAAA,EAAA,CAAE;AAClB;;;"}
|
||||
|
|
@ -64,7 +64,6 @@ const _sfc_main = {
|
|||
if (common_vendor.index.getStorageSync("allinfo").name) {
|
||||
form.id = common_vendor.index.getStorageSync("allinfo").id;
|
||||
pages_addoldman_api_api.changePayer(form).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/addoldman/IDcard.vue:128", "res", res);
|
||||
if (res.success) {
|
||||
api_loginApi.getMessage(common_vendor.index.getStorageSync("openid")).then((res2) => {
|
||||
common_vendor.index.setStorageSync("allinfo", res2.result);
|
||||
|
|
|
|||
|
|
@ -110,9 +110,7 @@
|
|||
height: 100%;
|
||||
color: #999999;
|
||||
overflow: hidden;
|
||||
/* 隐藏超出内容 */
|
||||
white-space: nowrap;
|
||||
/* 不换行 */
|
||||
text-overflow: ellipsis;
|
||||
width: 350rpx;
|
||||
display: flex;
|
||||
|
|
|
|||
|
|
@ -51,23 +51,33 @@ const _sfc_main = {
|
|||
if (timer)
|
||||
clearInterval(timer);
|
||||
});
|
||||
const openLook = (res) => {
|
||||
content.value = res;
|
||||
show.value = true;
|
||||
};
|
||||
const clickButton = (item, index) => {
|
||||
switch (index) {
|
||||
case 5:
|
||||
if (item.elderModifyStatus == "1") {
|
||||
openLook("长者信息正在审核中,请等待");
|
||||
} else {
|
||||
pages_oldmanindex_api.queryElders(item.elderId, item.orgCode).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/oldmanindex/index.vue:363", "AAAAA", res.result[0]);
|
||||
common_vendor.index.navigateTo({
|
||||
url: `/pages/addoldman/oldmanall?element=${JSON.stringify(res.result[0])}`
|
||||
});
|
||||
});
|
||||
}
|
||||
break;
|
||||
case 6:
|
||||
if (item.guardianModifyStatus == "1") {
|
||||
openLook("监护人信息正在审核中,请等待");
|
||||
} else {
|
||||
pages_oldmanindex_api.queryElders(item.elderId, item.orgCode).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/oldmanindex/index.vue:372", "AAAAA", res.result[0]);
|
||||
common_vendor.index.navigateTo({
|
||||
url: `/pages/addoldman/jianhurenall?element=${JSON.stringify(res.result[0])}`
|
||||
});
|
||||
});
|
||||
}
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
"use strict";
|
||||
const common_vendor = require("../common/vendor.js");
|
||||
const base_url = "https://www.focusnu.com/opeapi";
|
||||
const base_url = "http://192.168.2.19:8081/opeapi";
|
||||
const timeout = 5e3;
|
||||
const request = (params) => {
|
||||
let url = params.url;
|
||||
|
|
|
|||
Loading…
Reference in New Issue