joe 4 years ago
parent
commit
aee0296810
1 changed files with 97 additions and 97 deletions
  1. 97 97
      view/xcx/pages/goods_details/index.wxml

+ 97 - 97
view/xcx/pages/goods_details/index.wxml

@@ -21,40 +21,40 @@
 <!-- <view style="height:{{navH+20}}rpx;" wx:if="{{scrollY>200}}"></view> -->
 <!-- style='height:{{scrollY>200?(height+2*navH+20):(height+navH)}}rpx;' -->
 <view class='product-con'>
- <scroll-view scroll-top="{{scrollTop}}" scroll-y='true' scroll-with-animation="true" style='height:{{height}}px;' bindscroll="scroll">
+  <scroll-view scroll-top="{{scrollTop}}" scroll-y='true' scroll-with-animation="true" style='height:{{height}}px;' bindscroll="scroll">
     <view id="past0">
       <productConSwiper imgUrls="{{storeInfo.slider_image}}" videoline="{{storeInfo.video_link}}">
       </productConSwiper>
       <view class='wrapper'>
-      <view class='share acea-row row-between row-bottom'>
-        <view class='money font-color'>
-          ¥<text class='num'>{{storeInfo.price}}</text>
-          <!-- <text class='vip-money' wx:if="{{storeInfo.vip_price && storeInfo.vip_price > 0}}">¥{{storeInfo.vip_price}}</text> -->
-          <!-- <image wx:if="{{storeInfo.vip_price && storeInfo.vip_price > 0}}" src="/images/vip.png"></image> -->
+        <view class='share acea-row row-between row-bottom'>
+          <view class='money font-color'>
+            ¥<text class='num'>{{storeInfo.price}}</text>
+            <!-- <text class='vip-money' wx:if="{{storeInfo.vip_price && storeInfo.vip_price > 0}}">¥{{storeInfo.vip_price}}</text> -->
+            <!-- <image wx:if="{{storeInfo.vip_price && storeInfo.vip_price > 0}}" src="/images/vip.png"></image> -->
+          </view>
+          <!-- <view class='iconfont icon-fenxiang' bindtap='listenerActionSheet'></view> -->
         </view>
-        <!-- <view class='iconfont icon-fenxiang' bindtap='listenerActionSheet'></view> -->
-      </view>
-      <view class='introduce'>{{storeInfo.store_name}}</view>
-      <view class='label acea-row row-between-wrapper'>
-        <view>原价:¥{{storeInfo.ot_price}}</view>
-        <view>库存:{{storeInfo.stock}}{{storeInfo.unit_name}}</view>
-        <view>销量:{{storeInfo.fsales}}{{storeInfo.unit_name}}</view>
-      </view>
-      <view class='coupon acea-row row-between-wrapper' wx:if="{{storeInfo.give_integral > 0}}">
-        <view class='hide line1 acea-row'>
-          赠积分:<view class='activity'>赠送 {{storeInfo.give_integral}} 积分</view>
+        <view class='introduce'>{{storeInfo.store_name}}</view>
+        <view class='label acea-row row-between-wrapper'>
+          <view>原价:¥{{storeInfo.ot_price}}</view>
+          <view>库存:{{storeInfo.stock}}{{storeInfo.unit_name}}</view>
+          <view>销量:{{storeInfo.fsales}}{{storeInfo.unit_name}}</view>
         </view>
-      </view>
-      <!-- <view class='coupon acea-row row-between-wrapper' bindtap='coupon' style="{{ storeInfo.give_integral > 0 ? 'margin-top:0;':''}}">
-        <view class='hide line1 acea-row'>
-          优惠券:<view class='activity' wx:for="{{couponList}}" wx:key='index'>满{{item.use_min_price}}减{{item.coupon_price}}</view>
+        <view class='coupon acea-row row-between-wrapper' wx:if="{{storeInfo.give_integral > 0}}">
+          <view class='hide line1 acea-row'>
+            赠积分:<view class='activity'>赠送 {{storeInfo.give_integral}} 积分</view>
+          </view>
         </view>
