给后端用

This commit is contained in:
Teng 2025-10-28 13:03:10 +08:00
parent 29eab97bd7
commit 45c1063858
12 changed files with 110 additions and 46 deletions

View File

@ -127,7 +127,7 @@
onLoad
} from '@dcloudio/uni-app';
import {
base_url
media_base_url
} from '@/request/index.js';
import { getrel } from '@/pages/addjigou/api/addjigou.js';
import model from "@/compontent/public/model.vue"
@ -214,13 +214,14 @@
textArray[5] = data.idCardAddress;
textArray[6] = data.issuingAuthority;
textArray[7] = `${data.startTime}-${swapLongTerm(data.endTime)}`;
headImge.value = `${base_url}/sys/common/static/${data.cardZmPath}`;
backImge.value = `${base_url}/sys/common/static/${data.cardFmPath}`;
headImge.value = `${media_base_url}${data.cardZmPath}`;
backImge.value = `${media_base_url}${data.cardFmPath}`;
textArray0[0] = data.comName;
textArray0[1] = data.comRegisterAddress;
textArray0[2] = data.comCreditCode;
textArray0[3] = data.comLegalPerson;
headImge0.value = `${base_url}/sys/common/static/${data.comBusinessLicense}`;
headImge0.value = `${media_base_url}${data.comBusinessLicense}`;
console.log("!!!!!",headImge0.value)
textArray1[0] = (data.orgProvince_dictText || "") + (data.orgCity_dictText!=null?data.orgCity_dictText:``) + (data.orgDistrict_dictText!=null?data.orgDistrict_dictText:``);
textArray1[1] = data.orgAddress;
textArray1[2] = data.orgLeader;

View File

