taocandetail.wxml 4.3 KB
<import src="/wxParse/wxParse.wxml" />

<view class='page{{mask?" active":""}}'>
  <concat/>
  <view class='top'>

    <image src="{{info.image}}" mode="widthFix"></image>
    <!-- <view class='current_box'>{{current+1}}/{{info.images.length}}</view>
    <swiper class='swiper' current='{{current}}' bindchange='getCurrent'>
      <swiper-item class='swiper-item' wx:for='{{info.images}}' wx:key='index'>
        <image src='{{item}}' mode="aspectFill" />
      </swiper-item>
    </swiper> -->
  </view>
  <view class='two'>
    <view class='two_one'>
      <!-- <view class='score'>积分</view> -->
      <view class='price'>¥{{info.goods_price}}</view>
      <view class="lineprice">¥{{info.line_price}}</view>
    </view>
    <view class='two_two'>{{info.name}}</view>
    <!-- <view class='two_three'>
      <view>库存:{{info.sold}}</view>
      <view>销量:{{info.paynum}}</view>
    </view> -->
  </view>
  <view class="list">
    <view class="listitem flex" bindtap="look_more" wx:for="{{taocanlist}}" wx:key="no" data-id="{{item.id}}">
      <view class="listright">
        <image src="{{item.images[0]}}" mode="widthFix"></image>
      </view>
      <view class="listleft ">
      <!-- x{{item.sold}} -->
        <view class="commontwo ">{{item.name}} <text class="sold"></text></view>
        <view class="leftbottom flexone ">
          <view class="botleft ">¥{{item.goods_price}}</view> 
          <view class="botleft lineprice">¥{{item.line_price}}</view> 
        </view>
      </view>
      
    </view>

  </view>

   <!-- <view class="list>
        <view class="listitem flex">
          <view class="listleft">
            <view class="top commontwo {{item.image==''?'ktop':''}}"></view>
            <view class="leftbottom flexone">
              <view class="botleft"></view>
              <view class="botright"></view>
            </view>
          </view>
          <view class="listright">
            <image src="" mode="widthFix"></image>
          </view>
        </view>

      </view> -->




      <view class='bottom'>
        <!-- <view class='cart_box' catchtap="go_car">
          <view class='cart_img'>
            <view class='cart_count'>{{info.shop}}</view>
            <image src='/images/icon_51.png'></image>
          </view>
          <view class='cart_font'>购物车</view>
        </view> -->

        <!-- <view class="sc_box" catchtap="colloct">
          <image src="{{info.colloct?'/images/sc@.png':'/images/sc.png'}}" />
          <view class="{{info.colloct?'active':''}}">{{info.colloct?'已收藏':'收藏'}}</view>
        </view> -->

        <!-- <view class='left_btn' bindtap='change_cover' data-type="1">加入购物车</view> -->
        <view class='right_btn' bindtap='change_cover' data-type="2">立即购买</view>

        <!-- 遮罩 -->
        <view class="bottom_cover" catchtap="go_login" wx:if="{{no_login}}" />
      </view>
    </view>
    <!-- 弹框开始 -->
    <view class='mask' wx:if='{{mask}}' bindtap="change_cover" catchtouchmove="true">
      <view class='mask_diceng'>
        <view class='mask_one'>
          <view class='mask_img'>
            <image src='{{info.image}}'></image>
          </view>
          <view class='img_right'>
            <view class='info_title'>{{info.name}}</view>
            <view class='two_ones'>
              <!-- <view class='scores'>积分</view> -->
              <view class='prices'>¥{{info.goods_price}}</view>
              <view class="lineprice">¥{{info.line_price}}</view>
            </view>
          </view>
        </view>
        <view class='mask_two'>
          <view class='mask_two_name'>购买数量</view>
          <view class='operation_box'>
            <view class='operation_btn' data-type="0" catchtap="num_change">
              <image src='/images/reduce.png'></image>
            </view>
            <view class='operation_count'>{{num}}</view>
            <view class='operation_btn' data-type="1" catchtap="num_change">
              <image src='/images/add.png'></image>
            </view>
          </view>
        </view>
        <view class='mask_three'>
          <view class='mask_btn1' bindtap='addshop' wx:if="{{btn_type == 1}}">加入购物车</view>
          <view class='mask_btn2' bindtap='purchaseNow' wx:elif="{{btn_type == 2}}">立即购买</view>
        </view>
      </view>

    </view>
    <!-- 弹框结束-->