|
@@ -37,7 +37,7 @@
|
|
|
|
|
|
|
|
<!-- 客群背景图 -->
|
|
<!-- 客群背景图 -->
|
|
|
<div class="identity-row">
|
|
<div class="identity-row">
|
|
|
- <div class="identity-field-label">客群背景图</div>
|
|
|
|
|
|
|
+ <div class="identity-field-label">客群背景图 <span class="required-star">*</span></div>
|
|
|
<div class="bg-upload-area">
|
|
<div class="bg-upload-area">
|
|
|
<div class="bg-upload-box" @click="triggerIdentityUpload(m.key)">
|
|
<div class="bg-upload-box" @click="triggerIdentityUpload(m.key)">
|
|
|
<img v-if="configData.identityModule[m.key].bgImage" :src="configData.identityModule[m.key].bgImage" class="preview-img" />
|
|
<img v-if="configData.identityModule[m.key].bgImage" :src="configData.identityModule[m.key].bgImage" class="preview-img" />
|
|
@@ -493,11 +493,16 @@ export default {
|
|
|
.trim()
|
|
.trim()
|
|
|
return !text
|
|
return !text
|
|
|
},
|
|
},
|
|
|
- validateIdentityBalancePopup() {
|
|
|
|
|
|
|
+ validateIdentityModule() {
|
|
|
const list = this.identityMscList || []
|
|
const list = this.identityMscList || []
|
|
|
for (const item of list) {
|
|
for (const item of list) {
|
|
|
const data = this.configData.identityModule?.[item.key]
|
|
const data = this.configData.identityModule?.[item.key]
|
|
|
- if (!data || item.key === 'privateBank' || !data.showAvgBalance) continue
|
|
|
|
|
|
|
+ if (!data) continue
|
|
|
|
|
+ if (!data.bgImage) {
|
|
|
|
|
+ ElMessage.error(`${item.label} 的客群背景图未上传!`)
|
|
|
|
|
+ return false
|
|
|
|
|
+ }
|
|
|
|
|
+ if (item.key === 'privateBank' || !data.showAvgBalance) continue
|
|
|
if (!(data.avgBalancePopupTitle || '').trim()) {
|
|
if (!(data.avgBalancePopupTitle || '').trim()) {
|
|
|
ElMessage.error(`${item.label} 的账户余额弹窗提示-弹窗顶部名称未填写!`)
|
|
ElMessage.error(`${item.label} 的账户余额弹窗提示-弹窗顶部名称未填写!`)
|
|
|
return false
|
|
return false
|
|
@@ -594,7 +599,7 @@ export default {
|
|
|
this.markModified()
|
|
this.markModified()
|
|
|
},
|
|
},
|
|
|
async handleSave(type) {
|
|
async handleSave(type) {
|
|
|
- if (!this.validateIdentityBalancePopup()) return
|
|
|
|
|
|
|
+ if (!this.validateIdentityModule()) return
|
|
|
this.normalizeCarouselItems(this.configData.adCarousel || [])
|
|
this.normalizeCarouselItems(this.configData.adCarousel || [])
|
|
|
const invalidCarouselIndex = (this.configData.adCarousel || []).findIndex(item => !this.validateJumpConfig(item))
|
|
const invalidCarouselIndex = (this.configData.adCarousel || []).findIndex(item => !this.validateJumpConfig(item))
|
|
|
if (invalidCarouselIndex > -1) {
|
|
if (invalidCarouselIndex > -1) {
|