小程序前端改完

This commit is contained in:
Teng 2025-10-28 14:36:13 +08:00
parent 45c1063858
commit 2294266983
40 changed files with 303 additions and 187 deletions

View File

@ -221,7 +221,7 @@
textArray0[2] = data.comCreditCode; textArray0[2] = data.comCreditCode;
textArray0[3] = data.comLegalPerson; textArray0[3] = data.comLegalPerson;
headImge0.value = `${media_base_url}${data.comBusinessLicense}`; headImge0.value = `${media_base_url}${data.comBusinessLicense}`;
console.log("!!!!!",headImge0.value) // console.log("!!!!!",headImge0.value)
textArray1[0] = (data.orgProvince_dictText || "") + (data.orgCity_dictText!=null?data.orgCity_dictText:``) + (data.orgDistrict_dictText!=null?data.orgDistrict_dictText:``); textArray1[0] = (data.orgProvince_dictText || "") + (data.orgCity_dictText!=null?data.orgCity_dictText:``) + (data.orgDistrict_dictText!=null?data.orgDistrict_dictText:``);
textArray1[1] = data.orgAddress; textArray1[1] = data.orgAddress;
textArray1[2] = data.orgLeader; textArray1[2] = data.orgLeader;

View File

@ -84,8 +84,8 @@
base_url base_url
} from '@/request/index.js' } from '@/request/index.js'
import { import {
changemessage media_base_url
} from './api/addjigou.js' } from '@/request/index.js';
import model from "@/compontent/public/model.vue" import model from "@/compontent/public/model.vue"
const show = ref(false); const show = ref(false);
@ -272,7 +272,7 @@
textArray[2] = data.comCreditCode; textArray[2] = data.comCreditCode;
textArray[3] = data.comLegalPerson; textArray[3] = data.comLegalPerson;
if (data.comBusinessLicense) { if (data.comBusinessLicense) {
headImge.value = `${base_url}/sys/common/static/${data.comBusinessLicense}`; headImge.value = `${media_base_url}${data.comBusinessLicense}`;
fontphoto.value = data.comBusinessLicense fontphoto.value = data.comBusinessLicense
} }
} }
@ -287,7 +287,7 @@
data0.comName = data.id data0.comName = data.id
uni.setStorageSync("backhuancun", data) uni.setStorageSync("backhuancun", data)
if (data.comBusinessLicense) { if (data.comBusinessLicense) {
headImge.value = `${base_url}/sys/common/static/${data.comBusinessLicense}`; headImge.value = `${media_base_url}${data.comBusinessLicense}`;
fontphoto.value = data.comBusinessLicense fontphoto.value = data.comBusinessLicense
} }
} }

View File

@ -26,7 +26,7 @@
</view> </view>
<view style="position: relative;"> <view style="position: relative;">
<image class="photo" <image class="photo"
:src="fontphoto ? `${base_url}/sys/common/static/${fontphoto}` : `https://www.focusnu.com/media/directive/index/IDfront.png`" /> :src="fontphoto ? `${media_base_url}${fontphoto}` : `https://www.focusnu.com/media/directive/index/IDfront.png`" />
<image style="width: 100%;height: 100%;top: 0;left: 0;z-index: 1;position: absolute;" <image style="width: 100%;height: 100%;top: 0;left: 0;z-index: 1;position: absolute;"
:src="fontphoto ? `` : `https://www.focusnu.com/media/directive/index/bian.png`" /> :src="fontphoto ? `` : `https://www.focusnu.com/media/directive/index/bian.png`" />
<image v-if="!fontphoto" <image v-if="!fontphoto"
@ -47,7 +47,7 @@
style="position: absolute;top: 50%;left: 50%;width: 70rpx;height: 60rpx;transform: translate(-50%,-50%);" style="position: absolute;top: 50%;left: 50%;width: 70rpx;height: 60rpx;transform: translate(-50%,-50%);"
src="https://www.focusnu.com/media/directive/index/takephoto.png" /> --> src="https://www.focusnu.com/media/directive/index/takephoto.png" /> -->
<image class="photo" <image class="photo"
:src="endphoto ? `${base_url}/sys/common/static/${endphoto}` : `https://www.focusnu.com/media/directive/index/IDend.png`" /> :src="endphoto ? `${media_base_url}${endphoto}` : `https://www.focusnu.com/media/directive/index/IDend.png`" />
<image style="width: 100%;height: 100%;top: 0;left: 0;z-index: 1;position: absolute;" <image style="width: 100%;height: 100%;top: 0;left: 0;z-index: 1;position: absolute;"
:src="endphoto ? `` : `https://www.focusnu.com/media/directive/index/bian.png`" /> :src="endphoto ? `` : `https://www.focusnu.com/media/directive/index/bian.png`" />
<image v-if="!endphoto" <image v-if="!endphoto"
@ -98,8 +98,9 @@
onShow onShow
} from '@dcloudio/uni-app'; } from '@dcloudio/uni-app';
import { import {
base_url media_base_url,
} from '@/request/index.js'; base_url
} from '@/request/index.js';
import { import {
swapLongTerm swapLongTerm
} from '@/compontent/public/long.js' } from '@/compontent/public/long.js'
@ -409,8 +410,8 @@
textArray[5] = data.idCardAddress; textArray[5] = data.idCardAddress;
textArray[6] = data.issuingAuthority; textArray[6] = data.issuingAuthority;
textArray[7] = `${data.startTime}-${swapLongTerm(data.endTime)}`; textArray[7] = `${data.startTime}-${swapLongTerm(data.endTime)}`;
headImge.value = `${base_url}/sys/common/static/${data.cardZmPath}`; headImge.value = `${media_base_url}${data.cardZmPath}`;
backImge.value = `${base_url}/sys/common/static/${data.cardFmPath}`; backImge.value = `${media_base_url}${data.cardFmPath}`;
fontphoto.value = data.cardZmPath fontphoto.value = data.cardZmPath
endphoto.value = data.cardFmPath endphoto.value = data.cardFmPath
} }

View File