@ -36,22 +36,26 @@
<input class="one-right" type="number" maxlength="11" placeholder="请输入联系电话"
v-model="form.tel" />
</view>
<view class="one" style="position: relative;">
<view class="one" style="position: relative;" @click="showshengao=true">
<view class="one-left">身高</view>
<input class="one-right" type="number" maxlength="3" placeholder="请输入身高"
<input disabled class="one-right" type="number" maxlength="3" placeholder="请输入身高"
v-model="form.height" />
<view class="triangle-down-mi">
cm
</view>
</view>
<view class="one" style="position: relative;">
<u-select style="font-size: 35rpx;" v-model="showshengao" :list="showshengaolist"
@confirm="confirmshowshengao"></u-select>
<view class="one" style="position: relative;" @click="showtizhong=true">
<view class="one-left">体重</view>
<input class="one-right" type="number" maxlength="3" placeholder="请输入体重"
<input disabled class="one-right" type="number" maxlength="3" placeholder="请输入体重"
v-model="form.weight" />
<view class="triangle-down-mi">
kg
</view>
</view>
<u-select style="font-size: 35rpx;" v-model="showtizhong" :list="showtizhonglist"
@confirm="confirmshowtizhong"></u-select>
<view class="one" style="position: relative;" @click="showhealth = true">
<view class="one-left">健康状况</view>
<input disabled style="cursor: not-allowed;pointer-events: none;" class="one-right" type="text"
@ -155,7 +159,26 @@
},
]
)
const showshengao = ref(false);
const showshengaolist = reactive(
Array.from({ length: 61 }, (_, i) => {
const v = 140 + i
return { value: String(v), label: `${v}cm` }
})
)
const confirmshowshengao = (item) => {
form.height = item[0].value
}
const showtizhong = ref(false);
const showtizhonglist = reactive(
Array.from({ length: 41 }, (_, i) => {
const v = 40 + i
return { value: String(v), label: `${v}kg` }
})
)
const confirmshowtizhong = (item) => {
form.weight = item[0].value
}
const showface = ref(false);
const showfacelist = reactive(
[{

View File

@ -2,6 +2,8 @@
// export const base_url = 'http://192.168.2.26:8081/opeapi'
export const base_url = 'https://www.focusnu.com/opeapi'
export const media_base_url = 'https://www.focusnu.com/media/upFiles/'
// 请求超出时间
const timeout = 5000

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

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

View File

@ -78,13 +78,14 @@ const _sfc_main = {
textArray[5] = data.idCardAddress;
textArray[6] = data.issuingAuthority;
textArray[7] = `${data.startTime}-${compontent_public_long.swapLongTerm(data.endTime)}`;
headImge.value = `${request_index.base_url}/sys/common/static/${data.cardZmPath}`;
backImge.value = `${request_index.base_url}/sys/common/static/${data.cardFmPath}`;
headImge.value = `${request_index.media_base_url}${data.cardZmPath}`;
backImge.value = `${request_index.media_base_url}${data.cardFmPath}`;
textArray0[0] = data.comName;
textArray0[1] = data.comRegisterAddress;
textArray0[2] = data.comCreditCode;
textArray0[3] = data.comLegalPerson;
headImge0.value = `${request_index.base_url}/sys/common/static/${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[1] = data.orgAddress;
textArray1[2] = data.orgLeader;

View File

@ -38,6 +38,26 @@ const _sfc_main = {
}
]
);
const showshengao = common_vendor.ref(false);
const showshengaolist = common_vendor.reactive(
Array.from({ length: 61 }, (_, i) => {
const v = 140 + i;
return { value: String(v), label: `${v}cm` };
})
);
const confirmshowshengao = (item) => {
form.height = item[0].value;
};
const showtizhong = common_vendor.ref(false);
const showtizhonglist = common_vendor.reactive(
Array.from({ length: 41 }, (_, i) => {
const v = 40 + i;
return { value: String(v), label: `${v}kg` };
})
);
const confirmshowtizhong = (item) => {
form.weight = item[0].value;
};
const showface = common_vendor.ref(false);
const showfacelist = common_vendor.reactive(
[
@ -219,42 +239,56 @@ const _sfc_main = {
k: common_vendor.o(($event) => form.tel = $event.detail.value),
l: form.height,
m: common_vendor.o(($event) => form.height = $event.detail.value),
n: form.weight,
o: common_vendor.o(($event) => form.weight = $event.detail.value),
p: form.healthStatus,
q: common_vendor.o(($event) => form.healthStatus = $event.detail.value),
r: common_vendor.o(($event) => showhealth.value = true),
s: common_vendor.o(confirmshowhealth),
t: common_vendor.o(($event) => showhealth.value = $event),
v: common_vendor.p({
n: common_vendor.o(($event) => showshengao.value = true),
o: common_vendor.o(confirmshowshengao),
p: common_vendor.o(($event) => showshengao.value = $event),
q: common_vendor.p({
list: showshengaolist,
modelValue: showshengao.value
}),
r: form.weight,
s: common_vendor.o(($event) => form.weight = $event.detail.value),
t: common_vendor.o(($event) => showtizhong.value = true),
v: common_vendor.o(confirmshowtizhong),
w: common_vendor.o(($event) => showtizhong.value = $event),
x: common_vendor.p({
list: showtizhonglist,
modelValue: showtizhong.value
}),
y: form.healthStatus,
z: common_vendor.o(($event) => form.healthStatus = $event.detail.value),
A: common_vendor.o(($event) => showhealth.value = true),
B: common_vendor.o(confirmshowhealth),
C: common_vendor.o(($event) => showhealth.value = $event),
D: common_vendor.p({
list: showhealthlist,
modelValue: showhealth.value
}),
w: form.politicalAppearance,
x: common_vendor.o(($event) => form.politicalAppearance = $event.detail.value),
y: common_vendor.o(($event) => showface.value = true),
z: common_vendor.o(confirmshowface),
A: common_vendor.o(($event) => showface.value = $event),
B: common_vendor.p({
E: form.politicalAppearance,
F: common_vendor.o(($event) => form.politicalAppearance = $event.detail.value),
G: common_vendor.o(($event) => showface.value = true),
H: common_vendor.o(confirmshowface),
I: common_vendor.o(($event) => showface.value = $event),
J: common_vendor.p({
list: showfacelist,
modelValue: showface.value
}),
C: form.contactName,
D: common_vendor.o(($event) => form.contactName = $event.detail.value),
E: form.contactTel,
F: common_vendor.o(($event) => form.contactTel = $event.detail.value),
G: form.contactRelationship,
H: common_vendor.o(($event) => form.contactRelationship = $event.detail.value),
I: form.hukouType,
J: common_vendor.o(($event) => form.hukouType = $event.detail.value),
K: common_vendor.o(($event) => showform.value = true),
L: common_vendor.o(confirmshowform),
M: common_vendor.o(($event) => showform.value = $event),
N: common_vendor.p({
K: form.contactName,
L: common_vendor.o(($event) => form.contactName = $event.detail.value),
M: form.contactTel,
N: common_vendor.o(($event) => form.contactTel = $event.detail.value),
O: form.contactRelationship,
P: common_vendor.o(($event) => form.contactRelationship = $event.detail.value),
Q: form.hukouType,
R: common_vendor.o(($event) => form.hukouType = $event.detail.value),
S: common_vendor.o(($event) => showform.value = true),
T: common_vendor.o(confirmshowform),
U: common_vendor.o(($event) => showform.value = $event),
V: common_vendor.p({
list: showformlist,
modelValue: showform.value
}),
O: common_vendor.o(next)
W: common_vendor.o(next)
};
};
}

File diff suppressed because one or more lines are too long

View File

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

View File

@ -1,6 +1,7 @@
"use strict";
const common_vendor = require("../common/vendor.js");
const base_url = "https://www.focusnu.com/opeapi";
const media_base_url = "https://www.focusnu.com/media/upFiles/";
const timeout = 5e3;
const request = (params) => {
let url = params.url;
@ -103,5 +104,6 @@ const request = (params) => {
});
};
exports.base_url = base_url;
exports.media_base_url = media_base_url;
exports.request = request;
//# sourceMappingURL=../../.sourcemap/mp-weixin/request/index.js.map