This commit is contained in:
wangweidong 2026-02-03 15:12:28 +08:00
parent 2a7f19bf6d
commit 7124d296be
12 changed files with 106 additions and 91 deletions

View File

@ -1,6 +1,6 @@
<template> <template>
<!-- 通过 v-show 控制显隐并根据 show 添加 is-active 类触发 CSS 过渡 --> <!-- 通过 v-show 控制显隐并根据 show 添加 is-active 类触发 CSS 过渡 -->
<view :class="['neuro-wrapper', show ? 'is-active' : '']" v-show="show"> <view :class="['neuro-wrapper', show ? 'is-active' : '']" v-show="show" @touchmove.stop>
<!-- 遮罩层点击触发关闭 --> <!-- 遮罩层点击触发关闭 -->
<view class="neuro-mask" @click="handleClose"></view> <view class="neuro-mask" @click="handleClose"></view>
<!-- 拟态框阻止冒泡点击 --> <!-- 拟态框阻止冒泡点击 -->
@ -76,7 +76,7 @@
// background-size: 100% auto; // background-size: 100% auto;
background-position: top center; background-position: top center;
background-repeat: no-repeat; background-repeat: no-repeat;
z-index: 1; z-index: 110;
padding: 0 10%; padding: 0 10%;
} }

View File

