购物车"/>
微信小程序之购物车
index.wxml
<!--pages/shopcart/shopcart.wxml--> < view class= 'container' hidden= "{{iscart}}"> <!-- 上部分 --> < view class= 'section section-good'> < checkbox-group bindchange= "checkboxChange"> < view class= 'good' wx:for= '{{goodList}}' wx:for-item= "good" wx:key= "good.name"> <!--第一个盒子 --> < view class= 'good_title'> < view class= 'shangjia'>京东到家 </ view > < view class= 'shanchu'> < view class= 'shanchu_trash' bindtap= "deleteList">< image src= '/assets/images/trash.png'></ image ></ view > <!-- 删除 --> </ view > </ view > <!-- 第二个盒子 --> < view class= 'good_content'> < view class= 'good_checkbox'> < label class= "checkbox"> < checkbox value= "{{good.isbn}}" checked= "{{good.checked}}" hidden= 'hidden' / > < icon type= "circle" size= "23" wx:if= "{{!good.checked}}"></ icon > < icon type= "success" size= "23" wx:if= "{{good.checked}}"></ icon > </ label > </ view > < view class= 'good_img'> < image class= 'cover' src= '{{good.cover}}'></ image > </ view > < view class= 'content'> < view class= 'titles'>{{good.desc}} </ view > </ view > < view class= 'good_footer'> < view class= 'price'>¥{{good.price}} </ view > < view class= 'stepper'> < view class= 'subtract {{good.count == 1 ? "disabled": ""}}' data-index= '{{index}}' catchtap= 'subtracttap'>- </ view > < input class= 'count' type= 'number' value= '{{good.count}}'></ input > < view class= 'add' data-index= "{{index}}" catchtap= 'addtap'>+ </ view > </ view > </ view > </ view ></ view > </ checkbox-group > </ view >
<!-- 底部 --> < view class= 'section-bottom'> < checkbox-group bindchange= "selectalltap"> < label class= 'checkbox-allcheck'> < checkbox value= "{{!checkAll}}" checked= "{{checkAll}}" hidden= 'hidden' / > <
更多推荐
微信小程序之购物车
发布评论