123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- <!--index.wxml-->
- <scroll-view class="scrollarea" scroll-y="{{popupShow ? false : true}}" type="list" bindscroll="onScroll" enable-passive="true">
- <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">
- <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 }}">
- <image class="goods-cover" src="{{item.pic}}"></image>
- <text class="name">{{ item.typeName }}</text><image class="iconSale" wx:if="{{ item.stockNum <= 0 }}" src="./images/nosale.png"></image>
- </view>
- </view>
- </view>
- </view> -->
-
- <view class="goodsSection">
- <view class="goodsIntro">
- <!-- <view class="title">
- <view class="before"></view>
- <view>商品详情</view>
- <view class="after"></view>
- </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 {{ isShowOperation ? '' : 'hide' }}">
- <view class="btnSection">
- <button bind:tap="onOrder" type="primary" disabled="{{ isOverSaled }}">我的订单</button>
- <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="price-s">
- <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 class="current-s">
- 当前选中:<text>{{ selected.typeName }}</text>
- </view>
- </view>
- </view>
- <view class="goodsInfo">
- <view class="desc">规格类型({{ list.length }})</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 }}">
- <image class="goods-cover" src="{{item.pic}}"></image>
- <text class="name">{{ item.typeName }}</text><image class="iconSale" wx:if="{{ item.stockNum <= 0 }}" src="./images/nosale.png"></image>
- </view>
- </view>
- </view>
- <view class="btnSections"><button type="primary" bind:tap="onSubmit">立即购买</button></view>
- </view>
- </view>
- <view class="showMoreContainer {{ !isShowOperation ? '' : 'hide' }}">
- <image src="./images/icon-up-scroll.png" class="iconUpScroll" />
- </view>
- </view>
- <!-- 客服 -->
- <service wx:if="{{serviceShow}}"></service>
- </scroll-view>
|