更新购物车

This commit is contained in:
wwz
2025-03-28 18:29:06 +08:00
parent 75e5fb65be
commit 10a47abe13
12 changed files with 299 additions and 195 deletions

View File

@@ -1,10 +1,12 @@
<template>
<view class="towcontent flex-between" v-if="district">
<view class="towcontent_item flex-colum" v-for="(item,index) in district" :key="index"
@click="clickdistrict(item,index)">
<image :src="item.coverImg" mode="aspectFill"></image>
<text>{{item.name}}</text>
<view v-for="(item,index) in district" :key="index" @click="clickdistrict(item,index)">
<view class="towcontent_item flex-colum" v-if="item.isShowMall == 1">
<image :src="item.coverImg" mode="aspectFill"></image>
<text>{{item.name}}</text>
</view>
</view>
</view>
</template>
@@ -84,8 +86,8 @@
}
}
.towcontent_item:nth-child(1) {
margin-left: 0rpx;
}
// .towcontent_item:nth-child(1) {
// margin-left: 0rpx;
// }
}
</style>

View File

@@ -12,7 +12,7 @@
<!-- 今日上线 -->
<todaylist :todayList='hometoplist.todayProInfo' :salesList="hometoplist.hotRanking"></todaylist>
<!-- 类目 -->
<view :style="{'top':store.height+'px'}" class="fourcontent" id="fourcontent">
<!-- <view :style="{'top':store.height+'px'}" class="fourcontent" id="fourcontent">
<view class="flex-between" style="flex-wrap: inherit;">
<view class="fourcontent_item flex-start" v-for="(item,index) in hometoplist.menuList" :key="index"
@click="viewHistory(item,index)"
@@ -28,10 +28,9 @@
<grouping v-if="viewHistoryindex == 1 || viewHistoryindex == 2 || viewHistoryindex == 3"
@grouping="openproductlist" />
</view>
</view>
</view> -->
<!-- 首页抢购区域 -->
<view class="fivecontent">
<!-- <view class="fivecontent">
<view class="fivecontent_item" v-for="(item,index) in formhomelist.list" :key="index"
@click="fivecontentclick(item)">
<view class="fivecontent_item_nav flex-start">
@@ -125,7 +124,7 @@
</view>
</view>
<up-loadmore :status="formhomelist.status" fontSize="14" color="#999" iconSize="14" />
</view>
</view> -->
</view>
<indexs v-if="showindex == 'shopIndex'" :shopExtend='orderVIP.shopExtendList'></indexs>
</view>
@@ -469,9 +468,9 @@
background: #fee06a;
}
.fourcontent_item:nth-child(1) {
margin-left: 0;
}
// .fourcontent_item:nth-child(1) {
// margin-left: 0;
// }
}

View File

@@ -127,7 +127,7 @@
address: uni.cache.get('getLocationstorage').address, //地址
lng: uni.cache.get('getLocationstorage').lng,
lat: uni.cache.get('getLocationstorage').lat,
distanceInKm: '10', //默认10 以经纬度为中心 多大范围以内 单位km
distance: '2000', //默认10 以经纬度为中心 多大范围以内 单位km
isPage: '', //是否分页 1分页 0不分页
page: form.page, //页数
size: form.size, //页容量
@@ -160,7 +160,7 @@
});
onMounted(() => {
init_fn()
distiricttopCommon()
// distiricttopCommon()
})
onReachBottom(() => {
distirictsubShopList()
@@ -246,10 +246,10 @@
border-radius: 24rpx 0rpx 0rpx 0rpx;
background: #F9F9F9;
.fivecontent_item:nth-child(1) {
margin-top: 0;
// .fivecontent_item:nth-child(1) {
// margin-top: 0;
}
// }
.fivecontent_item {
background: #FFFFFF;