取消地区的限制

This commit is contained in:
赵毅 2025-09-22 11:34:00 +08:00
parent c3174d2809
commit 0eed1e96bb

View File

@ -1,13 +1,14 @@
<template>
<view>
<view v-if="currentCity && currentCity.cityName && currentCity.cityName != '衡水市'">
<!-- <view v-if="currentCity && currentCity.cityName && currentCity.cityName != '衡水市'">
<view class="not_found_404">
<text class="not_found_text">404</text>
<text class="not_found_desc">当前城市暂未开通服务</text>
<button class="not_found_button" @click="obtainLocation">重新定位</button>
</view>
</view>
<view v-else>
<view v-else> -->
<view>
<view class="container" :style="{ marginTop: top + 'px' }" v-if="loading">
<!-- 城市信息部分 -->
<view class="white_container searchBox" :style="{ height: localHeight + 'px' }">
@ -113,7 +114,7 @@
<view class="serverList_left">
<swiper>
<swiper-item v-for="(item, index) in homeLeftList" :key="index" @click="headerServerClick(item)">
<image :src="item.pic_src" alt="" class="serverList_left_img"/>
<image :src="item.pic_src" alt="" class="serverList_left_img" />
<!-- <view>{{ item.ad_position }}</view> -->
</swiper-item>
</swiper>
@ -171,7 +172,7 @@
</view>
</view>
</u-sticky>
<!-- 商家列表展示 -->
<view class="merchantList" :class="{ merchantList2: merchatList.length < 3 }">
<view class="overlay" v-if="showDropdown"></view>
@ -204,8 +205,7 @@
</view>
</view>
<view class="merchantItem_right_con_right" @click="toJump(item)">
<image
src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/local_review.png"
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/local_review.png"
mode="aspectFill"></image>
点评
</view>
@ -216,9 +216,9 @@
</view>
</view>
</view>
<view class="more" v-if="flag">下拉加载后续10条共计{{ bottomTotal }}</view>
<nav-footer />
<nav-footer />
</view>
</view>
</view>
@ -953,8 +953,10 @@ export default {
//
async getCateList() {
const res = await request(apiArr2.getCateList, "POST", {
}, { slice: false });
const params = {
isShop: 1,
}
const res = await request(apiArr2.getCateList, "POST", params, { slice: false });
if (res.rows.length) {
this.currentCategoryId = res.rows[0].id
this.activeCategoryId = `category-${this.currentCategoryId}`