1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <!--pages/shop-cart/index.wxml-->
- <view class="container">
- <view class="noShop" wx:if="{{goodsList.list.length<=0}}">
- <view class="title-box">
- {{goodsList.list.length}}
- 当前还没有预约~
- </view>
- <view class="to-index-btn" bindtap="toIndexPage">
- 去浏览
- </view>
- </view>
- <view class="shopBox" wx:else>
- <view class="list-top">
- <view class="label">订单</view>
- <view class="edit-btn" bindtap="editTap" hidden="{{!goodsList.saveHidden}}">编辑</view>
- <view class="edit-btn" bindtap="saveTap" hidden="{{goodsList.saveHidden}}">完成</view>
- </view>
- <view class="goodsList">
- <view class="a-gooods" wx:for="{{goodsList.list}}" wx:key="{{index}}" >
- <view class="a-goods-conts {{item.active ? 'active' : ''}}" bindtap="selectTap" bindtouchstart="touchS" bindtouchmove="touchM" bindtouchend="touchE" data-index="{{index}}" style="margin-left:{{item.left}}">
- <view class="goods-info">
- <view class="img-box">
- <image src="{{item.pic}}" class="img"/>
- </view>
- <view class="text-box">
- <view class="goods-title">{{item.name}}</view>
- <view class="goods-label">{{item.label}}</view>
- <view class="goods-price">¥ {{item.price}}</view>
-
- </view>
- </view>
- <view class="delete-btn" data-index="{{index}}" catchtap="delItem">
- 删除
- </view>
- </view>
- </view>
- </view>
- <view class="jiesuan-box">
- <view class="left-price">
- <view class="all-selected {{goodsList.allSelect?'active':''}}" bindtap="bindAllSelect">全选</view>
- <view class="total" hidden="{{noSelect}}">合计:¥{{goodsList.totalPrice}}</view>
- </view>
- <view class="to-pay-btn" bindtap="toPayOrder" hidden="{{!goodsList.saveHidden}}">去下单{{totalPrice}}</view>
- <view class="to-pay-btn {{noSelect?'no-select':''}}" hidden="{{goodsList.saveHidden}}" bindtap="deleteSelected">删除</view>
- </view>
- </view>
- </view>
|