@ -31,7 +31,7 @@
</view> </view>
<view class="one"> <view class="one">
<view class="one-left">监护人电话</view> <view class="one-left">监护人电话</view>
<input class="one-right" maxlength="11" placeholder="请输入监护人电话" v-model="form.tel" /> <input class="one-right" type="number" maxlength="11" placeholder="请输入监护人电话" v-model="form.tel" />
</view> </view>
<view class="one"> <view class="one">
<view class="one-left">身份证号</view> <view class="one-left">身份证号</view>
@ -67,7 +67,7 @@
</view> </view>
<view style="position: relative;"> <view style="position: relative;">
<image class="photo" <image class="photo"
:src="fontphoto ? `${base_url}/sys/common/static/${fontphoto}` : `https://www.focusnu.com/media/directive/index/IDfront.png`" /> :src="fontphoto ? `${media_base_url}${fontphoto}` : `https://www.focusnu.com/media/directive/index/IDfront.png`" />
<image style="width: 100%;height: 100%;top: 0;left: 0;z-index: 1;position: absolute;" <image style="width: 100%;height: 100%;top: 0;left: 0;z-index: 1;position: absolute;"
:src="fontphoto ? `` : `https://www.focusnu.com/media/directive/index/bian.png`" /> :src="fontphoto ? `` : `https://www.focusnu.com/media/directive/index/bian.png`" />
<image v-if="!fontphoto" <image v-if="!fontphoto"
@ -83,7 +83,7 @@
</view> </view>
<view style="position: relative;"> <view style="position: relative;">
<image class="photo" <image class="photo"
:src="endphoto ? `${base_url}/sys/common/static/${endphoto}` : `https://www.focusnu.com/media/directive/index/IDend.png`" /> :src="endphoto ? `${media_base_url}${endphoto}` : `https://www.focusnu.com/media/directive/index/IDend.png`" />
<image style="width: 100%;height: 100%;top: 0;left: 0;z-index: 1;position: absolute;" <image style="width: 100%;height: 100%;top: 0;left: 0;z-index: 1;position: absolute;"
:src="endphoto ? `` : `https://www.focusnu.com/media/directive/index/bian.png`" /> :src="endphoto ? `` : `https://www.focusnu.com/media/directive/index/bian.png`" />
<image v-if="!endphoto" <image v-if="!endphoto"
@ -144,8 +144,9 @@
onShow onShow
} from '@dcloudio/uni-app'; } from '@dcloudio/uni-app';
import { import {
base_url media_base_url,
} from '@/request/index.js'; base_url
} from '@/request/index.js';
import { import {
getAccount getAccount

View File

@ -35,14 +35,14 @@
</view> </view>
<view class="white-content"> <view class="white-content">
<view class="white-photo" @click="getMessage(`${base_url}/sys/common/static/${fontphoto}`)"> <view class="white-photo" @click="getMessage(`${media_base_url}${fontphoto}`)">
<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"
:src="fontphoto ? `${base_url}/sys/common/static/${fontphoto}` : `https://www.focusnu.com/media/directive/index/IDcard.png`" /> :src="fontphoto ? `${media_base_url}${fontphoto}` : `https://www.focusnu.com/media/directive/index/IDcard.png`" />
<image v-if="!fontphoto" <image v-if="!fontphoto"
style="position: absolute;top: 50%;left: 50%;width: 70rpx;height: 60rpx;transform: translate(-50%,-50%);" style="position: absolute;top: 50%;left: 50%;width: 70rpx;height: 60rpx;transform: translate(-50%,-50%);"
src="https://www.focusnu.com/media/directive/index/takephoto.png" /> src="https://www.focusnu.com/media/directive/index/takephoto.png" />
@ -50,14 +50,14 @@
</view> </view>
<view class="white-photo" style="margin-top: 30rpx;" <view class="white-photo" style="margin-top: 30rpx;"
@click="getMessage(`${base_url}/sys/common/static/${endphoto}`)"> @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"
:src="endphoto ? `${base_url}/sys/common/static/${endphoto}` : `https://www.focusnu.com/media/directive/index/backIDcard.png`" /> :src="endphoto ? `${media_base_url}${endphoto}` : `https://www.focusnu.com/media/directive/index/backIDcard.png`" />
<image v-if="!endphoto" <image v-if="!endphoto"
style="position: absolute;top: 50%;left: 50%;width: 70rpx;height: 60rpx;transform: translate(-50%,-50%);" style="position: absolute;top: 50%;left: 50%;width: 70rpx;height: 60rpx;transform: translate(-50%,-50%);"
src="https://www.focusnu.com/media/directive/index/takephoto.png" /> src="https://www.focusnu.com/media/directive/index/takephoto.png" />
@ -93,7 +93,7 @@
onLoad onLoad
} from '@dcloudio/uni-app'; } from '@dcloudio/uni-app';
import { import {
base_url media_base_url
} from '@/request/index.js'; } from '@/request/index.js';
import { import {
getrel getrel

View File

@ -27,7 +27,7 @@
</view> </view>
<view style="position: relative;"> <view style="position: relative;">
<image class="photo" <image class="photo"
:src="fontphoto ? `${base_url}/sys/common/static/${fontphoto}` : `https://www.focusnu.com/media/directive/index/IDfront.png`" /> :src="fontphoto ? `${media_base_url}${fontphoto}` : `https://www.focusnu.com/media/directive/index/IDfront.png`" />
<image style="width: 100%;height: 100%;top: 0;left: 0;z-index: 1;position: absolute;" <image style="width: 100%;height: 100%;top: 0;left: 0;z-index: 1;position: absolute;"
:src="fontphoto ? `` : `https://www.focusnu.com/media/directive/index/bian.png`" /> :src="fontphoto ? `` : `https://www.focusnu.com/media/directive/index/bian.png`" />
<image v-if="!fontphoto" <image v-if="!fontphoto"
@ -43,7 +43,7 @@
</view> </view>
<view style="position: relative;"> <view style="position: relative;">
<image class="photo" <image class="photo"
:src="endphoto ? `${base_url}/sys/common/static/${endphoto}` : `https://www.focusnu.com/media/directive/index/IDend.png`" /> :src="endphoto ? `${media_base_url}${endphoto}` : `https://www.focusnu.com/media/directive/index/IDend.png`" />
<image style="width: 100%;height: 100%;top: 0;left: 0;z-index: 1;position: absolute;" <image style="width: 100%;height: 100%;top: 0;left: 0;z-index: 1;position: absolute;"
:src="endphoto ? `` : `https://www.focusnu.com/media/directive/index/bian.png`" /> :src="endphoto ? `` : `https://www.focusnu.com/media/directive/index/bian.png`" />
<image v-if="!endphoto" <image v-if="!endphoto"
@ -102,6 +102,7 @@
onShow onShow
} from '@dcloudio/uni-app'; } from '@dcloudio/uni-app';
import { import {
media_base_url,
base_url base_url
} from '@/request/index.js'; } from '@/request/index.js';
import { import {
@ -427,8 +428,8 @@
textArray[5] = data.idCardAddress; textArray[5] = data.idCardAddress;
textArray[6] = data.issuingAuthority; textArray[6] = data.issuingAuthority;
textArray[7] = `${data.startTime}-${data.endTime == '长期' ? swapLongTerm(data.endTime) : data.endTime}`; textArray[7] = `${data.startTime}-${data.endTime == '长期' ? swapLongTerm(data.endTime) : data.endTime}`;
headImge.value = `${base_url}/sys/common/static/${data.cardZmPath}`; headImge.value = `${media_base_url}${data.cardZmPath}`;
backImge.value = `${base_url}/sys/common/static/${data.cardFmPath}`; backImge.value = `${media_base_url}${data.cardFmPath}`;
fontphoto.value = data.cardZmPath fontphoto.value = data.cardZmPath
endphoto.value = data.cardFmPath endphoto.value = data.cardFmPath
} else if (uni.getStorageSync('baddata')) { } else if (uni.getStorageSync('baddata')) {
@ -441,8 +442,8 @@
textArray[5] = data.idCardAddress; textArray[5] = data.idCardAddress;
textArray[6] = data.issuingAuthority; textArray[6] = data.issuingAuthority;
textArray[7] = `${data.startTime}-${data.endTime == '长期' ? swapLongTerm(data.endTime) : data.endTime}`; textArray[7] = `${data.startTime}-${data.endTime == '长期' ? swapLongTerm(data.endTime) : data.endTime}`;
headImge.value = `${base_url}/sys/common/static/${data.cardZmPath}`; headImge.value = `${media_base_url}${data.cardZmPath}`;
backImge.value = `${base_url}/sys/common/static/${data.cardFmPath}`; backImge.value = `${media_base_url}${data.cardFmPath}`;
fontphoto.value = data.cardZmPath fontphoto.value = data.cardZmPath
endphoto.value = data.cardFmPath endphoto.value = data.cardFmPath
} else { } else {

View File

@ -149,13 +149,13 @@
<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" <view class="white-photo"
@click="getMessage(imgArray[0] ? `${base_url}/sys/common/static/${imgArray[0]}` : '')"> @click="getMessage(imgArray[0] ? `${media_base_url}${imgArray[0]}` : '')">
<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" :src="imgArray[0] ? `${base_url}/sys/common/static/${imgArray[0]}` : ``" /> <image class="photo" :src="imgArray[0] ? `${media_base_url}${imgArray[0]}` : ``" />
<!-- <image style="width: 100%;height: 100%;top: 0;left: 0;z-index: 1;position: absolute;" <!-- <image style="width: 100%;height: 100%;top: 0;left: 0;z-index: 1;position: absolute;"
:src="imgArray[0] ? `` : `https://www.focusnu.com/media/directive/index/bian.png`" /> :src="imgArray[0] ? `` : `https://www.focusnu.com/media/directive/index/bian.png`" />
<image v-if="!imgArray[0]" <image v-if="!imgArray[0]"
@ -189,13 +189,13 @@
<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" <view class="white-photo"
@click="getMessage(imgArray[2] ? `${base_url}/sys/common/static/${imgArray[2]}` : '')"> @click="getMessage(imgArray[2] ? `${media_base_url}${imgArray[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;">
<image class="photo" :src="imgArray[2] ? `${base_url}/sys/common/static/${imgArray[2]}` : ``" /> <image class="photo" :src="imgArray[2] ? `${media_base_url}${imgArray[2]}` : ``" />
<!-- <image style="width: 100%;height: 100%;top: 0;left: 0;z-index: 1;position: absolute;" <!-- <image style="width: 100%;height: 100%;top: 0;left: 0;z-index: 1;position: absolute;"
:src="imgArray[2] ? `` : `https://www.focusnu.com/media/directive/index/bian.png`" /> --> :src="imgArray[2] ? `` : `https://www.focusnu.com/media/directive/index/bian.png`" /> -->
<!-- <image v-if="!imgArray[2]" <!-- <image v-if="!imgArray[2]"
@ -212,13 +212,13 @@
<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" <view class="white-photo"
@click="getMessage(imgArray[3] ? `${base_url}/sys/common/static/${imgArray[3]}` : '')"> @click="getMessage(imgArray[3] ? `${media_base_url}${imgArray[3]}` : '')">
<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" :src="imgArray[3] ? `${base_url}/sys/common/static/${imgArray[3]}` : ``" /> <image class="photo" :src="imgArray[3] ? `${media_base_url}${imgArray[3]}` : ``" />
<!-- <image style="width: 100%;height: 100%;top: 0;left: 0;z-index: 1;position: absolute;" <!-- <image style="width: 100%;height: 100%;top: 0;left: 0;z-index: 1;position: absolute;"
:src="imgArray[3] ? `` : `https://www.focusnu.com/media/directive/index/bian.png`" /> :src="imgArray[3] ? `` : `https://www.focusnu.com/media/directive/index/bian.png`" />
<image v-if="!imgArray[3]" <image v-if="!imgArray[3]"
@ -242,7 +242,7 @@
onLoad onLoad
} from '@dcloudio/uni-app'; } from '@dcloudio/uni-app';
import { import {
base_url media_base_url
} from '@/request/index.js'; } from '@/request/index.js';
import { import {
getrel getrel
@ -271,8 +271,8 @@
const nameArray0 = ["开户行", "开户行卡号"]; const nameArray0 = ["开户行", "开户行卡号"];
const textArray0 = reactive(["", "", ]); const textArray0 = reactive(["", "", ]);
const nameArray1 = ["婚否", "联系电话", "身高", "体重", "健康状态", "政治面貌", "紧急联系人", "紧急联系人电话", "联系人与本人关系", "户口性质", ]; const nameArray1 = ["婚否", "联系电话", "身高", "体重", "健康状态", "政治面貌", "紧急联系人", "紧急联系人电话", "联系人与本人关系", "户口性质",'现住址' ];
const textArray1 = reactive(["", "", "", "", "", "", "", "", "", ""]); const textArray1 = reactive(["", "", "", "", "", "", "", "", "", "",""]);
const backImge = ref(""); const backImge = ref("");
@ -340,12 +340,12 @@
textArray[5] = data.idCardAddress; textArray[5] = data.idCardAddress;
textArray[6] = data.issuingAuthority; textArray[6] = data.issuingAuthority;
textArray[7] = `${data.startTime}-${swapLongTerm(data.endTime)}`; textArray[7] = `${data.startTime}-${swapLongTerm(data.endTime)}`;
headImge.value = `${base_url}/sys/common/static/${data.cardZmPath}`; headImge.value = `${media_base_url}${data.cardZmPath}`;
backImge.value = `${base_url}/sys/common/static/${data.cardFmPath}`; backImge.value = `${media_base_url}${data.cardFmPath}`;
textArray0[0] = data.openingBank; textArray0[0] = data.openingBank;
textArray0[1] = data.bankCard; textArray0[1] = data.bankCard;
fontphoto0.value = `${base_url}/sys/common/static/${data.bankZmPath}`; fontphoto0.value = `${media_base_url}${data.bankZmPath}`;
endphoto0.value = `${base_url}/sys/common/static/${data.bankFmPath}`; endphoto0.value = `${media_base_url}${data.bankFmPath}`;
imgArray.value[0] = data.healthZmPath imgArray.value[0] = data.healthZmPath
imgArray.value[1] = data.healthFmPath imgArray.value[1] = data.healthFmPath
imgArray.value[2] = data.qualificationPath imgArray.value[2] = data.qualificationPath
@ -362,14 +362,16 @@
"contactName", "contactName",
"contactTel", "contactTel",
"contactRelationship", "contactRelationship",
"hukouType" "hukouType",
"currentAddress"
] ]
keys.forEach((key, index) => { keys.forEach((key, index) => {
textArray1[index] = data[key] || "" textArray1[index] = data[key] || ""
}) })
textArray1[2] += "cm" textArray1[2] = Number(textArray1[2]) + "cm"
textArray1[3] += 'kg' textArray1[3] = Number(textArray1[3]) + "kg"
}) })
const changeMessage = () => { const changeMessage = () => {
console.log("????", alldata.value) console.log("????", alldata.value)

View File

@ -27,7 +27,7 @@
</view> </view>
<view style="position: relative;"> <view style="position: relative;">
<image class="photo" <image class="photo"
:src="fontphoto ? `${base_url}/sys/common/static/${fontphoto}` : `https://www.focusnu.com/media/directive/index/bankfront.png`" /> :src="fontphoto ? `${media_base_url}${fontphoto}` : `https://www.focusnu.com/media/directive/index/bankfront.png`" />
<image style="width: 100%;height: 100%;top: 0;left: 0;z-index: 1;position: absolute;" <image style="width: 100%;height: 100%;top: 0;left: 0;z-index: 1;position: absolute;"
:src="fontphoto ? `` : `https://www.focusnu.com/media/directive/index/bian.png`" /> :src="fontphoto ? `` : `https://www.focusnu.com/media/directive/index/bian.png`" />
<image v-if="!fontphoto" <image v-if="!fontphoto"
@ -43,7 +43,7 @@
</view> </view>
<view style="position: relative;"> <view style="position: relative;">
<image class="photo" <image class="photo"
:src="endphoto ? `${base_url}/sys/common/static/${endphoto}` : `https://www.focusnu.com/media/directive/index/bankend.png`" /> :src="endphoto ? `${media_base_url}${endphoto}` : `https://www.focusnu.com/media/directive/index/bankend.png`" />
<image style="width: 100%;height: 100%;top: 0;left: 0;z-index: 1;position: absolute;" <image style="width: 100%;height: 100%;top: 0;left: 0;z-index: 1;position: absolute;"
:src="endphoto ? `` : `https://www.focusnu.com/media/directive/index/bian.png`" /> :src="endphoto ? `` : `https://www.focusnu.com/media/directive/index/bian.png`" />
<image v-if="!endphoto" <image v-if="!endphoto"
@ -88,6 +88,7 @@
onShow onShow
} from '@dcloudio/uni-app'; } from '@dcloudio/uni-app';
import { import {
media_base_url,
base_url base_url
} from '@/request/index.js'; } from '@/request/index.js';
import { import {

View File

@ -27,7 +27,7 @@
</view> </view>
<view style="position: relative;"> <view style="position: relative;">
<image class="photo" <image class="photo"
:src="imgArray[0] ? `${base_url}/sys/common/static/${imgArray[0]}` : `https://www.focusnu.com/media/directive/index/healfront.png`" /> :src="imgArray[0] ? `${media_base_url}${imgArray[0]}` : `https://www.focusnu.com/media/directive/index/healfront.png`" />
<image style="width: 100%;height: 100%;top: 0;left: 0;z-index: 1;position: absolute;" <image style="width: 100%;height: 100%;top: 0;left: 0;z-index: 1;position: absolute;"
:src="imgArray[0] ? `` : `https://www.focusnu.com/media/directive/index/bian.png`" /> :src="imgArray[0] ? `` : `https://www.focusnu.com/media/directive/index/bian.png`" />
<image v-if="!imgArray[0]" <image v-if="!imgArray[0]"
@ -66,7 +66,7 @@
</view> </view>
<view style="position: relative;"> <view style="position: relative;">
<image class="photo" <image class="photo"
:src="imgArray[2] ? `${base_url}/sys/common/static/${imgArray[2]}` : `https://www.focusnu.com/media/directive/index/zizhi.png`" /> :src="imgArray[2] ? `${media_base_url}${imgArray[2]}` : `https://www.focusnu.com/media/directive/index/zizhi.png`" />
<image style="width: 100%;height: 100%;top: 0;left: 0;z-index: 1;position: absolute;" <image style="width: 100%;height: 100%;top: 0;left: 0;z-index: 1;position: absolute;"
:src="imgArray[2] ? `` : `https://www.focusnu.com/media/directive/index/bian.png`" /> :src="imgArray[2] ? `` : `https://www.focusnu.com/media/directive/index/bian.png`" />
<image v-if="!imgArray[2]" <image v-if="!imgArray[2]"
@ -89,7 +89,7 @@
</view> </view>
<view style="position: relative;"> <view style="position: relative;">
<image class="photo" <image class="photo"
:src="imgArray[3] ? `${base_url}/sys/common/static/${imgArray[3]}` : `https://www.focusnu.com/media/directive/index/fanzui.png`" /> :src="imgArray[3] ? `${media_base_url}${imgArray[3]}` : `https://www.focusnu.com/media/directive/index/fanzui.png`" />
<image style="width: 100%;height: 100%;top: 0;left: 0;z-index: 1;position: absolute;" <image style="width: 100%;height: 100%;top: 0;left: 0;z-index: 1;position: absolute;"
:src="imgArray[3] ? `` : `https://www.focusnu.com/media/directive/index/bian.png`" /> :src="imgArray[3] ? `` : `https://www.focusnu.com/media/directive/index/bian.png`" />
<image v-if="!imgArray[3]" <image v-if="!imgArray[3]"
@ -122,7 +122,7 @@
onShow onShow
} from '@dcloudio/uni-app'; } from '@dcloudio/uni-app';
import { import {
base_url media_base_url
} from '@/request/index.js' } from '@/request/index.js'
import { import {
changemessage changemessage
@ -174,7 +174,7 @@
const photoclick = (element) => { const photoclick = (element) => {
if (element) { if (element) {
uni.previewImage({ uni.previewImage({
urls: [`${base_url}/sys/common/static/${imgArray[imgetarget.value]}`], // urls: [`${media_base_url}${imgArray[imgetarget.value]}`], //
// current: headImge.value, // urls[0] // current: headImge.value, // urls[0]
indicator: 'default', // H5/App 'default' 'number' indicator: 'default', // H5/App 'default' 'number'
longPressActions: { // App longPressActions: { // App

View File

@ -38,23 +38,27 @@
</view> </view>
<view class="one" style="position: relative;" @click="showshengao=true"> <view class="one" style="position: relative;" @click="showshengao=true">
<view class="one-left">身高</view> <view class="one-left">身高</view>
<input disabled class="one-right" type="number" maxlength="3" placeholder="请输入身高" <input disabled class="one-right" type="number" maxlength="10" placeholder="请输入身高"
v-model="form.height" /> v-model="form.showheight" />
<view class="triangle-down-mi"> <!-- <view class="triangle-down-mi">
cm cm
</view> </view> -->
<image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" />
</view> </view>
<u-select style="font-size: 35rpx;" v-model="showshengao" :list="showshengaolist" <u-select style="font-size: 35rpx;" v-model="showshengao" :list="showshengaolist"
:default-value="[showshengaolist.findIndex(item => item.value == form.height)]"
@confirm="confirmshowshengao"></u-select> @confirm="confirmshowshengao"></u-select>
<view class="one" style="position: relative;" @click="showtizhong=true"> <view class="one" style="position: relative;" @click="showtizhong=true">
<view class="one-left">体重</view> <view class="one-left">体重</view>
<input disabled class="one-right" type="number" maxlength="3" placeholder="请输入体重" <input disabled class="one-right" type="number" maxlength="10" placeholder="请输入体重"
v-model="form.weight" /> v-model="form.showweight" />
<view class="triangle-down-mi"> <!-- <view class="triangle-down-mi">
kg kg
</view> </view> -->
<image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" />
</view> </view>
<u-select style="font-size: 35rpx;" v-model="showtizhong" :list="showtizhonglist" <u-select style="font-size: 35rpx;" v-model="showtizhong" :list="showtizhonglist"
:default-value="[showtizhonglist.findIndex(item => item.value == form.weight)]"
@confirm="confirmshowtizhong"></u-select> @confirm="confirmshowtizhong"></u-select>
<view class="one" style="position: relative;" @click="showhealth = true"> <view class="one" style="position: relative;" @click="showhealth = true">
<view class="one-left">健康状况</view> <view class="one-left">健康状况</view>
@ -96,7 +100,11 @@
placeholder="请选择户口性质" v-model="form.hukouType" /> placeholder="请选择户口性质" v-model="form.hukouType" />
<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>
<view class="one">
<view class="one-left">现住址</view>
<input class="one-right" maxlength="30" placeholder="请输入现住址"
v-model="form.currentAddress" />
</view>
<u-select style="font-size: 35rpx;" v-model="showform" :list="showformlist" <u-select style="font-size: 35rpx;" v-model="showform" :list="showformlist"
@confirm="confirmshowform"></u-select> @confirm="confirmshowform"></u-select>
</view> </view>
@ -161,23 +169,35 @@
) )
const showshengao = ref(false); const showshengao = ref(false);
const showshengaolist = reactive( const showshengaolist = reactive(
Array.from({ length: 61 }, (_, i) => { Array.from({
const v = 140 + i length: 61
return { value: String(v), label: `${v}cm` } }, (_, i) => {
}) const v = 140 + i
return {
value: String(v),
label: `${v}cm`
}
})
) )
const confirmshowshengao = (item) => { const confirmshowshengao = (item) => {
form.height = item[0].value form.height = item[0].value
form.showheight = item[0].label
} }
const showtizhong = ref(false); const showtizhong = ref(false);
const showtizhonglist = reactive( const showtizhonglist = reactive(
Array.from({ length: 41 }, (_, i) => { Array.from({
const v = 40 + i length: 41
return { value: String(v), label: `${v}kg` } }, (_, i) => {
}) const v = 40 + i
return {
value: String(v),
label: `${v}kg`
}
})
) )
const confirmshowtizhong = (item) => { const confirmshowtizhong = (item) => {
form.weight = item[0].value form.weight = item[0].value
form.showweight = item[0].label
} }
const showface = ref(false); const showface = ref(false);
const showfacelist = reactive( const showfacelist = reactive(
@ -341,12 +361,17 @@
"contactName", "contactName",
"contactTel", "contactTel",
"contactRelationship", "contactRelationship",
"hukouType" "hukouType",
"currentAddress"
] ]
keys.forEach(key => { keys.forEach(key => {
form[key] = data[key] || "" form[key] = data[key] || ""
}) })
form.height = Number(form.height)
form.weight = Number(form.weight)
form.showheight = form.height + 'cm';
form.showweight = form.weight + 'kg';
} else { } else {
uni.setStorageSync("isstaffchange", false) uni.setStorageSync("isstaffchange", false)
} }

View File

@ -126,9 +126,12 @@
</view> </view>
<view class="normal"> <view class="normal">
<text> <text v-if="!uni.getStorageSync('firstlogin')">
已成功绑定,期待您早日加入护理单元大家庭 已成功绑定,期待您早日加入护理单元大家庭
</text> </text>
<text v-else>
已成功绑定,欢迎加入护理单元大家庭
</text>
</view> </view>
</view> </view>
<view class="bottom-button" @click="jumpto"> <view class="bottom-button" @click="jumpto">
@ -151,11 +154,13 @@
uni.reLaunch({ uni.reLaunch({
url: `/pages/login/callback` url: `/pages/login/callback`
}); });
uni.setStorageSync('firstlogin', true);
} }
const phone = ref(""); const phone = ref("");
onLoad((options) => { onLoad((options) => {
phone.value = uni.getStorageSync('tel'); phone.value = uni.getStorageSync('tel');
}) })
</script> </script>

View File

@ -146,7 +146,7 @@
</view> </view>
<view class="white-box"> <view class="white-box">
<image class="box-img" style="width: 40rpx;height: 40rpx;" <image class="box-img" style="width: 40rpx;height: 40rpx;"
:src="`https://www.focusnu.com/media/directive/index/oldmanphoto/more.png`" /> :src="`https://www.focusnu.com/media/directive/index/oldmanphoto/more.png`" />
</view> </view>
</view> </view>
@ -298,8 +298,12 @@
import { import {
getIndex, getIndex,
isRead, isRead,
queryElders queryElders,
getOrgNuId
} from './api.js' } from './api.js'
// import {
// getOrgNuId
// } from './api.js'
import request from '@/request/index.js' import request from '@/request/index.js'
import downMenu from '@/compontent/public/oldmandownmenu.vue' import downMenu from '@/compontent/public/oldmandownmenu.vue'
import model from "@/compontent/public/model.vue" import model from "@/compontent/public/model.vue"
@ -334,6 +338,7 @@
weekday: weekdayMap[d.getDay()], weekday: weekdayMap[d.getDay()],
} }
} }
function parseToDate(dateInput) { function parseToDate(dateInput) {
if (!dateInput) return null; if (!dateInput) return null;
if (dateInput instanceof Date) return dateInput; if (dateInput instanceof Date) return dateInput;
@ -420,10 +425,38 @@
} }
} }
const jumpSaoyisao = () => { function isAtLeastTenChars(str) {
uni.navigateTo({ return typeof str === "string" && str.length >= 10;
url: "/pages/oldmanindex/saoyisao" }
}) async function jumpSaoyisao() {
// uni.navigateTo({
// url: "/pages/oldmanindex/saoyisao"
// })
const res = await uni.scanCode();
// console.log("res",res.result)
if (isAtLeastTenChars(res.result)) {
// console.log("res1111",res.result)
getOrgNuId(res.result).then(res0 => {
if (res0.result) {
// console.log("<><><",res0.result)
uni.navigateTo({
url: `/pages/oldmanindex/saoyisaothen?element=${JSON.stringify(res0.result)}`
})
} else {
uni.showToast({
title: '扫描的二维码有误',
icon: 'none', //
duration: 2000
});
}
})
} else {
uni.showToast({
title: '扫描的二维码有误',
icon: 'none', //
duration: 2000
});
}
} }
const jumpInput = () => { const jumpInput = () => {
uni.navigateTo({ uni.navigateTo({
@ -561,20 +594,20 @@
uni.navigateBack() uni.navigateBack()
} }
const moveHeight = ref(0); const moveHeight = ref(0);
onMounted(() => { onMounted(() => {
// px // px
let capsule = null; let capsule = null;
if (typeof uni.getMenuButtonBoundingClientRect === 'function') { if (typeof uni.getMenuButtonBoundingClientRect === 'function') {
try { try {
capsule = uni.getMenuButtonBoundingClientRect(); capsule = uni.getMenuButtonBoundingClientRect();
} catch (e) { } catch (e) {
capsule = null; capsule = null;
}
moveHeight.value = capsule.top
uni.setStorageSync("moveHeight", moveHeight.value)
} }
}) moveHeight.value = capsule.top
uni.setStorageSync("moveHeight", moveHeight.value)
}
})
onUnmounted(() => {}) onUnmounted(() => {})
const menuArray = ref([]) const menuArray = ref([])
@ -818,8 +851,8 @@
.blue-button { .blue-button {
background: linear-gradient(to bottom, #e7f4ff, #c5e5ff); background: linear-gradient(to bottom, #e7f4ff, #c5e5ff);
border: 2rpx solid #9AD1FF; border: 2rpx solid #9AD1FF;
color: #007CFF; color: #007CFF;
font-size: 25rpx; font-size: 25rpx;
padding: 10rpx 20rpx; padding: 10rpx 20rpx;
border-radius: 35rpx; border-radius: 35rpx;
@ -955,9 +988,9 @@
align-items: center; align-items: center;
height: 90rpx; height: 90rpx;
border-radius: 37rpx; border-radius: 37rpx;
background: linear-gradient(to bottom, #e7f4ff, #c5e5ff); background: linear-gradient(to bottom, #e7f4ff, #c5e5ff);
border: 2rpx solid #9AD1FF; border: 2rpx solid #9AD1FF;
color: #007CFF; color: #007CFF;
font-size: 33rpx; font-size: 33rpx;
margin-top: 80rpx; margin-top: 80rpx;
} }
@ -1105,8 +1138,8 @@
.button-ball-blue { .button-ball-blue {
background: linear-gradient(to bottom, #e7f4ff, #c5e5ff); background: linear-gradient(to bottom, #e7f4ff, #c5e5ff);
// border: 2rpx solid #9AD1FF; // border: 2rpx solid #9AD1FF;
color: #007CFF; color: #007CFF;
width: 90rpx; width: 90rpx;
height: 90rpx; height: 90rpx;
border-radius: 50%; border-radius: 50%;
@ -1127,8 +1160,8 @@
height: 90rpx; height: 90rpx;
border-radius: 37rpx; border-radius: 37rpx;
background: linear-gradient(to bottom, #e7f4ff, #c5e5ff); background: linear-gradient(to bottom, #e7f4ff, #c5e5ff);
border: 2rpx solid #9AD1FF; border: 2rpx solid #9AD1FF;
color: #007CFF; color: #007CFF;
font-size: 33rpx; font-size: 33rpx;
margin-top: 80rpx; margin-top: 80rpx;
z-index: 999; z-index: 999;

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -85,7 +85,6 @@ const _sfc_main = {
textArray0[2] = data.comCreditCode; textArray0[2] = data.comCreditCode;
textArray0[3] = data.comLegalPerson; textArray0[3] = data.comLegalPerson;
headImge0.value = `${request_index.media_base_url}${data.comBusinessLicense}`; headImge0.value = `${request_index.media_base_url}${data.comBusinessLicense}`;
common_vendor.index.__f__("log", "at pages/addjigou/all.vue:224", "!!!!!", headImge0.value);
textArray1[0] = (data.orgProvince_dictText || "") + (data.orgCity_dictText != null ? data.orgCity_dictText : ``) + (data.orgDistrict_dictText != null ? data.orgDistrict_dictText : ``); textArray1[0] = (data.orgProvince_dictText || "") + (data.orgCity_dictText != null ? data.orgCity_dictText : ``) + (data.orgDistrict_dictText != null ? data.orgDistrict_dictText : ``);
textArray1[1] = data.orgAddress; textArray1[1] = data.orgAddress;
textArray1[2] = data.orgLeader; textArray1[2] = data.orgLeader;

View File

@ -193,7 +193,7 @@ const _sfc_main = {
textArray[2] = data.comCreditCode; textArray[2] = data.comCreditCode;
textArray[3] = data.comLegalPerson; textArray[3] = data.comLegalPerson;
if (data.comBusinessLicense) { if (data.comBusinessLicense) {
headImge.value = `${request_index.base_url}/sys/common/static/${data.comBusinessLicense}`; headImge.value = `${request_index.media_base_url}${data.comBusinessLicense}`;
fontphoto.value = data.comBusinessLicense; fontphoto.value = data.comBusinessLicense;
} }
} }
@ -208,7 +208,7 @@ const _sfc_main = {
data0.comName = data.id; data0.comName = data.id;
common_vendor.index.setStorageSync("backhuancun", data); common_vendor.index.setStorageSync("backhuancun", data);
if (data.comBusinessLicense) { if (data.comBusinessLicense) {
headImge.value = `${request_index.base_url}/sys/common/static/${data.comBusinessLicense}`; headImge.value = `${request_index.media_base_url}${data.comBusinessLicense}`;
fontphoto.value = data.comBusinessLicense; fontphoto.value = data.comBusinessLicense;
} }
} }

View File

@ -71,7 +71,7 @@ const _sfc_main = {
}); });
}, },
fail: (err) => { fail: (err) => {
common_vendor.index.__f__("error", "at pages/addjigou/name.vue:180", "拍照失败:", err); common_vendor.index.__f__("error", "at pages/addjigou/name.vue:181", "拍照失败:", err);
} }
}); });
} }
@ -100,7 +100,7 @@ const _sfc_main = {
}, },
formData: {}, formData: {},
success: (uploadRes) => { success: (uploadRes) => {
common_vendor.index.__f__("log", "at pages/addjigou/name.vue:230", "token", common_vendor.index.getStorageSync("token")); common_vendor.index.__f__("log", "at pages/addjigou/name.vue:231", "token", common_vendor.index.getStorageSync("token"));
if (!JSON.parse(uploadRes.data).success) { if (!JSON.parse(uploadRes.data).success) {
common_vendor.index.hideLoading(); common_vendor.index.hideLoading();
common_vendor.index.showToast({ common_vendor.index.showToast({
@ -278,8 +278,8 @@ const _sfc_main = {
textArray[5] = data.idCardAddress; textArray[5] = data.idCardAddress;
textArray[6] = data.issuingAuthority; textArray[6] = data.issuingAuthority;
textArray[7] = `${data.startTime}-${compontent_public_long.swapLongTerm(data.endTime)}`; textArray[7] = `${data.startTime}-${compontent_public_long.swapLongTerm(data.endTime)}`;
headImge.value = `${request_index.base_url}/sys/common/static/${data.cardZmPath}`; headImge.value = `${request_index.media_base_url}${data.cardZmPath}`;
backImge.value = `${request_index.base_url}/sys/common/static/${data.cardFmPath}`; backImge.value = `${request_index.media_base_url}${data.cardFmPath}`;
fontphoto.value = data.cardZmPath; fontphoto.value = data.cardZmPath;
endphoto.value = data.cardFmPath; endphoto.value = data.cardFmPath;
} }
@ -301,12 +301,12 @@ const _sfc_main = {
c: common_vendor.o(goBack), c: common_vendor.o(goBack),
d: `${common_vendor.index.getStorageSync("moveHeight") + 40}px`, d: `${common_vendor.index.getStorageSync("moveHeight") + 40}px`,
e: `${common_vendor.index.getStorageSync("moveHeight") + 30}px`, e: `${common_vendor.index.getStorageSync("moveHeight") + 30}px`,
f: fontphoto.value ? `${common_vendor.unref(request_index.base_url)}/sys/common/static/${fontphoto.value}` : `https://www.focusnu.com/media/directive/index/IDfront.png`, f: fontphoto.value ? `${common_vendor.unref(request_index.media_base_url)}${fontphoto.value}` : `https://www.focusnu.com/media/directive/index/IDfront.png`,
g: fontphoto.value ? `` : `https://www.focusnu.com/media/directive/index/bian.png`, g: fontphoto.value ? `` : `https://www.focusnu.com/media/directive/index/bian.png`,
h: !fontphoto.value h: !fontphoto.value
}, !fontphoto.value ? {} : {}, { }, !fontphoto.value ? {} : {}, {
i: common_vendor.o(($event) => selectphoto(0)), i: common_vendor.o(($event) => selectphoto(0)),
j: endphoto.value ? `${common_vendor.unref(request_index.base_url)}/sys/common/static/${endphoto.value}` : `https://www.focusnu.com/media/directive/index/IDend.png`, j: endphoto.value ? `${common_vendor.unref(request_index.media_base_url)}${endphoto.value}` : `https://www.focusnu.com/media/directive/index/IDend.png`,
k: endphoto.value ? `` : `https://www.focusnu.com/media/directive/index/bian.png`, k: endphoto.value ? `` : `https://www.focusnu.com/media/directive/index/bian.png`,
l: !endphoto.value l: !endphoto.value
}, !endphoto.value ? {} : {}, { }, !endphoto.value ? {} : {}, {

View File

@ -80,7 +80,7 @@ const _sfc_main = {
}); });
}, },
fail: (err) => { fail: (err) => {
common_vendor.index.__f__("error", "at pages/addoldman/oldIDcard.vue:240", "拍照失败:", err); common_vendor.index.__f__("error", "at pages/addoldman/oldIDcard.vue:241", "拍照失败:", err);
} }
}); });
} }
@ -358,7 +358,7 @@ const _sfc_main = {
}); });
}, },
fail: (e) => { fail: (e) => {
common_vendor.index.__f__("log", "at pages/addoldman/oldIDcard.vue:558", "????", e); common_vendor.index.__f__("log", "at pages/addoldman/oldIDcard.vue:559", "????", e);
} }
}); });
} else { } else {
@ -441,7 +441,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:701", "????", data.dateOfBirth); common_vendor.index.__f__("log", "at pages/addoldman/oldIDcard.vue:702", "????", 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;
@ -484,12 +484,12 @@ const _sfc_main = {
q: form.workUnit, q: form.workUnit,
r: common_vendor.o(($event) => form.workUnit = $event.detail.value) r: common_vendor.o(($event) => form.workUnit = $event.detail.value)
} : {}, { } : {}, {
s: fontphoto.value ? `${common_vendor.unref(request_index.base_url)}/sys/common/static/${fontphoto.value}` : `https://www.focusnu.com/media/directive/index/IDfront.png`, s: fontphoto.value ? `${common_vendor.unref(request_index.media_base_url)}${fontphoto.value}` : `https://www.focusnu.com/media/directive/index/IDfront.png`,
t: fontphoto.value ? `` : `https://www.focusnu.com/media/directive/index/bian.png`, t: fontphoto.value ? `` : `https://www.focusnu.com/media/directive/index/bian.png`,
v: !fontphoto.value v: !fontphoto.value
}, !fontphoto.value ? {} : {}, { }, !fontphoto.value ? {} : {}, {
w: common_vendor.o(($event) => selectphoto(0)), w: common_vendor.o(($event) => selectphoto(0)),
x: endphoto.value ? `${common_vendor.unref(request_index.base_url)}/sys/common/static/${endphoto.value}` : `https://www.focusnu.com/media/directive/index/IDend.png`, x: endphoto.value ? `${common_vendor.unref(request_index.media_base_url)}${endphoto.value}` : `https://www.focusnu.com/media/directive/index/IDend.png`,
y: endphoto.value ? `` : `https://www.focusnu.com/media/directive/index/bian.png`, y: endphoto.value ? `` : `https://www.focusnu.com/media/directive/index/bian.png`,
z: !endphoto.value z: !endphoto.value
}, !endphoto.value ? {} : {}, { }, !endphoto.value ? {} : {}, {

File diff suppressed because one or more lines are too long

View File

@ -118,14 +118,14 @@ const _sfc_main = {
}, !applyStatus.value ? { }, !applyStatus.value ? {
h: common_vendor.o(changeMessage) h: common_vendor.o(changeMessage)
} : {}, { } : {}, {
i: fontphoto.value ? `${common_vendor.unref(request_index.base_url)}/sys/common/static/${fontphoto.value}` : `https://www.focusnu.com/media/directive/index/IDcard.png`, i: fontphoto.value ? `${common_vendor.unref(request_index.media_base_url)}${fontphoto.value}` : `https://www.focusnu.com/media/directive/index/IDcard.png`,
j: !fontphoto.value j: !fontphoto.value
}, !fontphoto.value ? {} : {}, { }, !fontphoto.value ? {} : {}, {
k: common_vendor.o(($event) => getMessage(`${common_vendor.unref(request_index.base_url)}/sys/common/static/${fontphoto.value}`)), k: common_vendor.o(($event) => getMessage(`${common_vendor.unref(request_index.media_base_url)}${fontphoto.value}`)),
l: endphoto.value ? `${common_vendor.unref(request_index.base_url)}/sys/common/static/${endphoto.value}` : `https://www.focusnu.com/media/directive/index/backIDcard.png`, l: endphoto.value ? `${common_vendor.unref(request_index.media_base_url)}${endphoto.value}` : `https://www.focusnu.com/media/directive/index/backIDcard.png`,
m: !endphoto.value m: !endphoto.value
}, !endphoto.value ? {} : {}, { }, !endphoto.value ? {} : {}, {
n: common_vendor.o(($event) => getMessage(`${common_vendor.unref(request_index.base_url)}/sys/common/static/${endphoto.value}`)), n: common_vendor.o(($event) => getMessage(`${common_vendor.unref(request_index.media_base_url)}${endphoto.value}`)),
o: common_vendor.f(nameArray, (item, index, i0) => { o: common_vendor.f(nameArray, (item, index, i0) => {
return { return {
a: common_vendor.t(item), a: common_vendor.t(item),

View File

@ -71,7 +71,7 @@ const _sfc_main = {
}); });
}, },
fail: (err) => { fail: (err) => {
common_vendor.index.__f__("error", "at pages/addstaff/IDcard.vue:186", "拍照失败:", err); common_vendor.index.__f__("error", "at pages/addstaff/IDcard.vue:187", "拍照失败:", err);
} }
}); });
} }
@ -278,7 +278,7 @@ const _sfc_main = {
common_vendor.index.navigateBack(); common_vendor.index.navigateBack();
}; };
common_vendor.onLoad(() => { common_vendor.onLoad(() => {
common_vendor.index.__f__("log", "at pages/addstaff/IDcard.vue:417", "11", common_vendor.index.getStorageSync("backhuancun")); common_vendor.index.__f__("log", "at pages/addstaff/IDcard.vue:418", "11", common_vendor.index.getStorageSync("backhuancun"));
if (common_vendor.index.getStorageSync("backhuancun").name) { if (common_vendor.index.getStorageSync("backhuancun").name) {
let data = common_vendor.index.getStorageSync("backhuancun"); let data = common_vendor.index.getStorageSync("backhuancun");
textArray[0] = data.name; textArray[0] = data.name;
@ -289,8 +289,8 @@ const _sfc_main = {
textArray[5] = data.idCardAddress; textArray[5] = data.idCardAddress;
textArray[6] = data.issuingAuthority; textArray[6] = data.issuingAuthority;
textArray[7] = `${data.startTime}-${data.endTime == "长期" ? compontent_public_long.swapLongTerm(data.endTime) : data.endTime}`; textArray[7] = `${data.startTime}-${data.endTime == "长期" ? compontent_public_long.swapLongTerm(data.endTime) : data.endTime}`;
headImge.value = `${request_index.base_url}/sys/common/static/${data.cardZmPath}`; headImge.value = `${request_index.media_base_url}${data.cardZmPath}`;
backImge.value = `${request_index.base_url}/sys/common/static/${data.cardFmPath}`; backImge.value = `${request_index.media_base_url}${data.cardFmPath}`;
fontphoto.value = data.cardZmPath; fontphoto.value = data.cardZmPath;
endphoto.value = data.cardFmPath; endphoto.value = data.cardFmPath;
} else if (common_vendor.index.getStorageSync("baddata")) { } else if (common_vendor.index.getStorageSync("baddata")) {
@ -303,8 +303,8 @@ const _sfc_main = {
textArray[5] = data.idCardAddress; textArray[5] = data.idCardAddress;
textArray[6] = data.issuingAuthority; textArray[6] = data.issuingAuthority;
textArray[7] = `${data.startTime}-${data.endTime == "长期" ? compontent_public_long.swapLongTerm(data.endTime) : data.endTime}`; textArray[7] = `${data.startTime}-${data.endTime == "长期" ? compontent_public_long.swapLongTerm(data.endTime) : data.endTime}`;
headImge.value = `${request_index.base_url}/sys/common/static/${data.cardZmPath}`; headImge.value = `${request_index.media_base_url}${data.cardZmPath}`;
backImge.value = `${request_index.base_url}/sys/common/static/${data.cardFmPath}`; backImge.value = `${request_index.media_base_url}${data.cardFmPath}`;
fontphoto.value = data.cardZmPath; fontphoto.value = data.cardZmPath;
endphoto.value = data.cardFmPath; endphoto.value = data.cardFmPath;
} else } else
@ -327,12 +327,12 @@ const _sfc_main = {
c: common_vendor.o(goBack), c: common_vendor.o(goBack),
d: `${common_vendor.index.getStorageSync("moveHeight") + 40}px`, d: `${common_vendor.index.getStorageSync("moveHeight") + 40}px`,
e: `${common_vendor.index.getStorageSync("moveHeight") + 30}px`, e: `${common_vendor.index.getStorageSync("moveHeight") + 30}px`,
f: fontphoto.value ? `${common_vendor.unref(request_index.base_url)}/sys/common/static/${fontphoto.value}` : `https://www.focusnu.com/media/directive/index/IDfront.png`, f: fontphoto.value ? `${common_vendor.unref(request_index.media_base_url)}${fontphoto.value}` : `https://www.focusnu.com/media/directive/index/IDfront.png`,
g: fontphoto.value ? `` : `https://www.focusnu.com/media/directive/index/bian.png`, g: fontphoto.value ? `` : `https://www.focusnu.com/media/directive/index/bian.png`,
h: !fontphoto.value h: !fontphoto.value
}, !fontphoto.value ? {} : {}, { }, !fontphoto.value ? {} : {}, {
i: common_vendor.o(($event) => selectphoto(0)), i: common_vendor.o(($event) => selectphoto(0)),
j: endphoto.value ? `${common_vendor.unref(request_index.base_url)}/sys/common/static/${endphoto.value}` : `https://www.focusnu.com/media/directive/index/IDend.png`, j: endphoto.value ? `${common_vendor.unref(request_index.media_base_url)}${endphoto.value}` : `https://www.focusnu.com/media/directive/index/IDend.png`,
k: endphoto.value ? `` : `https://www.focusnu.com/media/directive/index/bian.png`, k: endphoto.value ? `` : `https://www.focusnu.com/media/directive/index/bian.png`,
l: !endphoto.value l: !endphoto.value
}, !endphoto.value ? {} : {}, { }, !endphoto.value ? {} : {}, {

View File

@ -21,8 +21,8 @@ const _sfc_main = {
const imgArray = common_vendor.ref(["", "", "", ""]); const imgArray = common_vendor.ref(["", "", "", ""]);
const nameArray0 = ["开户行", "开户行卡号"]; const nameArray0 = ["开户行", "开户行卡号"];
const textArray0 = common_vendor.reactive(["", ""]); const textArray0 = common_vendor.reactive(["", ""]);
const nameArray1 = ["婚否", "联系电话", "身高", "体重", "健康状态", "政治面貌", "紧急联系人", "紧急联系人电话", "联系人与本人关系", "户口性质"]; const nameArray1 = ["婚否", "联系电话", "身高", "体重", "健康状态", "政治面貌", "紧急联系人", "紧急联系人电话", "联系人与本人关系", "户口性质", "现住址"];
const textArray1 = common_vendor.reactive(["", "", "", "", "", "", "", "", "", ""]); const textArray1 = common_vendor.reactive(["", "", "", "", "", "", "", "", "", "", ""]);
const backImge = common_vendor.ref(""); const backImge = common_vendor.ref("");
common_vendor.ref(""); common_vendor.ref("");
common_vendor.ref(""); common_vendor.ref("");
@ -84,12 +84,12 @@ const _sfc_main = {
textArray[5] = data.idCardAddress; textArray[5] = data.idCardAddress;
textArray[6] = data.issuingAuthority; textArray[6] = data.issuingAuthority;
textArray[7] = `${data.startTime}-${compontent_public_long.swapLongTerm(data.endTime)}`; textArray[7] = `${data.startTime}-${compontent_public_long.swapLongTerm(data.endTime)}`;
headImge.value = `${request_index.base_url}/sys/common/static/${data.cardZmPath}`; headImge.value = `${request_index.media_base_url}${data.cardZmPath}`;
backImge.value = `${request_index.base_url}/sys/common/static/${data.cardFmPath}`; backImge.value = `${request_index.media_base_url}${data.cardFmPath}`;
textArray0[0] = data.openingBank; textArray0[0] = data.openingBank;
textArray0[1] = data.bankCard; textArray0[1] = data.bankCard;
fontphoto0.value = `${request_index.base_url}/sys/common/static/${data.bankZmPath}`; fontphoto0.value = `${request_index.media_base_url}${data.bankZmPath}`;
endphoto0.value = `${request_index.base_url}/sys/common/static/${data.bankFmPath}`; endphoto0.value = `${request_index.media_base_url}${data.bankFmPath}`;
imgArray.value[0] = data.healthZmPath; imgArray.value[0] = data.healthZmPath;
imgArray.value[1] = data.healthFmPath; imgArray.value[1] = data.healthFmPath;
imgArray.value[2] = data.qualificationPath; imgArray.value[2] = data.qualificationPath;
@ -104,16 +104,17 @@ const _sfc_main = {
"contactName", "contactName",
"contactTel", "contactTel",
"contactRelationship", "contactRelationship",
"hukouType" "hukouType",
"currentAddress"
]; ];
keys.forEach((key, index) => { keys.forEach((key, index) => {
textArray1[index] = data[key] || ""; textArray1[index] = data[key] || "";
}); });
textArray1[2] += "cm"; textArray1[2] = Number(textArray1[2]) + "cm";
textArray1[3] += "kg"; textArray1[3] = Number(textArray1[3]) + "kg";
}); });
const changeMessage = () => { const changeMessage = () => {
common_vendor.index.__f__("log", "at pages/addstaff/all.vue:375", "????", alldata.value); common_vendor.index.__f__("log", "at pages/addstaff/all.vue:377", "????", alldata.value);
if (alldata.value.modifyState == "1") { if (alldata.value.modifyState == "1") {
openLook("该信息正在审核中,请等待"); openLook("该信息正在审核中,请等待");
} else { } else {
@ -187,12 +188,12 @@ const _sfc_main = {
d: common_vendor.o(($event) => openLook(textArray0[index]), index) d: common_vendor.o(($event) => openLook(textArray0[index]), index)
}; };
}), }),
B: imgArray.value[0] ? `${common_vendor.unref(request_index.base_url)}/sys/common/static/${imgArray.value[0]}` : ``, B: imgArray.value[0] ? `${common_vendor.unref(request_index.media_base_url)}${imgArray.value[0]}` : ``,
C: common_vendor.o(($event) => getMessage(imgArray.value[0] ? `${common_vendor.unref(request_index.base_url)}/sys/common/static/${imgArray.value[0]}` : "")), C: common_vendor.o(($event) => getMessage(imgArray.value[0] ? `${common_vendor.unref(request_index.media_base_url)}${imgArray.value[0]}` : "")),
D: imgArray.value[2] ? `${common_vendor.unref(request_index.base_url)}/sys/common/static/${imgArray.value[2]}` : ``, D: imgArray.value[2] ? `${common_vendor.unref(request_index.media_base_url)}${imgArray.value[2]}` : ``,
E: common_vendor.o(($event) => getMessage(imgArray.value[2] ? `${common_vendor.unref(request_index.base_url)}/sys/common/static/${imgArray.value[2]}` : "")), E: common_vendor.o(($event) => getMessage(imgArray.value[2] ? `${common_vendor.unref(request_index.media_base_url)}${imgArray.value[2]}` : "")),
F: imgArray.value[3] ? `${common_vendor.unref(request_index.base_url)}/sys/common/static/${imgArray.value[3]}` : ``, F: imgArray.value[3] ? `${common_vendor.unref(request_index.media_base_url)}${imgArray.value[3]}` : ``,
G: common_vendor.o(($event) => getMessage(imgArray.value[3] ? `${common_vendor.unref(request_index.base_url)}/sys/common/static/${imgArray.value[3]}` : "")) G: common_vendor.o(($event) => getMessage(imgArray.value[3] ? `${common_vendor.unref(request_index.media_base_url)}${imgArray.value[3]}` : ""))
}); });
}; };
} }

