This commit is contained in:
2025-05-13 16:56:30 +08:00
838 changed files with 923 additions and 88523 deletions

View File

@ -1,11 +0,0 @@
{
"navigationBarTitleText": "购物车",
"enablePullDownRefresh": true,
"usingComponents": {
"u-image": "/components/uview-ui/components/u-image/u-image",
"price-format": "/components/price-format/price-format",
"u-number-box": "/components/uview-ui/components/u-number-box/u-number-box",
"u-icon": "/components/uview-ui/components/u-icon/u-icon",
"u-button": "/components/uview-ui/components/u-button/u-button"
}
}

View File

@ -1 +0,0 @@
<view class="shop-cart"><view class="u-m-32"><block wx:if="{{$root.g0>0}}"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="u-text-right nr" bindtap="__e">{{!isEdit?'编辑':'完成'}}</view></block><block wx:for="{{cartLists}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="u-m-t-40"><view class="bg-white br16 u-p-24 row"><view class="select checkbox"><checkbox class="checkbox" type="circle" value="{{item.cart_id+''}}" checked="{{item.selected==1}}" data-event-opts="{{[['tap',[['changOneSelect',['$0','$1'],[[['cartLists','',index,'cart_id']],[['cartLists','',index,'selected']]]]]]]}}" bindtap="__e"></checkbox></view><view class="row flex1 u-col-top"><view><u-image vue-id="{{'9fac4ca8-1-'+index}}" src="{{item.img}}" width="160" height="160" border-radius="8" bind:__l="__l"></u-image></view><view class="u-m-l-16"><navigator url="{{'/pages/shop/shop?id='+item.goods_id}}" hover-class="none"><view class="u-line-2">{{item.name}}</view></navigator><view class="sm text-999 u-m-t-8 attr u-text-center u-p-l-16 u-p-r-16 u-p-6-8 u-p-b-8"><text>味浓芳香</text><text class="u-m-l-8 u-m-r-8">|</text><text>味浓芳香</text><text class="u-m-l-8 u-m-r-8">|</text><text>味浓芳香</text></view><view class="u-m-t-16 row-between"><view class="primary"><price-format vue-id="{{'9fac4ca8-2-'+index}}" price="{{item.price}}" subscriptSize="{{22}}" firstSize="{{34}}" secondSize="{{26}}" bind:__l="__l"></price-format></view><view><block wx:if="{{!isEdit}}"><view><u-number-box vue-id="{{'9fac4ca8-3-'+index}}" disabled="{{item.cart_status!=0}}" value="{{item.goods_num}}" min="{{1}}" max="{{item.item_stock}}" data-event-opts="{{[['^change',[['countChange',['$event','$0','$1'],[[['cartLists','',index,'cart_id']],[['cartLists','',index]]]]]]]}}" bind:change="__e" bind:__l="__l"></u-number-box></view></block><block wx:if="{{isEdit}}"><view data-event-opts="{{[['tap',[['deleteCartGoods',['$0'],[[['cartLists','',index,'cart_id']]]]]]]}}" catchtap="__e"><u-icon vue-id="{{'9fac4ca8-4-'+index}}" name="trash" size="32" color="#999" bind:__l="__l"></u-icon></view></block></view></view></view></view></view></view></block><block wx:if="{{!(cartType!=2)}}"><view hidden="{{!(!(cartType!=2))}}" class="cart-null column-center mb20" style="padding:80rpx 0 50rpx;"><image class="img-null" src="{{cloudPath+'img/cart_null.png'}}"></image><view class="muted mb20">购物车暂无任何商品~</view></view></block></view><block wx:if="{{!isLogin}}"><view class="login column-center u-m-t-80"><image class="img-null" src="{{cloudPath+'img/cart_null.png'}}" width="1200" height="1200" mode="aspectFill"></image><view class="muted mt20">登录后才能查看购物车哦</view><navigator class="mt20 br60 row-center btn text-default" url="/pages/login/login" hover-class="none"><text>去登录</text></navigator></view></block><block wx:if="{{!(cartType!=1)}}"><view class="fixed footer bg-white w-full row-between u-col-center px32"><view><checkbox-group data-event-opts="{{[['change',[['changeAllSelect',['$event']]]]]}}" class="row checkbox" bindchange="__e"><checkbox id="checkAll" value="all" checked="{{isSelectedAll}}"></checkbox><label class="ml10" for="checkAll">全选</label></checkbox-group></view><view class="row"><view class="row-center"><view>合计:</view><view class="primary u-m-l-8" style="margin-top:-8rpx;"><price-format vue-id="9fac4ca8-5" price="{{totalPrice}}" subscriptSize="{{32}}" firstSize="{{40}}" secondSize="{{32}}" bind:__l="__l"></price-format></view></view><view class="u-m-l-24"><u-button vue-id="9fac4ca8-6" hover-class="none" customStyle="{{({width:'228rpx',height:'80rpx',backgroundColor:themeColor,color:'#fff',border:'none',padding:'16rpx 0',borderRadius:'64rpx'})}}" hair-line="{{false}}" data-event-opts="{{[['^click',[['goToConfirm']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">结算</u-button></view></view></view></block></view>

View File

@ -1,31 +0,0 @@
@charset "UTF-8";
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
.shop-cart {
padding-bottom: 200rpx;
}
.attr {
background-color: #F5F5F5;
border-radius: 88rpx;
}
.fixed {
height: 112rpx;
position: fixed;
bottom: 0px;
left: 0;
right: 0;
box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.1);
}