From 9057e04efad1b7d61c77a72e5c37a504d0aee935 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期五, 26 九月 2025 09:24:03 +0800
Subject: [PATCH] H5静态化
---
admin/src/views/business/bottom.vue | 122 ++++++++++++++++++++++++++++++++++++++++
1 files changed, 120 insertions(+), 2 deletions(-)
diff --git a/admin/src/views/business/bottom.vue b/admin/src/views/business/bottom.vue
index 44bb9f8..f67c503 100644
--- a/admin/src/views/business/bottom.vue
+++ b/admin/src/views/business/bottom.vue
@@ -1,5 +1,5 @@
<template>
- <div class="box" style="height:100%;overflow-y: auto" >
+ <div class="box" style="max-height:calc(100% - 60px);margin-bottom:50px;overflow-y: auto" >
<el-form :model="form" ref="form" label-width="140px">
<div style="margin: 0px 0 50px 0">
<span style="font-size: 15px; font-weight: bold">銆�1銆戠綉绔欓厤缃細</span>
@@ -40,6 +40,15 @@
v-trim
/>
</el-form-item>
+ <el-form-item label="浼佷笟閭:" prop="qyemail">
+ <el-input
+ style="width: 50%"
+ type="textarea"
+ v-model="form.qyemail"
+ placeholder="璇疯緭鍏ヤ紒涓氶偖绠�"
+ v-trim
+ />
+ </el-form-item>
<el-form-item label="澶囨鍙�:" prop="footWords">
<el-input
style="width: 50%"
@@ -54,6 +63,13 @@
<UploadAvatarImage :file="{ 'imgurlfull': form.footFullImgUrl, 'imgurl': form.footImgUrl }" :uploadData="uploadData"
@uploadSuccess="uploadAvatarSuccess" />
+ </div>
+ </el-form-item>
+ <el-form-item label="浼佷笟寰俊" prop="faceImgFull">
+ <div class="upload_wrap">
+
+ <UploadAvatarImage :file="{ 'imgurlfull': form.footFullImgUrl2, 'imgurl': form.footImgUrl2 }" :uploadData="uploadData"
+ @uploadSuccess="uploadAvatarSuccess2" />
</div>
</el-form-item>
<div style="margin:20px 0 50px 0">
@@ -121,7 +137,77 @@
</div>
</div>
<el-form-item style="display: block">
- <el-button type="primary" icon="el-icon-plus" @click="add2">娣诲姞鎸囨尌绯荤粺</el-button>
+ <el-button type="primary" icon="el-icon-plus" @click="add2">娣诲姞鏅烘収绯荤粺</el-button>
+ </el-form-item>
+ <div style="margin: 100px 0 50px 0">
+ <span style="font-size: 15px; font-weight: bold;">銆�4銆戣崳瑾夎祫璐細</span>
+ </div>
+ <div v-for="(item1,index) in form.honors" :key="'鑽h獕璧勮川'+index" style="display: flex">
+ <div style="flex: 1;">
+ <el-form-item label="鏍囬:" :required="true" >
+ <el-input
+ style="width: 100%"
+ type="text"
+ v-model="item1.name"
+ placeholder="璇疯緭鍏ユ爣棰�"
+ v-trim
+ />
+ </el-form-item>
+ </div>
+ <div style="display: block;flex: 3">
+ <el-form-item label="璺宠浆鍦板潃:" style="display:inline-block; width: 80%">
+ <el-input
+ style="width: 100%"
+ type="text"
+ v-model="item1.address"
+ placeholder="璇疯緭鍏ヨ烦杞湴鍧�"
+ v-trim
+ />
+ </el-form-item>
+ <el-form-item label-width="30px" style="display:inline-block;">
+ <el-button type="danger" v-if="form.honors && form.honors.length >1" icon="el-icon-delete" @click="del3(index)">鍒犻櫎</el-button>
+ </el-form-item>
+ </div>
+ <div>
+ </div>
+ </div>
+ <el-form-item style="display: block">
+ <el-button type="primary" icon="el-icon-plus" @click="add3">娣诲姞鑽h獕璧勮川</el-button>
+ </el-form-item>
+ <div style="margin: 100px 0 50px 0">
+ <span style="font-size: 15px; font-weight: bold;">銆�5銆戝弸鎯呴摼鎺ワ細</span>
+ </div>
+ <div v-for="(item1,index) in form.yqlinks" :key="'鍙嬫儏閾炬帴'+index" style="display: flex">
+ <div style="flex: 1;">
+ <el-form-item label="鏍囬:" :required="true" >
+ <el-input
+ style="width: 100%"
+ type="text"
+ v-model="item1.name"
+ placeholder="璇疯緭鍏ユ爣棰�"
+ v-trim
+ />
+ </el-form-item>
+ </div>
+ <div style="display: block;flex: 3">
+ <el-form-item label="璺宠浆鍦板潃:" style="display:inline-block; width: 80%">
+ <el-input
+ style="width: 100%"
+ type="text"
+ v-model="item1.address"
+ placeholder="璇疯緭鍏ヨ烦杞湴鍧�"
+ v-trim
+ />
+ </el-form-item>
+ <el-form-item label-width="30px" style="display:inline-block;">
+ <el-button type="danger" v-if="form.yqlinks && form.yqlinks.length >1" icon="el-icon-delete" @click="del4(index)">鍒犻櫎</el-button>
+ </el-form-item>
+ </div>
+ <div>
+ </div>
+ </div>
+ <el-form-item style="display: block">
+ <el-button type="primary" icon="el-icon-plus" @click="add4">娣诲姞鍙嬫儏閾炬帴</el-button>
</el-form-item>
<el-form-item style="margin-top: 100px;width: 100%;text-align: center">
<el-button type="primary" style="width: 300px" :loading="working" @click="submit">淇濆瓨閰嶇疆椤�</el-button>
@@ -147,11 +233,16 @@
address: null,
footImgUrl: 0,
footFullImgUrl: 0,
+ footImgUrl2: 0,
+ footFullImgUrl2: 0,
footWords: 0,
linkMobile: 0,
linkPhone: 0,
serverTime: '',
+ qyemail: '',
solveScheme: [{ name: '', address: '' }],
+ honors: [{ name: '', address: '' }],
+ yqlinks: [{ name: '', address: '' }],
wisdomSystem: [{ name: '', address: '' }]
}
}
@@ -171,6 +262,24 @@
add1 () {
this.form.solveScheme.push({ name: '', address: '' })
},
+ del3 (index) {
+ if (this.form.honors.length == 1) {
+ return
+ }
+ this.form.honors.splice(index)
+ },
+ add3 () {
+ this.form.honors.push({ name: '', address: '' })
+ },
+ del4 (index) {
+ if (this.form.yqlinks.length == 1) {
+ return
+ }
+ this.form.yqlinks.splice(index)
+ },
+ add4 () {
+ this.form.yqlinks.push({ name: '', address: '' })
+ },
del2 (index) {
if (this.form.wisdomSystem.length == 1) {
return
@@ -187,12 +296,17 @@
this.form.address = res.address
this.form.footImgUrl = res.footImgUrl
this.form.footFullImgUrl = res.footFullImgUrl
+ this.form.footImgUrl2 = res.footImgUrl2
+ this.form.footFullImgUrl2 = res.footFullImgUrl2
this.form.footWords = res.footWords
this.form.linkMobile = res.linkMobile
this.form.linkPhone = res.linkPhone
+ this.form.qyemail = res.qyemail
this.form.serverTime = res.serverTime
this.form.solveScheme = res.solveScheme || [{ name: '', address: '' }]
this.form.wisdomSystem = res.wisdomSystem || [{ name: '', address: '' }]
+ this.form.honors = res.honors || [{ name: '', address: '' }]
+ this.form.yqlinks = res.yqlinks || [{ name: '', address: '' }]
}
})
},
@@ -202,6 +316,10 @@
this.form.footImgUrl = file.imgurl
this.form.footFullImgUrl = file.imgurlfull
},
+ uploadAvatarSuccess2(file) {
+ this.form.footImgUrl2 = file.imgurl
+ this.form.footFullImgUrl2 = file.imgurlfull
+ },
submit () {
console.log(this.form)
this.$refs.form.validate((valid) => {
--
Gitblit v1.9.3