1

parent 60f17728
......@@ -27,7 +27,6 @@
"dayjs": "^1.11.12",
"lodash": "^4.17.21",
"pinia": "2.0.36",
"vant": "^4.9.8",
"vconsole": "^3.15.1",
"vue": "^3.3.11",
"vue-i18n": "^9.1.9",
......@@ -4703,19 +4702,6 @@
"resolved": "https://registry.npmmirror.com/@vant/area-data/-/area-data-2.0.0.tgz",
"integrity": "sha512-zgP4AA8z09S9QTNgVCCHo9cHjcybrv22RJDYPjuCkecn4SB98T5EoPQh2TwqbQXmUhbaOGgiZGy3OUaUxnY7qg=="
},
"node_modules/@vant/popperjs": {
"version": "1.3.0",
"resolved": "https://registry.npmmirror.com/@vant/popperjs/-/popperjs-1.3.0.tgz",
"integrity": "sha512-hB+czUG+aHtjhaEmCJDuXOep0YTZjdlRR+4MSmIFnkCQIxJaXLQdSsR90XWvAI2yvKUI7TCGqR8pQg2RtvkMHw=="
},
"node_modules/@vant/use": {
"version": "1.6.0",
"resolved": "https://registry.npmmirror.com/@vant/use/-/use-1.6.0.tgz",
"integrity": "sha512-PHHxeAASgiOpSmMjceweIrv2AxDZIkWXyaczksMoWvKV2YAYEhoizRuk/xFnKF+emUIi46TsQ+rvlm/t2BBCfA==",
"peerDependencies": {
"vue": "^3.0.0"
}
},
"node_modules/@vitejs/plugin-legacy": {
"version": "4.1.1",
"resolved": "https://registry.npmmirror.com/@vitejs/plugin-legacy/-/plugin-legacy-4.1.1.tgz",
......@@ -14340,24 +14326,6 @@
"spdx-expression-parse": "^3.0.0"
}
},
"node_modules/vant": {
"version": "4.9.8",
"resolved": "https://registry.npmmirror.com/vant/-/vant-4.9.8.tgz",
"integrity": "sha512-iP+jNzwxkCeEdTrlUjro3WoXgY32+1CldOtLSc2K8acY7hR7t1zCkjzXSR9zWjtWT7zgNL1LEXofL8O7mtkYdQ==",
"dependencies": {
"@vant/popperjs": "^1.3.0",
"@vant/use": "^1.6.0",
"@vue/shared": "^3.5.11"
},
"peerDependencies": {
"vue": "^3.0.0"
}
},
"node_modules/vant/node_modules/@vue/shared": {
"version": "3.5.12",
"resolved": "https://registry.npmmirror.com/@vue/shared/-/shared-3.5.12.tgz",
"integrity": "sha512-L2RPSAwUFbgZH20etwrXyVyCBu9OxRSi8T/38QsvnkJyvq2LufW2lDCOzm7t/U9C1mkhJGWYfCuFBCmIuNivrg=="
},
"node_modules/vary": {
"version": "1.1.2",
"resolved": "https://registry.npmmirror.com/vary/-/vary-1.1.2.tgz",
......
......@@ -27,7 +27,6 @@
"dayjs": "^1.11.12",
"lodash": "^4.17.21",
"pinia": "2.0.36",
"vant": "^4.9.8",
"vconsole": "^3.15.1",
"vue": "^3.3.11",
"vue-i18n": "^9.1.9",
......
......@@ -14,7 +14,7 @@ export function createApp() {
app.component("NavBar", NavBar);
const vConsole = new Vconsole();
app.use(store);
app.use(Area);
// app.use(Button);
// app.use(vConsole);
return {
app
......
......@@ -27,21 +27,21 @@
<view class="item">
<view class="label"> 是否人资机构 </view>
<view class="content">
<wd-radio-group v-model="isHumanResources" shape="dot" inline>
<wd-radio value="1"></wd-radio>
<wd-radio value="2"></wd-radio>
<wd-radio-group v-model="isHumanResources" @change="change" shape="dot" inline>
<wd-radio :value="1"></wd-radio>
<wd-radio :value="2"></wd-radio>
</wd-radio-group>
</view>
</view>
<view class="image-upload">
<image
v-if="isHumanResources == '1' && pinias.formData.humanResourcesLicensePath"
v-if="isHumanResources == 1 && pinias.formData.humanResourcesLicensePath"
:src="evn.APP_IMAGE_BASE_API + pinias.formData.humanResourcesLicensePath"
mode=""
/>
<image
v-else
v-else-if="isHumanResources == 1 && pinias.formData.humanResourcesLicensePath == ''"
@click="chooseImage('album')"
src="@/static/image/businessLicense/businessLicenseUpload2.png"
mode=""
......@@ -143,7 +143,7 @@ const navigateTo = url => {
url
});
};
const isHumanResources = ref("1");
const isHumanResources = ref(1);
/* 选择图片 */
const chooseImage = sourceType => {
uni.chooseImage({
......@@ -156,6 +156,12 @@ const chooseImage = sourceType => {
}
});
};
function change({ value }) {
isHumanResources.value = value;
if (value == 2) {
pinias.setFormDataKey("humanResourcesLicensePath", "");
}
}
const submit = () => {
const params = { ...pinias.formData };
const { name, creditCode } = pinias.formData;
......
......@@ -14,6 +14,7 @@
<formItem title="企业名称">
<input
type="text"
:style="{ color: [1, 0].includes(companyInfo.status) ? '#77818f' : '' }"
:disabled="[1, 0].includes(companyInfo.status)"
v-model="params.companyName"
placeholder="请输入企业名称"
......@@ -29,7 +30,7 @@
v-model="params.industry"
@confirm="handleConfirm"
>
<p style="color: #77818f">{{ params.industry }}</p>
<p style="color: #77818f">{{ params.industry == "" ? "请选择行业分类" : params.industry }}</p>
</wd-picker>
</formItem>
<formItem title="信用代码">
......@@ -44,13 +45,14 @@
value-key="value"
label-key="label"
auto-complete
custom-value-class="value-class"
:column-change="columnChangeCity"
@confirm="handleConfirmCity"
>
</wd-col-picker>
</formItem>
<formItem title="详细地址" arrow>
<p :class="{ placeholder: !params.location }" style="margin-left: 20rpx">
<formItem title="详细地址" icon="">
<p class="placeholder" style="margin-left: 100rpx">
{{ params.location || "请选择公司所在地" }}
</p>
</formItem>
......@@ -279,16 +281,13 @@ const submit = () => {
validateForm(params, [
"location",
"cityCode",
"cityName",
"companyName",
"creditCode",
"introduction",
"districtCode",
"districtName",
"id",
"logoPath",
"provinceCode",
"provinceName",
"industry"
])
) {
......@@ -369,6 +368,12 @@ const validateForm = (formData, requiredFields) => {
}
.form-wrap {
padding: 0 16px;
:deep(.wd-col-picker__cell) {
padding: 0 !important;
}
:deep(.value-class) {
color: #77818f;
}
.placeholder {
color: #77818f;
}
......
......@@ -2281,16 +2281,6 @@
"resolved" "https://registry.npmmirror.com/@vant/area-data/-/area-data-2.0.0.tgz"
"version" "2.0.0"
"@vant/popperjs@^1.3.0":
"integrity" "sha512-hB+czUG+aHtjhaEmCJDuXOep0YTZjdlRR+4MSmIFnkCQIxJaXLQdSsR90XWvAI2yvKUI7TCGqR8pQg2RtvkMHw=="
"resolved" "https://registry.npmmirror.com/@vant/popperjs/-/popperjs-1.3.0.tgz"
"version" "1.3.0"
"@vant/use@^1.6.0":
"integrity" "sha512-PHHxeAASgiOpSmMjceweIrv2AxDZIkWXyaczksMoWvKV2YAYEhoizRuk/xFnKF+emUIi46TsQ+rvlm/t2BBCfA=="
"resolved" "https://registry.npmmirror.com/@vant/use/-/use-1.6.0.tgz"
"version" "1.6.0"
"@vitejs/plugin-legacy@^4.0.3", "@vitejs/plugin-legacy@4.1.1":
"integrity" "sha512-um3gbVouD2Q/g19C0qpDfHwveXDCAHzs8OC3e9g6aXpKoD1H14himgs7wkMnhAynBJy7QqUoZNAXDuqN8zLR2g=="
"resolved" "https://registry.npmmirror.com/@vitejs/plugin-legacy/-/plugin-legacy-4.1.1.tgz"
......@@ -2540,11 +2530,6 @@
"resolved" "https://registry.npmmirror.com/@vue/shared/-/shared-3.3.11.tgz"
"version" "3.3.11"
"@vue/shared@^3.5.11":
"integrity" "sha512-L2RPSAwUFbgZH20etwrXyVyCBu9OxRSi8T/38QsvnkJyvq2LufW2lDCOzm7t/U9C1mkhJGWYfCuFBCmIuNivrg=="
"resolved" "https://registry.npmmirror.com/@vue/shared/-/shared-3.5.12.tgz"
"version" "3.5.12"
"@vue/shared@3.4.29":
"integrity" "sha512-hQ2gAQcBO/CDpC82DCrinJNgOHI2v+FA7BDW4lMSPeBpQ7sRe2OLHWe5cph1s7D8DUQAwRt18dBDfJJ220APEA=="
"resolved" "https://registry.npmmirror.com/@vue/shared/-/shared-3.4.29.tgz"
......@@ -6799,15 +6784,6 @@
"spdx-correct" "^3.0.0"
"spdx-expression-parse" "^3.0.0"
"vant@^4.9.8":
"integrity" "sha512-iP+jNzwxkCeEdTrlUjro3WoXgY32+1CldOtLSc2K8acY7hR7t1zCkjzXSR9zWjtWT7zgNL1LEXofL8O7mtkYdQ=="
"resolved" "https://registry.npmmirror.com/vant/-/vant-4.9.8.tgz"
"version" "4.9.8"
dependencies:
"@vant/popperjs" "^1.3.0"
"@vant/use" "^1.6.0"
"@vue/shared" "^3.5.11"
"vary@~1.1.2":
"integrity" "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg=="
"resolved" "https://registry.npmmirror.com/vary/-/vary-1.1.2.tgz"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment