给后端用

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 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 { getrel } from '@/pages/addjigou/api/addjigou.js'; import { getrel } from '@/pages/addjigou/api/addjigou.js';
import model from "@/compontent/public/model.vue" import model from "@/compontent/public/model.vue"
@ -214,13 +214,14 @@
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.comName; textArray0[0] = data.comName;
textArray0[1] = data.comRegisterAddress; textArray0[1] = data.comRegisterAddress;
textArray0[2] = data.comCreditCode; textArray0[2] = data.comCreditCode;
textArray0[3] = data.comLegalPerson; 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[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

@ -36,22 +36,26 @@
<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" />
</view> </view>
<view class="one" style="position: relative;"> <view class="one" style="position: relative;" @click="showshengao=true">
<view class="one-left">身高</view> <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" /> v-model="form.height" />
<view class="triangle-down-mi"> <view class="triangle-down-mi">
cm cm
</view> </view>
</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> <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" /> v-model="form.weight" />
<view class="triangle-down-mi"> <view class="triangle-down-mi">
kg kg
</view> </view>
</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" style="position: relative;" @click="showhealth = true">
<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"
@ -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 showface = ref(false);
const showfacelist = reactive( const showfacelist = reactive(
[{ [{

View File

@ -2,6 +2,8 @@
// export const base_url = 'http://192.168.2.26:8081/opeapi' // export const base_url = 'http://192.168.2.26:8081/opeapi'
export const base_url = 'https://www.focusnu.com/opeapi' export const base_url = 'https://www.focusnu.com/opeapi'
export const media_base_url = 'https://www.focusnu.com/media/upFiles/'
// 请求超出时间 // 请求超出时间
const timeout = 5000 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() { 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_lsBCXx"; const id = "mp-weixin_s7P1yM";
const lazy = typeof swan !== "undefined"; const lazy = typeof swan !== "undefined";
let restoreError = lazy ? () => { let restoreError = lazy ? () => {
} : initOnError(); } : initOnError();

View File

@ -78,13 +78,14 @@ 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.comName; textArray0[0] = data.comName;
textArray0[1] = data.comRegisterAddress; textArray0[1] = data.comRegisterAddress;
textArray0[2] = data.comCreditCode; textArray0[2] = data.comCreditCode;
textArray0[3] = data.comLegalPerson; 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[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

@ -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 showface = common_vendor.ref(false);
const showfacelist = common_vendor.reactive( const showfacelist = common_vendor.reactive(
[ [
@ -219,42 +239,56 @@ const _sfc_main = {
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.height,
m: common_vendor.o(($event) => form.height = $event.detail.value), m: common_vendor.o(($event) => form.height = $event.detail.value),
n: form.weight, n: common_vendor.o(($event) => showshengao.value = true),
o: common_vendor.o(($event) => form.weight = $event.detail.value), o: common_vendor.o(confirmshowshengao),
p: form.healthStatus, p: common_vendor.o(($event) => showshengao.value = $event),
q: common_vendor.o(($event) => form.healthStatus = $event.detail.value), q: common_vendor.p({
r: common_vendor.o(($event) => showhealth.value = true), list: showshengaolist,
s: common_vendor.o(confirmshowhealth), modelValue: showshengao.value
t: common_vendor.o(($event) => showhealth.value = $event), }),
v: common_vendor.p({ 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, list: showhealthlist,
modelValue: showhealth.value modelValue: showhealth.value
}), }),
w: form.politicalAppearance, E: form.politicalAppearance,
x: common_vendor.o(($event) => form.politicalAppearance = $event.detail.value), F: common_vendor.o(($event) => form.politicalAppearance = $event.detail.value),
y: common_vendor.o(($event) => showface.value = true), G: common_vendor.o(($event) => showface.value = true),
z: common_vendor.o(confirmshowface), H: common_vendor.o(confirmshowface),
A: common_vendor.o(($event) => showface.value = $event), I: common_vendor.o(($event) => showface.value = $event),
B: common_vendor.p({ J: common_vendor.p({
list: showfacelist, list: showfacelist,
modelValue: showface.value modelValue: showface.value
}), }),
C: form.contactName, K: form.contactName,
D: common_vendor.o(($event) => form.contactName = $event.detail.value), L: common_vendor.o(($event) => form.contactName = $event.detail.value),
E: form.contactTel, M: form.contactTel,
F: common_vendor.o(($event) => form.contactTel = $event.detail.value), N: common_vendor.o(($event) => form.contactTel = $event.detail.value),
G: form.contactRelationship, O: form.contactRelationship,
H: common_vendor.o(($event) => form.contactRelationship = $event.detail.value), P: common_vendor.o(($event) => form.contactRelationship = $event.detail.value),
I: form.hukouType, Q: form.hukouType,
J: common_vendor.o(($event) => form.hukouType = $event.detail.value), R: common_vendor.o(($event) => form.hukouType = $event.detail.value),
K: common_vendor.o(($event) => showform.value = true), S: common_vendor.o(($event) => showform.value = true),
L: common_vendor.o(confirmshowform), T: common_vendor.o(confirmshowform),
M: common_vendor.o(($event) => showform.value = $event), U: common_vendor.o(($event) => showform.value = $event),
N: common_vendor.p({ V: common_vendor.p({
list: showformlist, list: showformlist,
modelValue: showform.value 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": { "setting": {
"urlCheck": false, "urlCheck": false,
"es6": false, "es6": true,
"postcss": false, "postcss": false,
"minified": true, "minified": true,
"newFeature": true, "newFeature": true,
"bigPackageSizeSupport": true "bigPackageSizeSupport": true,
"enhance": true
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "latest", "libVersion": "latest",

View File

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