giftdetail.wxml 3.9 KB
<import src="../../wxParse/wxParse.wxml" />

<!-- 转换箭头 -->
<view class="zhuanhuan" bindtap="gogood">
  <image src="/img/jump.png"></image>
</view>


<view class="swiper_image">
  <swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" class="swiper_item_img" bindchange="swiperChange" circular="true">
    <block wx:for="{{imgUrls}}" wx:key="doct">
      <swiper-item>
        <image src="{{item}}" data-index='{{index}}' class="slide-image" bindtap='viewImg' width="355" height="150" />
      </swiper-item>
    </block>
  </swiper>

  <view class="bannerdot">
    <text>{{currentSwiper+1}}</text>/
    <text>{{imgUrls.length}}</text>
  </view>

  <!-- <view class="dots">
    <block wx:for="{{imgUrls}}" wx:key="">
      <view class="dot{{index == currentSwiper ? ' active' : ''}}"></view>
    </block>
  </view> -->


</view>
<view class="goodname">
  <view class="boxgoodrightop">
    <view class="boxgoodrigtl">
      <image src="/img/zeng.png"></image>
    </view>
    {{goodtail.gift.goods_name}}
  </view>

  <view class="goodprice">
    <!-- <view class="goodpriceleft">¥{{goodtail.gift.price}}</view> -->
    <view class="goodpriceright" wx:if="{{goodtail.gift.freight=='0.00'}}">运费:免运费</view>
    <view class="goodpriceright" wx:else>运费:{{goodtail.gift.freight}}元</view>
  </view>
</view>

<!--商品 -->
<view class="zenggood" bindtap="gogood">
  <view class="zenggoodleft">
    <image src='{{goodtail.image}}'></image>
  </view>
  <view class="zengright">
    <view class="boxgoodrightop zengname">
      <view class="boxgoodrigtl">
        <image src="/img/good.png"></image>
      </view>
      {{goodtail.goods_name}}
    </view>
  </view>
</view>

<!-- 详情和评论 -->
<view class="pingxiang">
  <view class="pingxiangitem {{ping==1?'pingzctive':''}} " data-id="1" bindtap="comment">详情</view>
  <view class="pingxiangitem {{ping==2?'pingzctive':''}}" data-id="2" bindtap="comment">评论({{totalping}})</view>
</view>

<view class="pingdetail" wx:if="{{ping==1}}">

  <template is="wxParse" data="{{wxParseData:article.nodes}}" />
  <!-- <view class="pingdetailimg">
        <image src="/img/changtu.png"></image>
    </view> -->

</view>

<view class='commentdetail' wx:else>

  <view class="nodata" wx:if="{{commentlist.length==0}}">暂无评论</view>

  <view wx:else>
    <view class="commentitem" wx:for="{{commentlist}}" wx:key="">
      <view class="commentitemtop">
        <view class="commentleft">
          <view class="commentitemleft">
            <image src="{{item.avatar}}"></image>
          </view>
          <view class="commentitemright">{{item.nickname}}</view>
        </view>

        <view class="commentright">{{item.createtime}}</view>

      </view>

      <view class="commenttext">
        {{item.content}}
      </view>

      <view class="pingfen">
        <view class="pingfenleft">
          <view class="pingfenitem">
            <image src="{{item.star>=1?'/img/shixing.png':'/img/kongxing.png'}}"></image>
          </view>
          <view class="pingfenitem">
            <image src="{{item.star>=2?'/img/shixing.png':'/img/kongxing.png'}}"></image>
          </view>
          <view class="pingfenitem">
            <image src="{{item.star>=3?'/img/shixing.png':'/img/kongxing.png'}}"></image>
          </view>
          <view class="pingfenitem">
            <image src="{{item.star>=4?'/img/shixing.png':'/img/kongxing.png'}}"></image>
          </view>
          <view class="pingfenitem">
            <image src="{{item.star>=5?'/img/shixing.png':'/img/kongxing.png'}}"></image>
          </view>
        </view>

        <view class="pingfenname">{{item.star}}分</view>
      </view>

      <view class="pingimg">
        <view class="pingimgitem" wx:for="{{item.images}}" wx:key="">
          <image src="{{item}}"></image>
        </view>

      </view>
    </view>
  </view>

</view>