-        <view class='iconfont icon-jiantou'></view>
-      </view> -->
-      <view class="coupon acea-row row-between-wrapper"  wx:if="{{activity.length}}">
-        <view class="line1 acea-row">
-          <text decode="{{true}}" space="{{true}}">活&nbsp;&nbsp;&nbsp;动:</text>
-          <view wx:for="{{activity}}" wx:key='index' bindtap="goActivity" data-items='{{item}}'>
+        <!-- <view class='coupon acea-row row-between-wrapper' bindtap='coupon' style="{{ storeInfo.give_integral > 0 ? 'margin-top:0;':''}}">
+          <view class='hide line1 acea-row'>
+            优惠券:<view class='activity' wx:for="{{couponList}}" wx:key='index'>满{{item.use_min_price}}减{{item.coupon_price}}</view>
+          </view>
+          <view class='iconfont icon-jiantou'></view>
+        </view> -->
+        <view class="coupon acea-row row-between-wrapper"  wx:if="{{activity.length}}">
+          <view class="line1 acea-row">
+            <text decode="{{true}}" space="{{true}}">活&nbsp;&nbsp;&nbsp;动:</text>
+            <view wx:for="{{activity}}" wx:key='index' bindtap="goActivity" data-items='{{item}}'>
               <view wx:if="{{item.type === '1'}}" class="{{index==0?'activity_pin':'' || index==1?'activity_miao':'' || index==2?'activity_kan':''}}">
                 <text class="iconfonts iconfont icon-pintuan"></text>
                 <text class="activity_title"> 参与秒杀</text>
@@ -71,88 +71,88 @@
           </view>
         </view>
       </view>
-    <view class='attribute acea-row row-between-wrapper' bindtap='selecAttr' wx:if='{{productAttr.length}}'>
-      <view>
-        {{attr}}:<text class='atterTxt'>{{attrValue}}</text>
-      </view>
-      <view class='iconfont icon-jiantou'></view>
-    </view>
-    <!-- <view class="store-info" wx:if='{{systemStore.id && storeSelfMention}}'>
-      <view class="acea-row row-between-wrapper store-box" bindtap="showStoreList">
-        <view class="title">门店信息</view>
-        <view class='iconfont icon-jiantou'></view>
-      </view> 
-      <view class="info acea-row row-between-wrapper" wx:if="{{storeList.length!==0}}">
-        <view class="picTxt">
-          <view class="pictrue">
-          <image src="{{storeItems.image}}" lazy-load="true"></image>
+      <view class='attribute acea-row row-between-wrapper' bindtap='selecAttr' wx:if='{{productAttr.length}}'>
+        <view>
+          {{attr}}:<text class='atterTxt'>{{attrValue}}</text>
         </view>
-        <view class="text">
-          <view class="name line1">
-            {{storeItems.name}}
+        <view class='iconfont icon-jiantou'></view>
+      </view>
+      <!-- <view class="store-info" wx:if='{{systemStore.id && storeSelfMention}}'>
+        <view class="acea-row row-between-wrapper store-box" bindtap="showStoreList">
+          <view class="title">门店信息</view>
+          <view class='iconfont icon-jiantou'></view>
+        </view> 
+        <view class="info acea-row row-between-wrapper" wx:if="{{storeList.length!==0}}">
+          <view class="picTxt">
+            <view class="pictrue">
+              <image src="{{storeItems.image}}" lazy-load="true"></image>
+            </view>
+            <view class="text">
+              <view class="name line1">
+                {{storeItems.name}}
+              </view>
+              <view class="address acea-row row-middle" bindtap="showMaoLocation">
+                <text class="addressTxt line1">{{storeItems.address}}{{", "+storeItems.detailed_address}}</text>
+                <text class="iconfont icon-youjian"></text>
+              </view>
+            </view>
           </view>
-          <view class="address acea-row row-middle" bindtap="showMaoLocation">
-            <text class="addressTxt line1">{{storeItems.address}}{{", "+storeItems.detailed_address}}</text>
-            <text class="iconfont icon-youjian"></text>
+          <view class="addressBox">
+            <view class="iconfont icon-dadianhua01 font-color phone" bindtap="makePhone"></view>
+            <view class="addressTxt line1 corlor-red" wx:if="{{storeItems.range}}" bindtap="showMaoLocation">距离{{storeItems.range}}千米</view>
           </view>
         </view>
-      </view>
-      <view class="addressBox">
-        <view class="iconfont icon-dadianhua01 font-color phone" bindtap="makePhone"></view>
-        <view class="addressTxt line1 corlor-red" wx:if="{{storeItems.range}}" bindtap="showMaoLocation">距离{{storeItems.range}}千米</view>
-      </view>
-    </view>
-  </view> -->
-  </view>
-  <view class='userEvaluation' id="past1">
-    <view class='title acea-row row-between-wrapper'>
-      <view>用户评价({{replyCount}})</view>
-      <navigator class='praise' hover-class='none' url='/pages/goods_comment_list/index?product_id={{id}}'>
-        <text class='font-color'>{{replyChance}}%</text>好评率
-        <text class='iconfont icon-jiantou'></text>
-      </navigator>
+      </view> -->
     </view>
