修改点击定位出现顶部选择栏叠加问题

youmengting-dev
游梦婷 1 year ago
parent edfaee6bc5
commit 0d64307665
  1. 37
      pages/tabBar/category/category.vue

@ -78,13 +78,13 @@
@input="getMapStore()" /> @input="getMapStore()" />
</cover-view> </cover-view>
<scroll-view class="scoroll-cont width94 mart10" scroll-y="true"> <scroll-view class="scoroll-cont width94 mart10" scroll-y="true">
<cover-view v-if="marker == '' " class="mart30 fotct font14 fcor666 fotct width100"> <cover-view v-if="marker.length == 0 " class="mart30 fotct font14 fcor666 fotct width100">
<image mode="widthFix" style="width: 70vw;" :src="imagewxUrl+imgadres3"></image> <image mode="widthFix" style="width: 70vw;" :src="imagewxUrl+imgadres3"></image>
</cover-view> </cover-view>
<cover-view class="width96 height80 bor-botm1 alijusstart" v-for="(box,i) in marker" :key="i" <cover-view class="width96 height80 bor-botm1 alijusstart" v-for="(box,i) in marker" :key="i"
@click="seeloaction(box)"> @click="seeloaction(box)">
<image mode="widthFix" :src="box.logo" class="recontleft flleft border-r" <image mode="aspectFit" :src="box.logo" class="recontleft flleft border-r"
style="max-width: 50px;min-width: 50px;"> style="width: 50px;height:50px">
</image> </image>
<cover-view class="fotlt paddleft5"> <cover-view class="fotlt paddleft5">
<cover-view class="text2 width100 font16 fontwig6"> <cover-view class="text2 width100 font16 fontwig6">
@ -95,7 +95,7 @@
{{box.callout.address}} {{box.callout.address}}
</cover-view> </cover-view>
<cover-view class="width30 flright font13 fcor666 fotct"> <cover-view class="width30 flright font13 fcor666 fotct">
<image mode="widthFix" :src="imagewxUrl+imgadres4" style="width: 10px;"></image> <image mode="aspectFit" :src="imagewxUrl+imgadres4" style="width: 10px;height:10px"></image>
{{box.distance}}km {{box.distance}}km
</cover-view> </cover-view>
</cover-view> </cover-view>
@ -182,13 +182,14 @@
@input="getMapStore()" /> @input="getMapStore()" />
</view> </view>
<scroll-view class="scoroll-cont width94 mart10" scroll-y="true"> <scroll-view class="scoroll-cont width94 mart10" scroll-y="true">
<view v-if="marker == '' " class="mart30 fotct font14 fcor666 fotct width100"> <view v-if="marker.length == 0 " class="mart30 fotct font14 fcor666 fotct width100">
<image mode="widthFix" style="width: 70vw;" :src="imagewxUrl+imgadres3"></image> <image mode="widthFix" style="width: 70vw;" :src="imagewxUrl+imgadres3"></image>
</view> </view>
<view class="width96 height80 bor-botm1 alijusstart" v-for="(box,i) in marker" :key="i" <view class="width96 height80 bor-botm1 alijusstart" v-for="(box,i) in marker" :key="i"
@click="seeloaction(box)"> @click="seeloaction(box)">
<image mode="widthFix" :src="box.logo" class="recontleft flleft border-r" <template v-if="box.id != 0">
style="max-width: 50px;min-width: 50px;"> <image mode="aspectFit" :src="box.logo" class="recontleft flleft border-r"
style="width: 50px;height: 50px;">
</image> </image>
<view class="fotlt paddleft5"> <view class="fotlt paddleft5">
<view class="text2 width100 font16 fontwig6"> <view class="text2 width100 font16 fontwig6">
@ -199,11 +200,12 @@
{{box.callout.address}} {{box.callout.address}}
</view> </view>
<view class="width30 flright font13 fcor666 fotct"> <view class="width30 flright font13 fcor666 fotct">
<image mode="widthFix" :src="imagewxUrl+imgadres4" style="width: 10px;"></image> <image mode="aspectFit" :src="imagewxUrl+imgadres4" style="width: 10px;height: 10px;"></image>
{{box.distance}}km {{box.distance}}km
</view> </view>
</view> </view>
</view> </view>
</template>
</view> </view>
</scroll-view> </scroll-view>
</view> </view>
@ -324,6 +326,22 @@
// //
getIndustry() { getIndustry() {
getIndustry().then(res => { getIndustry().then(res => {
this.goodsFirstClassList=[{
"childIndustry": null,
"createTime": 1640252815000,
"name": "全部",
"id": 99999999,
"wechatCompanyCode": "716",
"wechatName": "全部",
"ext3": null,
"parentId": 1,
"wechatSelfEmployedCode": "719",
"ext2": null,
"status": 1,
"ext1": "650"
}];
if (res.return_code == '000000') { if (res.return_code == '000000') {
for (var i = 0; i < res.return_data.length; i++) { for (var i = 0; i < res.return_data.length; i++) {
this.goodsFirstClassList.push(res.return_data[i]); this.goodsFirstClassList.push(res.return_data[i]);
@ -642,6 +660,9 @@
} }
</script> </script>
<style lang='less' scoped> <style lang='less' scoped>
.map-container { .map-container {
position: relative; position: relative;
overflow: hidden; overflow: hidden;

Loading…
Cancel
Save