goodtail.wxml 3.6 KB



<!-- 商品详情页面 -->
<view class="swiper_image">
  <swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" indicator-dots="true" duration="{{duration}}" indicator-active-color="#fff" class="swiper_item_img">
    <block wx:for="{{imgUrls}}" wx:key="doct">
      <swiper-item>
        <image src="{{item}}" class="slide-image" width="355" height="150" />
      </swiper-item>
    </block>
  </swiper>

  <!-- begin:判断是我发布的则不显示收藏 -->
  <block wx:if="{{off}}">
    <block wx:if="{{myissue}}"></block>
    <view class="make" wx:else>
      <button class="share" open-type="share">
        <image src="http://bronet.ibaby88.cn/cicon13@2x.png"></image>
      </button>
      <view class="collect">
        <image catchtap='focusFavoriteTab' wx:if="{{isFocus}}" src="http://bronet.ibaby88.cn/cicon15@2x.png"></image>
        <image catchtap='focusFavoriteTab' wx:else src="http://bronet.ibaby88.cn/cicon14@2x.png"></image>
      </view>
    </view>
  </block>
  <block wx:else></block>
</view>
<!-- begin:商品信息 -->
<view class="goodtail_info">
  <view class="goodtail_info_name">
    <text class="good_info_price"><text class="pricesign">¥</text>{{goodetail.price}}</text>
    <text class="good_info_state">{{goodetail.degree_title}}</text>
  </view>
  <view class="good_info_content">{{goodetail.title}}</view>
  <view class="good_tast">{{goodetail.briefcontent}}</view>
  <view class="good_info_tail">
    <view class="good_address">
      <view class="address_sign">
        <image src="http://bronet.ibaby88.cn/dicon10@2x.png"></image>

       
      </view>
      <view class="price_address city_address">{{goodetail.province}}</view>
      <view class="price_address detail_address">{{goodetail.city}}</view>
      <view class="price_address detail_address">{{goodetail.area}}</view>
    </view>
    <view class="good_address" bindtap="paste" data-word="{{goodetail.mobile}}">
      <view class="address_sign">
        <div class="iconfont icon-weixin" ></div>

         <view class="fuzhi">点击可复制</view>
      </view>
      <view class="price_address detail_address">{{goodetail.mobile}}</view>
    </view>
    <view class="price_address">{{goodetail.if_freight}}</view>
  </view>
</view>
<!-- begin:留言版 -->
<view class="essays">
  <view class="essays_head">
    <view class="leave_message">留言</view>

    <block wx:if="{{status == 3|| status ==4}}"><view class="leave_message_btn status_out">留言</view></block>
    <block wx:else><view class="leave_message_btn" bindtap='leaveTap'>留言</view></block>
  </view>
  <block wx:for="{{goodetail.comment}}" wx:key="">
    <view class="essaysitem">
      <view class="essays_content">
        <view class="essays_content_img">
          <image src="{{item.avatar}}"></image>
        </view>
        <view class="essays_content_text">
          <view class="essays_name">{{item.user_nickname}}</view>
          <view class="essays_text">{{item.content}}</view>
        </view>


      </view>

      <view class="replaycontent" wx:if="{{item.son.content!=null}}">
          回复: {{item.son.content}}
      </view>
    </view>
  </block>
</view>
<!-- begin:写留言 -->
<block wx:if="{{status == 3|| status == 4}}">
  <view class="lj_mecomment status_out">已售/下架</view>
</block>
<block wx:else>
  <view class="lj_mecomment" wx:if="{{myissue}}" bindtap='soldOut'>已售/下架</view>
  <view class="leave_message_text" wx:else>
    <view class="enter_input">
      <input placeholder="写留言..." bindinput='getContent' focus="{{focu}}" value="{{clearInput}}"/>
    </view>
    <view class="leave_message_btn" bindtap='getMassage'>发送</view>
  </view>
</block>