@ -47,7 +47,7 @@ export function getManyDictItems(dictCodeList){
//根据手机号获取员工信息 //根据手机号获取员工信息
// export function getMessageList(id){ // export function getMessageList(id){
// return request({ // return request({
// url: `/api/employessAdvisiory/queryApiEmployessInfo?openId=${id}&status=1,2,3`, // url: `/api/employeesAdvisiory/queryApiEmployeesInfo?openId=${id}&status=1,2,3`,
// method: 'get', // method: 'get',
// }) // })
// } // }

View File

@ -22,18 +22,18 @@
<view class="content-title" style="margin: 20rpx 0;justify-content: space-between;"> <view class="content-title" style="margin: 20rpx 0;justify-content: space-between;">
<view style="display: flex;"> <view style="display: flex;">
<view class="shu"></view> <view class="shu"></view>
<view class="content-weight" style="margin-top: -2rpx;">监护人基本信息</view> <view class="content-weight" style="margin-top: -2rpx;">监护人信息</view>
<image class="shu-img" <image class="shu-img"
:src="applyStatus? `https://www.focusnu.com/media/directive/index/${statusarray[applyStatus-1]}.png`:``" /> :src="applyStatus? `https://www.focusnu.com/media/directive/index/${statusarray[applyStatus-1]}.png`:``" />
</view> </view>
<view class="small-blue" @click="changeMessage" v-if="!applyStatus"> <view class="small-blue" @click="changeMessage" v-if="!applyStatus">
修改监护人信息 编辑
</view> </view>
</view> </view>
<view class="white-photo" @click="getMessage(headImge0)"> <view class="white-photo" @click="getMessage(headImge0)">
<view class="photo-left"> <view class="photo-left">
<view class="photo-weight">监护人人像面</view> <view class="photo-weight">人像面</view>
<!-- <view class="photo-font">请上传营业执照</view> --> <!-- <view class="photo-font">请上传营业执照</view> -->
</view> </view>
<view style="position: relative;"> <view style="position: relative;">
@ -50,7 +50,7 @@
<view v-for="(item,index) in nameArray" :key="index" class="one" <view v-for="(item,index) in nameArray" :key="index" class="one"
@click="openLook(textArray[index])"> @click="openLook(textArray[index])">
<view class="one-left">{{item}}</view> <view class="one-left">{{item}}</view>
<view class="one-right">{{textArray[index] ? textArray[index] : "自动获取" }}</view> <view class="one-right">{{textArray[index] ? textArray[index] : "" }}</view>
</view> </view>
</view> </view>
</view> </view>
@ -299,7 +299,7 @@
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
z-index: 9999; z-index: 2;
} }
.left-father { .left-father {

View File

@ -12,10 +12,11 @@
<view class="content-title" style="margin: 10rpx 0;display: flex;"> <view class="content-title" style="margin: 10rpx 0;display: flex;">
<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> </view>
<view class="white-photo" @click="selectphoto(2)"> <view class="white-photo" @click="selectphoto(2)">
<view class="photo-left"> <view class="photo-left">
<view class="photo-weight">监护人人像面</view> <view class="photo-weight">人像面</view>
<view class="photo-font">请上传身份证人像面</view> <view class="photo-font">请上传身份证人像面</view>
</view> </view>
<view style="position: relative;"> <view style="position: relative;">
@ -36,16 +37,16 @@
<view> <view>
<view class="one"> <view class="one">
<view class="one-left">监护人姓名</view> <view class="one-left">监护人姓名</view>
<input class="one-right" disabled maxlength="5" placeholder="请输入监护人姓名" v-model="form.name" /> <input class="one-right" disabled maxlength="5" placeholder="自动获取" v-model="form.name" />
</view> </view>
<view class="one"> <view class="one">
<view class="one-left">监护人电话</view> <view class="one-left">监护人电话</view>
<input class="one-right" type="number" maxlength="11" placeholder="请输入监护人电话" <input class="one-right" type="number" maxlength="11" placeholder="请输入监护人电话"
v-model="form.tel" /> v-model="form.tel" disabled/>
</view> </view>
<view class="one"> <view class="one">
<view class="one-left">身份证号</view> <view class="one-left">身份证号</view>
<input class="one-right" disabled maxlength="18" placeholder="请输入身份证号" v-model="form.idCard" /> <input class="one-right" disabled maxlength="18" placeholder="自动获取" v-model="form.idCard" />
</view> </view>
<view class="one"> <view class="one">
<view class="one-left">家庭住址</view> <view class="one-left">家庭住址</view>
@ -114,22 +115,21 @@
<view class="one-left">医保类型</view> <view class="one-left">医保类型</view>
<input disabled style="cursor: not-allowed;pointer-events: none;" class="one-right" type="text" <input disabled style="cursor: not-allowed;pointer-events: none;" class="one-right" type="text"
placeholder="请选择医保类型" v-model="form.medicalTypename" /> placeholder="请选择医保类型" v-model="form.medicalTypename" />
<image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" /> <!-- <image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" /> -->
</view> </view>
<u-select style="font-size: 35rpx;" v-model="showmarry" :list="showmarrylist" label-name="label" <u-select style="font-size: 35rpx;" v-model="showmarry" :list="showmarrylist" label-name="label"
value-name="value" @confirm="confirmmarry"></u-select> value-name="value" @confirm="confirmmarry"></u-select>
<view class="one" style="position: relative;" @click="showlevel = true" v-if="showlevellist.length"> <view class="one" style="position: relative;" @click="showlevel = true" v-if="showlevellist.length">
<view class="one-left">失能等级</view> <view class="one-left">失能等级</view>
<input disabled style="cursor: not-allowed;pointer-events: none;" class="one-right" type="text" <input disabled style="cursor: not-allowed;pointer-events: none;" class="one-right" type="text"
placeholder="请选择失能等级" v-model="form.disabilityReimbursementTypename" /> :placeholder="showlevellist.length>0?'请选择失能等级':'无'" v-model="form.disabilityReimbursementTypename" />
<image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" /> <!-- <image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" /> -->
</view> </view>
<u-select style="font-size: 35rpx;" v-model="showlevel" :list="showlevellist" label-name="label" <u-select style="font-size: 35rpx;" v-model="showlevel" :list="showlevellist" label-name="label"
value-name="value" @confirm="confirmlevel"></u-select> value-name="value" @confirm="confirmlevel"></u-select>
<view class="one-no" v-if="!showlevellist.length"> <view class="one-no" v-if="!showlevellist.length">
<view class="one-left">失能等级</view> <view class="one-left">失能等级</view>
<view class="one-right">暂无</view> <view class="one-right">{{form.medicalTypename?'无':'请先选择医保类型'}}</view>
</view> </view>
</view> </view>
</view> </view>
@ -524,20 +524,32 @@
if (!specialImge.value) { if (!specialImge.value) {
uni.showToast({ uni.showToast({
title: '请上传监护人身份证面', title: '请上传监护人身份证人像面',
icon: 'none' icon: 'none'
}) })
return return
} }
if (!fontphoto.value) { if (!fontphoto.value) {
uni.showToast({ uni.showToast({
title: '请上传身份证正面', title: '请上传长者身份证人像面',
icon: 'none' icon: 'none'
}) })
return return
} else if (!endphoto.value) { } else if (!endphoto.value) {
uni.showToast({ uni.showToast({
title: '请上传身份证背面', title: '请上传长者身份证国徽面',
icon: 'none'
})
return
}else if (!form.medicalType) {
uni.showToast({
title: '请选择医保类型',
icon: 'none'
})
return
} else if (showlevellist.value.length && form.disabilityReimbursementTypename == '') {
uni.showToast({
title: '请选择失能等级',
icon: 'none' icon: 'none'
}) })
return return
@ -576,25 +588,13 @@
return return
} else if (!form.homeAddress) { } else if (!form.homeAddress) {
uni.showToast({ uni.showToast({
title: '请填写家庭住址', title: '请填写监护人家庭住址',
icon: 'none' icon: 'none'
}) })
return return
} else if (!form.workUnit) { } else if (!form.workUnit) {
uni.showToast({ uni.showToast({
title: '请填写工作单位', title: '请填写监护人工作单位',
icon: 'none'
})
return
} else if (!form.medicalType) {
uni.showToast({
title: '请选择医保类型',
icon: 'none'
})
return
} else if (showlevellist.value.length && !form.disabilityReimbursementType) {
uni.showToast({
title: '请选择失能等级',
icon: 'none' icon: 'none'
}) })
return return
@ -602,7 +602,6 @@
} }
const allNonEmpty = textArray.every(item => { const allNonEmpty = textArray.every(item => {
// item.trim() !== '' // item.trim() !== ''
return item !== ''; return item !== '';
@ -921,13 +920,13 @@
margin-left: 5%; margin-left: 5%;
height: 100rpx; height: 100rpx;
display: flex; display: flex;
justify-content: space-between;
align-items: center; align-items: center;
margin-bottom: 10rpx; margin-bottom: 10rpx;
.one-left { .one-left {
margin-left: 10rpx; margin-left: 10rpx;
font-size: 30rpx; font-size: 30rpx;
width: 250rpx;
} }
.one-right { .one-right {
@ -1076,6 +1075,8 @@
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
margin-bottom: 10rpx; margin-bottom: 10rpx;
z-index: 0;
position: relative;
.one-left { .one-left {
margin-left: 10rpx; margin-left: 10rpx;

View File

@ -15,13 +15,13 @@
<view class="content-title" style="margin: 20rpx 0;justify-content: space-between;"> <view class="content-title" style="margin: 20rpx 0;justify-content: space-between;">
<view style="display: flex;"> <view style="display: flex;">
<view class="shu"></view> <view class="shu"></view>
<view class="content-weight" style="margin-top: -2rpx;">身份证</view> <view class="content-weight" style="margin-top: -2rpx;">长者信息</view>
<image class="shu-img" <image class="shu-img"
:src="applyStatus? `https://www.focusnu.com/media/directive/index/${statusarray[applyStatus-1]}.png`:``" /> :src="applyStatus? `https://www.focusnu.com/media/directive/index/${statusarray[applyStatus-1]}.png`:``" />
</view> </view>
<view class="small-blue" @click="changeMessage" v-if="!applyStatus"> <view class="small-blue" @click="changeMessage" v-if="!applyStatus">
修改长者信息 编辑
</view> </view>
</view> </view>
@ -32,7 +32,7 @@
<view class="white-photo" @click="getMessage(`${media_base_url}${specialImge}`)"> <view class="white-photo" @click="getMessage(`${media_base_url}${specialImge}`)">
<view class="photo-left"> <view class="photo-left">
<view class="photo-weight">人像面</view> <view class="photo-weight">人像面</view>
<view class="photo-font">请上传身份证人像面</view> <!-- <view class="photo-font">请上传身份证人像面</view> -->
</view> </view>
<view style="position: relative;"> <view style="position: relative;">
<image class="photo" <image class="photo"
@ -46,7 +46,7 @@
<view class="white-photo" style="margin-top: 30rpx;" @click="getMessage(`${media_base_url}${endphoto}`)"> <view class="white-photo" style="margin-top: 30rpx;" @click="getMessage(`${media_base_url}${endphoto}`)">
<view class="photo-left"> <view class="photo-left">
<view class="photo-weight">国徽面</view> <view class="photo-weight">国徽面</view>
<view class="photo-font">请上传身份证国徽面</view> <!-- <view class="photo-font">请上传身份证国徽面</view> -->
</view> </view>
<view style="position: relative;"> <view style="position: relative;">
<image class="photo" <image class="photo"
@ -57,16 +57,16 @@
</view> </view>
</view> </view>
<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> </view> -->
<view class="white-message"> <view class="white-message">
<view> <view>
<view v-for="(item,index) in nameArray" :key="index" class="one" <view v-for="(item,index) in nameArray" :key="index" class="one"
@click="openLook(textArray[index])"> @click="openLook(textArray[index])">
<view class="one-left">{{item}}</view> <view class="one-left">{{item}}</view>
<view class="one-right">{{textArray[index] ? textArray[index] : "自动获取" }}</view> <view class="one-right">{{textArray[index] ? textArray[index] : "" }}</view>
</view> </view>
</view> </view>
</view> </view>
@ -458,6 +458,6 @@
color: #007CFF; color: #007CFF;
border-radius: 30rpx; border-radius: 30rpx;
font-size: 30rpx; font-size: 30rpx;
z-index: 9999; z-index: 2;
} }
</style> </style>

View File

@ -30,7 +30,7 @@ export function editSuppliers(data){
export function changemessage(data,ukey){ export function changemessage(data,ukey){
return request({ return request({
url: `/api/employessAdvisiory/saveApiEmployess?ukey=${ukey}`, url: `/api/employeesAdvisiory/saveApiEmployees?ukey=${ukey}`,
method: 'post', method: 'post',
data, data,
}) })
@ -47,7 +47,7 @@ export function getSupInfoByOpenId(orgCode){
//向机构申请 //向机构申请
export function Apply(data){ export function Apply(data){
return request({ return request({
url: `/api/employessapply/apply`, url: `/api/employeesapply/apply`,
method: 'post', method: 'post',
data, data,
}) })

View File

@ -5,7 +5,7 @@ import request from '@/request/index.js';
//向机构申请 //向机构申请
export function Apply(data){ export function Apply(data){
return request({ return request({
url: `/api/employessapply/apply`, url: `/api/employeesapply/apply`,
method: 'post', method: 'post',
data, data,
}) })
@ -13,7 +13,7 @@ export function Apply(data){
//向机构接受拒绝 //向机构接受拒绝
export function invitedConfirm(data){ export function invitedConfirm(data){
return request({ return request({
url: `/api/employessapply/invitedConfirm`, url: `/api/employeesapply/invitedConfirm`,
method: 'post', method: 'post',
data, data,
}) })
@ -21,7 +21,7 @@ export function invitedConfirm(data){
//获取机构的列表 //获取机构的列表
export function getOrgInfo(title){ export function getOrgInfo(title){
return request({ return request({
url: `/api/employessapply/getOrgInfo?title=${title}&pageSize=-1&openId=${uni.getStorageSync('openid')}`, url: `/api/employeesapply/getOrgInfo?title=${title}&pageSize=-1&openId=${uni.getStorageSync('openid')}`,
method: 'get', method: 'get',
}) })
} }
@ -29,7 +29,7 @@ export function getOrgInfo(title){
//获取审核的列表 //获取审核的列表
export function getEmployeesOrgRela(openId){ export function getEmployeesOrgRela(openId){
return request({ return request({
url: `/api/employessapply/getEmployeesOrgRela?openId=${openId}&invited=1`, url: `/api/employeesapply/getEmployeesOrgRela?openId=${openId}&invited=1`,
method: 'get', method: 'get',
}) })
} }
@ -39,14 +39,14 @@ export function getEmployeesOrgRela(openId){
//机构邀请 //机构邀请
export function getInvited(openId){ export function getInvited(openId){
return request({ return request({
url: `/api/employessapply/getEmployeesOrgRela?openId=${openId}&invited=0`, url: `/api/employeesapply/getEmployeesOrgRela?openId=${openId}&invited=0`,
method: 'get', method: 'get',
}) })
} }
//单独机构邀请 //单独机构邀请
export function getId(id){ export function getId(id){
return request({ return request({
url: `/api/employessapply/getEmployeesOrgRela?openId=${uni.getStorageSync('openid')}&invited=0&id=${id}`, url: `/api/employeesapply/getEmployeesOrgRela?openId=${uni.getStorageSync('openid')}&invited=0&id=${id}`,
method: 'get', method: 'get',
}) })
} }

View File

@ -284,7 +284,8 @@
reactive, reactive,
ref, ref,
onMounted, onMounted,
onUnmounted onUnmounted,
nextTick
} from 'vue'; } from 'vue';
import { import {
onLoad, onLoad,
@ -647,23 +648,21 @@
}) })
} }
const hong = ref(0); const hong = ref(0);
const isred = ()=>{
hong.value = hong.value;
isRead().then(res => {
nextTick(()=>{
hong.value = res.result;
})
})
}
onShow(() => { onShow(() => {
loadingData(); loadingData();
isRead().then(res => { isred();
// console.log("aaaa", res.result)
if (res.result) {
hong.value = res.result;
}
})
}) })
onPullDownRefresh(() => { onPullDownRefresh(() => {
loadingData(); loadingData();
isRead().then(res => { isred();
// console.log("aaaa",res.result)
if (res.result) {
hong.value = res.result;
}
})
uni.stopPullDownRefresh() uni.stopPullDownRefresh()
}) })
</script> </script>

View File

@ -75,10 +75,21 @@
} from 'vue'; } from 'vue';
import { getInvited, invitedConfirm, getNotice, upRead, isRead } from './api.js' import { getInvited, invitedConfirm, getNotice, upRead, isRead } from './api.js'
import { import {onLoad, onShow,onUnload } from '@dcloudio/uni-app'
onShow
} from '@dcloudio/uni-app'
onUnload(()=>{
prevPages()
})
const prevPages=()=>{
const pages = getCurrentPages()
const prevPage = pages[pages.length - 2]
if (prevPage) {
prevPage.onShow()
}
}
// onUnload(()=>{
// })
const hulijigouArray = ref([]) const hulijigouArray = ref([])
const popupshow = ref(false); const popupshow = ref(false);
@ -115,6 +126,7 @@
} }
const checkRed = () => { const checkRed = () => {
prevPages();
if (hulijigouArray.value.every(item => item.izRead == `Y`)) { if (hulijigouArray.value.every(item => item.izRead == `Y`)) {
hong.value = false; hong.value = false;
} else { } else {
@ -154,6 +166,7 @@
} }
}) })
} }
const hong = ref(false) const hong = ref(false)
onShow(() => { onShow(() => {
search() search()
@ -164,6 +177,7 @@
// } // }
// }) // })
}) })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

View File

@ -13,7 +13,7 @@ export function applySupOrg(data){
//向机构接受拒绝 //向机构接受拒绝
export function invitedConfirm(data){ export function invitedConfirm(data){
return request({ return request({
url: `/api/employessapply/invitedConfirm`, url: `/api/employeesapply/invitedConfirm`,
method: 'post', method: 'post',
data, data,
}) })
@ -21,7 +21,7 @@ export function invitedConfirm(data){
//获取机构的列表 //获取机构的列表
// export function getOrgInfo(title){ // export function getOrgInfo(title){
// return request({ // return request({
// url: `/api/employessapply/getOrgInfo?title=${title}&pageSize=-1&openId=${uni.getStorageSync('openid')}`, // url: `/api/employeesapply/getOrgInfo?title=${title}&pageSize=-1&openId=${uni.getStorageSync('openid')}`,
// method: 'get', // method: 'get',
// }) // })
// } // }
@ -59,14 +59,14 @@ export function getSupInfoByOpenId(code){
//机构邀请 //机构邀请
export function getInvited(openId){ export function getInvited(openId){
return request({ return request({
url: `/api/employessapply/getEmployeesOrgRela?openId=${openId}&invited=0&izHistory=N`, url: `/api/employeesapply/getEmployeesOrgRela?openId=${openId}&invited=0&izHistory=N`,
method: 'get', method: 'get',
}) })
} }
//单独机构邀请 //单独机构邀请
export function getId(id){ export function getId(id){
return request({ return request({
url: `/api/employessapply/getEmployeesOrgRela?openId=${uni.getStorageSync('openid')}&invited=0&id=${id}&izHistory=N`, url: `/api/employeesapply/getEmployeesOrgRela?openId=${uni.getStorageSync('openid')}&invited=0&id=${id}&izHistory=N`,
method: 'get', method: 'get',
}) })
} }

View File

@ -5,7 +5,7 @@ import request from '@/request/index.js';
//向机构申请 //向机构申请
export function Apply(data){ export function Apply(data){
return request({ return request({
url: `/api/employessapply/apply`, url: `/api/employeesapply/apply`,
method: 'post', method: 'post',
data, data,
}) })
@ -13,7 +13,7 @@ export function Apply(data){
//向机构接受拒绝 //向机构接受拒绝
export function invitedConfirm(data){ export function invitedConfirm(data){
return request({ return request({
url: `/api/employessapply/invitedConfirm`, url: `/api/employeesapply/invitedConfirm`,
method: 'post', method: 'post',
data, data,
}) })
@ -21,7 +21,7 @@ export function invitedConfirm(data){
//获取机构的列表 //获取机构的列表
export function getOrgInfo(title){ export function getOrgInfo(title){
return request({ return request({
url: `/api/employessapply/getOrgInfo?title=${title}&pageSize=-1&openId=${uni.getStorageSync('openid')}`, url: `/api/employeesapply/getOrgInfo?title=${title}&pageSize=-1&openId=${uni.getStorageSync('openid')}`,
method: 'get', method: 'get',
}) })
} }
@ -29,7 +29,7 @@ export function getOrgInfo(title){
//获取审核的列表 //获取审核的列表
export function getEmployeesOrgRela(openId){ export function getEmployeesOrgRela(openId){
return request({ return request({
url: `/api/employessapply/getEmployeesOrgRela?openId=${openId}&invited=0,1,2`, url: `/api/employeesapply/getEmployeesOrgRela?openId=${openId}&invited=0,1,2`,
method: 'get', method: 'get',
}) })
} }
@ -37,7 +37,7 @@ export function getEmployeesOrgRela(openId){
//主页 //主页
export function getIndex(openId){ export function getIndex(openId){
return request({ return request({
url: `/api/employessapply/getEmployeesOrgRela?openId=${openId}&izHistory=N`, url: `/api/employeesapply/getEmployeesOrgRela?openId=${openId}&izHistory=N`,
method: 'get', method: 'get',
}) })
} }
@ -45,14 +45,14 @@ export function getIndex(openId){
//机构邀请 //机构邀请
export function getInvited(openId){ export function getInvited(openId){
return request({ return request({
url: `/api/employessapply/getEmployeesOrgRela?openId=${openId}&invited=0&izHistory=N`, url: `/api/employeesapply/getEmployeesOrgRela?openId=${openId}&invited=0&izHistory=N`,
method: 'get', method: 'get',
}) })
} }
//单独机构邀请 //单独机构邀请
export function getId(id){ export function getId(id){
return request({ return request({
url: `/api/employessapply/getEmployeesOrgRela?openId=${uni.getStorageSync('openid')}&invited=0&id=${id}&izHistory=N`, url: `/api/employeesapply/getEmployeesOrgRela?openId=${uni.getStorageSync('openid')}&invited=0&id=${id}&izHistory=N`,
method: 'get', method: 'get',
}) })
} }

View File

@ -1,9 +1,9 @@
// 全局请求封装 // 全局请求封装
// export const base_url = 'http://192.168.2.37:8081/opeapi' // export const base_url = 'http://192.168.2.37:8081/opeapi'
// export const base_url = 'https://www.focusnu.com/opeapi' export const base_url = 'https://www.focusnu.com/opeapi'
export const media_base_url = 'https://www.focusnu.com/media/' export const media_base_url = 'https://www.focusnu.com/media/'
export const base_url = 'http://192.168.2.27:8081/opeapi' // export const base_url = 'http://192.168.2.27:8081/opeapi'
// 请求超出时间 // 请求超出时间
const timeout = 5000 const timeout = 5000
@ -89,6 +89,7 @@ export default (params) => {
break break
} }
case 404: case 404:
console.log(base_url + url,404)
uni.showToast({ uni.showToast({
title: '请求地址不存在...', title: '请求地址不存在...',
icon: "error", icon: "error",
@ -104,7 +105,7 @@ export default (params) => {
break; break;
} }
// 把整个非 200 的响应 reject 出去,方便调用方做处理(可按需保留/删除) // 把整个非 200 的响应 reject 出去,方便调用方做处理(可按需保留/删除)
reject(res) reject(res,base_url + url)
} }
}, },
fail(err) { fail(err) {