Commit fe759723 authored by 罗成兵's avatar 罗成兵

获取用户信息

parent 5d2a9635
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
</template> </template>
</van-nav-bar> </van-nav-bar>
<div class="height_44"></div> <div class="height_44"></div>
<vue-esign ref="esign" :isCrop="false" :width="400" :height="700"/> <vue-esign ref="esign" :isCrop="false" :width="400" :height="600"/>
<div class="btn"> <div class="btn">
<div class="btn_right" @click="handleReset"> <div class="btn_right" @click="handleReset">
<img src="../../assets/images/abrase.png" alt=""> <img src="../../assets/images/abrase.png" alt="">
......
...@@ -31,7 +31,7 @@ export default { ...@@ -31,7 +31,7 @@ export default {
scrollPosition: 0, scrollPosition: 0,
userInfo: { userInfo: {
account: null, account: null,
token: "52d30e396dff44eca2f51f614e42a8c0", token: "44c1ef4e-de9e-4d32-9af4-3c0196e1ec83",
userId: null, userId: null,
residentId: null, residentId: null,
nickName: null, nickName: null,
......
...@@ -3,8 +3,8 @@ NODE_ENV = dev ...@@ -3,8 +3,8 @@ NODE_ENV = dev
VUE_APP_BASE_URL2222= https://beta-ysservice.yiboshi.com VUE_APP_BASE_URL2222= https://beta-ysservice.yiboshi.com
VUE_APP_BASE_URL22 = https://ys-service.yiboshi.com VUE_APP_BASE_URL22 = https://ys-service.yiboshi.com
VUE_APP_BASE_URL4 = http://59.230.237.90:8115 VUE_APP_BASE_URL4 = http://59.230.237.90:8115
VUE_APP_BASE_URL2 = http://127.0.0.1:8083 VUE_APP_BASE_URL = http://127.0.0.1:8083
VUE_APP_BASE_URL = https://beta-cqbp-yesuan.yiboshi.com:86/service-api VUE_APP_BASE_URL33 = https://beta-cqbp-yesuan.yiboshi.com:86/service-api
VUE_APP_BASE_PATH = https://beta-yac.yiboshi.com VUE_APP_BASE_PATH = https://beta-yac.yiboshi.com
VUE_APP_KEY_WORD = 'XwKsGlMcdPMEhR1B' VUE_APP_KEY_WORD = 'XwKsGlMcdPMEhR1B'
......
...@@ -47,7 +47,7 @@ export default { ...@@ -47,7 +47,7 @@ export default {
}, },
created() { created() {
//获取妇幼权限和登录基本信息 //获取妇幼权限和登录基本信息
let cookieToken = "dd21a4cd-844a-47df-8627-d0dff82482c1"; let cookieToken = "44c1ef4e-de9e-4d32-9af4-3c0196e1ec83";
if (process.env.NODE_ENV != "dev") { if (process.env.NODE_ENV != "dev") {
cookieToken = getCookie('bGNnd3lwdF9hdA'); cookieToken = getCookie('bGNnd3lwdF9hdA');
} }
......
...@@ -105,30 +105,6 @@ export const timeFormat = (time, format = 'YYYY-MM-DD') => { ...@@ -105,30 +105,6 @@ export const timeFormat = (time, format = 'YYYY-MM-DD') => {
return atime return atime
} }
/**
* 非空判断 已挂载到原型上$isNot
* 解决Vue Template模板中无法使用可选链的问题
* eg:
* let ces = {
data: {
data1: {
name: '测试'
}
}
}
let b = this.$isNot(ces, 'data', 'data1', 'name') //测试
{{$isNot(ces, 'data', 'data1', 'name')}} //测试
*/
// export const optionalChaining = (obj, ...rest) => {
// let tmp = obj;
// for (let key in rest) {
// let name = rest[key];
// tmp = tmp?.[name]; //es11可选链
// }
// return tmp ?? "未知";
// };
// 校验手机号 // 校验手机号
export const checkPhone = (rule, value, callback) => { export const checkPhone = (rule, value, callback) => {
if (value == '' || value == undefined) { if (value == '' || value == undefined) {
...@@ -231,18 +207,22 @@ export function areCodeTrans(areaCode) { ...@@ -231,18 +207,22 @@ export function areCodeTrans(areaCode) {
//末尾填充0实现 //末尾填充0实现
return areCodeTrans2(areaCode); return areCodeTrans2(areaCode);
} }
areaCode = areaCode.replaceAll("0000000000", "");
areaCode = areaCode.replaceAll("00000000", "");
areaCode = areaCode.replaceAll("000000", "");
areaCode = areaCode.replaceAll("000", "");
//末尾不填充0实现 //末尾不填充0实现
if (areaCode.length >= 2) { if (areaCode.length >= 2) {
areaCodeList.push(areaCode.substring(0, 2)) areaCodeList.push(areaCode.substring(0, 2))
} }
if (areaCode.length >= 4) { if (areaCode.length >= 4) {
areaCodeList.push(areaCode.substring(0, 4)) areaCodeList.push(areaCode.substring(0, 4) + "00000000")
} }
if (areaCode.length >= 6) { if (areaCode.length >= 6) {
areaCodeList.push(areaCode.substring(0, 6)) areaCodeList.push(areaCode.substring(0, 6) + "000000")
} }
if (areaCode.length >= 9) { if (areaCode.length >= 9) {
areaCodeList.push(areaCode.substring(0, 9)) areaCodeList.push(areaCode.substring(0, 9) + "000")
} }
if (areaCode.length >= 12) { if (areaCode.length >= 12) {
areaCodeList.push(areaCode) areaCodeList.push(areaCode)
......
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