|
|
@ -4,17 +4,22 @@ |
|
|
|
<view class="icon search"></view> |
|
|
|
<view class="icon search"></view> |
|
|
|
<input placeholder="搜索商品" v-model="couponName" placeholder-style="color:#c0c0c0;" @input="toSearch()" /> |
|
|
|
<input placeholder="搜索商品" v-model="couponName" placeholder-style="color:#c0c0c0;" @input="toSearch()" /> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<view class="swiper"> |
|
|
|
<view class="swiper" v-if="swiperList.length>0"> |
|
|
|
<view class="swiper-box"> |
|
|
|
<view class="swiper-box" > |
|
|
|
<swiper circular="true" autoplay="true" @change="swiperChange"> |
|
|
|
<swiper circular="true" autoplay="true" @change="swiperChange"> |
|
|
|
<swiper-item v-for="swiper in swiperList" :key="swiper.id"> |
|
|
|
<swiper-item v-for="swiper in swiperList" :key="swiper.id"> |
|
|
|
<image :src="imageUrl+swiper.imgData" @click="jumpCont(swiper)"></image> |
|
|
|
<image :src="imageUrl+swiper.imgData" @click="jumpCont(swiper)"></image> |
|
|
|
</swiper-item> |
|
|
|
</swiper-item> |
|
|
|
</swiper> |
|
|
|
</swiper> |
|
|
|
<view class="indicator"> |
|
|
|
<!-- <view class="indicator"> |
|
|
|
<view class="dots" v-for="(swiper, index) in swiperList" |
|
|
|
<view class="dots" v-for="(swiper, index) in swiperList" |
|
|
|
:class="[currentSwiper >= index ? 'on' : '']" :key="index"></view> |
|
|
|
:class="[currentSwiper >= index ? 'on' : '']" :key="index"></view> |
|
|
|
|
|
|
|
</view> --> |
|
|
|
|
|
|
|
<view class="indicator" > |
|
|
|
|
|
|
|
<view class="dots" v-for="(swiper, index) in swiperList" |
|
|
|
|
|
|
|
:style="(currentSwiper >= index ? 'width:calc(100%/'+swiperList.length+')' : '')" |
|
|
|
|
|
|
|
:key="index"></view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -27,8 +32,8 @@ |
|
|
|
<view v-if="goodsList == '' " class="mart60 fotct font14 fcor666"> |
|
|
|
<view v-if="goodsList == '' " class="mart60 fotct font14 fcor666"> |
|
|
|
<image mode="widthFix" style="width: 70vw;" :src="imagewxUrl+imgadres"></image> |
|
|
|
<image mode="widthFix" style="width: 70vw;" :src="imagewxUrl+imgadres"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="width90 height110 mart10 backcorfff border-8r alijusstart" v-for="(row, index) in goodsList" :key="index" @click="toGoods(row.id)"> |
|
|
|
<view class="width90 height110 mart10 border-8r itemContainer" v-for="(row, index) in goodsList" :key="index" @click="toGoods(row.id)"> |
|
|
|
<image class="goodsimg mart5" mode="widthFix" :src="imageUrl+row.couponImg"></image> |
|
|
|
<image class="goodsimg flleft" mode="aspectFit" :src="imageUrl+row.couponImg"></image> |
|
|
|
<view class="goodsli width65"> |
|
|
|
<view class="goodsli width65"> |
|
|
|
<view class="text1 fcor333 font16 fontwig6">{{row.couponName}}</view> |
|
|
|
<view class="text1 fcor333 font16 fontwig6">{{row.couponName}}</view> |
|
|
|
<view class="goodsxg font12 fotct">限购{{row.limitNumber}}件</view> |
|
|
|
<view class="goodsxg font12 fotct">限购{{row.limitNumber}}件</view> |
|
|
@ -53,7 +58,9 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="height10"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
@ -73,16 +80,17 @@ |
|
|
|
imgadres: 'noorder.png', |
|
|
|
imgadres: 'noorder.png', |
|
|
|
imageUrl: app.globalData.imgUrl, |
|
|
|
imageUrl: app.globalData.imgUrl, |
|
|
|
// 轮播图片 |
|
|
|
// 轮播图片 |
|
|
|
swiperList: [{ |
|
|
|
swiperList: [ |
|
|
|
id: 1, |
|
|
|
// { |
|
|
|
src: 'url1', |
|
|
|
// id: 1, |
|
|
|
img: 'banner2.png' |
|
|
|
// src: 'url1', |
|
|
|
}, |
|
|
|
// img: 'banner2.png' |
|
|
|
{ |
|
|
|
// }, |
|
|
|
id: 2, |
|
|
|
// { |
|
|
|
src: 'url2', |
|
|
|
// id: 2, |
|
|
|
img: 'banner3.png' |
|
|
|
// src: 'url2', |
|
|
|
} |
|
|
|
// img: 'banner3.png' |
|
|
|
|
|
|
|
// } |
|
|
|
], |
|
|
|
], |
|
|
|
currentSwiper: 0, |
|
|
|
currentSwiper: 0, |
|
|
|
pageNum: 1, |
|
|
|
pageNum: 1, |
|
|
@ -397,7 +405,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.goodsli { |
|
|
|
.goodsli { |
|
|
|
margin-left: 10px; |
|
|
|
margin-left: 100px; |
|
|
|
padding-top: 5px; |
|
|
|
padding-top: 5px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -406,9 +414,15 @@ |
|
|
|
border: 1px solid #3da7e7; |
|
|
|
border: 1px solid #3da7e7; |
|
|
|
border-radius: 5px; |
|
|
|
border-radius: 5px; |
|
|
|
color: #3da7e7; |
|
|
|
color: #3da7e7; |
|
|
|
width: 55px; |
|
|
|
// width: 55px; |
|
|
|
|
|
|
|
display: inline-block; |
|
|
|
padding: 3px; |
|
|
|
padding: 3px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.itemContainer{ |
|
|
|
|
|
|
|
box-sizing: border-box; |
|
|
|
|
|
|
|
padding: 10px; |
|
|
|
|
|
|
|
background: #ffffff; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// .info { |
|
|
|
// .info { |
|
|
|
// display: flex; |
|
|
|
// display: flex; |
|
|
|