1

parent ebccdb59
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
</view> </view>
</scroll-view> </scroll-view>
</view> </view>
<view class="bootom"> <view class="bootom" :style="{ top }">
<view class="bootom-top"> <view class="bootom-top">
<view class="option" @tap="locationFiltering(0)"> <view class="option" @tap="locationFiltering(0)">
<text :class="{ rotate: rotate }">全部{{ categoryNames }}</text> <text :class="{ rotate: rotate }">全部{{ categoryNames }}</text>
...@@ -130,6 +130,7 @@ import fab from '../../components/fab/fab.vue'; ...@@ -130,6 +130,7 @@ import fab from '../../components/fab/fab.vue';
import Sort from '../../components/index/Sort.vue'; import Sort from '../../components/index/Sort.vue';
import { getByParentId, merchantList, prodSpecial } from '../../api/index'; import { getByParentId, merchantList, prodSpecial } from '../../api/index';
const top = ref(null);
const backIconColor = ref('white'); const backIconColor = ref('white');
const textColor = ref('#ffffff'); const textColor = ref('#ffffff');
const backgroundBox = ref(''); const backgroundBox = ref('');
...@@ -162,11 +163,20 @@ onLoad((option) => { ...@@ -162,11 +163,20 @@ onLoad((option) => {
params.value.categoryIds = [parentId]; params.value.categoryIds = [parentId];
pics.value = pic; pics.value = pic;
query(parentId); query(parentId);
getTop();
prodSpecialFn(); prodSpecialFn();
getLocationFn().then((res) => { getLocationFn().then((res) => {
getMerchantList(); getMerchantList();
}); });
}); });
// 获取位置板块贴合高度
const getTop = () => {
xma.xh.getMenuButtonBoundingClientRect({
success(res) {
top.value = (res.top + res.bottom) / 2 + 25 + 'px';
},
});
};
// distance参数来源 // distance参数来源
const nearby = (distance) => { const nearby = (distance) => {
console.log('distance', distance); console.log('distance', distance);
......
...@@ -915,8 +915,9 @@ page { ...@@ -915,8 +915,9 @@ page {
} }
} }
.shop-business-hours { .shop-business-hours {
white-space: nowrap;
texe { texe {
font-size: 8 * 2rpx; font-size: 11 * 2rpx;
color: #767676; color: #767676;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment