修改技师列表页定位展示

This commit is contained in:
山兮 2024-03-29 11:26:20 +08:00
parent 1932a55d25
commit bfb951a5b3
2 changed files with 8 additions and 6 deletions

View File

@ -10,7 +10,7 @@
<banner @change="goBanner" :list="banner" :margin="0" :autoplay="true" :indicatorActiveColor="primaryColor" <banner @change="goBanner" :list="banner" :margin="0" :autoplay="true" :indicatorActiveColor="primaryColor"
:dotWidth="20" :dotBottom="30" v-if="banner.length > 0"> :dotWidth="20" :dotBottom="30" v-if="banner.length > 0">
</banner> </banner>
<view class="search-box flex-center fill-base" <!-- <view class="search-box flex-center fill-base"
:class="[{'mt-md':banner.length ==0},{'abs':banner.length>0}]" :style="{ color: primaryColor }"> :class="[{'mt-md':banner.length ==0},{'abs':banner.length>0}]" :style="{ color: primaryColor }">
<view style="width: 100%;"> <view style="width: 100%;">
<view class="servetip pl-lg pr-lg pt-sm pb-sm"> <view class="servetip pl-lg pr-lg pt-sm pb-sm">
@ -21,7 +21,7 @@
</view> </view>
</view> </view>
</view> </view>
</view> </view> -->
</view> </view>
<!-- 分类 --> <!-- 分类 -->
@ -101,7 +101,7 @@
</view> </view>
<view class="fill-base pl-lg pr-lg"> <view class="fill-base pl-lg pr-lg" style="margin-top: -80rpx;">
<view class="fill-base flex-between"> <view class="fill-base flex-between">
<view class="f-st-title text-bold flex-between"> <view class="f-st-title text-bold flex-between">
<view class="mr-md" style="width: 15px;height: 17px;"> <view class="mr-md" style="width: 15px;height: 17px;">

View File

@ -7,7 +7,7 @@
<view class="flex-y-center c-base"> <view class="flex-y-center c-base">
<i class="iconfont iconjuli mr-sm"></i> <i class="iconfont iconjuli mr-sm"></i>
<view class="map-text max-400 ellipsis"> <view class="map-text max-400 ellipsis">
{{location&&location.address ?location.address : isLoad ? '定位失败' : '定位中...'}} {{location&&location.name ?location.name : isLoad ? '定位失败' : '定位中...'}}
</view> </view>
<i class="iconfont icon-down"></i> <i class="iconfont icon-down"></i>
</view> </view>
@ -380,6 +380,7 @@
province = '', province = '',
city = '', city = '',
district = '', district = '',
name = ''
}] = await uni.chooseLocation(param); }] = await uni.chooseLocation(param);
if (!lng) return if (!lng) return
let location = { let location = {
@ -388,7 +389,8 @@
address, address,
province, province,
city, city,
district district,
name
} }
this.updateUserItem({ this.updateUserItem({
key: 'location', key: 'location',
@ -408,7 +410,7 @@
let { let {
location location
} = this } = this
if (!location.lat || (location.lat && location.address == '定位失败')) { if (!location.lat || (location.lat && location.name == '定位失败')) {
// #ifdef H5 // #ifdef H5
if (this.$jweixin.isWechat()) { if (this.$jweixin.isWechat()) {
this.$util.showLoading() this.$util.showLoading()