给后端测试用

This commit is contained in:
Teng 2025-10-15 14:48:44 +08:00
parent 00760ecfe8
commit 427e376424
9 changed files with 31 additions and 16 deletions

View File

@ -202,6 +202,17 @@
} }
); );
} }
function padDate(dateStr) {
// 使
const match = dateStr.match(/(\d{4})年(\d{1,2})月(\d{1,2})日/);
if (!match) return dateStr; //
const year = match[1];
const month = String(match[2]).padStart(2, '0');
const day = String(match[3]).padStart(2, '0');
return `${year}${month}${day}`;
}
// //
function uploadImage(filePath) { function uploadImage(filePath) {
uping.value = false; uping.value = false;
@ -233,7 +244,7 @@
textArray[1] = father.sex; textArray[1] = father.sex;
textArray[2] = father.idNumber; textArray[2] = father.idNumber;
textArray[3] = father.ethnicity; textArray[3] = father.ethnicity;
textArray[4] = father.birthDate; textArray[4] = padDate(father.birthDate);
textArray[5] = father.address; textArray[5] = father.address;
headImge.value = filePath; headImge.value = filePath;
savephoto(filePath, 0); savephoto(filePath, 0);

View File

@ -19,9 +19,9 @@
<view :class="isTarget ? 'radio-circle-target' : 'radio-circle'"></view> <view :class="isTarget ? 'radio-circle-target' : 'radio-circle'"></view>
</view> </view>
<view class="radio-circle-font" style="margin-left: -10rpx;" @click="isTarget = !isTarget">同意护理单元</view> <view class="radio-circle-font" style="margin-left: -10rpx;" @click="isTarget = !isTarget">我已阅读并同意护理单元</view>
<view class="radio-circle-blue" @click="jumpToPro"> <view class="radio-circle-blue" @click="jumpToPro">
使用条款 NU护理单元使用条款
</view> </view>
<view class="radio-circle-font" @click="isTarget = !isTarget">并授权NU获取本机号码</view> <view class="radio-circle-font" @click="isTarget = !isTarget">并授权NU获取本机号码</view>
<view style="position: absolute;bottom: -50rpx;left: 0;width: 100%;text-align: center;"> <view style="position: absolute;bottom: -50rpx;left: 0;width: 100%;text-align: center;">

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,4 +0,0 @@
"use strict";
const _imports_0 = "/static/donghua/my/my01.png";
exports._imports_0 = _imports_0;
//# sourceMappingURL=../../.sourcemap/mp-weixin/common/assets.js.map

View File

@ -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_uQ0yLb"; const id = "mp-weixin_t48DJX";
const lazy = typeof swan !== "undefined"; const lazy = typeof swan !== "undefined";
let restoreError = lazy ? () => { let restoreError = lazy ? () => {
} : initOnError(); } : initOnError();

View File

@ -77,6 +77,15 @@ const _sfc_main = {
} }
const headImge = common_vendor.ref(""); const headImge = common_vendor.ref("");
const backImge = common_vendor.ref(""); const backImge = common_vendor.ref("");
function padDate(dateStr) {
const match = dateStr.match(/(\d{4})年(\d{1,2})月(\d{1,2})日/);
if (!match)
return dateStr;
const year = match[1];
const month = String(match[2]).padStart(2, "0");
const day = String(match[3]).padStart(2, "0");
return `${year}${month}${day}`;
}
function uploadImage(filePath) { function uploadImage(filePath) {
uping.value = false; uping.value = false;
common_vendor.index.showLoading(); common_vendor.index.showLoading();
@ -91,7 +100,7 @@ const _sfc_main = {
}, },
formData: {}, formData: {},
success: (uploadRes) => { success: (uploadRes) => {
common_vendor.index.__f__("log", "at pages/addjigou/name.vue:218", "token", common_vendor.index.getStorageSync("token")); common_vendor.index.__f__("log", "at pages/addjigou/name.vue:229", "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({
@ -108,7 +117,7 @@ const _sfc_main = {
textArray[1] = father.sex; textArray[1] = father.sex;
textArray[2] = father.idNumber; textArray[2] = father.idNumber;
textArray[3] = father.ethnicity; textArray[3] = father.ethnicity;
textArray[4] = father.birthDate; textArray[4] = padDate(father.birthDate);
textArray[5] = father.address; textArray[5] = father.address;
headImge.value = filePath; headImge.value = filePath;
savephoto(filePath, 0); savephoto(filePath, 0);

View File

@ -1 +1 @@
<view class="login-container data-v-d08ef7d4"><image class="title-imge data-v-d08ef7d4" src="https://www.focusnu.com/media/directive/login/icon.png"/><image class="photo-imge data-v-d08ef7d4" src="https://www.focusnu.com/media/directive/login/bgc.png"/><view class="under-container data-v-d08ef7d4"><button class="button-blue data-v-d08ef7d4" bindtap="{{a}}"> 一键登录 </button><view class="under-container-title data-v-d08ef7d4"><view class="radio-father data-v-d08ef7d4" bindtap="{{c}}"><view class="{{['data-v-d08ef7d4', b]}}"></view></view><view class="radio-circle-font data-v-d08ef7d4" style="margin-left:-10rpx" bindtap="{{d}}">同意护理单元</view><view class="radio-circle-blue data-v-d08ef7d4" bindtap="{{e}}"> 《使用条款》 </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"><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 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",