
Some checks are pending
Actions / Litemall-all (11) (push) Waiting to run
Actions / Litemall-all (11.0.3) (push) Waiting to run
Actions / Litemall-all (8) (push) Waiting to run
Actions / Litemall-all (8.0.192) (push) Waiting to run
Actions / Litemall-admin (10.x) (push) Waiting to run
Actions / Litemall-admin (12.x) (push) Waiting to run
Actions / Litemall-admin (14.x) (push) Waiting to run
Actions / Litemall-vue (10.x) (push) Waiting to run
Actions / Litemall-vue (12.x) (push) Waiting to run
Actions / Litemall-vue (14.x) (push) Waiting to run
61 lines
2.7 KiB
Plaintext
61 lines
2.7 KiB
Plaintext
<view class="container">
|
||
<view class="no-login" wx:if="{{!hasLogin}}">
|
||
<view class="c">
|
||
<text>还没有登录</text>
|
||
<button style="background-color:#A9A9A9" bindtap="goLogin">去登录</button>
|
||
</view>
|
||
</view>
|
||
<view class='login' wx:else>
|
||
<view class="service-policy">
|
||
<view class="item">30天无忧退货</view>
|
||
<view class="item">48小时快速退款</view>
|
||
<view class="item">满88元免邮费</view>
|
||
</view>
|
||
<view class="no-cart" wx:if="{{cartGoods.length <= 0}}">
|
||
<view class="c">
|
||
<text>空空如也~</text>
|
||
<text>去添加点什么吧</text>
|
||
</view>
|
||
</view>
|
||
<view class="cart-view" wx:else>
|
||
<view class="list">
|
||
<view class="group-item">
|
||
<view class="goods">
|
||
<view class="item {{isEditCart ? 'edit' : ''}}" wx:for="{{cartGoods}}" wx:key="id">
|
||
<van-checkbox value="{{ item.checked }}" bind:change="checkedItem" data-item-index="{{index}}"></van-checkbox>
|
||
<view class="cart-goods">
|
||
<image class="img" src="{{item.picUrl}}"></image>
|
||
<view class="info">
|
||
<view class="t">
|
||
<text class="name">{{item.goodsName}}</text>
|
||
<text class="num">x{{item.number}}</text>
|
||
</view>
|
||
<view class="attr">{{ isEditCart ? '已选择:' : ''}}{{item.specifications||''}}</view>
|
||
<view class="b">
|
||
<text class="price">¥{{item.price}}</text>
|
||
<view class="selnum">
|
||
<view class="cut" bindtap="cutNumber" data-item-index="{{index}}">-</view>
|
||
<input value="{{item.number}}" class="number" disabled="true" type="number" />
|
||
<view class="add" bindtap="addNumber" data-item-index="{{index}}">+</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
</view>
|
||
<view class="cart-bottom">
|
||
<van-checkbox value="{{ checkedAllStatus }}" bind:change="checkedAll">全选({{cartTotal.checkedGoodsCount}})</van-checkbox>
|
||
<view class="total">{{!isEditCart ? '¥'+cartTotal.checkedGoodsAmount : ''}}</view>
|
||
<view class='action_btn_area'>
|
||
<view class="{{!isEditCart ? 'edit' : 'sure'}}" bindtap="editCart">{{!isEditCart ? '编辑' : '完成'}}</view>
|
||
<view class="delete" bindtap="deleteCart" wx:if="{{isEditCart}}">删除({{cartTotal.checkedGoodsCount}})</view>
|
||
<view class="checkout" bindtap="checkoutOrder" wx:if="{{!isEditCart}}">下单</view>
|
||
<!-- </view> -->
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view> |