缺省图+非必填
This commit is contained in:
parent
93133dc460
commit
cd4373f91f
|
|
@ -210,6 +210,9 @@
|
||||||
<brand-card class="brand-card-wrap" v-for="(item, index) in brands" :key="index" :item="item"
|
<brand-card class="brand-card-wrap" v-for="(item, index) in brands" :key="index" :item="item"
|
||||||
:tagKeys="item.tagKeys"></brand-card>
|
:tagKeys="item.tagKeys"></brand-card>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="home-empty" v-if="brands.length === 0">
|
||||||
|
<noData top="20rpx"></noData>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="skills-section card-box">
|
<view class="skills-section card-box">
|
||||||
|
|
@ -223,6 +226,9 @@
|
||||||
<view class="skill-list">
|
<view class="skill-list">
|
||||||
<skill-card v-for="(item, index) in skills" :key="index" :item="item"></skill-card>
|
<skill-card v-for="(item, index) in skills" :key="index" :item="item"></skill-card>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="home-empty" v-if="skills.length === 0">
|
||||||
|
<noData top="20rpx"></noData>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view style="height: 120rpx;"></view>
|
<view style="height: 120rpx;"></view>
|
||||||
|
|
@ -553,7 +559,14 @@ export default {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/blogPopup/blogPopup'
|
url: '/pages/blogPopup/blogPopup'
|
||||||
});
|
});
|
||||||
return
|
return;
|
||||||
|
}
|
||||||
|
if (this.brands.length === 0) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '暂无数据',
|
||||||
|
icon: 'none'
|
||||||
|
});
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/jingxuan/selected-brands'
|
url: '/pages/jingxuan/selected-brands'
|
||||||
|
|
@ -564,7 +577,14 @@ export default {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/blogPopup/blogPopup'
|
url: '/pages/blogPopup/blogPopup'
|
||||||
});
|
});
|
||||||
return
|
return;
|
||||||
|
}
|
||||||
|
if (this.skills.length === 0) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '暂无数据',
|
||||||
|
icon: 'none'
|
||||||
|
});
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/jingxuan/selected-skills'
|
url: '/pages/jingxuan/selected-skills'
|
||||||
|
|
@ -726,7 +746,11 @@ export default {
|
||||||
tagKeys: tags
|
tagKeys: tags
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
this.brands = [];
|
||||||
}
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
this.brands = [];
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -751,7 +775,11 @@ export default {
|
||||||
video: item.video || ''
|
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 {
|
.skills-section {
|
||||||
.skill-list {
|
.skill-list {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
||||||
|
|
@ -181,7 +181,7 @@
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="form-item-one box-cont">
|
<view class="form-item-one box-cont">
|
||||||
<text class="label required">行业资质</text>
|
<text class="label">行业资质</text>
|
||||||
<view class="image-list">
|
<view class="image-list">
|
||||||
<view class="image-item" v-for="(img, index) in formData.qualifications_sector" :key="'industry-' + index">
|
<view class="image-item" v-for="(img, index) in formData.qualifications_sector" :key="'industry-' + index">
|
||||||
<image :src="img" mode="aspectFill" class="qualification-image"></image>
|
<image :src="img" mode="aspectFill" class="qualification-image"></image>
|
||||||
|
|
@ -1080,13 +1080,6 @@ export default {
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!this.formData.qualifications_sector || this.formData.qualifications_sector.length === 0) {
|
|
||||||
uni.showToast({
|
|
||||||
title: '请上传行业资质',
|
|
||||||
icon: 'none'
|
|
||||||
});
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1654,4 +1647,4 @@ export default {
|
||||||
.tip-btn .btn-text {
|
.tip-btn .btn-text {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue