cart.wxml 3.9 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>