detail_1.wxml 7.3 KB
<!--pages/kind/detail_1/detail_1.wxml-->
<!-- 商品 -->

<view class="pagecontainer">

  <import src="../../../wxParse/wxParse.wxml" />
  <view class='container'>
    <view class='ware_box'>
      <view class='ware_top'>
        <view class='ware_1'>
          <image src='{{detailCon.thumb}}'></image>

          <view wx:if="{{over}}">
            <view class='ware_1_time' wx:if="{{detailCon.percent!=100}}">
              {{days}}天{{hours}}小时{{minutes}}分{{seconds}}秒
            </view>

            <view class='ware_1_time' wx:else>已成团</view>
          </view>

          <view class='ware_1_over' wx:else>
            <!-- {{detailCon.open_time}} -->
            已结束
          </view>
        </view>
        <view class='ware_text'>
          <view class='ware_2'>
            <text class='ware_2Txt1'>{{detailCon.name}}</text>
            <text class='ware_2Txt2'>产地:{{detailCon.origin}}</text>
          </view>
          <view class='ware_3'>
            <progress percent="{{detailCon.percent}}" show-info color="#B5DE96" border-radius="8" font-size="24rpx" stroke-width="16rpx" />
          </view>
          <view class='ware_4'>
            <text>已拼{{detailCon.numb}}份,目标{{detailCon.group}}份</text>
          </view>
          <view class='ware_5'>
            <view>
              <text class='ware5_t1'>¥{{detailCon.money_sale}}/</text>
              <text class='ware5_t2'>{{detailCon.shop_type}}</text>
            </view>
            <view class='ware5_box'>
              <view class='ware5_t3'>{{detailCon.text_table}}</view>
              <view class='ware5_t4'>{{detailCon.text_content}}</view>
            </view>

            <view wx:if="{{over}}">
              <view class='ware_6' bindtap='goConfirm' wx:if="{{detailCon.percent!=100}}">
                立即参团
              </view>

              <view class='ware_6' wx:else>已成团</view>
            </view>


            <view class="waretext" wx:else>活动结束</view>
          </view>
        </view>
      </view>
      <view class='ware_bot'>
        <view class='ware_bot_tit'>经典推荐</view>
        <view class='ware_bot_txt'>{{detailCon.recommend}}</view>
      </view>
    </view>
  </view>
  <!-- 商品规格 -->
  <view class='spec'>
    <view class='spec_txt'>商品规格</view>
    <view class='spec_txt2'>{{detailCon.shop_type1}}</view>
  </view>
  <!-- 商品详情 -->
  <view class='ware_detail'>
    <view class='ware_detail_tit'>
      <view class="ware_detail_box {{index == 1 ? 'ware_active' : ''}}" bindtap='goy' data-id="1">商品详情</view>
      <view class="ware_detail_box {{index == 2 ? 'ware_active' : ''}}" bindtap='goy' data-id="2">用户评价</view>
    </view>
    <view class='ware_detailC'>
      <view class='ware_detailImg' wx:if="{{index == 1}}">

        <!-- <template is="wxParse" data="{{wxParseData:content.nodes}}" /> -->
        <template is="wxParse" data="{{wxParseData:article.nodes}}" />
      </view>
      <!-- 用户评价 -->
      <view class='ware_assess' wx:if="{{index == 2}}">

        <view class="noping" wx:if="{{assess.length==0}}">
          <view class="noorder">
            <image src="/img/noorder.png" mode="widthFix"></image>
          </view>

          <view class="noordertitle">暂无评价</view>
        </view>

        <view wx:else>
          <!-- <block wx:if="{{seemore}}">
            <view class='ware_assess_li 345' wx:for="{{short}}" wx:key="index">
              <view class='assess_header'>
                <view class='assess_headerImg'>
                  <image src='{{item.avatar}}'></image>
                </view>
                <view class='assess_headerTxt'>{{item.user_nickname}}</view>
              </view>
              <view class='assess_say'>
                {{item.text}}
              </view>
              <block wx:if="{{item.img.length!=0}}">
                <view class='ware_pic'>
                  <view class='ware_picBox' wx:for="{{item.img}}" wx:key=''>
                    <image src='{{item}}'></image>
                  </view>
                </view>
              </block>
              <view class='assess_time'>2019/07/01</view>
            </view>
          </block> -->
          <block>
            <view class='ware_assess_li 123' wx:for="{{assess}}" wx:key="index" wx:for-item="items" wx:for-index="indexs">
              <view class='assess_header'>
                <view class='assess_headerImg'>
                  <image src='{{items.avatar}}'></image>
                </view>
                <view class='assess_headerTxt'>{{items.user_nickname}}</view>
              </view>
              <view class='assess_say'>
                {{items.text}}
              </view>
              <block wx:if="{{item.img.length!=0}}">
                <view class='ware_pic' >
                  <view class='ware_picBox' wx:for="{{items.img}}" wx:key=''>
                    <image src='{{item}}' bindtap="previewImage" data-src="{{item}}" data-idx="{{indexs}}"></image>
                  </view>
                </view>
              </block>
              <view class='assess_time'>{{items.create_time}}</view>
            </view>
          </block>






          <block wx:if="{{assess.length==5}}">
            <view class='whole' wx:if="{{seemore}}" bindtap="moresee">
              查看全部评价
            </view>

          </block>
        </view>

      </view>
    </view>
  </view>
  <!-- footer底部 -->
  <view class='footer'>

    <view class="kefu">
      <view class="iconfont icon-kefu"></view>
      <button class="remaindetail" open-type="contact" style="margin-left: 0"></button>
    </view>
    <view class='footer_add' bindtap='addFun' wx:if="{{detailCon.collect_type==0}}">加入收藏</view>
    <view class='footer_add' bindtap='addFun' wx:if="{{detailCon.collect_type==1}}">取消收藏</view>

    <view wx:if="{{over}}">
      <view class='footer_off' bindtap='goConfirm' wx:if='{{detailCon.percent!=100}}'>立即参团</view>
      <view class='footer_off' wx:else bindtap='group'>已成团</view>
    </view>

    <view class='footer_over' wx:else bindtap="gameover">活动结束</view>
  </view>
  <!-- 遮罩层 -->
  <view class="mask" catchtouchmove="preventTouchMove" wx:if="{{showModal}}"></view>
  <!-- 弹出层 -->
  <view class="modalDlg" wx:if="{{showModal}}">
    <view class='modalDlg_p'>
      <view class='m_top'>
        <view class='m_topImg'>
          <image src='{{detailCon.thumb}}'></image>
        </view>
        <view class='m_topTxt'>
          <view class='m_topTxt1'>
            <view class='m_topName'>{{detailCon.name}}</view>
            <image bindtap='m_close' src='../../../img/cha.png'></image>
          </view>
          <view class='m_topTxt2'>
            <view class='m_topPrice'>¥{{detailCon.money_sale}}</view>
            <view class='m_topHelf'>{{detailCon.shop_type}}</view>
          </view>
        </view>
      </view>
      <view class='m_number'>
        <view class='m_numTxt'>购买数量</view>
        <view class='minus_push'>
          <view class='minus' bindtap="bindMinus">-</view>
          <view class='num' bindchange="bindManual">{{num}}</view>
          <view class='push' bindtap="bindPlus">+</view>
        </view>
      </view>
      <button class='m_btn' bindtap='goFirm_order1' data-id="{{detailCon.shop_id}}">确认</button>
    </view>
  </view>
</view>