You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
3.2 KiB
Plaintext
65 lines
3.2 KiB
Plaintext
<view hidden='{{cartFlag}}' class='cy-cart-back'>
|
|
<view class='cy-mask' style='position:fixed; bottom:120rpx;' bindtap='cy_hide' catchtouchmove='true'></view>
|
|
<view class='cy-cart' catchtap='test'>
|
|
<view class='cy-cart-header flex-display'>
|
|
<view class='cy-cart-clear content-center' bindtap='cy_clearCart'>
|
|
<image src='../../images/icon-clear.png'></image>
|
|
<view>清空购物车</view>
|
|
</view>
|
|
<view class='cy-cart-close' bindtap='cy_hide'>
|
|
<text class='iconfont icon-guanbi'></text>
|
|
</view>
|
|
</view>
|
|
<view class='cy-cart-content'>
|
|
<block wx:for="{{list}}" wx:key="index">
|
|
<!-- 套菜明细 -->
|
|
<view class="" wx:if="{{item.isSuit == 3}}">
|
|
<view class='cy-cart-item-view' style="height:auto;">
|
|
<view class='cy-cart-content-name down-center cy-ellipsis' style="color:gray; width:90%">(套菜){{item.productName}} x{{item.count}}</view>
|
|
<view style="min-height:50rpx; cy-ellipsis; color:#c0c0c0; font-size:28rpx; padding-left:15rpx;">{{item.showName}}</view>
|
|
</view>
|
|
</view>
|
|
<!-- 套菜 -->
|
|
<view wx:if="{{item.isSuit == 2}}" class='{{index != 0 ? " cy-cart-line ":" "}}' style="width:750rpx;">
|
|
<view class='cy-cart-item-view down-center' style='margin-top:15rpx;'>
|
|
<view class='cy-cart-content-name cy-ellipsis down-center'>{{item.productName}}</view>
|
|
<view class='cy-cart-content-count down-center'>¥{{item.receivable}}</view>
|
|
<view class='cy-product-width flex-display'>
|
|
<image src='../../images/icon-sub.png' data-index="{{index}}" class='cy-product-sym ' bindtap='cy_subCartItem' />
|
|
<view class='cy-product-count content-center' style="color:#333;">{{item.count}}</view>
|
|
<view class='cy-product-sym content-center' style='background: {{color}};' data-index="{{index}}" bindtap='cy_addCartItem'>
|
|
<image class="iconfont iconjiahao" style="color:{{color}};" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- 普通菜 -->
|
|
<view wx:if="{{item.isSuit == 1}}" class='cy-cart-item {{index != 0 ? "cy-cart-line":""}}'>
|
|
<view class='cy-cart-item-view down-center' style='margin-top:15rpx;'>
|
|
<view class='cy-cart-content-name down-center cy-ellipsis'>{{item.productName}}</view>
|
|
<view class='cy-cart-content-count down-center'>
|
|
<block wx:if="{{item.promotionTotalPrice>0}}">
|
|
<text style="font-size:32rpx;">¥{{item.promotionTotalPrice}}</text>
|
|
<text class="cy-product-originalPrice">¥{{item.receivable}}</text>
|
|
</block>
|
|
<block wx:else>
|
|
¥{{item.receivable}}
|
|
</block>
|
|
</view>
|
|
<view class='cy-product-width flex-display'>
|
|
<image src='../../images/icon-sub.png' data-index="{{index}}" class='cy-product-sym ' bindtap='cy_subCartItem' />
|
|
<view class='cy-product-count content-center' style="color:#333;">{{item.count}}</view>
|
|
<view class='cy-product-sym content-center' style='background: {{color}};' data-index="{{index}}" bindtap='cy_addCartItem'>
|
|
<image class="iconfont iconjiahao" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class='cy-cart-item-view cy-ellipsis' style='color:#999'>
|
|
<text>{{item.showName}}</text>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
<view style="height:32rpx;"></view>
|
|
</view>
|
|
</view>
|
|
</view> |