| | |
| | | </view> |
| | | </view> |
| | | <view class="search" @click="jumpSearch"> |
| | | <u-search placeholder="请输入商 品名称搜索" disabled height="36" searchIconColor="#999999" borderColor="#eeeeee" |
| | | <u-search placeholder="请输入商品名称搜索" disabled height="36" searchIconColor="#999999" borderColor="#eeeeee" |
| | | bgColor="rgba(255,255,255,0.9)" :showAction="false" /> |
| | | </view> |
| | | <view class="banner"> |
| | | <u-swiper :list="list" keyName="imgurl" height="150" indicator indicatorMode="dot" @click="jumpBanner"></u-swiper> |
| | | </view> |
| | | <swiper class="cate" @change="changeCate"> |
| | | <swiper class="cate" @change="changeCate" v-if="labels.length > 0" :style="{ height: labels[0].length <= 4 ? '150rpx' : '' }"> |
| | | <swiper-item v-for="(item, index) in labels" :key="index"> |
| | | <view class="cate-list"> |
| | | <view class="cate-item" v-for="(child, a) in item" :key="a" @click="jumpSearch1(child, 1)"> |
| | |
| | | <view class="title"> |
| | | <view class="title-left">适用品牌</view> |
| | | </view> |
| | | <swiper class="pingpai" @change="changeBrand"> |
| | | <swiper class="pingpai" @change="changeBrand" v-if="brand.length > 0" :style="{ height: brand[0].length <= 2 ? '130rpx' : '' }"> |
| | | <swiper-item v-for="(item, index) in brand" :key="index"> |
| | | <view class="pingpai-list"> |
| | | <view class="pingpai-item" v-for="(child, a) in item" :key="a" @click="jumpSearch1(child, 2)"> |
| | |
| | | <text>.{{item.minPrice[1]}}</text> |
| | | </view> |
| | | <view class="commodity-item-box-price-b"> |
| | | ¥{{item.price}} |
| | | ¥{{item.linePrice || 0}} |
| | | </view> |
| | | </view> |
| | | <view class="commodity-item-shou"> |
| | | <text>已售{{item.saleNum + item.realSaleNum}}</text> |
| | | <text>已售{{item.shou}}</text> |
| | | <view class="commodity-item-shou-add" @click.stop="addCard(item)">+</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="dingwei" v-if="isShow"> |
| | | <view class="dingwei" v-if="!position"> |
| | | <view class="dingwei-left"> |
| | | <text>未授权定位</text> |
| | | <text>未获取定位信息</text> |
| | | <text>我们无法获得您当前位置信息为您推荐附近经销商</text> |
| | | </view> |
| | | <view class="dingwei-btn" @click="goToAppSetting">开启定位</view> |
| | |
| | | if (res.code === 200) { |
| | | res.data.records.forEach(item => { |
| | | item.minPrice = item.minPrice.toFixed(2).split('.') |
| | | item.shou = (item.salenum || 0) + (item.realSaleNum || 0) |
| | | }) |
| | | this.goodsList.push(...res.data.records) |
| | | this.page++ |
| | |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | |
| | | image { |
| | | width: 100%; |
| | | width: 100%; |
| | | height: 330rpx; |
| | | } |
| | | } |
| | | |
| | |
| | | box-sizing: border-box; |
| | | |
| | | .commodity-item-box-title { |
| | | width: 100%; |
| | | display: -webkit-box; |
| | | -webkit-box-orient: vertical; |
| | | -webkit-line-clamp: 2; |
| | | overflow: hidden; |
| | | font-weight: 600; |
| | | font-size: 30rpx; |
| | | color: #222222; |
| | |
| | | font-weight: 400; |
| | | font-size: 22rpx; |
| | | color: #999999; |
| | | text-decoration: line-through; |
| | | } |
| | | } |
| | | |
| | |
| | | margin-top: 40rpx; |
| | | .cate-list { |
| | | width: 100%; |
| | | height: 300rpx; |
| | | // height: 300rpx; |
| | | display: flex; |
| | | align-items: flex-start; |
| | | justify-content: space-between; |