View File

@ -53,7 +53,7 @@ const _sfc_main = {
return; return;
} }
targetphoto.value = number; targetphoto.value = number;
common_vendor.index.__f__("log", "at pages/addstaff/bankcard.vue:148", "????", backImge.value, headImge.value); common_vendor.index.__f__("log", "at pages/addstaff/bankcard.vue:149", "????", backImge.value, headImge.value);
if (backImge.value && headImge.value) { if (backImge.value && headImge.value) {
bottomshow.value = true; bottomshow.value = true;
} else { } else {
@ -71,7 +71,7 @@ const _sfc_main = {
}); });
}, },
fail: (err) => { fail: (err) => {
common_vendor.index.__f__("error", "at pages/addstaff/bankcard.vue:171", "拍照失败:", err); common_vendor.index.__f__("error", "at pages/addstaff/bankcard.vue:172", "拍照失败:", err);
} }
}); });
} }
@ -248,12 +248,12 @@ const _sfc_main = {
c: common_vendor.o(goBack), c: common_vendor.o(goBack),
d: `${common_vendor.index.getStorageSync("moveHeight") + 40}px`, d: `${common_vendor.index.getStorageSync("moveHeight") + 40}px`,
e: `${common_vendor.index.getStorageSync("moveHeight") + 30}px`, e: `${common_vendor.index.getStorageSync("moveHeight") + 30}px`,
f: fontphoto.value ? `${common_vendor.unref(request_index.base_url)}/sys/common/static/${fontphoto.value}` : `https://www.focusnu.com/media/directive/index/bankfront.png`, f: fontphoto.value ? `${common_vendor.unref(request_index.media_base_url)}${fontphoto.value}` : `https://www.focusnu.com/media/directive/index/bankfront.png`,
g: fontphoto.value ? `` : `https://www.focusnu.com/media/directive/index/bian.png`, g: fontphoto.value ? `` : `https://www.focusnu.com/media/directive/index/bian.png`,
h: !fontphoto.value h: !fontphoto.value
}, !fontphoto.value ? {} : {}, { }, !fontphoto.value ? {} : {}, {
i: common_vendor.o(($event) => selectphoto(0)), i: common_vendor.o(($event) => selectphoto(0)),
j: endphoto.value ? `${common_vendor.unref(request_index.base_url)}/sys/common/static/${endphoto.value}` : `https://www.focusnu.com/media/directive/index/bankend.png`, j: endphoto.value ? `${common_vendor.unref(request_index.media_base_url)}${endphoto.value}` : `https://www.focusnu.com/media/directive/index/bankend.png`,
k: endphoto.value ? `` : `https://www.focusnu.com/media/directive/index/bian.png`, k: endphoto.value ? `` : `https://www.focusnu.com/media/directive/index/bian.png`,
l: !endphoto.value l: !endphoto.value
}, !endphoto.value ? {} : {}, { }, !endphoto.value ? {} : {}, {

View File

@ -43,7 +43,7 @@ const _sfc_main = {
const photoclick = (element) => { const photoclick = (element) => {
if (element) { if (element) {
common_vendor.index.previewImage({ common_vendor.index.previewImage({
urls: [`${request_index.base_url}/sys/common/static/${imgArray[imgetarget.value]}`], urls: [`${request_index.media_base_url}${imgArray[imgetarget.value]}`],
// 必填,所有要预览的图片地址数组 // 必填,所有要预览的图片地址数组
// current: headImge.value, // 可选,当前显示图片的地址,默认是 urls[0] // current: headImge.value, // 可选,当前显示图片的地址,默认是 urls[0]
indicator: "default", indicator: "default",
@ -79,7 +79,7 @@ const _sfc_main = {
const savephoto = (filePath) => { const savephoto = (filePath) => {
uping.value = false; uping.value = false;
common_vendor.index.uploadFile({ common_vendor.index.uploadFile({
url: `${request_index.base_url}/sys/common/upload`, url: `${base_url}/sys/common/upload`,
// 替换为您的POST接口地址 // 替换为您的POST接口地址
filePath, filePath,
name: "file", name: "file",
@ -257,17 +257,17 @@ const _sfc_main = {
c: common_vendor.o(goBack), c: common_vendor.o(goBack),
d: `${common_vendor.index.getStorageSync("moveHeight") + 40}px`, d: `${common_vendor.index.getStorageSync("moveHeight") + 40}px`,
e: `${common_vendor.index.getStorageSync("moveHeight") + 30}px`, e: `${common_vendor.index.getStorageSync("moveHeight") + 30}px`,
f: imgArray[0] ? `${common_vendor.unref(request_index.base_url)}/sys/common/static/${imgArray[0]}` : `https://www.focusnu.com/media/directive/index/healfront.png`, f: imgArray[0] ? `${common_vendor.unref(request_index.media_base_url)}${imgArray[0]}` : `https://www.focusnu.com/media/directive/index/healfront.png`,
g: imgArray[0] ? `` : `https://www.focusnu.com/media/directive/index/bian.png`, g: imgArray[0] ? `` : `https://www.focusnu.com/media/directive/index/bian.png`,
h: !imgArray[0] h: !imgArray[0]
}, !imgArray[0] ? {} : {}, { }, !imgArray[0] ? {} : {}, {
i: common_vendor.o(($event) => selectphoto(0)), i: common_vendor.o(($event) => selectphoto(0)),
j: imgArray[2] ? `${common_vendor.unref(request_index.base_url)}/sys/common/static/${imgArray[2]}` : `https://www.focusnu.com/media/directive/index/zizhi.png`, j: imgArray[2] ? `${common_vendor.unref(request_index.media_base_url)}${imgArray[2]}` : `https://www.focusnu.com/media/directive/index/zizhi.png`,
k: imgArray[2] ? `` : `https://www.focusnu.com/media/directive/index/bian.png`, k: imgArray[2] ? `` : `https://www.focusnu.com/media/directive/index/bian.png`,
l: !imgArray[2] l: !imgArray[2]
}, !imgArray[2] ? {} : {}, { }, !imgArray[2] ? {} : {}, {
m: common_vendor.o(($event) => selectphoto(2)), m: common_vendor.o(($event) => selectphoto(2)),
n: imgArray[3] ? `${common_vendor.unref(request_index.base_url)}/sys/common/static/${imgArray[3]}` : `https://www.focusnu.com/media/directive/index/fanzui.png`, n: imgArray[3] ? `${common_vendor.unref(request_index.media_base_url)}${imgArray[3]}` : `https://www.focusnu.com/media/directive/index/fanzui.png`,
o: imgArray[3] ? `` : `https://www.focusnu.com/media/directive/index/bian.png`, o: imgArray[3] ? `` : `https://www.focusnu.com/media/directive/index/bian.png`,
p: !imgArray[3] p: !imgArray[3]
}, !imgArray[3] ? {} : {}, { }, !imgArray[3] ? {} : {}, {

View File

@ -40,23 +40,35 @@ const _sfc_main = {
); );
const showshengao = common_vendor.ref(false); const showshengao = common_vendor.ref(false);
const showshengaolist = common_vendor.reactive( const showshengaolist = common_vendor.reactive(
Array.from({ length: 61 }, (_, i) => { Array.from({
length: 61
}, (_, i) => {
const v = 140 + i; const v = 140 + i;
return { value: String(v), label: `${v}cm` }; return {
value: String(v),
label: `${v}cm`
};
}) })
); );
const confirmshowshengao = (item) => { const confirmshowshengao = (item) => {
form.height = item[0].value; form.height = item[0].value;
form.showheight = item[0].label;
}; };
const showtizhong = common_vendor.ref(false); const showtizhong = common_vendor.ref(false);
const showtizhonglist = common_vendor.reactive( const showtizhonglist = common_vendor.reactive(
Array.from({ length: 41 }, (_, i) => { Array.from({
length: 41
}, (_, i) => {
const v = 40 + i; const v = 40 + i;
return { value: String(v), label: `${v}kg` }; return {
value: String(v),
label: `${v}kg`
};
}) })
); );
const confirmshowtizhong = (item) => { const confirmshowtizhong = (item) => {
form.weight = item[0].value; form.weight = item[0].value;
form.showweight = item[0].label;
}; };
const showface = common_vendor.ref(false); const showface = common_vendor.ref(false);
const showfacelist = common_vendor.reactive( const showfacelist = common_vendor.reactive(
@ -212,11 +224,16 @@ const _sfc_main = {
"contactName", "contactName",
"contactTel", "contactTel",
"contactRelationship", "contactRelationship",
"hukouType" "hukouType",
"currentAddress"
]; ];
keys.forEach((key) => { keys.forEach((key) => {
form[key] = data[key] || ""; form[key] = data[key] || "";
}); });
form.height = Number(form.height);
form.weight = Number(form.weight);
form.showheight = form.height + "cm";
form.showweight = form.weight + "kg";
} else { } else {
common_vendor.index.setStorageSync("isstaffchange", false); common_vendor.index.setStorageSync("isstaffchange", false);
} }
@ -237,22 +254,24 @@ const _sfc_main = {
}), }),
j: form.tel, j: form.tel,
k: common_vendor.o(($event) => form.tel = $event.detail.value), k: common_vendor.o(($event) => form.tel = $event.detail.value),
l: form.height, l: form.showheight,
m: common_vendor.o(($event) => form.height = $event.detail.value), m: common_vendor.o(($event) => form.showheight = $event.detail.value),
n: common_vendor.o(($event) => showshengao.value = true), n: common_vendor.o(($event) => showshengao.value = true),
o: common_vendor.o(confirmshowshengao), o: common_vendor.o(confirmshowshengao),
p: common_vendor.o(($event) => showshengao.value = $event), p: common_vendor.o(($event) => showshengao.value = $event),
q: common_vendor.p({ q: common_vendor.p({
list: showshengaolist, list: showshengaolist,
["default-value"]: [showshengaolist.findIndex((item) => item.value == form.height)],
modelValue: showshengao.value modelValue: showshengao.value
}), }),
r: form.weight, r: form.showweight,
s: common_vendor.o(($event) => form.weight = $event.detail.value), s: common_vendor.o(($event) => form.showweight = $event.detail.value),
t: common_vendor.o(($event) => showtizhong.value = true), t: common_vendor.o(($event) => showtizhong.value = true),
v: common_vendor.o(confirmshowtizhong), v: common_vendor.o(confirmshowtizhong),
w: common_vendor.o(($event) => showtizhong.value = $event), w: common_vendor.o(($event) => showtizhong.value = $event),
x: common_vendor.p({ x: common_vendor.p({
list: showtizhonglist, list: showtizhonglist,
["default-value"]: [showtizhonglist.findIndex((item) => item.value == form.weight)],
modelValue: showtizhong.value modelValue: showtizhong.value
}), }),
y: form.healthStatus, y: form.healthStatus,
@ -282,13 +301,15 @@ const _sfc_main = {
Q: form.hukouType, Q: form.hukouType,
R: common_vendor.o(($event) => form.hukouType = $event.detail.value), R: common_vendor.o(($event) => form.hukouType = $event.detail.value),
S: common_vendor.o(($event) => showform.value = true), S: common_vendor.o(($event) => showform.value = true),
T: common_vendor.o(confirmshowform), T: form.currentAddress,
U: common_vendor.o(($event) => showform.value = $event), U: common_vendor.o(($event) => form.currentAddress = $event.detail.value),
V: common_vendor.p({ V: common_vendor.o(confirmshowform),
W: common_vendor.o(($event) => showform.value = $event),
X: common_vendor.p({
list: showformlist, list: showformlist,
modelValue: showform.value modelValue: showform.value
}), }),
W: common_vendor.o(next) Y: common_vendor.o(next)
}; };
}; };
} }

File diff suppressed because one or more lines are too long

View File

@ -7,16 +7,19 @@ const _sfc_main = {
common_vendor.index.reLaunch({ common_vendor.index.reLaunch({
url: `/pages/login/callback` url: `/pages/login/callback`
}); });
common_vendor.index.setStorageSync("firstlogin", true);
}; };
const phone = common_vendor.ref(""); const phone = common_vendor.ref("");
common_vendor.onLoad((options) => { common_vendor.onLoad((options) => {
phone.value = common_vendor.index.getStorageSync("tel"); phone.value = common_vendor.index.getStorageSync("tel");
}); });
return (_ctx, _cache) => { return (_ctx, _cache) => {
return { return common_vendor.e({
a: common_vendor.t(phone.value), a: common_vendor.t(phone.value),
b: common_vendor.o(jumpto) b: !common_vendor.index.getStorageSync("firstlogin")
}; }, !common_vendor.index.getStorageSync("firstlogin") ? {} : {}, {
c: common_vendor.o(jumpto)
});
}; };
} }
}; };

View File

@ -1 +1 @@
<view class="font-father data-v-186dd127"><view class="fixed data-v-186dd127"><image class="title-photo data-v-186dd127" style="width:200rpx;height:200rpx" src="https://www.focusnu.com/media/directive/index/jumpImge/bangding.png"/><view class="data-v-186dd127" style="font-size:35rpx;font-weight:600;margin:30rpx 0"> 尊敬的用户,您的手机 </view><view class="small-title data-v-186dd127">{{a}}</view><view class="normal data-v-186dd127"><text class="data-v-186dd127"> 已成功绑定,期待您早日加入护理单元大家庭! </text></view></view><view class="bottom-button data-v-186dd127" bindtap="{{b}}"> 我的机构 </view></view> <view class="font-father data-v-186dd127"><view class="fixed data-v-186dd127"><image class="title-photo data-v-186dd127" style="width:200rpx;height:200rpx" src="https://www.focusnu.com/media/directive/index/jumpImge/bangding.png"/><view class="data-v-186dd127" style="font-size:35rpx;font-weight:600;margin:30rpx 0"> 尊敬的用户,您的手机 </view><view class="small-title data-v-186dd127">{{a}}</view><view class="normal data-v-186dd127"><text wx:if="{{b}}" class="data-v-186dd127"> 已成功绑定,期待您早日加入护理单元大家庭! </text><text wx:else class="data-v-186dd127"> 已成功绑定,欢迎加入护理单元大家庭! </text></view></view><view class="bottom-button data-v-186dd127" bindtap="{{c}}"> 我的机构 </view></view>

View File

@ -100,11 +100,35 @@ const _sfc_main = {
break; break;
} }
}; };
const jumpSaoyisao = () => { function isAtLeastTenChars(str) {
common_vendor.index.navigateTo({ return typeof str === "string" && str.length >= 10;
url: "/pages/oldmanindex/saoyisao" }
}); async function jumpSaoyisao() {
}; const res = await common_vendor.index.scanCode();
if (isAtLeastTenChars(res.result)) {
pages_oldmanindex_api.getOrgNuId(res.result).then((res0) => {
if (res0.result) {
common_vendor.index.navigateTo({
url: `/pages/oldmanindex/saoyisaothen?element=${JSON.stringify(res0.result)}`
});
} else {
common_vendor.index.showToast({
title: "扫描的二维码有误",
icon: "none",
// 不显示对勾图标
duration: 2e3
});
}
});
} else {
common_vendor.index.showToast({
title: "扫描的二维码有误",
icon: "none",
// 不显示对勾图标
duration: 2e3
});
}
}
const jumpInput = () => { const jumpInput = () => {
common_vendor.index.navigateTo({ common_vendor.index.navigateTo({
url: "/pages/oldmanindex/input" url: "/pages/oldmanindex/input"

View File

@ -5,12 +5,11 @@
}, },
"setting": { "setting": {
"urlCheck": false, "urlCheck": false,
"es6": true, "es6": false,
"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",