解决401问题和重新点击的问题

This commit is contained in:
Teng 2025-10-16 16:23:30 +08:00
parent 0f3637db38
commit d229756165
51 changed files with 742 additions and 246 deletions

View File

@ -3,9 +3,9 @@ import { ref } from 'vue';
import request from '@/request/index.js';
//新增/编辑机构加盟申请信息
export function changemessage(data){
export function changemessage(data,ukey){
return request({
url: `/api/orgApplyInfo/save`,
url: `/api/orgApplyInfo/save?ukey=${ukey}`,
method: 'post',
data,
})

View File

@ -234,7 +234,9 @@
function isValid11DigitNumber(val) {
return /^(\d{11})$/.test(val);
}
const ukey = ref(
`${uni.getStorageSync('openid') || ''}jgbg${String(Date.now()).slice(-5)}${String(Math.floor(Math.random() * 900) + 100)}`
)
const next = () => {
if (!form.address) {
uni.showToast({
@ -307,8 +309,9 @@
}
uni.setStorageSync("backhuancun", data)
changemessage(uni.getStorageSync('backhuancun')).then(res => {
if (res.success) {
changemessage(uni.getStorageSync('backhuancun'), ukey.value).then(res => {
if (res.success && res.result != '重复提交') {
uni.requestSubscribeMessage({
// templateId
tmplIds: ['cWVzXm1C-iitx1gNFn1nZdijq9R_3fCv8vLbiqs9zww'],

View File

@ -92,6 +92,9 @@
function isValid18DigitNumber(val) {
return /^(\d{18})$/.test(val);
}
const ukey = ref(
`${uni.getStorageSync('openid') || ''}jhbg${String(Date.now()).slice(-5)}${String(Math.floor(Math.random() * 900) + 100)}`
)
const next = () => {
if (!form.relationship) {
@ -146,7 +149,7 @@
data.guardianWorkUnit = form.workUnit
data.relationship = form.relationship
data.modifyType = "jhr"
const urlpost = `${base_url}/api/elderInfo/updateElderInfo`;
const urlpost = `${base_url}/api/elderInfo/updateElderInfo?ukey=${ukey.value}`;
uni.request({
url: urlpost,
method: 'POST',
@ -156,7 +159,9 @@
},
data: data,
success: (res) => {
// console.log("?????",res)
if (res.data.result == '重复提交') {
return
}
if (res.data.success) {
getMessage(uni.getStorageSync('openid')).then(res => {
uni.setStorageSync('allinfo', res.result);
@ -178,7 +183,7 @@
data.guardianHomeAddress = form.homeAddress
data.guardianWorkUnit = form.workUnit
data.relationship = form.relationship
const urlpost = `${payurl.value}/api/elderInfo/addElder`;
const urlpost = `${base_url}/api/elderInfo/addElder?ukey=${ukey.value}`;
uni.request({
url: urlpost,
method: 'POST',
@ -189,7 +194,9 @@
data: data,
success: (r) => {
console.log("r", r)
if (r.data.result == '重复提交') {
return
}
if (r.data.code != 200) {
uni.showToast({
title: r.data.message,

View File

@ -140,7 +140,7 @@
alldata.value.idCard = alldata.value.guardianIdCard;
alldata.value.homeAddress = alldata.value.guardianHomeAddress;
alldata.value.workUnit = alldata.value.guardianWorkUnit;
console.log("!!!!!!!!!!!!!!!!!!", alldata.value)
// console.log("!!!!!!!!!!!!!!!!!!", alldata.value)
uni.setStorageSync('allinfo', alldata.value)
setTimeout(() => {
uni.navigateTo({

View File

@ -57,7 +57,7 @@
<view class="content-title" style="margin: 20rpx 0;">
<view class="shu"></view>
<view class="content-weight">身份证</view>
<view class="content-weight">长者身份证</view>
<view style="margin-top: 8rpx;margin-left: 12rpx;;font-size: 23rpx;">(必填)</view>
</view>
<view class="white-photo" @click="selectphoto(0)">
@ -397,7 +397,9 @@
function isValid18DigitNumber(val) {
return /^(\d{18})$/.test(val);
}
const ukey = ref(
`${uni.getStorageSync('openid') || ''}lrbg${String(Date.now()).slice(-5)}${String(Math.floor(Math.random() * 900) + 100)}`
)
const next = () => {
if (!fontphoto.value) {
uni.showToast({
@ -520,7 +522,7 @@
// console.log("?????", data)
if (id.value) {
data.id = id.value
const urlpost = `${payurl.value}/api/elderInfo/updateElderInfo`;
const urlpost = `${payurl.value}/api/elderInfo/updateElderInfo?ukey=${ukey.value}`;
uni.request({
url: urlpost,
method: 'POST',
@ -530,6 +532,9 @@
},
data: data,
success: (r) => {
if (r.data.result == '重复提交') {
return
}
uni.reLaunch({
url: '/pages/oldmanindex/oldmansuccess?type=1'
})
@ -540,7 +545,7 @@
}
});
} else {
const urlpost = `${payurl.value}/api/elderInfo/addElder`;
const urlpost = `${payurl.value}/api/elderInfo/addElder?ukey=${ukey.value}`;
uni.request({
url: urlpost,
method: 'POST',
@ -551,7 +556,10 @@
data: data,
success: (r) => {
console.log("r", r)
if (r.data.result == '重复提交') {
return
}
if (r.data.code != 200) {
uni.showToast({
title: r.data.message,

View File

@ -3,9 +3,9 @@ import { ref } from 'vue';
import request from '@/request/index.js';
//新增/编辑机构加盟申请信息
export function changemessage(data){
export function changemessage(data,ukey){
return request({
url: `/api/employessAdvisiory/saveApiEmployess`,
url: `/api/employessAdvisiory/saveApiEmployess?ukey=${ukey}`,
method: 'post',
data,
})

View File

@ -245,10 +245,14 @@
show.value = true
}
}
const ukey = ref(
`${uni.getStorageSync('openid') || ''}ygbg${String(Date.now()).slice(-5)}${String(Math.floor(Math.random() * 900) + 100)}`
)
const next = () => {
if (!uping.value) {
return
}
let data = uni.getStorageSync('backhuancun');
data.healthZmPath = imgArray[0]
data.healthFmPath = imgArray[1]
@ -257,8 +261,9 @@
data.endTime = swapLongTerm(data.endTime);
data.orgCode = uni.getStorageSync('changeyuangongorgCode')
uni.setStorageSync('changeyuangongorgCode', "");
changemessage(data).then(res => {
if (res.success) {
changemessage(data, ukey.value).then(res => {
if (res.success && res.result != '重复提交') {
gopush()
}
// uni.requestSubscribeMessage({

View File

@ -70,7 +70,122 @@
</view>
</view>
<view style="z-index: 1;width: 100%;" v-if="item.status==`2`">
<!-- <view class="fuwu-button">
<view class="fuwu-button-top">
<view style="display: flex;">
<image style="width: 60rpx;height: 60rpx;margin-right: 20rpx;"
:src="`https://www.focusnu.com/media/directive/index/addstaff/top.png`" />
<view style="margin-top: 20rpx;">
服务指令
</view>
</view>
<view style="position: relative;">
<image class="bottom-button-img" style="top: 50%;transform: translateY(-50%);"
:src="`https://www.focusnu.com/media/directive/index/addstaff/more.png`" />
</view>
</view>
<view class="fuwu-button-bottom">
<view class="">
<view style="font-size: 35rpx;font-weight: 600;">
09:10~09:15
</view>
<view class="">
准备洁具口腔
</view>
</view>
<view style="display: flex;">
<view class="small-icon">
<image style="width: 60rpx;height: 60rpx;"
:src="`https://www.focusnu.com/media/directive/index/addstaff/00.png`" />
</view>
<view class="small-icon">
<image style="width: 60rpx;height: 60rpx;"
:src="`https://www.focusnu.com/media/directive/index/addstaff/01.png`" />
</view>
<view class="small-icon">
<image style="width: 60rpx;height: 60rpx;"
:src="`https://www.focusnu.com/media/directive/index/addstaff/02.png`" />
</view>
</view>
</view>
</view> -->
<view class="big-button-double">
<view class="left-button">
<image class="left-button-img"
:src="`https://www.focusnu.com/media/directive/index/jigouindex/canku.png`" />
<image class="bottom-button-img"
:src="`https://www.focusnu.com/media/directive/index/addstaff/more.png`" />
<view class="left-button-bottom">
<view class="">
<view style="font-size: 27rpx;">
仓库
</view>
<view style="font-size: 23rpx;color: #999999;margin-top: 5rpx;" class="">
生活用品库
</view>
</view>
<view style="position: relative;">
<view class="bottom-button-qiehuan">
<view class="blue-ball">
</view>
</view>
</view>
</view>
</view>
<view class="left-button">
<image class="left-button-img"
:src="`https://www.focusnu.com/media/directive/index/jigouindex/danyuan.png`" />
<image class="bottom-button-img"
:src="`https://www.focusnu.com/media/directive/index/addstaff/more.png`" />
<view class="left-button-bottom">
<view class="">
<view style="font-size: 27rpx;">
单元
</view>
<view style="font-size: 23rpx;color: #999999;margin-top: 5rpx;" class="">
护理单元01
</view>
</view>
</view>
</view>
</view>
<view class="middle-view">
<view class="middle-small">
<image class="middle-small-img"
:src="`https://www.focusnu.com/media/directive/index/jigouindex/houqin.png`" />
后勤
</view>
<view class="middle-small">
<image class="middle-small-img"
:src="`https://www.focusnu.com/media/directive/index/jigouindex/gongqu.png`" />
公区
</view>
</view>
<view class="white-box-father">
<view v-for="(item0,index) in buttonArray" :key="index" class="white-box" @click="">
<image class="box-img"
:src="`https://www.focusnu.com/media/directive/index/addstaff/${index+2}.png`" />
<view class="box-font">{{item0}}</view>
</view>
<view class="white-box">
<!-- <view style="font-weight: 600;font-size: 100rpx;">+</view> -->
<image class="box-img" style="margin-top: -50rpx;margin-left: 30rpx;"
:src="`https://www.focusnu.com/media/directive/index/addstaff/indexmore.png`" />
</view>
</view>
</view>
<!-- <view style="z-index: 1;width: 100%;" v-if="item.status==`2`">
<view class="zhiling-box">
<view class="">
暂无指令
@ -89,7 +204,7 @@
<view style="font-weight: 600;font-size: 80rpx;">+</view>
</view>
</view>
</view>
</view> -->
</view>
@ -164,7 +279,7 @@
const show = ref(false);
const content = ref("");
// const itemArray = ["NU", "", ""];
const buttonArray = ref(["单元", "仓库", "后勤", "工区", "办公室 ", "员工", "机构维护"])
const buttonArray = ref(["办公室", "员工", "机构维护"])
const statusarray = ["loading", "success", "fail"]
// const itemTarget = ref(0);
const which = ref(0);
@ -172,7 +287,7 @@
const ceshi = () => {
// console.log("666666")
// uni.navigateTo({
// url:"/pages/login/xuanchuan"
// url:"/pages/login/index"
// })
}
@ -599,7 +714,7 @@
// margin-bottom: 30rpx;
// margin-top: 10rpx;
.white-box {
margin-top: 35rpx;
// margin-top: 35rpx;
width: 20.7%;
margin-left: 3%;
height: 237rpx;
@ -750,4 +865,129 @@
height: 37rpx;
}
}
.fuwu-button {
width: calc(100% - 60rpx);
height: 300rpx;
margin-left: 30rpx;
background-color: #fff;
margin-bottom: 25rpx;
border-radius: 50rpx;
padding: 0 50rpx;
.fuwu-button-top {
width: 100%;
height: 50%;
display: flex;
align-items: center;
justify-content: space-between;
}
.fuwu-button-bottom {
width: 100%;
height: 50%;
margin-top: -15rpx;
display: flex;
align-items: center;
justify-content: space-between;
}
}
.bottom-button-img {
position: absolute;
top: 40rpx;
// transform: translateY(-50%);
right: 40rpx;
width: 45rpx;
height: 45rpx;
}
.bottom-button-qiehuan {
position: absolute;
bottom: 0;
right: 0;
width: 70rpx;
height: 40rpx;
background-color: #E1EFFC;
border-radius: 20rpx;
border: #CAE0F9 1rpx solid;
display: flex;
align-items: center;
.blue-ball {
width: 30rpx;
height: 30rpx;
border-radius: 50%;
margin-left: 5rpx;
background-color: #0385FA;
}
}
.small-icon {
width: 100rpx;
height: 100rpx;
border-radius: 20rpx;
background-color: #F6F6F6;
display: flex;
justify-content: center;
align-items: center;
margin-left: 20rpx;
}
.big-button-double {
width: 100%;
height: 280rpx;
display: flex;
justify-content: space-between;
padding: 0 30rpx;
.left-button {
height: 100%;
width: 49%;
background-color: #fff;
border-radius: 45rpx;
position: relative;
.left-button-img {
margin: 40rpx 0 0 40rpx;
width: 65rpx;
height: 65rpx;
}
.left-button-bottom {
position: absolute;
left: 0;
bottom: 45rpx;
width: 100%;
padding: 0 40rpx;
display: flex;
justify-content: space-between;
}
}
}
.middle-view {
width: 100%;
height: 180rpx;
padding: 25rpx 30rpx;
// padding-bottom: 0;
display: flex;
justify-content: space-between;
.middle-small {
width: 49%;
height: 100%;
border-radius: 40rpx;
background-color: #fff;
padding: 0rpx 45rpx;
align-items: center;
display: flex;
justify-content: space-between;
.middle-small-img {
width: 65rpx;
height: 65rpx;
}
}
}
</style>

View File

@ -78,6 +78,7 @@
});
break;
default:
uni.reLaunch({
url: `/pages/login/threeselectone`
});
@ -100,7 +101,10 @@
} else {
uni.setStorageSync('special', false);
}
// setTimeout(() => {
superLogin();
// }, 10000)
// playing.value = true
});
let timer = null
@ -159,6 +163,7 @@
margin-top: 100rpx;
display: flex;
}
// .dian{
// margin: 0 10rpx;
// }

View File

@ -14,19 +14,33 @@
<button class="button-blue" @click="loginIt">
一键登录
</button>
<view class="under-container-title">
<view class="radio-father" @click="isTarget = !isTarget">
<view class="under-container-title" @click="isTarget = !isTarget">
<view class="radio-father">
<view :class="isTarget ? 'radio-circle-target' : 'radio-circle'"></view>
</view>
<view class="radio-circle-font" style="margin-left: -10rpx;" @click="isTarget = !isTarget">我已阅读并同意护理单元</view>
<view class="radio-circle-blue" @click="jumpToPro">
<text class="radio-circle-font">
我已阅读并同意
</text>
<text class="radio-circle-blue" @click.stop="jumpToPro">
NU护理单元使用条款
</view>
<view class="radio-circle-font" @click="isTarget = !isTarget">并授权NU获取本机号码</view>
<view style="position: absolute;bottom: -50rpx;left: 0;width: 100%;text-align: center;">
</text>
<text class="radio-circle-font">
并授权NU
</text>
<text style="margin-top: 10rpx;" class="radio-circle-font">
获取本机号码账号仅限特定人群登录并进行账号鉴权
</text>
<!-- <view class="radio-circle-font" style="margin-left: -10rpx;" >我已阅读并同意护理单元</view> -->
<!-- <view class="radio-circle-blue" @click.stop="jumpToPro">
NU护理单元使用条款
</view> -->
<!-- <view class="radio-circle-font">并授权NU获取本机号码</view> -->
<!-- <view style="width: 100%;margin-left: 90rpx;margin-top: 10rpx;">
并授权NU获取本机号码
</view> -->
<!-- <view style="position: absolute;bottom: -50rpx;left: 0;width: 100%;text-align: center;">
账号仅限特定人群登录并进行账号鉴权
</view>
</view> -->
</view>
</view>
@ -40,9 +54,21 @@
<view v-if="isFadingOut" class="modal">
<view class="modal-title">使用条款</view>
<view class="model-p">
<text>&#x3000;&#x3000;为了更好地保障您的合法权益请阅读并同意护理单元</text>
<text style="color: rgb(0,141,255);" @click="jumpToPro">使用条款</text>
<text>&#x3000;&#x3000;为了更好地保障您的合法权益请阅读并同意</text>
<text style="color: rgb(0,141,255);" @click="jumpToPro">NU护理单元使用条款</text>
<text>同意后将自动登录</text>
<!-- <text class="radio-circle-font">
请阅读并同意
</text>
<text class="radio-circle-blue" @click.stop="jumpToPro">
NU护理单元使用条款
</text>
<text class="radio-circle-font">
并授权NU
</text>
<text style="margin-top: 10rpx;" class="radio-circle-font">
获取本机号码账号仅限特定人群登录并进行账号鉴权
</text> -->
</view>
<view class="model-down">
<!-- <view class="model-white" @click="closeModal">
@ -242,23 +268,17 @@
.under-container-title {
display: flex;
// margin-top: 10rpx;
// padding: 0 80rpx;
width: 80%;
margin-bottom: 40rpx;
align-items: center;
font-size: 23rpx;
font-weight: 500;
flex-wrap: wrap;
position: relative;
line-height: 30rpx;
.radio-circle-blue {
color: #0083FF;
margin-top: 3rpx;
}
.radio-circle-font {
color: #5A607F;
// margin-left: 18rpx;
margin-top: 3rpx;
}
}
.button-blue {
@ -346,10 +366,21 @@
}
.radio-father {
width: 100rpx;
width: 40rpx;
height: 30rpx;
display: flex;
justify-content: center;
margin-top: -10rpx;
margin-top: -20rpx;
margin-right: 20rpx;
}
.radio-circle-blue {
color: #0083FF;
margin-top: 3rpx;
}
.radio-circle-font {
color: #5A607F;
// margin-left: 18rpx;
margin-top: 3rpx;
}
</style>

View File

@ -272,7 +272,7 @@
top: 50%;
right: 20rpx;
transform: translateY(-50%);
z-index: 2;
z-index: 999;
}
}

View File

@ -278,7 +278,7 @@
}
.bgc-card {
margin-top: 120rpx;
margin-top: 80rpx;
// background-color: #F7F7F7;
width: 98%;
margin-left: 1%;

View File

@ -99,7 +99,7 @@
</view>
<view style="z-index: 1;width: 100%;margin-top: 90rpx;" v-if=" item.applyStatus==`2` || item.applyType == `2`">
<view style="z-index: 1;width: 100%;margin-top: 80rpx;" v-if=" item.applyStatus==`2` || item.applyType == `2`">
<view class="fuwu-button">
<view class="fuwu-button-top">
<view style="display: flex;">
@ -185,7 +185,9 @@
</view>
<view class="white-box">
<view style="font-weight: 600;font-size: 100rpx;">+</view>
<!-- <view style="font-weight: 600;font-size: 100rpx;">+</view> -->
<image class="box-img" style="margin-top: -50rpx;margin-left: 30rpx;"
:src="`https://www.focusnu.com/media/directive/index/addstaff/indexmore.png`" />
</view>
</view>
</view>
@ -684,7 +686,7 @@
margin-top: 25rpx;
width: 20.7%;
margin-left: 3%;
height: 190rpx;
height: 205rpx;
background-color: #fff;
border-radius: 35rpx;
display: flex;
@ -972,8 +974,6 @@
}
}
}
}
.fuwu-button {

View File

@ -1,5 +1,5 @@
// 全局请求封装
// export const base_url = 'http://192.168.2.20:8081/opeapi'
// export const base_url = 'http://192.168.2.26:8081/opeapi'
export const base_url = 'https://www.focusnu.com/opeapi'
// 请求超出时间
@ -14,14 +14,21 @@ export default (params) => {
'X-Access-Token': uni.getStorageSync('token') || '',
'Content-Type': 'application/json;charset=UTF-8',
'Authorization': 'Basic c2FiZXI6c2FiZXJfc2VjcmV0',
...params.header
}
// 阻止点击(默认遮罩)
// uni.showLoading({
// title: '加载中...',
// mask: true
// })
// 读取/写入 401 计数的辅助函数(保存在本地 Storage
const get401Count = () => {
const v = uni.getStorageSync('auth401Count')
return Number.isInteger(v) ? v : 0
}
const set401Count = (n) => {
uni.setStorageSync('auth401Count', n)
}
const reset401Count = () => {
uni.removeStorageSync('auth401Count')
}
return new Promise((resolve, reject) => {
uni.request({
url: base_url + url,
@ -31,30 +38,54 @@ export default (params) => {
timeout,
success(response) {
const res = response
// 根据返回的状态码做出对应的操作
// uni.hideLoading()
if (res.statusCode == 200) {
resolve(res.data);
// 成功则重置 401 计数
reset401Count()
resolve(res.data)
} else {
uni.clearStorageSync()
// 出现非 200 的情况,默认重置 401 计数(除非是 401我们单独处理
if (res.statusCode !== 401) {
reset401Count()
}
switch (res.statusCode) {
case 401:
if(!params.no401){
uni.showModal({
title: "登录过期",
content: "登录过期,请重新登录",
showCancel: false,
success() {
setTimeout(() => {
case 401: {
// 增加 401 计数
let count = get401Count() || 0
count = count + 1
set401Count(count)
// 如果累计小于 3保持旧逻辑清除本地存储并直接跳转自动重定向
if (count < 3) {
uni.clearStorageSync()
uni.reLaunch({
url: "/pages/login/callback",
})
}, 1000);
},
});
} else {
// 累计 >= 3不要直接跳转弹框给用户让用户选择是否去登录
// 这里不自动跳转,只提示(用户点确认再跳转),可以根据需要调整文案
uni.showModal({
title: "登录异常",
content: "检测到多次未授权访问401请重新登录。",
confirmText: "去登录",
cancelText: "取消",
success(resModal) {
if (resModal.confirm) {
uni.clearStorageSync()
// 用户主动确认时再跳转
uni.reLaunch({
url: "/pages/login/callback",
})
} else {
// 用户取消:不跳转,保留当前状态(可选行为)
// 也可以在这里做其他处理,例如记录日志
}
}
})
}
// 这里不 resolve原来你的逻辑也没有 resolve直接返回
break
}
break;
case 404:
uni.showToast({
title: '请求地址不存在...',
@ -70,12 +101,13 @@ export default (params) => {
})
break;
}
// 把整个非 200 的响应 reject 出去,方便调用方做处理(可按需保留/删除)
reject(res)
}
},
fail(err) {
// 允许点击
// uni.hideLoading()
if (err.errMsg.indexOf('request:fail') !== -1) {
// 网络或其他异常,不改变 401 计数
if (err && err.errMsg && err.errMsg.indexOf('request:fail') !== -1) {
uni.showToast({
title: '网络异常',
icon: "error",
@ -88,8 +120,7 @@ export default (params) => {
})
}
reject(err);
}
});
}).catch(() => {});
};
})
})
}

View File

@ -1 +1 @@
{"version":3,"file":"addjigou.js","sources":["pages/addjigou/api/addjigou.js"],"sourcesContent":["// src/composables/useWeChatAuth.js\nimport { ref } from 'vue';\nimport request from '@/request/index.js';\r\n\r\n//新增/编辑机构加盟申请信息\r\nexport function changemessage(data){\r\n return request({\r\n url: `/api/orgApplyInfo/save`,\r\n\t\tmethod: 'post',\r\n data,\r\n })\r\n}\r\n\r\n//根据手机号获取机构加盟申请信息\r\nexport function getMessageList(id){\r\n return request({\r\n url: `/api/orgApplyInfo/queryAuditInfo?openId=${id}&status=1,2,3`,\r\n\t\tmethod: 'get',\r\n })\r\n}\r\nexport function getMessageListsuccess(id){\r\n return request({\r\n url: `/api/orgApplyInfo/queryAuditInfo?status=0,2,4,5&openId=${id}`,\r\n\t\tmethod: 'get',\r\n })\r\n}\r\n//获取省市区\r\nexport function getdate(id){\n return request({\n url: `/api/common/queryAreaDict?id=${id}`,\n\t\tmethod: 'get',\n })\n}\r\n\r\n//将地址id转换成汉字\r\nexport function getrel(id){\n return request({\n url: `/api/common/queryAreaNameById?id=${id}`,\n\t\tmethod: 'get',\n })\n}"],"names":["request"],"mappings":";;;AAKO,SAAS,cAAc,MAAK;AAC/B,SAAOA,sBAAQ;AAAA,IACX,KAAK;AAAA,IACX,QAAQ;AAAA,IACF;AAAA,EACR,CAAK;AACL;AAGO,SAAS,eAAe,IAAG;AAC9B,SAAOA,sBAAQ;AAAA,IACX,KAAK,2CAA2C,EAAE;AAAA,IACxD,QAAQ;AAAA,EACV,CAAK;AACL;AACO,SAAS,sBAAsB,IAAG;AACrC,SAAOA,sBAAQ;AAAA,IACX,KAAK,0DAA0D,EAAE;AAAA,IACvE,QAAQ;AAAA,EACV,CAAK;AACL;AAEO,SAAS,QAAQ,IAAG;AACvB,SAAOA,sBAAQ;AAAA,IACX,KAAK,gCAAgC,EAAE;AAAA,IAC7C,QAAQ;AAAA,EACV,CAAK;AACL;;;;;"}
{"version":3,"file":"addjigou.js","sources":["pages/addjigou/api/addjigou.js"],"sourcesContent":["// src/composables/useWeChatAuth.js\nimport { ref } from 'vue';\nimport request from '@/request/index.js';\r\n\r\n//新增/编辑机构加盟申请信息\r\nexport function changemessage(data,ukey){\r\n return request({\r\n url: `/api/orgApplyInfo/save?ukey=${ukey}`,\r\n\t\tmethod: 'post',\r\n data,\r\n })\r\n}\r\n\r\n//根据手机号获取机构加盟申请信息\r\nexport function getMessageList(id){\r\n return request({\r\n url: `/api/orgApplyInfo/queryAuditInfo?openId=${id}&status=1,2,3`,\r\n\t\tmethod: 'get',\r\n })\r\n}\r\nexport function getMessageListsuccess(id){\r\n return request({\r\n url: `/api/orgApplyInfo/queryAuditInfo?status=0,2,4,5&openId=${id}`,\r\n\t\tmethod: 'get',\r\n })\r\n}\r\n//获取省市区\r\nexport function getdate(id){\n return request({\n url: `/api/common/queryAreaDict?id=${id}`,\n\t\tmethod: 'get',\n })\n}\r\n\r\n//将地址id转换成汉字\r\nexport function getrel(id){\n return request({\n url: `/api/common/queryAreaNameById?id=${id}`,\n\t\tmethod: 'get',\n })\n}"],"names":["request"],"mappings":";;;AAKO,SAAS,cAAc,MAAK,MAAK;AACpC,SAAOA,sBAAQ;AAAA,IACX,KAAK,+BAA+B,IAAI;AAAA,IAC9C,QAAQ;AAAA,IACF;AAAA,EACR,CAAK;AACL;AAGO,SAAS,eAAe,IAAG;AAC9B,SAAOA,sBAAQ;AAAA,IACX,KAAK,2CAA2C,EAAE;AAAA,IACxD,QAAQ;AAAA,EACV,CAAK;AACL;AACO,SAAS,sBAAsB,IAAG;AACrC,SAAOA,sBAAQ;AAAA,IACX,KAAK,0DAA0D,EAAE;AAAA,IACvE,QAAQ;AAAA,EACV,CAAK;AACL;AAEO,SAAS,QAAQ,IAAG;AACvB,SAAOA,sBAAQ;AAAA,IACX,KAAK,gCAAgC,EAAE;AAAA,IAC7C,QAAQ;AAAA,EACV,CAAK;AACL;;;;;"}

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

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
{"version":3,"file":"addjigou.js","sources":["pages/addstaff/api/addjigou.js"],"sourcesContent":["// src/composables/useWeChatAuth.js\nimport { ref } from 'vue';\nimport request from '@/request/index.js';\r\n\r\n//新增/编辑机构加盟申请信息\r\nexport function changemessage(data){\r\n return request({\r\n url: `/api/employessAdvisiory/saveApiEmployess`,\r\n\t\tmethod: 'post',\r\n data,\r\n })\r\n}\r\n\r\n//根据手机号获取员工信息\r\nexport function getMessageList(orgCode){\r\n return request({\r\n url: `/api/employessAdvisiory/queryApiEmployessInfo?openId=${uni.getStorageSync('openid')}&orgCode=${orgCode}`,\r\n\t\tmethod: 'get',\r\n })\r\n}\r\n\r\n//向机构申请\r\nexport function Apply(data){\r\n return request({\r\n url: `/api/employessapply/apply`,\r\n\t\tmethod: 'post',\r\n data,\r\n })\r\n}\r\n// export function getMessageListsuccess(id){\r\n// return request({\r\n// url: `/api/orgApplyInfo/queryAuditInfo?status=0,2,4,5&openId=${id}`,\r\n// \t\tmethod: 'get',\r\n// })\r\n// }\r\n// //获取省市区\r\n// export function getdate(id){\n// return request({\n// url: `/api/common/queryAreaDict?id=${id}`,\n// \t\tmethod: 'get',\n// })\n// }\r\n\r\n// //将地址id转换成汉字\r\n// export function getrel(id){\n// return request({\n// url: `/api/common/queryAreaNameById?id=${id}`,\n// \t\tmethod: 'get',\n// })\n// }"],"names":["request","uni"],"mappings":";;;AAKO,SAAS,cAAc,MAAK;AAC/B,SAAOA,sBAAQ;AAAA,IACX,KAAK;AAAA,IACX,QAAQ;AAAA,IACF;AAAA,EACR,CAAK;AACL;AAGO,SAAS,eAAe,SAAQ;AACnC,SAAOA,sBAAQ;AAAA,IACX,KAAK,wDAAwDC,oBAAI,eAAe,QAAQ,CAAC,YAAY,OAAO;AAAA,IAClH,QAAQ;AAAA,EACV,CAAK;AACL;AAGO,SAAS,MAAM,MAAK;AACvB,SAAOD,sBAAQ;AAAA,IACX,KAAK;AAAA,IACX,QAAQ;AAAA,IACF;AAAA,EACR,CAAK;AACL;;;;"}
{"version":3,"file":"addjigou.js","sources":["pages/addstaff/api/addjigou.js"],"sourcesContent":["// src/composables/useWeChatAuth.js\nimport { ref } from 'vue';\nimport request from '@/request/index.js';\r\n\r\n//新增/编辑机构加盟申请信息\r\nexport function changemessage(data,ukey){\r\n return request({\r\n url: `/api/employessAdvisiory/saveApiEmployess?ukey=${ukey}`,\r\n\t\tmethod: 'post',\r\n data,\r\n })\r\n}\r\n\r\n//根据手机号获取员工信息\r\nexport function getMessageList(orgCode){\r\n return request({\r\n url: `/api/employessAdvisiory/queryApiEmployessInfo?openId=${uni.getStorageSync('openid')}&orgCode=${orgCode}`,\r\n\t\tmethod: 'get',\r\n })\r\n}\r\n\r\n//向机构申请\r\nexport function Apply(data){\r\n return request({\r\n url: `/api/employessapply/apply`,\r\n\t\tmethod: 'post',\r\n data,\r\n })\r\n}\r\n// export function getMessageListsuccess(id){\r\n// return request({\r\n// url: `/api/orgApplyInfo/queryAuditInfo?status=0,2,4,5&openId=${id}`,\r\n// \t\tmethod: 'get',\r\n// })\r\n// }\r\n// //获取省市区\r\n// export function getdate(id){\n// return request({\n// url: `/api/common/queryAreaDict?id=${id}`,\n// \t\tmethod: 'get',\n// })\n// }\r\n\r\n// //将地址id转换成汉字\r\n// export function getrel(id){\n// return request({\n// url: `/api/common/queryAreaNameById?id=${id}`,\n// \t\tmethod: 'get',\n// })\n// }"],"names":["request","uni"],"mappings":";;;AAKO,SAAS,cAAc,MAAK,MAAK;AACpC,SAAOA,sBAAQ;AAAA,IACX,KAAK,iDAAiD,IAAI;AAAA,IAChE,QAAQ;AAAA,IACF;AAAA,EACR,CAAK;AACL;AAGO,SAAS,eAAe,SAAQ;AACnC,SAAOA,sBAAQ;AAAA,IACX,KAAK,wDAAwDC,oBAAI,eAAe,QAAQ,CAAC,YAAY,OAAO;AAAA,IAClH,QAAQ;AAAA,EACV,CAAK;AACL;AAGO,SAAS,MAAM,MAAK;AACvB,SAAOD,sBAAQ;AAAA,IACX,KAAK;AAAA,IACX,QAAQ;AAAA,IACF;AAAA,EACR,CAAK;AACL;;;;"}

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

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -7052,7 +7052,7 @@ function isConsoleWritable() {
function initRuntimeSocketService() {
const hosts = "192.168.2.27,127.0.0.1";
const port = "8090";
const id = "mp-weixin_t48DJX";
const id = "mp-weixin_KG_azd";
const lazy = typeof swan !== "undefined";
let restoreError = lazy ? () => {
} : initOnError();

View File

@ -1,9 +1,9 @@
"use strict";
require("../../../common/vendor.js");
const request_index = require("../../../request/index.js");
function changemessage(data) {
function changemessage(data, ukey) {
return request_index.request({
url: `/api/orgApplyInfo/save`,
url: `/api/orgApplyInfo/save?ukey=${ukey}`,
method: "post",
data
});

View File

@ -82,6 +82,9 @@ const _sfc_main = {
function isValid11DigitNumber(val) {
return /^(\d{11})$/.test(val);
}
const ukey = common_vendor.ref(
`${common_vendor.index.getStorageSync("openid") || ""}jgbg${String(Date.now()).slice(-5)}${String(Math.floor(Math.random() * 900) + 100)}`
);
const next = () => {
if (!form.address) {
common_vendor.index.showToast({
@ -150,8 +153,8 @@ const _sfc_main = {
data2.endTime = compontent_public_long.swapLongTerm(data2.endTime);
}
common_vendor.index.setStorageSync("backhuancun", data2);
pages_addjigou_api_addjigou.changemessage(common_vendor.index.getStorageSync("backhuancun")).then((res) => {
if (res.success) {
pages_addjigou_api_addjigou.changemessage(common_vendor.index.getStorageSync("backhuancun"), ukey.value).then((res) => {
if (res.success && res.result != "重复提交") {
common_vendor.index.requestSubscribeMessage({
// 这里填后台申请好的 templateId 数组
tmplIds: ["cWVzXm1C-iitx1gNFn1nZdijq9R_3fCv8vLbiqs9zww"],
@ -162,7 +165,7 @@ const _sfc_main = {
});
},
fail: (err) => {
common_vendor.index.__f__("error", "at pages/addjigou/where.vue:322", "订阅接口调用失败:", err);
common_vendor.index.__f__("error", "at pages/addjigou/where.vue:325", "订阅接口调用失败:", err);
common_vendor.index.showToast({
title: "订阅失败",
icon: "none"
@ -232,7 +235,7 @@ const _sfc_main = {
common_vendor.onShow(() => {
const data = common_vendor.index.getStorageSync("dingwei");
if (data) {
common_vendor.index.__f__("log", "at pages/addjigou/where.vue:406", "data", data);
common_vendor.index.__f__("log", "at pages/addjigou/where.vue:409", "data", data);
jigouweizhi.value = data.name;
form.orgAddress = data.name;
form.orgCoordinateLo = data.lng;

View File

@ -23,6 +23,9 @@ const _sfc_main = {
function isValid18DigitNumber(val) {
return /^(\d{18})$/.test(val);
}
const ukey = common_vendor.ref(
`${common_vendor.index.getStorageSync("openid") || ""}jhbg${String(Date.now()).slice(-5)}${String(Math.floor(Math.random() * 900) + 100)}`
);
const next = () => {
if (!form.relationship) {
common_vendor.index.showToast({
@ -76,7 +79,7 @@ const _sfc_main = {
data.guardianWorkUnit = form.workUnit;
data.relationship = form.relationship;
data.modifyType = "jhr";
const urlpost = `${request_index.base_url}/api/elderInfo/updateElderInfo`;
const urlpost = `${request_index.base_url}/api/elderInfo/updateElderInfo?ukey=${ukey.value}`;
common_vendor.index.request({
url: urlpost,
method: "POST",
@ -86,6 +89,9 @@ const _sfc_main = {
},
data,
success: (res) => {
if (res.data.result == "重复提交") {
return;
}
if (res.data.success) {
api_loginApi.getMessage(common_vendor.index.getStorageSync("openid")).then((res2) => {
common_vendor.index.setStorageSync("allinfo", res2.result);
@ -96,7 +102,7 @@ const _sfc_main = {
}
},
fail: (e) => {
common_vendor.index.__f__("log", "at pages/addoldman/IDcard.vue:170", "????", e);
common_vendor.index.__f__("log", "at pages/addoldman/IDcard.vue:175", "????", e);
}
});
} else {
@ -107,7 +113,7 @@ const _sfc_main = {
data.guardianHomeAddress = form.homeAddress;
data.guardianWorkUnit = form.workUnit;
data.relationship = form.relationship;
const urlpost = `${payurl.value}/api/elderInfo/addElder`;
const urlpost = `${request_index.base_url}/api/elderInfo/addElder?ukey=${ukey.value}`;
common_vendor.index.request({
url: urlpost,
method: "POST",
@ -117,7 +123,9 @@ const _sfc_main = {
},
data,
success: (r) => {
common_vendor.index.__f__("log", "at pages/addoldman/IDcard.vue:192", "r", r);
if (r.data.result == "重复提交") {
return;
}
if (r.data.code != 200) {
common_vendor.index.showToast({
title: r.data.message,
@ -160,7 +168,7 @@ const _sfc_main = {
keys.forEach((key) => {
form[key] = data[key] || "";
});
common_vendor.index.__f__("log", "at pages/addoldman/IDcard.vue:289", "????", common_vendor.index.getStorageSync("allinfo"));
common_vendor.index.__f__("log", "at pages/addoldman/IDcard.vue:296", "????", common_vendor.index.getStorageSync("allinfo"));
}
});
return (_ctx, _cache) => {

View File

@ -54,7 +54,6 @@ const _sfc_main = {
alldata.value.idCard = alldata.value.guardianIdCard;
alldata.value.homeAddress = alldata.value.guardianHomeAddress;
alldata.value.workUnit = alldata.value.guardianWorkUnit;
common_vendor.index.__f__("log", "at pages/addoldman/jianhurenall.vue:143", "!!!!!!!!!!!!!!!!!!", alldata.value);
common_vendor.index.setStorageSync("allinfo", alldata.value);
setTimeout(() => {
common_vendor.index.navigateTo({

View File

@ -222,6 +222,9 @@ const _sfc_main = {
function isValid18DigitNumber(val) {
return /^(\d{18})$/.test(val);
}
const ukey = common_vendor.ref(
`${common_vendor.index.getStorageSync("openid") || ""}lrbg${String(Date.now()).slice(-5)}${String(Math.floor(Math.random() * 900) + 100)}`
);
const next = () => {
if (!fontphoto.value) {
common_vendor.index.showToast({
@ -326,7 +329,7 @@ const _sfc_main = {
data.modifyType = "zz";
if (id.value) {
data.id = id.value;
const urlpost = `${payurl.value}/api/elderInfo/updateElderInfo`;
const urlpost = `${payurl.value}/api/elderInfo/updateElderInfo?ukey=${ukey.value}`;
common_vendor.index.request({
url: urlpost,
method: "POST",
@ -336,16 +339,19 @@ const _sfc_main = {
},
data,
success: (r) => {
if (r.data.result == "重复提交") {
return;
}
common_vendor.index.reLaunch({
url: "/pages/oldmanindex/oldmansuccess?type=1"
});
},
fail: (e) => {
common_vendor.index.__f__("log", "at pages/addoldman/oldIDcard.vue:539", "????", e);
common_vendor.index.__f__("log", "at pages/addoldman/oldIDcard.vue:544", "????", e);
}
});
} else {
const urlpost = `${payurl.value}/api/elderInfo/addElder`;
const urlpost = `${payurl.value}/api/elderInfo/addElder?ukey=${ukey.value}`;
common_vendor.index.request({
url: urlpost,
method: "POST",
@ -355,7 +361,9 @@ const _sfc_main = {
},
data,
success: (r) => {
common_vendor.index.__f__("log", "at pages/addoldman/oldIDcard.vue:554", "r", r);
if (r.data.result == "重复提交") {
return;
}
if (r.data.code != 200) {
common_vendor.index.showToast({
title: r.data.message,
@ -422,7 +430,7 @@ const _sfc_main = {
textArray[1] = data.sex;
textArray[2] = data.idCard;
textArray[3] = data.national;
common_vendor.index.__f__("log", "at pages/addoldman/oldIDcard.vue:679", "????", data.dateOfBirth);
common_vendor.index.__f__("log", "at pages/addoldman/oldIDcard.vue:687", "????", data.dateOfBirth);
textArray[4] = data.dateOfBirth;
textArray[5] = data.houseAddress;
textArray[6] = data.issuingAuthority;

File diff suppressed because one or more lines are too long

View File

@ -1,9 +1,9 @@
"use strict";
const common_vendor = require("../../../common/vendor.js");
const request_index = require("../../../request/index.js");
function changemessage(data) {
function changemessage(data, ukey) {
return request_index.request({
url: `/api/employessAdvisiory/saveApiEmployess`,
url: `/api/employessAdvisiory/saveApiEmployess?ukey=${ukey}`,
method: "post",
data
});

View File

@ -104,6 +104,9 @@ const _sfc_main = {
}
});
};
const ukey = common_vendor.ref(
`${common_vendor.index.getStorageSync("openid") || ""}ygbg${String(Date.now()).slice(-5)}${String(Math.floor(Math.random() * 900) + 100)}`
);
const next = () => {
if (!uping.value) {
return;
@ -116,8 +119,8 @@ const _sfc_main = {
data.endTime = compontent_public_long.swapLongTerm(data.endTime);
data.orgCode = common_vendor.index.getStorageSync("changeyuangongorgCode");
common_vendor.index.setStorageSync("changeyuangongorgCode", "");
pages_addstaff_api_addjigou.changemessage(data).then((res) => {
if (res.success) {
pages_addstaff_api_addjigou.changemessage(data, ukey.value).then((res) => {
if (res.success && res.result != "重复提交") {
gopush();
}
});

View File

@ -11,7 +11,7 @@ const _sfc_main = {
setup(__props) {
const show = common_vendor.ref(false);
const content = common_vendor.ref("");
const buttonArray = common_vendor.ref(["单元", "仓库", "后勤", "工区", "办公室 ", "员工", "机构维护"]);
const buttonArray = common_vendor.ref(["办公室", "员工", "机构维护"]);
const statusarray = ["loading", "success", "fail"];
const which = common_vendor.ref(0);
const ceshi = () => {
@ -44,7 +44,7 @@ const _sfc_main = {
}
};
const again = (item) => {
common_vendor.index.__f__("log", "at pages/index/index.vue:214", "????", item);
common_vendor.index.__f__("log", "at pages/index/index.vue:329", "????", item);
common_vendor.index.setStorageSync("baddata", item);
common_vendor.index.setStorageSync("specicalid", item.id);
common_vendor.index.setStorageSync("backhuancun", {});
@ -119,19 +119,28 @@ const _sfc_main = {
} : {}, {
m: item.status == `2`
}, item.status == `2` ? {
n: common_vendor.f(buttonArray.value, (item2, index2, i1) => {
n: `https://www.focusnu.com/media/directive/index/jigouindex/canku.png`,
o: `https://www.focusnu.com/media/directive/index/addstaff/more.png`,
p: `https://www.focusnu.com/media/directive/index/jigouindex/danyuan.png`,
q: `https://www.focusnu.com/media/directive/index/addstaff/more.png`,
r: `https://www.focusnu.com/media/directive/index/jigouindex/houqin.png`,
s: `https://www.focusnu.com/media/directive/index/jigouindex/gongqu.png`,
t: common_vendor.f(buttonArray.value, (item0, index2, i1) => {
return {
a: `https://www.focusnu.com/media/directive/index/addjiji/${index2}.png`,
b: common_vendor.t(item2),
c: index2
a: `https://www.focusnu.com/media/directive/index/addstaff/${index2 + 2}.png`,
b: common_vendor.t(item0),
c: index2,
d: common_vendor.o(() => {
}, index2)
};
})
}),
v: `https://www.focusnu.com/media/directive/index/addstaff/indexmore.png`
} : {}, {
o: item.status == `-1`
w: item.status == `-1`
}, item.status == `-1` ? {
p: common_vendor.o(addjigou, index)
x: common_vendor.o(addjigou, index)
} : {}, {
q: index
y: index
});
}),
d: `100vh`,

File diff suppressed because one or more lines are too long

View File

@ -212,7 +212,6 @@
margin-left: 1%;
}
.white-box-father .white-box.data-v-1cf27b2a {
margin-top: 35rpx;
width: 20.7%;
margin-left: 3%;
height: 237rpx;
@ -343,3 +342,112 @@
width: 37rpx;
height: 37rpx;
}
.fuwu-button.data-v-1cf27b2a {
width: calc(100% - 60rpx);
height: 300rpx;
margin-left: 30rpx;
background-color: #fff;
margin-bottom: 25rpx;
border-radius: 50rpx;
padding: 0 50rpx;
}
.fuwu-button .fuwu-button-top.data-v-1cf27b2a {
width: 100%;
height: 50%;
display: flex;
align-items: center;
justify-content: space-between;
}
.fuwu-button .fuwu-button-bottom.data-v-1cf27b2a {
width: 100%;
height: 50%;
margin-top: -15rpx;
display: flex;
align-items: center;
justify-content: space-between;
}
.bottom-button-img.data-v-1cf27b2a {
position: absolute;
top: 40rpx;
right: 40rpx;
width: 45rpx;
height: 45rpx;
}
.bottom-button-qiehuan.data-v-1cf27b2a {
position: absolute;
bottom: 0;
right: 0;
width: 70rpx;
height: 40rpx;
background-color: #E1EFFC;
border-radius: 20rpx;
border: #CAE0F9 1rpx solid;
display: flex;
align-items: center;
}
.bottom-button-qiehuan .blue-ball.data-v-1cf27b2a {
width: 30rpx;
height: 30rpx;
border-radius: 50%;
margin-left: 5rpx;
background-color: #0385FA;
}
.small-icon.data-v-1cf27b2a {
width: 100rpx;
height: 100rpx;
border-radius: 20rpx;
background-color: #F6F6F6;
display: flex;
justify-content: center;
align-items: center;
margin-left: 20rpx;
}
.big-button-double.data-v-1cf27b2a {
width: 100%;
height: 280rpx;
display: flex;
justify-content: space-between;
padding: 0 30rpx;
}
.big-button-double .left-button.data-v-1cf27b2a {
height: 100%;
width: 49%;
background-color: #fff;
border-radius: 45rpx;
position: relative;
}
.big-button-double .left-button .left-button-img.data-v-1cf27b2a {
margin: 40rpx 0 0 40rpx;
width: 65rpx;
height: 65rpx;
}
.big-button-double .left-button .left-button-bottom.data-v-1cf27b2a {
position: absolute;
left: 0;
bottom: 45rpx;
width: 100%;
padding: 0 40rpx;
display: flex;
justify-content: space-between;
}
.middle-view.data-v-1cf27b2a {
width: 100%;
height: 180rpx;
padding: 25rpx 30rpx;
display: flex;
justify-content: space-between;
}
.middle-view .middle-small.data-v-1cf27b2a {
width: 49%;
height: 100%;
border-radius: 40rpx;
background-color: #fff;
padding: 0rpx 45rpx;
align-items: center;
display: flex;
justify-content: space-between;
}
.middle-view .middle-small .middle-small-img.data-v-1cf27b2a {
width: 65rpx;
height: 65rpx;
}

View File

@ -58,7 +58,7 @@ const _sfc_main = {
});
},
fail(err) {
common_vendor.index.__f__("error", "at pages/login/callback.vue:93", "获取 code 失败:", err);
common_vendor.index.__f__("error", "at pages/login/callback.vue:94", "获取 code 失败:", err);
}
});
};

View File

@ -27,7 +27,7 @@ const _sfc_main = {
});
},
fail(err) {
common_vendor.index.__f__("error", "at pages/login/index.vue:128", "获取 code 失败:", err);
common_vendor.index.__f__("error", "at pages/login/index.vue:154", "获取 code 失败:", err);
}
});
};
@ -51,27 +51,25 @@ const _sfc_main = {
return common_vendor.e({
a: common_vendor.o(loginIt),
b: common_vendor.n(isTarget.value ? "radio-circle-target" : "radio-circle"),
c: common_vendor.o(($event) => isTarget.value = !isTarget.value),
c: common_vendor.o(jumpToPro),
d: common_vendor.o(($event) => isTarget.value = !isTarget.value),
e: common_vendor.o(jumpToPro),
f: common_vendor.o(($event) => isTarget.value = !isTarget.value),
g: isFadingOut.value
e: isFadingOut.value
}, isFadingOut.value ? {
h: common_vendor.o(closeModal),
i: maskColor.value
f: common_vendor.o(closeModal),
g: maskColor.value
} : {}, {
j: common_vendor.p({
h: common_vendor.p({
name: "fade"
}),
k: isFadingOut.value
i: isFadingOut.value
}, isFadingOut.value ? {
l: common_vendor.o(jumpToPro),
m: common_vendor.o(($event) => {
j: common_vendor.o(jumpToPro),
k: common_vendor.o(($event) => {
closeModal();
isTarget.value = true;
})
} : {}, {
n: common_vendor.p({
l: common_vendor.p({
name: "slide-up"
})
});

View File

@ -1 +1 @@
<view class="login-container data-v-d08ef7d4"><image class="title-imge data-v-d08ef7d4" src="https://www.focusnu.com/media/directive/login/icon.png"/><image class="photo-imge data-v-d08ef7d4" src="https://www.focusnu.com/media/directive/login/bgc.png"/><view class="under-container data-v-d08ef7d4"><button class="button-blue data-v-d08ef7d4" bindtap="{{a}}"> 一键登录 </button><view class="under-container-title data-v-d08ef7d4"><view class="radio-father data-v-d08ef7d4" bindtap="{{c}}"><view class="{{['data-v-d08ef7d4', b]}}"></view></view><view class="radio-circle-font data-v-d08ef7d4" style="margin-left:-10rpx" bindtap="{{d}}">我已阅读并同意护理单元</view><view class="radio-circle-blue data-v-d08ef7d4" bindtap="{{e}}"> 《NU护理单元使用条款》 </view><view class="radio-circle-font data-v-d08ef7d4" bindtap="{{f}}">并授权NU获取本机号码</view><view class="data-v-d08ef7d4" style="position:absolute;bottom:-50rpx;left:0;width:100%;text-align:center"> 账号仅限特定人群登录并进行账号鉴权。 </view></view></view><transition wx:if="{{j}}" class="data-v-d08ef7d4" u-s="{{['d']}}" u-i="d08ef7d4-0" bind:__l="__l" u-p="{{j}}"><view wx:if="{{g}}" class="overlay data-v-d08ef7d4" bindtap="{{h}}" style="{{'background-color:' + i}}"/></transition><transition wx:if="{{n}}" class="data-v-d08ef7d4" u-s="{{['d']}}" u-i="d08ef7d4-1" bind:__l="__l" u-p="{{n}}"><view wx:if="{{k}}" class="modal data-v-d08ef7d4"><view class="modal-title data-v-d08ef7d4">使用条款</view><view class="model-p data-v-d08ef7d4"><text class="data-v-d08ef7d4">  为了更好地保障您的合法权益,请阅读并同意护理单元</text><text class="data-v-d08ef7d4" style="color:rgb(0,141,255)" bindtap="{{l}}">《使用条款》</text><text class="data-v-d08ef7d4">,同意后将自动登录。</text></view><view class="model-down data-v-d08ef7d4"><view class="model-blue data-v-d08ef7d4" bindtap="{{m}}"> 同意 </view></view></view></transition></view>
<view class="login-container data-v-d08ef7d4"><image class="title-imge data-v-d08ef7d4" src="https://www.focusnu.com/media/directive/login/icon.png"/><image class="photo-imge data-v-d08ef7d4" src="https://www.focusnu.com/media/directive/login/bgc.png"/><view class="under-container data-v-d08ef7d4"><button class="button-blue data-v-d08ef7d4" bindtap="{{a}}"> 一键登录 </button><view class="under-container-title data-v-d08ef7d4" bindtap="{{d}}"><view class="radio-father data-v-d08ef7d4"><view class="{{['data-v-d08ef7d4', b]}}"></view></view><text class="radio-circle-font data-v-d08ef7d4"> 我已阅读并同意 </text><text class="radio-circle-blue data-v-d08ef7d4" catchtap="{{c}}"> 《NU护理单元使用条款》 </text><text class="radio-circle-font data-v-d08ef7d4"> 并授权NU </text><text style="margin-top:10rpx" class="radio-circle-font data-v-d08ef7d4"> 获取本机号码。账号仅限特定人群登录并进行账号鉴权。 </text></view></view><transition wx:if="{{h}}" class="data-v-d08ef7d4" u-s="{{['d']}}" u-i="d08ef7d4-0" bind:__l="__l" u-p="{{h}}"><view wx:if="{{e}}" class="overlay data-v-d08ef7d4" bindtap="{{f}}" style="{{'background-color:' + g}}"/></transition><transition wx:if="{{l}}" class="data-v-d08ef7d4" u-s="{{['d']}}" u-i="d08ef7d4-1" bind:__l="__l" u-p="{{l}}"><view wx:if="{{i}}" class="modal data-v-d08ef7d4"><view class="modal-title data-v-d08ef7d4">使用条款</view><view class="model-p data-v-d08ef7d4"><text class="data-v-d08ef7d4">  为了更好地保障您的合法权益,请阅读并同意</text><text class="data-v-d08ef7d4" style="color:rgb(0,141,255)" bindtap="{{j}}">《NU护理单元使用条款》</text><text class="data-v-d08ef7d4">,同意后将自动登录。</text></view><view class="model-down data-v-d08ef7d4"><view class="model-blue data-v-d08ef7d4" bindtap="{{k}}"> 同意 </view></view></view></transition></view>

View File

@ -85,19 +85,14 @@
}
.under-container-title.data-v-d08ef7d4 {
display: flex;
width: 80%;
margin-bottom: 40rpx;
align-items: center;
font-size: 23rpx;
font-weight: 500;
flex-wrap: wrap;
position: relative;
}
.under-container-title .radio-circle-blue.data-v-d08ef7d4 {
color: #0083FF;
margin-top: 3rpx;
}
.under-container-title .radio-circle-font.data-v-d08ef7d4 {
color: #5A607F;
margin-top: 3rpx;
line-height: 30rpx;
}
.button-blue.data-v-d08ef7d4 {
width: 80%;
@ -177,9 +172,18 @@
align-items: center;
}
.radio-father.data-v-d08ef7d4 {
width: 100rpx;
width: 40rpx;
height: 30rpx;
display: flex;
justify-content: center;
margin-top: -10rpx;
margin-top: -20rpx;
margin-right: 20rpx;
}
.radio-circle-blue.data-v-d08ef7d4 {
color: #0083FF;
margin-top: 3rpx;
}
.radio-circle-font.data-v-d08ef7d4 {
color: #5A607F;
margin-top: 3rpx;
}

View File

@ -165,7 +165,7 @@
top: 50%;
right: 20rpx;
transform: translateY(-50%);
z-index: 2;
z-index: 999;
}
.blue-button.data-v-9a7b17f0 {
position: absolute;

View File

@ -54,7 +54,7 @@
right: 0;
}
.bgc-card.data-v-d98921ec {
margin-top: 120rpx;
margin-top: 80rpx;
width: 98%;
margin-left: 1%;
border-top-left-radius: 30rpx;

View File

@ -213,15 +213,16 @@ const _sfc_main = {
c: index2,
d: common_vendor.o(($event) => clickButton(item, index2), index2)
};
})
}),
H: `https://www.focusnu.com/media/directive/index/addstaff/indexmore.png`
} : {}, {
H: item.applyType == "1" && item.applyStatus == `-1`
I: item.applyType == "1" && item.applyStatus == `-1`
}, item.applyType == "1" && item.applyStatus == `-1` ? {} : {}, {
I: item.applyStatus == `-1`
J: item.applyStatus == `-1`
}, item.applyStatus == `-1` ? {
J: common_vendor.o(($event) => searchjigou(), index)
K: common_vendor.o(($event) => searchjigou(), index)
} : {}, {
K: index
L: index
});
}),
h: `100vh`,

File diff suppressed because one or more lines are too long

View File

@ -214,7 +214,7 @@
margin-top: 25rpx;
width: 20.7%;
margin-left: 3%;
height: 190rpx;
height: 205rpx;
background-color: #fff;
border-radius: 35rpx;
display: flex;

View File

@ -5,11 +5,12 @@
},
"setting": {
"urlCheck": false,
"es6": false,
"es6": true,
"postcss": false,
"minified": true,
"newFeature": true,
"bigPackageSizeSupport": true
"bigPackageSizeSupport": true,
"enhance": true
},
"compileType": "miniprogram",
"libVersion": "latest",

View File

@ -12,6 +12,16 @@ const request = (params) => {
"Authorization": "Basic c2FiZXI6c2FiZXJfc2VjcmV0",
...params.header
};
const get401Count = () => {
const v = common_vendor.index.getStorageSync("auth401Count");
return Number.isInteger(v) ? v : 0;
};
const set401Count = (n) => {
common_vendor.index.setStorageSync("auth401Count", n);
};
const reset401Count = () => {
common_vendor.index.removeStorageSync("auth401Count");
};
return new Promise((resolve, reject) => {
common_vendor.index.request({
url: base_url + url,
@ -22,26 +32,40 @@ const request = (params) => {
success(response) {
const res = response;
if (res.statusCode == 200) {
reset401Count();
resolve(res.data);
} else {
common_vendor.index.clearStorageSync();
if (res.statusCode !== 401) {
reset401Count();
}
switch (res.statusCode) {
case 401:
if (!params.no401) {
common_vendor.index.showModal({
title: "登录过期",
content: "登录过期,请重新登录",
showCancel: false,
success() {
setTimeout(() => {
case 401: {
let count = get401Count() || 0;
count = count + 1;
set401Count(count);
if (count < 3) {
common_vendor.index.clearStorageSync();
common_vendor.index.reLaunch({
url: "/pages/login/callback"
});
}, 1e3);
} else {
common_vendor.index.showModal({
title: "登录异常",
content: "检测到多次未授权访问401请重新登录。",
confirmText: "去登录",
cancelText: "取消",
success(resModal) {
if (resModal.confirm) {
common_vendor.index.clearStorageSync();
common_vendor.index.reLaunch({
url: "/pages/login/callback"
});
}
}
});
}
break;
}
case 404:
common_vendor.index.showToast({
title: "请求地址不存在...",
@ -57,10 +81,11 @@ const request = (params) => {
});
break;
}
reject(res);
}
},
fail(err) {
if (err.errMsg.indexOf("request:fail") !== -1) {
if (err && err.errMsg && err.errMsg.indexOf("request:fail") !== -1) {
common_vendor.index.showToast({
title: "网络异常",
icon: "error",
@ -75,7 +100,6 @@ const request = (params) => {
reject(err);
}
});
}).catch(() => {
});
};
exports.base_url = base_url;