添加定位图标

This commit is contained in:
zxy
2024-02-19 10:03:49 +08:00
parent 41ae03e35d
commit f956529127
4 changed files with 29 additions and 5 deletions

View File

@@ -18,15 +18,19 @@
<view class="allName"> <view class="allName">
{{ companyitem.companyName }} {{ companyitem.companyName }}
</view> </view>
<view class="timeAddress"> <view class="timeAddress" style="position: relative;">
<view v-if="companyitem.missionCompanyName"> <view v-if="companyitem.missionCompanyName">
{{ companyitem.missionCompanyName }} {{ companyitem.missionCompanyName }}
</view> </view>
<view v-if="near"> <!-- <view v-if="near">
{{ companyitem.distanceStr }}km {{ companyitem.distanceStr }}km
</view> </view>
<view v-else> <view v-else>
{{ getCity(companyitem.cityId) }} {{ getCity(companyitem.cityId) }}
</view> -->
<view style="display: flex;align-items: center;position:absolute;right:0;">
<image src="../../static/img/location_new.png" style="width: 30rpx;height: 30rpx;" mode=""></image>
<view>2.2km</view>
</view> </view>
</view> </view>
<view class="comment" v-if='comment' @tap.stop="goComment(companyitem.missionNo)"> <view class="comment" v-if='comment' @tap.stop="goComment(companyitem.missionNo)">

View File

@@ -18,15 +18,19 @@
<view class="allName"> <view class="allName">
{{ companyitem.jobCompanyName }} {{ companyitem.jobCompanyName }}
</view> </view>
<view class="timeAddress"> <view class="timeAddress" style="position: relative;">
<view v-if="companyitem.missionCompanyName"> <view v-if="companyitem.missionCompanyName">
{{ companyitem.missionCompanyName }} {{ companyitem.missionCompanyName }}
</view> </view>
<view v-if="near"> <!-- <view v-if="near">
{{ companyitem.distanceStr }}km {{ companyitem.distanceStr }}km
</view> </view>
<view v-else> <view v-else>
{{ getCity(companyitem.cityId) }} {{ getCity(companyitem.cityId) }}
</view> -->
<view style="display: flex;align-items: center;position:absolute;right:0;">
<image src="../../static/img/location_new.png" style="width: 30rpx;height: 30rpx;" mode=""></image>
<view>2.2km</view>
</view> </view>
</view> </view>
<view class="comment" v-if='comment' @tap.stop="goComment(companyitem.missionNo)"> <view class="comment" v-if='comment' @tap.stop="goComment(companyitem.missionNo)">

View File

@@ -77,7 +77,7 @@
完善技能 完善技能
</view> </view>
</view> --> </view> -->
<view v-for="(item, index) in policyContentList" :key="index" style="width: 90%;height: 100rpx;background-color: #fff;border-radius: 10rpx;margin:20rpx 5% 20rpx 5%;display: flex;align-items: center"> <view v-for="(item, index) in policyContentList" :key="index" style="width: 90%;height: 100rpx;background-color: #fff;border-radius: 10rpx;margin:20rpx 5% 20rpx 5%;display: flex;align-items: center" @click="goPolicyInfo(item.id)">
<image :src="item.headPic" style="width: 60rpx;height: 60rpx;margin: 0 20rpx;"></image> <image :src="item.headPic" style="width: 60rpx;height: 60rpx;margin: 0 20rpx;"></image>
<view style="font-size: 26rpx;">{{ item.articleTitle }}</view> <view style="font-size: 26rpx;">{{ item.articleTitle }}</view>
</view> </view>
@@ -267,6 +267,22 @@ export default {
} }
}) })
}, },
goPolicyInfo(data){
if(data){
// var val=encodeURIComponent(data)
uni.navigateTo({
url:`/pages/user/policyContent?id=${data}`
})
}
else{
// uni.showToast({
// title:'暂无内容',
// icon:'none'
// })
}
},
//推荐任务; //推荐任务;
getRecommendList: function () { getRecommendList: function () {
recommendMission(this.recommendPage.current, this.recommendPage.size, '').then(res => { recommendMission(this.recommendPage.current, this.recommendPage.size, '').then(res => {

BIN
static/img/location_new.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB