1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <!--index.wxml-->
- <scroll-view class="scrollarea" scroll-y="{{popupShow ? false : true}}" type="list">
- <view class="container">
- <!-- <view class="topShadow"></view> -->
- <view class="slider-count">{{current + 1}}/{{imgList.length}}</view>
- <swiper indicator-dots="{{false}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" bindchange="changeSwiper">
- <swiper-item wx:for="{{imgList}}" wx:key="index">
- <view class="swiper-item">
- <image bind:tap="onPreivewBannerImg" data-src="{{ item }}" src="{{ item }}"></image>
- </view>
- </swiper-item>
- </swiper>
- <view class="shop-section">
- <view class="showPrice">
- <view class="left">
- <view class="currentPrice">
- <text class="stuff">¥</text>
- <text class="priceZ">{{ selected.integerPart || 0 }}</text>
- <text class="priceF">.{{ selected.decimalPart || '00' }}</text>
- </view>
- <view class="originPrice" wx:if="{{ selected.originalPrice > selected.salePrice }}">¥{{ selected.originalPrice || '0.00' }}</view>
- </view>
- <view class="right">
- 已售1w+
- </view>
- </view>
- <view class="shopName">
- {{ selected.name }}
- </view>
- <view class="goodsInfo">
- <text class="desc">已选:</text>
- <view class="goodsList">
- <view wx:for="{{ list }}" wx:key="index" class="goodsItem {{ item.id == selected.id ? 'selected' : '' }} {{ item.stockNum <= 0 ? 'nosale' : '' }}" bind:tap="onSelectGoods" data-id="{{ item.id }}">{{ item.typeName }}<image wx:if="{{ item.stockNum <= 0 }}" src="./images/nosale.png"></image></view>
- </view>
- </view>
- </view>
-
- <view class="goodsSection">
- <view class="goodsIntro">
- <view class="title">图文详情</view>
- <view class="images">
- <block wx:for="{{goodsImgList}}" wx:key="index">
- <image mode="widthFix" bind:tap="onPreivewGoodsImg" data-src="{{item}}" src="{{item}}"></image>
- </block>
- </view>
- </view>
- </view>
- <view class="bottom-section">
- <view class="orders" bind:tap="onService">
- <image src="./images/icon-service.png" />
- <text>客服</text>
- </view>
- <view class="orders" bind:tap="onOrder">
- <image src="./images/icon-order.png" />
- <text>订单</text>
- </view>
- <view class="btnSection">
- <button bind:tap="onBuyShop" type="primary" disabled="{{ isOverSaled }}">立即购买</button>
- </view>
- </view>
- <view class="popup-section" wx:if="{{popupShow}}">
- <view class="popup-mask" bind:tap="onClose"></view>
- <view class="popup-container">
- <image bind:tap="onClose" src="./images/icon-close.png" class="iconClose"></image>
- <view class="product-section">
- <view class="product-img">
- <image bind:tap="onPreivewGoods" data-src="{{ selected.pic }}" src="{{ selected.pic }}"></image>
- </view>
- <view class="product-left">
- <view class="currentPrice">
- <text class="stuff">¥</text>
- <text class="priceZ">{{ selected.integerPart }}</text>
- <text class="priceF">.{{ selected.decimalPart }}</text>
- </view>
- <view class="originPrice">¥{{ selected.originalPrice }}</view>
- </view>
- </view>
- <view class="goodsInfo">
- <view class="desc">规格</view>
- <view class="goodsList">
- <view wx:for="{{ list }}" wx:key="index" class="goodsItem {{ item.id == selected.id ? 'selected' : '' }} {{ item.stockNum <= 0 ? 'nosale' : '' }}" bind:tap="onSelectGoods" data-id="{{ item.id }}">{{ item.typeName }}<image wx:if="{{ item.stockNum <= 0 }}" src="./images/nosale.png"></image></view>
- </view>
- </view>
- <button type="primary" bind:tap="onSubmit">立即购买</button>
- </view>
- </view>
- </view>
- <service popShow="{{ showService }}" bind:changePop="changePop"></service>
- </scroll-view>
|