-    <userEvaluation reply="{{reply}}"></userEvaluation>
-  </view>
-  <view class="superior" wx:if="{{good_list.length}}" id="past2">
-    <view class="title acea-row row-center-wrapper">
-      <image src="/images/ling.png"></image>
-      <view class="titleTxt">优品推荐</view>
-      <image src="/images/ling.png"></image>
+    <view class='userEvaluation' id="past1">
+      <view class='title acea-row row-between-wrapper'>
+        <view>用户评价({{replyCount}})</view>
+        <navigator class='praise' hover-class='none' url='/pages/goods_comment_list/index?product_id={{id}}'>
+          <text class='font-color'>{{replyChance}}%</text>好评率
+          <text class='iconfont icon-jiantou'></text>
+        </navigator>
+      </view>
+      <userEvaluation reply="{{reply}}"></userEvaluation>
     </view>
-    <view class="slider-banner banner">
-      <swiper indicator-dots="true"
-        autoplay="{{autoplay}}" circular="{{circular}}" interval="{{interval}}" duration="{{duration}}" indicator-color="#999" indicator-active-color="#e93323" style="height:{{clientHeight+'px'}}">
-        <swiper-item wx:for="{{good_list}}" wx:for-item='item' wx:for-index='indexw' wx:key='index'>
-          <view class="list acea-row row-middle" id="list{{indexw}}">
-            <view class="item" wx:for="{{item.list}}" wx:key='index' wx:for-item='val' bindtap="goDetail" data-items='{{val}}'>
-              <view class="pictrue">
-                <image src="{{val.image}}"></image>
-                <text class="pictrue_log pictrue_log_class" wx:if="{{val.activity && val.activity.type ==='1'}}">秒杀</text>
-                <text class="pictrue_log pictrue_log_class" wx:if="{{val.activity && val.activity.type === '2'}}">砍价</text>
-                <text class="pictrue_log pictrue_log_class" wx:if="{{val.activity && val.activity.type === '3'}}">拼团</text>
+    <view class="superior" wx:if="{{good_list.length}}" id="past2">
+      <view class="title acea-row row-center-wrapper">
+        <image src="/images/ling.png"></image>
+        <view class="titleTxt">优品推荐</view>
+        <image src="/images/ling.png"></image>
+      </view>
+      <view class="slider-banner banner">
+        <swiper indicator-dots="true"
+          autoplay="{{autoplay}}" circular="{{circular}}" interval="{{interval}}" duration="{{duration}}" indicator-color="#999" indicator-active-color="#e93323" style="height:{{clientHeight+'px'}}">
+          <swiper-item wx:for="{{good_list}}" wx:for-item='item' wx:for-index='indexw' wx:key='index'>
+            <view class="list acea-row row-middle" id="list{{indexw}}">
+              <view class="item" wx:for="{{item.list}}" wx:key='index' wx:for-item='val' bindtap="goDetail"   data-items='{{val}}'>
+                <view class="pictrue">
+                  <image src="{{val.image}}"></image>
+                  <text class="pictrue_log pictrue_log_class" wx:if="{{val.activity && val.activity.type ==='1'}}">秒杀</text>
+                  <text class="pictrue_log pictrue_log_class" wx:if="{{val.activity && val.activity.type === '2'}}">砍价</text>
+                  <text class="pictrue_log pictrue_log_class" wx:if="{{val.activity && val.activity.type === '3'}}">拼团</text>
+                </view>
+                <view class="name line1">{{val.store_name}}</view>
+                <view class="money font-color">¥{{val.price}}</view>
               </view>
-              <view class="name line1">{{val.store_name}}</view>
-              <view class="money font-color">¥{{val.price}}</view>
             </view>
-          </view>
-        </swiper-item>
-        <view class="swiper-pagination" slot="pagination"></view>
-      </swiper>
+          </swiper-item>
+          <view class="swiper-pagination" slot="pagination"></view>
+        </swiper>
+      </view>
     </view>
-  </view>
-  <view class='product-intro' id="past3">
-    <view class='title'>产品介绍</view>
-    <view class='conter'>
-      <template is="wxParse" data="{{wxParseData:description.nodes}}" />
+    <view class='product-intro' id="past3">
+      <view class='title'>产品介绍</view>
+      <view class='conter'>
+        <template is="wxParse" data="{{wxParseData:description.nodes}}" />
+      </view>
     </view>
-  </view>
-  <view style='height:120rpx;'></view>
-   </scroll-view>
+    <view style='height:120rpx;'></view>
+  </scroll-view>
   <view class='{{ fixed ? "fixed" : ""}} footer acea-row row-between-wrapper'>
     <button open-type="contact" hover-class='none' class='item ' send-message-title="{{storeInfo.store_name}}" send-message-img="{{storeInfo.image}}" send-message-path="/pages/goods_details/index?id={{storeInfo.id}}" show-message-card>
-    <view class='iconfont icon-kefu'></view>
-    <view>客服</view>
+      <view class='iconfont icon-kefu'></view>
+      <view>客服</view>
     </button>
     <view bindtap='setCollect' class='item'>
       <view class='iconfont icon-shoucang1' wx:if="{{storeInfo.userCollect}}"></view>