|
@@ -1,7 +1,7 @@
|
|
|
<!--index.wxml-->
|
|
|
-<scroll-view class="scrollarea" scroll-y="{{popupShow ? false : true}}" type="list">
|
|
|
+<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="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">
|
|
@@ -31,7 +31,6 @@
|
|
|
</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 }}">
|
|
|
<image class="goods-cover" src="{{item.pic}}"></image>
|
|
@@ -39,15 +38,15 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
|
|
|
<view class="goodsSection">
|
|
|
<view class="goodsIntro">
|
|
|
- <view class="title">
|
|
|
+ <!-- <view class="title">
|
|
|
<view class="before"></view>
|
|
|
<view>商品详情</view>
|
|
|
<view class="after"></view>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
<view class="images">
|
|
|
<block wx:for="{{goodsImgList}}" wx:key="index">
|
|
|
<image mode="widthFix" bind:tap="onPreivewGoodsImg" data-src="{{item}}" src="{{item}}"></image>
|
|
@@ -56,7 +55,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <view class="bottom-section">
|
|
|
+ <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>
|
|
@@ -94,15 +93,18 @@
|
|
|
<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 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 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 bind:openService="openService"></service>
|
|
|
+ <service bind:openService="openService" class="{{ isShowOperation ? '' : 'hide' }}"></service>
|
|
|
</scroll-view>
|