解决401问题和重新点击的问题
This commit is contained in:
parent
0f3637db38
commit
d229756165
|
|
@ -3,9 +3,9 @@ import { ref } from 'vue';
|
||||||
import request from '@/request/index.js';
|
import request from '@/request/index.js';
|
||||||
|
|
||||||
//新增/编辑机构加盟申请信息
|
//新增/编辑机构加盟申请信息
|
||||||
export function changemessage(data){
|
export function changemessage(data,ukey){
|
||||||
return request({
|
return request({
|
||||||
url: `/api/orgApplyInfo/save`,
|
url: `/api/orgApplyInfo/save?ukey=${ukey}`,
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data,
|
data,
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -234,7 +234,9 @@
|
||||||
function isValid11DigitNumber(val) {
|
function isValid11DigitNumber(val) {
|
||||||
return /^(\d{11})$/.test(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 = () => {
|
const next = () => {
|
||||||
if (!form.address) {
|
if (!form.address) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|
@ -302,13 +304,14 @@
|
||||||
|
|
||||||
if (allNonEmpty) {
|
if (allNonEmpty) {
|
||||||
let data = uni.getStorageSync('backhuancun')
|
let data = uni.getStorageSync('backhuancun')
|
||||||
if(data.endTime=='长期'){
|
if (data.endTime == '长期') {
|
||||||
data.endTime = swapLongTerm(data.endTime);
|
data.endTime = swapLongTerm(data.endTime);
|
||||||
}
|
}
|
||||||
uni.setStorageSync("backhuancun", data)
|
uni.setStorageSync("backhuancun", data)
|
||||||
|
|
||||||
changemessage(uni.getStorageSync('backhuancun')).then(res => {
|
changemessage(uni.getStorageSync('backhuancun'), ukey.value).then(res => {
|
||||||
if (res.success) {
|
if (res.success && res.result != '重复提交') {
|
||||||
|
|
||||||
uni.requestSubscribeMessage({
|
uni.requestSubscribeMessage({
|
||||||
// 这里填后台申请好的 templateId 数组
|
// 这里填后台申请好的 templateId 数组
|
||||||
tmplIds: ['cWVzXm1C-iitx1gNFn1nZdijq9R_3fCv8vLbiqs9zww'],
|
tmplIds: ['cWVzXm1C-iitx1gNFn1nZdijq9R_3fCv8vLbiqs9zww'],
|
||||||
|
|
@ -793,7 +796,7 @@
|
||||||
border-radius: 30rpx;
|
border-radius: 30rpx;
|
||||||
margin-top: 30rpx;
|
margin-top: 30rpx;
|
||||||
margin-left: 30rpx;
|
margin-left: 30rpx;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style>
|
<style>
|
||||||
.uni-scroll-view {
|
.uni-scroll-view {
|
||||||
|
|
|
||||||
|
|
@ -92,6 +92,9 @@
|
||||||
function isValid18DigitNumber(val) {
|
function isValid18DigitNumber(val) {
|
||||||
return /^(\d{18})$/.test(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 = () => {
|
const next = () => {
|
||||||
|
|
||||||
if (!form.relationship) {
|
if (!form.relationship) {
|
||||||
|
|
@ -146,7 +149,7 @@
|
||||||
data.guardianWorkUnit = form.workUnit
|
data.guardianWorkUnit = form.workUnit
|
||||||
data.relationship = form.relationship
|
data.relationship = form.relationship
|
||||||
data.modifyType = "jhr"
|
data.modifyType = "jhr"
|
||||||
const urlpost = `${base_url}/api/elderInfo/updateElderInfo`;
|
const urlpost = `${base_url}/api/elderInfo/updateElderInfo?ukey=${ukey.value}`;
|
||||||
uni.request({
|
uni.request({
|
||||||
url: urlpost,
|
url: urlpost,
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
@ -156,7 +159,9 @@
|
||||||
},
|
},
|
||||||
data: data,
|
data: data,
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
// console.log("?????",res)
|
if (res.data.result == '重复提交') {
|
||||||
|
return
|
||||||
|
}
|
||||||
if (res.data.success) {
|
if (res.data.success) {
|
||||||
getMessage(uni.getStorageSync('openid')).then(res => {
|
getMessage(uni.getStorageSync('openid')).then(res => {
|
||||||
uni.setStorageSync('allinfo', res.result);
|
uni.setStorageSync('allinfo', res.result);
|
||||||
|
|
@ -178,7 +183,7 @@
|
||||||
data.guardianHomeAddress = form.homeAddress
|
data.guardianHomeAddress = form.homeAddress
|
||||||
data.guardianWorkUnit = form.workUnit
|
data.guardianWorkUnit = form.workUnit
|
||||||
data.relationship = form.relationship
|
data.relationship = form.relationship
|
||||||
const urlpost = `${payurl.value}/api/elderInfo/addElder`;
|
const urlpost = `${base_url}/api/elderInfo/addElder?ukey=${ukey.value}`;
|
||||||
uni.request({
|
uni.request({
|
||||||
url: urlpost,
|
url: urlpost,
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
@ -189,7 +194,9 @@
|
||||||
data: data,
|
data: data,
|
||||||
success: (r) => {
|
success: (r) => {
|
||||||
|
|
||||||
console.log("r", r)
|
if (r.data.result == '重复提交') {
|
||||||
|
return
|
||||||
|
}
|
||||||
if (r.data.code != 200) {
|
if (r.data.code != 200) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: r.data.message,
|
title: r.data.message,
|
||||||
|
|
|
||||||
|
|
@ -140,7 +140,7 @@
|
||||||
alldata.value.idCard = alldata.value.guardianIdCard;
|
alldata.value.idCard = alldata.value.guardianIdCard;
|
||||||
alldata.value.homeAddress = alldata.value.guardianHomeAddress;
|
alldata.value.homeAddress = alldata.value.guardianHomeAddress;
|
||||||
alldata.value.workUnit = alldata.value.guardianWorkUnit;
|
alldata.value.workUnit = alldata.value.guardianWorkUnit;
|
||||||
console.log("!!!!!!!!!!!!!!!!!!", alldata.value)
|
// console.log("!!!!!!!!!!!!!!!!!!", alldata.value)
|
||||||
uni.setStorageSync('allinfo', alldata.value)
|
uni.setStorageSync('allinfo', alldata.value)
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@
|
||||||
|
|
||||||
<view class="content-title" style="margin: 20rpx 0;">
|
<view class="content-title" style="margin: 20rpx 0;">
|
||||||
<view class="shu"></view>
|
<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 style="margin-top: 8rpx;margin-left: 12rpx;;font-size: 23rpx;">(必填)</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="white-photo" @click="selectphoto(0)">
|
<view class="white-photo" @click="selectphoto(0)">
|
||||||
|
|
@ -397,7 +397,9 @@
|
||||||
function isValid18DigitNumber(val) {
|
function isValid18DigitNumber(val) {
|
||||||
return /^(\d{18})$/.test(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 = () => {
|
const next = () => {
|
||||||
if (!fontphoto.value) {
|
if (!fontphoto.value) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|
@ -494,10 +496,10 @@
|
||||||
|
|
||||||
data.startTime = start;
|
data.startTime = start;
|
||||||
data.endTime = end
|
data.endTime = end
|
||||||
if(data.endTime=='长期'){
|
if (data.endTime == '长期') {
|
||||||
data.endTime = swapLongTerm(end)
|
data.endTime = swapLongTerm(end)
|
||||||
}
|
}
|
||||||
|
|
||||||
data.sysOrgCode = uni.getStorageSync('oldman').orgCode
|
data.sysOrgCode = uni.getStorageSync('oldman').orgCode
|
||||||
// uni.getStorageSync('oldman').orgCode
|
// uni.getStorageSync('oldman').orgCode
|
||||||
let res = form
|
let res = form
|
||||||
|
|
@ -520,7 +522,7 @@
|
||||||
// console.log("?????", data)
|
// console.log("?????", data)
|
||||||
if (id.value) {
|
if (id.value) {
|
||||||
data.id = 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({
|
uni.request({
|
||||||
url: urlpost,
|
url: urlpost,
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
@ -530,17 +532,20 @@
|
||||||
},
|
},
|
||||||
data: data,
|
data: data,
|
||||||
success: (r) => {
|
success: (r) => {
|
||||||
|
if (r.data.result == '重复提交') {
|
||||||
|
return
|
||||||
|
}
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url: '/pages/oldmanindex/oldmansuccess?type=1'
|
url: '/pages/oldmanindex/oldmansuccess?type=1'
|
||||||
})
|
})
|
||||||
// console.log("rrrr",r)
|
// console.log("rrrr", r)
|
||||||
},
|
},
|
||||||
fail: (e) => {
|
fail: (e) => {
|
||||||
console.log("????", e)
|
console.log("????", e)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
const urlpost = `${payurl.value}/api/elderInfo/addElder`;
|
const urlpost = `${payurl.value}/api/elderInfo/addElder?ukey=${ukey.value}`;
|
||||||
uni.request({
|
uni.request({
|
||||||
url: urlpost,
|
url: urlpost,
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
@ -551,7 +556,10 @@
|
||||||
data: data,
|
data: data,
|
||||||
success: (r) => {
|
success: (r) => {
|
||||||
|
|
||||||
console.log("r", r)
|
if (r.data.result == '重复提交') {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if (r.data.code != 200) {
|
if (r.data.code != 200) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: r.data.message,
|
title: r.data.message,
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,9 @@ import { ref } from 'vue';
|
||||||
import request from '@/request/index.js';
|
import request from '@/request/index.js';
|
||||||
|
|
||||||
//新增/编辑机构加盟申请信息
|
//新增/编辑机构加盟申请信息
|
||||||
export function changemessage(data){
|
export function changemessage(data,ukey){
|
||||||
return request({
|
return request({
|
||||||
url: `/api/employessAdvisiory/saveApiEmployess`,
|
url: `/api/employessAdvisiory/saveApiEmployess?ukey=${ukey}`,
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data,
|
data,
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -245,10 +245,14 @@
|
||||||
show.value = true
|
show.value = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
const ukey = ref(
|
||||||
|
`${uni.getStorageSync('openid') || ''}ygbg${String(Date.now()).slice(-5)}${String(Math.floor(Math.random() * 900) + 100)}`
|
||||||
|
)
|
||||||
const next = () => {
|
const next = () => {
|
||||||
if (!uping.value) {
|
if (!uping.value) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
let data = uni.getStorageSync('backhuancun');
|
let data = uni.getStorageSync('backhuancun');
|
||||||
data.healthZmPath = imgArray[0]
|
data.healthZmPath = imgArray[0]
|
||||||
data.healthFmPath = imgArray[1]
|
data.healthFmPath = imgArray[1]
|
||||||
|
|
@ -257,8 +261,9 @@
|
||||||
data.endTime = swapLongTerm(data.endTime);
|
data.endTime = swapLongTerm(data.endTime);
|
||||||
data.orgCode = uni.getStorageSync('changeyuangongorgCode')
|
data.orgCode = uni.getStorageSync('changeyuangongorgCode')
|
||||||
uni.setStorageSync('changeyuangongorgCode', "");
|
uni.setStorageSync('changeyuangongorgCode', "");
|
||||||
changemessage(data).then(res => {
|
|
||||||
if (res.success) {
|
changemessage(data, ukey.value).then(res => {
|
||||||
|
if (res.success && res.result != '重复提交') {
|
||||||
gopush()
|
gopush()
|
||||||
}
|
}
|
||||||
// uni.requestSubscribeMessage({
|
// uni.requestSubscribeMessage({
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="login-container" @click="ceshi">
|
<view class="login-container" @click="ceshi">
|
||||||
<!-- <u-modal title="驳回原因" v-model="show" :content="content"></u-modal> -->
|
<!-- <u-modal title="驳回原因" v-model="show" :content="content"></u-modal> -->
|
||||||
<view class="index-up">
|
<view class="index-up">
|
||||||
<image class="index-up-img" src="https://www.focusnu.com/media/directive/index/indexgif.gif" mode="widthFix"
|
<image class="index-up-img" src="https://www.focusnu.com/media/directive/index/indexgif.gif" mode="widthFix"
|
||||||
|
|
@ -70,7 +70,122 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
<view style="z-index: 1;width: 100%;" v-if="item.status==`2`">
|
<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="zhiling-box">
|
||||||
<view class="">
|
<view class="">
|
||||||
暂无指令
|
暂无指令
|
||||||
|
|
@ -89,7 +204,7 @@
|
||||||
<view style="font-weight: 600;font-size: 80rpx;">+</view>
|
<view style="font-weight: 600;font-size: 80rpx;">+</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view> -->
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
@ -136,7 +251,7 @@
|
||||||
<view style="font-size: 32rpx;margin-top: 50rpx;">
|
<view style="font-size: 32rpx;margin-top: 50rpx;">
|
||||||
{{menuArray[which]?.comName}}
|
{{menuArray[which]?.comName}}
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<downMenu :itemTarget="0" />
|
<downMenu :itemTarget="0" />
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -164,7 +279,7 @@
|
||||||
const show = ref(false);
|
const show = ref(false);
|
||||||
const content = ref("");
|
const content = ref("");
|
||||||
// const itemArray = ["NU", "动态", "我的"];
|
// const itemArray = ["NU", "动态", "我的"];
|
||||||
const buttonArray = ref(["单元", "仓库", "后勤", "工区", "办公室 ", "员工", "机构维护"])
|
const buttonArray = ref(["办公室", "员工", "机构维护"])
|
||||||
const statusarray = ["loading", "success", "fail"]
|
const statusarray = ["loading", "success", "fail"]
|
||||||
// const itemTarget = ref(0);
|
// const itemTarget = ref(0);
|
||||||
const which = ref(0);
|
const which = ref(0);
|
||||||
|
|
@ -172,7 +287,7 @@
|
||||||
const ceshi = () => {
|
const ceshi = () => {
|
||||||
// console.log("666666")
|
// console.log("666666")
|
||||||
// uni.navigateTo({
|
// uni.navigateTo({
|
||||||
// url:"/pages/login/xuanchuan"
|
// url:"/pages/login/index"
|
||||||
// })
|
// })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -599,7 +714,7 @@
|
||||||
// margin-bottom: 30rpx;
|
// margin-bottom: 30rpx;
|
||||||
// margin-top: 10rpx;
|
// margin-top: 10rpx;
|
||||||
.white-box {
|
.white-box {
|
||||||
margin-top: 35rpx;
|
// margin-top: 35rpx;
|
||||||
width: 20.7%;
|
width: 20.7%;
|
||||||
margin-left: 3%;
|
margin-left: 3%;
|
||||||
height: 237rpx;
|
height: 237rpx;
|
||||||
|
|
@ -750,4 +865,129 @@
|
||||||
height: 37rpx;
|
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>
|
</style>
|
||||||
|
|
@ -78,6 +78,7 @@
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url: `/pages/login/threeselectone`
|
url: `/pages/login/threeselectone`
|
||||||
});
|
});
|
||||||
|
|
@ -100,7 +101,10 @@
|
||||||
} else {
|
} else {
|
||||||
uni.setStorageSync('special', false);
|
uni.setStorageSync('special', false);
|
||||||
}
|
}
|
||||||
superLogin();
|
// setTimeout(() => {
|
||||||
|
superLogin();
|
||||||
|
// }, 10000)
|
||||||
|
|
||||||
// playing.value = true
|
// playing.value = true
|
||||||
});
|
});
|
||||||
let timer = null
|
let timer = null
|
||||||
|
|
@ -159,6 +163,7 @@
|
||||||
margin-top: 100rpx;
|
margin-top: 100rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
// .dian{
|
// .dian{
|
||||||
// margin: 0 10rpx;
|
// margin: 0 10rpx;
|
||||||
// }
|
// }
|
||||||
|
|
|
||||||
|
|
@ -14,19 +14,33 @@
|
||||||
<button class="button-blue" @click="loginIt">
|
<button class="button-blue" @click="loginIt">
|
||||||
一键登录
|
一键登录
|
||||||
</button>
|
</button>
|
||||||
<view class="under-container-title">
|
<view class="under-container-title" @click="isTarget = !isTarget">
|
||||||
<view class="radio-father" @click="isTarget = !isTarget">
|
<view class="radio-father">
|
||||||
<view :class="isTarget ? 'radio-circle-target' : 'radio-circle'"></view>
|
<view :class="isTarget ? 'radio-circle-target' : 'radio-circle'"></view>
|
||||||
</view>
|
</view>
|
||||||
|
<text class="radio-circle-font">
|
||||||
<view class="radio-circle-font" style="margin-left: -10rpx;" @click="isTarget = !isTarget">我已阅读并同意护理单元</view>
|
我已阅读并同意
|
||||||
<view class="radio-circle-blue" @click="jumpToPro">
|
</text>
|
||||||
|
<text class="radio-circle-blue" @click.stop="jumpToPro">
|
||||||
《NU护理单元使用条款》
|
《NU护理单元使用条款》
|
||||||
</view>
|
</text>
|
||||||
<view class="radio-circle-font" @click="isTarget = !isTarget">并授权NU获取本机号码</view>
|
<text class="radio-circle-font">
|
||||||
<view style="position: absolute;bottom: -50rpx;left: 0;width: 100%;text-align: center;">
|
并授权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>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -40,9 +54,21 @@
|
||||||
<view v-if="isFadingOut" class="modal">
|
<view v-if="isFadingOut" class="modal">
|
||||||
<view class="modal-title">使用条款</view>
|
<view class="modal-title">使用条款</view>
|
||||||
<view class="model-p">
|
<view class="model-p">
|
||||||
<text>  为了更好地保障您的合法权益,请阅读并同意护理单元</text>
|
<text>  为了更好地保障您的合法权益,请阅读并同意</text>
|
||||||
<text style="color: rgb(0,141,255);" @click="jumpToPro">《使用条款》</text>
|
<text style="color: rgb(0,141,255);" @click="jumpToPro">《NU护理单元使用条款》</text>
|
||||||
<text>,同意后将自动登录。</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>
|
||||||
<view class="model-down">
|
<view class="model-down">
|
||||||
<!-- <view class="model-white" @click="closeModal">
|
<!-- <view class="model-white" @click="closeModal">
|
||||||
|
|
@ -242,23 +268,17 @@
|
||||||
|
|
||||||
.under-container-title {
|
.under-container-title {
|
||||||
display: flex;
|
display: flex;
|
||||||
// margin-top: 10rpx;
|
// padding: 0 80rpx;
|
||||||
|
width: 80%;
|
||||||
margin-bottom: 40rpx;
|
margin-bottom: 40rpx;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-size: 23rpx;
|
font-size: 23rpx;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
flex-wrap: wrap;
|
||||||
position: relative;
|
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 {
|
.button-blue {
|
||||||
|
|
@ -346,10 +366,21 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.radio-father {
|
.radio-father {
|
||||||
width: 100rpx;
|
width: 40rpx;
|
||||||
height: 30rpx;
|
height: 30rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
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>
|
</style>
|
||||||
|
|
@ -272,7 +272,7 @@
|
||||||
top: 50%;
|
top: 50%;
|
||||||
right: 20rpx;
|
right: 20rpx;
|
||||||
transform: translateY(-50%);
|
transform: translateY(-50%);
|
||||||
z-index: 2;
|
z-index: 999;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -278,7 +278,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.bgc-card {
|
.bgc-card {
|
||||||
margin-top: 120rpx;
|
margin-top: 80rpx;
|
||||||
// background-color: #F7F7F7;
|
// background-color: #F7F7F7;
|
||||||
width: 98%;
|
width: 98%;
|
||||||
margin-left: 1%;
|
margin-left: 1%;
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@
|
||||||
|
|
||||||
</view>
|
</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">
|
||||||
<view class="fuwu-button-top">
|
<view class="fuwu-button-top">
|
||||||
<view style="display: flex;">
|
<view style="display: flex;">
|
||||||
|
|
@ -185,7 +185,9 @@
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view class="white-box">
|
<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>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -684,7 +686,7 @@
|
||||||
margin-top: 25rpx;
|
margin-top: 25rpx;
|
||||||
width: 20.7%;
|
width: 20.7%;
|
||||||
margin-left: 3%;
|
margin-left: 3%;
|
||||||
height: 190rpx;
|
height: 205rpx;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border-radius: 35rpx;
|
border-radius: 35rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
@ -972,8 +974,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.fuwu-button {
|
.fuwu-button {
|
||||||
|
|
|
||||||
207
request/index.js
207
request/index.js
|
|
@ -1,95 +1,126 @@
|
||||||
// 全局请求封装
|
// 全局请求封装
|
||||||
// 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'
|
export const base_url = 'https://www.focusnu.com/opeapi'
|
||||||
|
|
||||||
// 请求超出时间
|
// 请求超出时间
|
||||||
const timeout = 5000
|
const timeout = 5000
|
||||||
|
|
||||||
// 需要修改token,和根据实际修改请求头
|
// 需要修改token,和根据实际修改请求头
|
||||||
export default (params) => {
|
export default (params) => {
|
||||||
let url = params.url;
|
let url = params.url;
|
||||||
let method = params.method || "get";
|
let method = params.method || "get";
|
||||||
let data = params.data || {};
|
let data = params.data || {};
|
||||||
let header = {
|
let header = {
|
||||||
'X-Access-Token': uni.getStorageSync('token') || '',
|
'X-Access-Token': uni.getStorageSync('token') || '',
|
||||||
'Content-Type': 'application/json;charset=UTF-8',
|
'Content-Type': 'application/json;charset=UTF-8',
|
||||||
'Authorization': 'Basic c2FiZXI6c2FiZXJfc2VjcmV0',
|
'Authorization': 'Basic c2FiZXI6c2FiZXJfc2VjcmV0',
|
||||||
|
...params.header
|
||||||
...params.header
|
}
|
||||||
}
|
|
||||||
// 阻止点击(默认遮罩)
|
// 读取/写入 401 计数的辅助函数(保存在本地 Storage)
|
||||||
// uni.showLoading({
|
const get401Count = () => {
|
||||||
// title: '加载中...',
|
const v = uni.getStorageSync('auth401Count')
|
||||||
// mask: true
|
return Number.isInteger(v) ? v : 0
|
||||||
// })
|
}
|
||||||
return new Promise((resolve, reject) => {
|
const set401Count = (n) => {
|
||||||
uni.request({
|
uni.setStorageSync('auth401Count', n)
|
||||||
url: base_url + url,
|
}
|
||||||
method: method,
|
const reset401Count = () => {
|
||||||
header: header,
|
uni.removeStorageSync('auth401Count')
|
||||||
data: data,
|
}
|
||||||
timeout,
|
|
||||||
success(response) {
|
return new Promise((resolve, reject) => {
|
||||||
const res = response
|
uni.request({
|
||||||
// 根据返回的状态码做出对应的操作
|
url: base_url + url,
|
||||||
// uni.hideLoading()
|
method: method,
|
||||||
if (res.statusCode == 200) {
|
header: header,
|
||||||
resolve(res.data);
|
data: data,
|
||||||
} else {
|
timeout,
|
||||||
uni.clearStorageSync()
|
success(response) {
|
||||||
switch (res.statusCode) {
|
const res = response
|
||||||
case 401:
|
if (res.statusCode == 200) {
|
||||||
if(!params.no401){
|
// 成功则重置 401 计数
|
||||||
uni.showModal({
|
reset401Count()
|
||||||
title: "登录过期",
|
resolve(res.data)
|
||||||
content: "登录过期,请重新登录",
|
} else {
|
||||||
showCancel: false,
|
// 出现非 200 的情况,默认重置 401 计数(除非是 401,我们单独处理)
|
||||||
success() {
|
if (res.statusCode !== 401) {
|
||||||
setTimeout(() => {
|
reset401Count()
|
||||||
uni.reLaunch({
|
}
|
||||||
url: "/pages/login/callback",
|
|
||||||
})
|
switch (res.statusCode) {
|
||||||
}, 1000);
|
case 401: {
|
||||||
},
|
// 增加 401 计数
|
||||||
});
|
let count = get401Count() || 0
|
||||||
}
|
count = count + 1
|
||||||
|
set401Count(count)
|
||||||
break;
|
|
||||||
case 404:
|
// 如果累计小于 3,保持旧逻辑:清除本地存储并直接跳转(自动重定向)
|
||||||
uni.showToast({
|
if (count < 3) {
|
||||||
title: '请求地址不存在...',
|
uni.clearStorageSync()
|
||||||
icon: "error",
|
uni.reLaunch({
|
||||||
duration: 2000,
|
url: "/pages/login/callback",
|
||||||
})
|
})
|
||||||
break;
|
} else {
|
||||||
default:
|
// 累计 >= 3:不要直接跳转,弹框给用户让用户选择是否去登录
|
||||||
uni.showToast({
|
// 这里不自动跳转,只提示(用户点确认再跳转),可以根据需要调整文案
|
||||||
title: '请重试...',
|
uni.showModal({
|
||||||
icon: "error",
|
title: "登录异常",
|
||||||
duration: 2000,
|
content: "检测到多次未授权访问(401),请重新登录。",
|
||||||
})
|
confirmText: "去登录",
|
||||||
break;
|
cancelText: "取消",
|
||||||
}
|
success(resModal) {
|
||||||
}
|
if (resModal.confirm) {
|
||||||
},
|
uni.clearStorageSync()
|
||||||
fail(err) {
|
// 用户主动确认时再跳转
|
||||||
// 允许点击
|
uni.reLaunch({
|
||||||
// uni.hideLoading()
|
url: "/pages/login/callback",
|
||||||
if (err.errMsg.indexOf('request:fail') !== -1) {
|
})
|
||||||
uni.showToast({
|
} else {
|
||||||
title: '网络异常',
|
// 用户取消:不跳转,保留当前状态(可选行为)
|
||||||
icon: "error",
|
// 也可以在这里做其他处理,例如记录日志
|
||||||
duration: 2000
|
}
|
||||||
})
|
}
|
||||||
} else {
|
})
|
||||||
uni.showToast({
|
}
|
||||||
title: '未知异常',
|
// 这里不 resolve(原来你的逻辑也没有 resolve),直接返回
|
||||||
duration: 2000
|
break
|
||||||
})
|
}
|
||||||
}
|
case 404:
|
||||||
reject(err);
|
uni.showToast({
|
||||||
|
title: '请求地址不存在...',
|
||||||
}
|
icon: "error",
|
||||||
});
|
duration: 2000,
|
||||||
}).catch(() => {});
|
})
|
||||||
};
|
break;
|
||||||
|
default:
|
||||||
|
uni.showToast({
|
||||||
|
title: '请重试...',
|
||||||
|
icon: "error",
|
||||||
|
duration: 2000,
|
||||||
|
})
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
// 把整个非 200 的响应 reject 出去,方便调用方做处理(可按需保留/删除)
|
||||||
|
reject(res)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
fail(err) {
|
||||||
|
// 网络或其他异常,不改变 401 计数
|
||||||
|
if (err && err.errMsg && err.errMsg.indexOf('request:fail') !== -1) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '网络异常',
|
||||||
|
icon: "error",
|
||||||
|
duration: 2000
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: '未知异常',
|
||||||
|
duration: 2000
|
||||||
|
})
|
||||||
|
}
|
||||||
|
reject(err);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -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
|
|
@ -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
|
|
@ -7052,7 +7052,7 @@ function isConsoleWritable() {
|
||||||
function initRuntimeSocketService() {
|
function initRuntimeSocketService() {
|
||||||
const hosts = "192.168.2.27,127.0.0.1";
|
const hosts = "192.168.2.27,127.0.0.1";
|
||||||
const port = "8090";
|
const port = "8090";
|
||||||
const id = "mp-weixin_t48DJX";
|
const id = "mp-weixin_KG_azd";
|
||||||
const lazy = typeof swan !== "undefined";
|
const lazy = typeof swan !== "undefined";
|
||||||
let restoreError = lazy ? () => {
|
let restoreError = lazy ? () => {
|
||||||
} : initOnError();
|
} : initOnError();
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
require("../../../common/vendor.js");
|
require("../../../common/vendor.js");
|
||||||
const request_index = require("../../../request/index.js");
|
const request_index = require("../../../request/index.js");
|
||||||
function changemessage(data) {
|
function changemessage(data, ukey) {
|
||||||
return request_index.request({
|
return request_index.request({
|
||||||
url: `/api/orgApplyInfo/save`,
|
url: `/api/orgApplyInfo/save?ukey=${ukey}`,
|
||||||
method: "post",
|
method: "post",
|
||||||
data
|
data
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -82,6 +82,9 @@ const _sfc_main = {
|
||||||
function isValid11DigitNumber(val) {
|
function isValid11DigitNumber(val) {
|
||||||
return /^(\d{11})$/.test(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 = () => {
|
const next = () => {
|
||||||
if (!form.address) {
|
if (!form.address) {
|
||||||
common_vendor.index.showToast({
|
common_vendor.index.showToast({
|
||||||
|
|
@ -150,8 +153,8 @@ const _sfc_main = {
|
||||||
data2.endTime = compontent_public_long.swapLongTerm(data2.endTime);
|
data2.endTime = compontent_public_long.swapLongTerm(data2.endTime);
|
||||||
}
|
}
|
||||||
common_vendor.index.setStorageSync("backhuancun", data2);
|
common_vendor.index.setStorageSync("backhuancun", data2);
|
||||||
pages_addjigou_api_addjigou.changemessage(common_vendor.index.getStorageSync("backhuancun")).then((res) => {
|
pages_addjigou_api_addjigou.changemessage(common_vendor.index.getStorageSync("backhuancun"), ukey.value).then((res) => {
|
||||||
if (res.success) {
|
if (res.success && res.result != "重复提交") {
|
||||||
common_vendor.index.requestSubscribeMessage({
|
common_vendor.index.requestSubscribeMessage({
|
||||||
// 这里填后台申请好的 templateId 数组
|
// 这里填后台申请好的 templateId 数组
|
||||||
tmplIds: ["cWVzXm1C-iitx1gNFn1nZdijq9R_3fCv8vLbiqs9zww"],
|
tmplIds: ["cWVzXm1C-iitx1gNFn1nZdijq9R_3fCv8vLbiqs9zww"],
|
||||||
|
|
@ -162,7 +165,7 @@ const _sfc_main = {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
fail: (err) => {
|
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({
|
common_vendor.index.showToast({
|
||||||
title: "订阅失败",
|
title: "订阅失败",
|
||||||
icon: "none"
|
icon: "none"
|
||||||
|
|
@ -232,7 +235,7 @@ const _sfc_main = {
|
||||||
common_vendor.onShow(() => {
|
common_vendor.onShow(() => {
|
||||||
const data = common_vendor.index.getStorageSync("dingwei");
|
const data = common_vendor.index.getStorageSync("dingwei");
|
||||||
if (data) {
|
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;
|
jigouweizhi.value = data.name;
|
||||||
form.orgAddress = data.name;
|
form.orgAddress = data.name;
|
||||||
form.orgCoordinateLo = data.lng;
|
form.orgCoordinateLo = data.lng;
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,9 @@ const _sfc_main = {
|
||||||
function isValid18DigitNumber(val) {
|
function isValid18DigitNumber(val) {
|
||||||
return /^(\d{18})$/.test(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 = () => {
|
const next = () => {
|
||||||
if (!form.relationship) {
|
if (!form.relationship) {
|
||||||
common_vendor.index.showToast({
|
common_vendor.index.showToast({
|
||||||
|
|
@ -76,7 +79,7 @@ const _sfc_main = {
|
||||||
data.guardianWorkUnit = form.workUnit;
|
data.guardianWorkUnit = form.workUnit;
|
||||||
data.relationship = form.relationship;
|
data.relationship = form.relationship;
|
||||||
data.modifyType = "jhr";
|
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({
|
common_vendor.index.request({
|
||||||
url: urlpost,
|
url: urlpost,
|
||||||
method: "POST",
|
method: "POST",
|
||||||
|
|
@ -86,6 +89,9 @@ const _sfc_main = {
|
||||||
},
|
},
|
||||||
data,
|
data,
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
|
if (res.data.result == "重复提交") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (res.data.success) {
|
if (res.data.success) {
|
||||||
api_loginApi.getMessage(common_vendor.index.getStorageSync("openid")).then((res2) => {
|
api_loginApi.getMessage(common_vendor.index.getStorageSync("openid")).then((res2) => {
|
||||||
common_vendor.index.setStorageSync("allinfo", res2.result);
|
common_vendor.index.setStorageSync("allinfo", res2.result);
|
||||||
|
|
@ -96,7 +102,7 @@ const _sfc_main = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
fail: (e) => {
|
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 {
|
} else {
|
||||||
|
|
@ -107,7 +113,7 @@ const _sfc_main = {
|
||||||
data.guardianHomeAddress = form.homeAddress;
|
data.guardianHomeAddress = form.homeAddress;
|
||||||
data.guardianWorkUnit = form.workUnit;
|
data.guardianWorkUnit = form.workUnit;
|
||||||
data.relationship = form.relationship;
|
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({
|
common_vendor.index.request({
|
||||||
url: urlpost,
|
url: urlpost,
|
||||||
method: "POST",
|
method: "POST",
|
||||||
|
|
@ -117,7 +123,9 @@ const _sfc_main = {
|
||||||
},
|
},
|
||||||
data,
|
data,
|
||||||
success: (r) => {
|
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) {
|
if (r.data.code != 200) {
|
||||||
common_vendor.index.showToast({
|
common_vendor.index.showToast({
|
||||||
title: r.data.message,
|
title: r.data.message,
|
||||||
|
|
@ -160,7 +168,7 @@ const _sfc_main = {
|
||||||
keys.forEach((key) => {
|
keys.forEach((key) => {
|
||||||
form[key] = data[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) => {
|
return (_ctx, _cache) => {
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,6 @@ const _sfc_main = {
|
||||||
alldata.value.idCard = alldata.value.guardianIdCard;
|
alldata.value.idCard = alldata.value.guardianIdCard;
|
||||||
alldata.value.homeAddress = alldata.value.guardianHomeAddress;
|
alldata.value.homeAddress = alldata.value.guardianHomeAddress;
|
||||||
alldata.value.workUnit = alldata.value.guardianWorkUnit;
|
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);
|
common_vendor.index.setStorageSync("allinfo", alldata.value);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
common_vendor.index.navigateTo({
|
common_vendor.index.navigateTo({
|
||||||
|
|
|
||||||
|
|
@ -222,6 +222,9 @@ const _sfc_main = {
|
||||||
function isValid18DigitNumber(val) {
|
function isValid18DigitNumber(val) {
|
||||||
return /^(\d{18})$/.test(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 = () => {
|
const next = () => {
|
||||||
if (!fontphoto.value) {
|
if (!fontphoto.value) {
|
||||||
common_vendor.index.showToast({
|
common_vendor.index.showToast({
|
||||||
|
|
@ -326,7 +329,7 @@ const _sfc_main = {
|
||||||
data.modifyType = "zz";
|
data.modifyType = "zz";
|
||||||
if (id.value) {
|
if (id.value) {
|
||||||
data.id = 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({
|
common_vendor.index.request({
|
||||||
url: urlpost,
|
url: urlpost,
|
||||||
method: "POST",
|
method: "POST",
|
||||||
|
|
@ -336,16 +339,19 @@ const _sfc_main = {
|
||||||
},
|
},
|
||||||
data,
|
data,
|
||||||
success: (r) => {
|
success: (r) => {
|
||||||
|
if (r.data.result == "重复提交") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
common_vendor.index.reLaunch({
|
common_vendor.index.reLaunch({
|
||||||
url: "/pages/oldmanindex/oldmansuccess?type=1"
|
url: "/pages/oldmanindex/oldmansuccess?type=1"
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
fail: (e) => {
|
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 {
|
} else {
|
||||||
const urlpost = `${payurl.value}/api/elderInfo/addElder`;
|
const urlpost = `${payurl.value}/api/elderInfo/addElder?ukey=${ukey.value}`;
|
||||||
common_vendor.index.request({
|
common_vendor.index.request({
|
||||||
url: urlpost,
|
url: urlpost,
|
||||||
method: "POST",
|
method: "POST",
|
||||||
|
|
@ -355,7 +361,9 @@ const _sfc_main = {
|
||||||
},
|
},
|
||||||
data,
|
data,
|
||||||
success: (r) => {
|
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) {
|
if (r.data.code != 200) {
|
||||||
common_vendor.index.showToast({
|
common_vendor.index.showToast({
|
||||||
title: r.data.message,
|
title: r.data.message,
|
||||||
|
|
@ -422,7 +430,7 @@ const _sfc_main = {
|
||||||
textArray[1] = data.sex;
|
textArray[1] = data.sex;
|
||||||
textArray[2] = data.idCard;
|
textArray[2] = data.idCard;
|
||||||
textArray[3] = data.national;
|
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[4] = data.dateOfBirth;
|
||||||
textArray[5] = data.houseAddress;
|
textArray[5] = data.houseAddress;
|
||||||
textArray[6] = data.issuingAuthority;
|
textArray[6] = data.issuingAuthority;
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,9 +1,9 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
const common_vendor = require("../../../common/vendor.js");
|
const common_vendor = require("../../../common/vendor.js");
|
||||||
const request_index = require("../../../request/index.js");
|
const request_index = require("../../../request/index.js");
|
||||||
function changemessage(data) {
|
function changemessage(data, ukey) {
|
||||||
return request_index.request({
|
return request_index.request({
|
||||||
url: `/api/employessAdvisiory/saveApiEmployess`,
|
url: `/api/employessAdvisiory/saveApiEmployess?ukey=${ukey}`,
|
||||||
method: "post",
|
method: "post",
|
||||||
data
|
data
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -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 = () => {
|
const next = () => {
|
||||||
if (!uping.value) {
|
if (!uping.value) {
|
||||||
return;
|
return;
|
||||||
|
|
@ -116,8 +119,8 @@ const _sfc_main = {
|
||||||
data.endTime = compontent_public_long.swapLongTerm(data.endTime);
|
data.endTime = compontent_public_long.swapLongTerm(data.endTime);
|
||||||
data.orgCode = common_vendor.index.getStorageSync("changeyuangongorgCode");
|
data.orgCode = common_vendor.index.getStorageSync("changeyuangongorgCode");
|
||||||
common_vendor.index.setStorageSync("changeyuangongorgCode", "");
|
common_vendor.index.setStorageSync("changeyuangongorgCode", "");
|
||||||
pages_addstaff_api_addjigou.changemessage(data).then((res) => {
|
pages_addstaff_api_addjigou.changemessage(data, ukey.value).then((res) => {
|
||||||
if (res.success) {
|
if (res.success && res.result != "重复提交") {
|
||||||
gopush();
|
gopush();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ const _sfc_main = {
|
||||||
setup(__props) {
|
setup(__props) {
|
||||||
const show = common_vendor.ref(false);
|
const show = common_vendor.ref(false);
|
||||||
const content = common_vendor.ref("");
|
const content = common_vendor.ref("");
|
||||||
const buttonArray = common_vendor.ref(["单元", "仓库", "后勤", "工区", "办公室 ", "员工", "机构维护"]);
|
const buttonArray = common_vendor.ref(["办公室", "员工", "机构维护"]);
|
||||||
const statusarray = ["loading", "success", "fail"];
|
const statusarray = ["loading", "success", "fail"];
|
||||||
const which = common_vendor.ref(0);
|
const which = common_vendor.ref(0);
|
||||||
const ceshi = () => {
|
const ceshi = () => {
|
||||||
|
|
@ -44,7 +44,7 @@ const _sfc_main = {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const again = (item) => {
|
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("baddata", item);
|
||||||
common_vendor.index.setStorageSync("specicalid", item.id);
|
common_vendor.index.setStorageSync("specicalid", item.id);
|
||||||
common_vendor.index.setStorageSync("backhuancun", {});
|
common_vendor.index.setStorageSync("backhuancun", {});
|
||||||
|
|
@ -119,19 +119,28 @@ const _sfc_main = {
|
||||||
} : {}, {
|
} : {}, {
|
||||||
m: item.status == `2`
|
m: item.status == `2`
|
||||||
}, 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 {
|
return {
|
||||||
a: `https://www.focusnu.com/media/directive/index/addjiji/${index2}.png`,
|
a: `https://www.focusnu.com/media/directive/index/addstaff/${index2 + 2}.png`,
|
||||||
b: common_vendor.t(item2),
|
b: common_vendor.t(item0),
|
||||||
c: index2
|
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` ? {
|
}, item.status == `-1` ? {
|
||||||
p: common_vendor.o(addjigou, index)
|
x: common_vendor.o(addjigou, index)
|
||||||
} : {}, {
|
} : {}, {
|
||||||
q: index
|
y: index
|
||||||
});
|
});
|
||||||
}),
|
}),
|
||||||
d: `100vh`,
|
d: `100vh`,
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -212,7 +212,6 @@
|
||||||
margin-left: 1%;
|
margin-left: 1%;
|
||||||
}
|
}
|
||||||
.white-box-father .white-box.data-v-1cf27b2a {
|
.white-box-father .white-box.data-v-1cf27b2a {
|
||||||
margin-top: 35rpx;
|
|
||||||
width: 20.7%;
|
width: 20.7%;
|
||||||
margin-left: 3%;
|
margin-left: 3%;
|
||||||
height: 237rpx;
|
height: 237rpx;
|
||||||
|
|
@ -342,4 +341,113 @@
|
||||||
.chuo-ball .ball-img.data-v-1cf27b2a {
|
.chuo-ball .ball-img.data-v-1cf27b2a {
|
||||||
width: 37rpx;
|
width: 37rpx;
|
||||||
height: 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;
|
||||||
}
|
}
|
||||||
|
|
@ -58,7 +58,7 @@ const _sfc_main = {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
fail(err) {
|
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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ const _sfc_main = {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
fail(err) {
|
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({
|
return common_vendor.e({
|
||||||
a: common_vendor.o(loginIt),
|
a: common_vendor.o(loginIt),
|
||||||
b: common_vendor.n(isTarget.value ? "radio-circle-target" : "radio-circle"),
|
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),
|
d: common_vendor.o(($event) => isTarget.value = !isTarget.value),
|
||||||
e: common_vendor.o(jumpToPro),
|
e: isFadingOut.value
|
||||||
f: common_vendor.o(($event) => isTarget.value = !isTarget.value),
|
|
||||||
g: isFadingOut.value
|
|
||||||
}, isFadingOut.value ? {
|
}, isFadingOut.value ? {
|
||||||
h: common_vendor.o(closeModal),
|
f: common_vendor.o(closeModal),
|
||||||
i: maskColor.value
|
g: maskColor.value
|
||||||
} : {}, {
|
} : {}, {
|
||||||
j: common_vendor.p({
|
h: common_vendor.p({
|
||||||
name: "fade"
|
name: "fade"
|
||||||
}),
|
}),
|
||||||
k: isFadingOut.value
|
i: isFadingOut.value
|
||||||
}, isFadingOut.value ? {
|
}, isFadingOut.value ? {
|
||||||
l: common_vendor.o(jumpToPro),
|
j: common_vendor.o(jumpToPro),
|
||||||
m: common_vendor.o(($event) => {
|
k: common_vendor.o(($event) => {
|
||||||
closeModal();
|
closeModal();
|
||||||
isTarget.value = true;
|
isTarget.value = true;
|
||||||
})
|
})
|
||||||
} : {}, {
|
} : {}, {
|
||||||
n: common_vendor.p({
|
l: common_vendor.p({
|
||||||
name: "slide-up"
|
name: "slide-up"
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
@ -85,19 +85,14 @@
|
||||||
}
|
}
|
||||||
.under-container-title.data-v-d08ef7d4 {
|
.under-container-title.data-v-d08ef7d4 {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
width: 80%;
|
||||||
margin-bottom: 40rpx;
|
margin-bottom: 40rpx;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-size: 23rpx;
|
font-size: 23rpx;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
flex-wrap: wrap;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
line-height: 30rpx;
|
||||||
.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;
|
|
||||||
}
|
}
|
||||||
.button-blue.data-v-d08ef7d4 {
|
.button-blue.data-v-d08ef7d4 {
|
||||||
width: 80%;
|
width: 80%;
|
||||||
|
|
@ -177,9 +172,18 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
.radio-father.data-v-d08ef7d4 {
|
.radio-father.data-v-d08ef7d4 {
|
||||||
width: 100rpx;
|
width: 40rpx;
|
||||||
height: 30rpx;
|
height: 30rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
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;
|
||||||
}
|
}
|
||||||
|
|
@ -165,7 +165,7 @@
|
||||||
top: 50%;
|
top: 50%;
|
||||||
right: 20rpx;
|
right: 20rpx;
|
||||||
transform: translateY(-50%);
|
transform: translateY(-50%);
|
||||||
z-index: 2;
|
z-index: 999;
|
||||||
}
|
}
|
||||||
.blue-button.data-v-9a7b17f0 {
|
.blue-button.data-v-9a7b17f0 {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@
|
||||||
right: 0;
|
right: 0;
|
||||||
}
|
}
|
||||||
.bgc-card.data-v-d98921ec {
|
.bgc-card.data-v-d98921ec {
|
||||||
margin-top: 120rpx;
|
margin-top: 80rpx;
|
||||||
width: 98%;
|
width: 98%;
|
||||||
margin-left: 1%;
|
margin-left: 1%;
|
||||||
border-top-left-radius: 30rpx;
|
border-top-left-radius: 30rpx;
|
||||||
|
|
|
||||||
|
|
@ -213,15 +213,16 @@ const _sfc_main = {
|
||||||
c: index2,
|
c: index2,
|
||||||
d: common_vendor.o(($event) => clickButton(item, index2), 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` ? {} : {}, {
|
}, item.applyType == "1" && item.applyStatus == `-1` ? {} : {}, {
|
||||||
I: item.applyStatus == `-1`
|
J: item.applyStatus == `-1`
|
||||||
}, 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`,
|
h: `100vh`,
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -214,7 +214,7 @@
|
||||||
margin-top: 25rpx;
|
margin-top: 25rpx;
|
||||||
width: 20.7%;
|
width: 20.7%;
|
||||||
margin-left: 3%;
|
margin-left: 3%;
|
||||||
height: 190rpx;
|
height: 205rpx;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border-radius: 35rpx;
|
border-radius: 35rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,12 @@
|
||||||
},
|
},
|
||||||
"setting": {
|
"setting": {
|
||||||
"urlCheck": false,
|
"urlCheck": false,
|
||||||
"es6": false,
|
"es6": true,
|
||||||
"postcss": false,
|
"postcss": false,
|
||||||
"minified": true,
|
"minified": true,
|
||||||
"newFeature": true,
|
"newFeature": true,
|
||||||
"bigPackageSizeSupport": true
|
"bigPackageSizeSupport": true,
|
||||||
|
"enhance": true
|
||||||
},
|
},
|
||||||
"compileType": "miniprogram",
|
"compileType": "miniprogram",
|
||||||
"libVersion": "latest",
|
"libVersion": "latest",
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,16 @@ const request = (params) => {
|
||||||
"Authorization": "Basic c2FiZXI6c2FiZXJfc2VjcmV0",
|
"Authorization": "Basic c2FiZXI6c2FiZXJfc2VjcmV0",
|
||||||
...params.header
|
...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) => {
|
return new Promise((resolve, reject) => {
|
||||||
common_vendor.index.request({
|
common_vendor.index.request({
|
||||||
url: base_url + url,
|
url: base_url + url,
|
||||||
|
|
@ -22,26 +32,40 @@ const request = (params) => {
|
||||||
success(response) {
|
success(response) {
|
||||||
const res = response;
|
const res = response;
|
||||||
if (res.statusCode == 200) {
|
if (res.statusCode == 200) {
|
||||||
|
reset401Count();
|
||||||
resolve(res.data);
|
resolve(res.data);
|
||||||
} else {
|
} else {
|
||||||
common_vendor.index.clearStorageSync();
|
if (res.statusCode !== 401) {
|
||||||
|
reset401Count();
|
||||||
|
}
|
||||||
switch (res.statusCode) {
|
switch (res.statusCode) {
|
||||||
case 401:
|
case 401: {
|
||||||
if (!params.no401) {
|
let count = get401Count() || 0;
|
||||||
|
count = count + 1;
|
||||||
|
set401Count(count);
|
||||||
|
if (count < 3) {
|
||||||
|
common_vendor.index.clearStorageSync();
|
||||||
|
common_vendor.index.reLaunch({
|
||||||
|
url: "/pages/login/callback"
|
||||||
|
});
|
||||||
|
} else {
|
||||||
common_vendor.index.showModal({
|
common_vendor.index.showModal({
|
||||||
title: "登录过期",
|
title: "登录异常",
|
||||||
content: "登录过期,请重新登录",
|
content: "检测到多次未授权访问(401),请重新登录。",
|
||||||
showCancel: false,
|
confirmText: "去登录",
|
||||||
success() {
|
cancelText: "取消",
|
||||||
setTimeout(() => {
|
success(resModal) {
|
||||||
|
if (resModal.confirm) {
|
||||||
|
common_vendor.index.clearStorageSync();
|
||||||
common_vendor.index.reLaunch({
|
common_vendor.index.reLaunch({
|
||||||
url: "/pages/login/callback"
|
url: "/pages/login/callback"
|
||||||
});
|
});
|
||||||
}, 1e3);
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case 404:
|
case 404:
|
||||||
common_vendor.index.showToast({
|
common_vendor.index.showToast({
|
||||||
title: "请求地址不存在...",
|
title: "请求地址不存在...",
|
||||||
|
|
@ -57,10 +81,11 @@ const request = (params) => {
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
reject(res);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
fail(err) {
|
fail(err) {
|
||||||
if (err.errMsg.indexOf("request:fail") !== -1) {
|
if (err && err.errMsg && err.errMsg.indexOf("request:fail") !== -1) {
|
||||||
common_vendor.index.showToast({
|
common_vendor.index.showToast({
|
||||||
title: "网络异常",
|
title: "网络异常",
|
||||||
icon: "error",
|
icon: "error",
|
||||||
|
|
@ -75,7 +100,6 @@ const request = (params) => {
|
||||||
reject(err);
|
reject(err);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}).catch(() => {
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
exports.base_url = base_url;
|
exports.base_url = base_url;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue