取消地区的限制

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

View File

@ -1,13 +1,14 @@
<template> <template>
<view> <view>
<view v-if="currentCity && currentCity.cityName && currentCity.cityName != '衡水市'"> <!-- <view v-if="currentCity && currentCity.cityName && currentCity.cityName != '衡水市'">
<view class="not_found_404"> <view class="not_found_404">
<text class="not_found_text">404</text> <text class="not_found_text">404</text>
<text class="not_found_desc">当前城市暂未开通服务</text> <text class="not_found_desc">当前城市暂未开通服务</text>
<button class="not_found_button" @click="obtainLocation">重新定位</button> <button class="not_found_button" @click="obtainLocation">重新定位</button>
</view> </view>
</view> </view>
<view v-else> <view v-else> -->
<view>
<view class="container" :style="{ marginTop: top + 'px' }" v-if="loading"> <view class="container" :style="{ marginTop: top + 'px' }" v-if="loading">
<!-- 城市信息部分 --> <!-- 城市信息部分 -->
<view class="white_container searchBox" :style="{ height: localHeight + 'px' }"> <view class="white_container searchBox" :style="{ height: localHeight + 'px' }">
@ -113,7 +114,7 @@
<view class="serverList_left"> <view class="serverList_left">
<swiper> <swiper>
<swiper-item v-for="(item, index) in homeLeftList" :key="index" @click="headerServerClick(item)"> <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> --> <!-- <view>{{ item.ad_position }}</view> -->
</swiper-item> </swiper-item>
</swiper> </swiper>
@ -204,8 +205,7 @@
</view> </view>
</view> </view>
<view class="merchantItem_right_con_right" @click="toJump(item)"> <view class="merchantItem_right_con_right" @click="toJump(item)">
<image <image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/local_review.png"
src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/local_review.png"
mode="aspectFill"></image> mode="aspectFill"></image>
点评 点评
</view> </view>
@ -953,8 +953,10 @@ export default {
// //
async getCateList() { async getCateList() {
const res = await request(apiArr2.getCateList, "POST", { const params = {
}, { slice: false }); isShop: 1,
}
const res = await request(apiArr2.getCateList, "POST", params, { slice: false });
if (res.rows.length) { if (res.rows.length) {
this.currentCategoryId = res.rows[0].id this.currentCategoryId = res.rows[0].id
this.activeCategoryId = `category-${this.currentCategoryId}` this.activeCategoryId = `category-${this.currentCategoryId}`