|
@@ -67,7 +67,7 @@
|
|
|
<!-- 图标、查看和急聘标签区域 -->
|
|
|
<view class="benefit-header">
|
|
|
<view class="benefit-icon-container">
|
|
|
- <image src="/static/images/eye.svg" class="benefit-icon" mode="aspectFit"></image>
|
|
|
+ <image :src="getBenefitIcon(benefit.action)" class="benefit-icon" mode="aspectFit"></image>
|
|
|
<text class="benefit-action">{{ benefit.action }}</text>
|
|
|
<text v-if="benefit.isUrgent" class="urgent-tag">急聘</text>
|
|
|
</view>
|
|
@@ -155,6 +155,16 @@ export default {
|
|
|
this.statusBarHeight = systemInfo.statusBarHeight || 0
|
|
|
},
|
|
|
methods: {
|
|
|
+ getBenefitIcon(action) {
|
|
|
+ switch(action) {
|
|
|
+ case '查看':
|
|
|
+ return '/static/images/eye.svg'
|
|
|
+ case '沟通':
|
|
|
+ return '/static/images/goutong.svg'
|
|
|
+ default:
|
|
|
+ return '/static/images/eye.svg'
|
|
|
+ }
|
|
|
+ },
|
|
|
goBack() {
|
|
|
uni.navigateBack()
|
|
|
},
|