You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
2.3 KiB
48 lines
2.3 KiB
<!--pages/cart/cart.wxml-->
|
|
<view>
|
|
<scroll-view class="scrol_view_style" scroll-x="{{false}}" scroll-y="{{true}}">
|
|
<view style="height: 10rpx;"></view>
|
|
<view wx:for-items="{{cartlistsee}}" class="list_item_style" wx:key="{{ index }}">
|
|
<checkbox-group bindchange="checkboxChange" style="height:100%" data-index="{{index}}" data-checks="{{item.checks}}">
|
|
<view class="carts_box">
|
|
<checkbox value="{{item.cart_id}}" checked="{{item.checks}}" class="checkbox_one" data-index="{{index}}" bindtap="allCheckbox" />
|
|
<image src="{{item.url}}" class="good_main_image" style="border-radius: 20px;"></image>
|
|
<view class="cart_content_right">
|
|
<text class="item_good_title">{{item.food_name}}</text>
|
|
<view class="price_back_view">
|
|
<text class="right_list_item_price">¥{{item.price}}</text>
|
|
</view>
|
|
<view class="cart_content_bottom">
|
|
<view class='btn_wrap'>
|
|
<!-- <image src="/images/reduce.png" class = "reduce_image_style" id = "{{index}}" bindtap = "reduceButtonClick"></image> -->
|
|
<input type='text' value='-' disabled='true' id="{{index}}" bindtap="reduceButtonClick"></input>
|
|
<input type='text' value="{{item.num}}" />
|
|
<!-- <image src="/images/add.png" class = "add_image_style" id = "{{index}}" bindtap = "addButtonClick"></image> -->
|
|
<input type='text' value='+' disabled='true' id="{{index}}" bindtap="addButtonClick"></input>
|
|
</view>
|
|
<view class="delete" bindtap="deleteGoods" id="{{index}}">删除</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</checkbox-group>
|
|
</view>
|
|
<view class='buy_shop'>
|
|
<view class="select_allbox">
|
|
<checkbox value="{{item.food_name}}" checked="{{checked}}" style='margin-left:20rpx;' bindtap='setChecked' />
|
|
<text>全选</text>
|
|
</view>
|
|
<view class='heji'>
|
|
<text class='price'>合计:</text>
|
|
<text class='all_shop_price'>¥{{total_all_price}}</text>
|
|
</view>
|
|
<view class='jiesuan' bindtap="toBuy">
|
|
<text>结算</text>
|
|
</view>
|
|
</view>
|
|
<view style="height:10px;background-color:#F5F5F5;width:100%"></view>
|
|
<view class='no_shop' wx:if="{{is_shop}}">
|
|
<text>购物车中没有商品</text>
|
|
</view>
|
|
</scroll-view>
|
|
</view>
|