cart.wxml 5.1 KB
<view class="cartboxhead">
  <view class="del" wx:if="{{delshow}}" bindtap="delcart">删除</view>
  <view class="managerlist">
    <view class="cartboxheadright" bindtap="manage">
      <image src="/img/seetingimger.png"></image>
    </view>
    <view class="cartboxrightname">管理</view>
  </view>

</view>
<view class="nodata" wx:if="{{cartlist.length==0}}">暂无数据</view>
<view class="cartbigboxz" wx:else>


  <view class="cartbox gouwuche" wx:for="{{cartlist}}" wx:key="">

    <!-- 视频 -->
    <view class="cartvideo" wx:if="{{item.video_id!=null}}">
      <view class="cartbboxitem" wx:key="" >
        <block catchtap="ti">
          <view class="cartboxitemleft" catchtap="selcart" data-type="1" data-cartid="{{item.id}}">
            <image src="/img/noselect.png" wx:if="{{item.sel==false}}"></image>
            <image src="/img/selectcart.png" wx:else></image>
          </view>

          <view class="cartboxitemright">
            <view class="videoitemimg" data-id="{{item.video_id.id}}" bindtap="videodetail">
              <image src="{{item.video_id.thumbnail}}"></image>

              <view class="anniu">
                <image src="/img/anniu.png"></image>
              </view>
            </view>
            <view class="cartboxitembottom">
              <view class="cartboxitembotleft">
                {{item.video_id.title}}
              </view>
              <block catchtap="ti">
                <picker bindchange="bindPickerChange" value="{{index}}" range="{{item.video_id.videotype}}" data-index="{{index}}">
                  <view class="cartboxitemrightone">
                    <view class="cartbox">{{item.video_id.videotype[item.cartindex]}}</view>

                    <view class="picxian"></view>

                    <view class="cartxuansan">
                      <image src="/img/sanjiaodown.png"></image>
                    </view>
                  </view>
                </picker>
              </block>

            </view>

            <view class="money">¥{{item.videoprice}}</view>
          </view>
        </block>

      </view>
    </view>


    <!-- 图片 -->

    <view class="picbox" wx:if="{{item.pic_id!=null}}">
      <view class="cartbboxitem" wx:key="" bindtap="picdetail" data-id="{{item.pic_id.id}}">
        <view class="cartboxitemleft" catchtap="selcart" data-type="2" data-cartid="{{item.id}}" data-sel="{{item.sel}}">
          <image src="/img/noselect.png" wx:if="{{item.sel==false}}"></image>
          <image src="/img/selectcart.png" wx:else></image>
        </view>

        <view class="cartboxitemright">
          <view class="videoitemimgp">
            <image src="{{item.pic_id.thumbnail}}"></image>
          </view>
          <view class="cartboxitembottom">
            <view class="cartboxitembotleft">
              {{item.pic_id.title}}
            </view>

            <!-- <picker bindchange="bindPickerChange" value="{{index}}" range="{{array}}">


              <view class="cartboxitemrightone">
                <view class="cartbox">{{array[index]}}</view>

                <view class="picxian"></view>

                <view class="cartxuansan">
                  <image src="/img/sanjiaodown.png"></image>
                </view>
              </view>
            </picker> -->
          </view>


          <view class="money" wx:if="{{item.pic_id.vipprice==undefined}}">¥{{item.pic_id.price}}</view>
          <view class="money" wx:else>¥{{item.pic_id.vipprice}}</view>
        </view>
      </view>
    </view>
  </view>
</view>


<view class="cartfoot">
  <view class="cartfootleft">
    <view class="cartfootlefimg" bindtap="selallcart">
      <image src="/img/noselect.png" wx:if="{{totalsel==false}}"></image>
      <image src="/img/selectcart.png" wx:else></image>
    </view>

    <view class="cartfootlefthe">合计:¥{{totalmoney}}</view>
  </view>

  <view class="cartfootright" bindtap="hejisuan">合并计算({{totalcartarr.length}})</view>
</view>

<!-- 底部导航 -->
<view class="teacherfooter">
  <view class="teacherfootitem" bindtap="footersel" data-id="1">
    <view class="teacherfootitemtop shou">
      <image src="{{footersel==1?'/img/shouyeactive.png':'/img/shouye.png'}}"></image>
    </view>
    <view class="teacherfootname {{footersel==1?'selactive':''}}">首页</view>
  </view>


  <view class="teacherfootitem" bindtap="footersel" data-id="2">
    <view class="teacherfootitemtop order">
      <image src="{{footersel==2?'/img/kindactive.png':'/img/kind.png'}}"></image>
    </view>
    <view class="teacherfootname {{footersel==2?'selactive':''}}">分类</view>
  </view>


  <view class="teacherfootitem" bindtap="footersel" data-id="3">
    <view class="teacherfootitemtop rili">
      <image src=" {{footersel==3?'/img/cartactive.png':'/img/cart.png'}}"></image>
    </view>
    <view class="teacherfootname {{footersel==3?'selactive':''}}">购物车</view>
  </view>


  <view class="teacherfootitem" bindtap="footersel" data-id="4">
    <view class="teacherfootitemtop show">
      <image src="{{footersel==4?'/img/mineactive.png':'/img/mine.png'}}"></image>
    </view>
    <view class="teacherfootname {{footersel==4?'selactive':''}}">我的</view>
  </view>

</view>