| | |
| | | </view> |
| | | </swiper-item> |
| | | <swiper-item v-for="(url, index) in dto.bannerList" :key="index"> |
| | | <image class="top-img" :lazy-load="true" mode="aspectFill" @click="previewImg(url)" :src="url"> |
| | | <image class="top-img" :lazy-load="true" mode="aspectFill" @click="()=>{ |
| | | previewImgSign = true; |
| | | previewImg(url); |
| | | }" :src="url"> |
| | | </image> |
| | | <view class="index-tag"> |
| | | {{index+1+(dto.video&&1)}}/{{(dto.video&&1||0)+(dto.cover&&1||0)+(dto.bannerList&&dto.bannerList.length||0)}} |
| | |
| | | </swiper-item> |
| | | |
| | | <swiper-item> |
| | | <image :src="dto.cover" :lazy-load="true" @click="previewImg(dto.cover)" class="top-img" |
| | | mode="aspectFill"> |
| | | <image :src="dto.cover" :lazy-load="true" @click="()=>{ |
| | | previewImgSign = true; |
| | | previewImg(dto.cover); |
| | | }" class="top-img" mode="aspectFill"> |
| | | </image> |
| | | <view class="index-tag"> |
| | | {{(dto.bannerList&&dto.bannerList.length||0)+1+(dto.video&&1||0)}}/{{(dto.video&&1||0)+(dto.cover&&1||0)+(dto.bannerList&&dto.bannerList.length||0)}} |
| | |
| | | <view class="price m-r-a component-price-new"> |
| | | <span class="tip">会员价</span><span class="num p">{{ dto.priceMember || dto.price || '-' }}</span> |
| | | 元/扎 |
| | | |
| | | |
| | | </view> |
| | | <view class="price m-r-a component-price-old"> |
| | | <!-- <span class="num">{{ dto.price || '-' }}</span> --> |
| | |
| | | </view> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <view class="m-l-a m-r-15"> |
| | | <button open-type="contact" class="component-button-contact"> |
| | | <image src="../../../static/common/icon-kf.png" class="icon-kf m-l-15 img100"></image> |
| | |
| | | dto: {}, |
| | | shopnum: 0, |
| | | sharePartnerUserId: '', |
| | | previewImgSign: false, |
| | | } |
| | | }, |
| | | onShow() { |
| | | if (this.id) { |
| | | this.getDetail() |
| | | if (!this.previewImgSign) { |
| | | if (this.id) { |
| | | this.getDetail() |
| | | } |
| | | this.refreshShopNum() |
| | | } |
| | | this.refreshShopNum() |
| | | this.previewImgSign = false |
| | | |
| | | }, |
| | | async onLoad(options) { |
| | | console.log('trade detail options', options) |
| | |
| | | // setTimeout(() => { |
| | | //并且当前用户没有绑定 |
| | | if (tmp.currentInfo.id && tmp.currentInfo.customerDTO.partnerId) { |
| | | |
| | | }else{ |
| | | |
| | | } else { |
| | | if (tmp.currentInfo.id) { |
| | | await tmp.bindPartnerUser(options.partnerUserId, '') |
| | | } else { |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | // }, 1000) |
| | | } |
| | |
| | | .swiper-box { |
| | | position: relative; |
| | | border-bottom: 1px solid #d3d4d7; |
| | | |
| | | swiper-item { |
| | | background-color: #fff; |
| | | border-radius: 8rpx; |
| | |
| | | margin-right: 6rpx; |
| | | text-align: center; |
| | | } |
| | | |
| | | |
| | | .tag.green { |
| | | color: rgba(110, 159, 102, 1); |
| | | background: rgba(202, 229, 214, 1); |