缺省图+非必填

This commit is contained in:
丁杰 2026-06-18 14:38:29 +08:00
parent 93133dc460
commit cd4373f91f
2 changed files with 38 additions and 11 deletions

View File

@ -210,6 +210,9 @@
<brand-card class="brand-card-wrap" v-for="(item, index) in brands" :key="index" :item="item"
:tagKeys="item.tagKeys"></brand-card>
</view>
<view class="home-empty" v-if="brands.length === 0">
<noData top="20rpx"></noData>
</view>
</view>
<view class="skills-section card-box">
@ -223,6 +226,9 @@
<view class="skill-list">
<skill-card v-for="(item, index) in skills" :key="index" :item="item"></skill-card>
</view>
<view class="home-empty" v-if="skills.length === 0">
<noData top="20rpx"></noData>
</view>
</view>
<view style="height: 120rpx;"></view>
@ -553,7 +559,14 @@ export default {
uni.navigateTo({
url: '/pages/blogPopup/blogPopup'
});
return
return;
}
if (this.brands.length === 0) {
uni.showToast({
title: '暂无数据',
icon: 'none'
});
return;
}
uni.navigateTo({
url: '/pages/jingxuan/selected-brands'
@ -564,7 +577,14 @@ export default {
uni.navigateTo({
url: '/pages/blogPopup/blogPopup'
});
return
return;
}
if (this.skills.length === 0) {
uni.showToast({
title: '暂无数据',
icon: 'none'
});
return;
}
uni.navigateTo({
url: '/pages/jingxuan/selected-skills'
@ -726,7 +746,11 @@ export default {
tagKeys: tags
};
});
} else {
this.brands = [];
}
}).catch(() => {
this.brands = [];
});
},
@ -751,7 +775,11 @@ export default {
video: item.video || ''
};
});
} else {
this.skills = [];
}
}).catch(() => {
this.skills = [];
});
},
@ -1514,6 +1542,12 @@ page {
}
}
.home-empty {
height: 360rpx;
display: flex;
justify-content: center;
}
.skills-section {
.skill-list {
display: flex;

View File

@ -181,7 +181,7 @@
</view>
<view class="form-item-one box-cont">
<text class="label required">行业资质</text>
<text class="label">行业资质</text>
<view class="image-list">
<view class="image-item" v-for="(img, index) in formData.qualifications_sector" :key="'industry-' + index">
<image :src="img" mode="aspectFill" class="qualification-image"></image>
@ -1080,13 +1080,6 @@ export default {
});
return false;
}
if (!this.formData.qualifications_sector || this.formData.qualifications_sector.length === 0) {
uni.showToast({
title: '请上传行业资质',
icon: 'none'
});
return false;
}
return true;
}
}