|
@@ -1,227 +1,84 @@
|
|
<template>
|
|
<template>
|
|
- <view class="container cart clearfix" v-if="hasLogin" :style="{ paddingTop: CustomBar + 'px' }">
|
|
|
|
|
|
+ <view class="cart" :style="{ paddingTop: CustomBar + 'px' }">
|
|
<header-cart
|
|
<header-cart
|
|
:systeminfo="systeminfo"
|
|
:systeminfo="systeminfo"
|
|
:navbar-data="nvabarData"
|
|
:navbar-data="nvabarData"
|
|
:headerBtnPosi="headerBtnPosi"
|
|
:headerBtnPosi="headerBtnPosi"
|
|
:page="1"
|
|
:page="1"
|
|
></header-cart>
|
|
></header-cart>
|
|
- <tui-skeleton
|
|
|
|
- v-if="skeletonShow"
|
|
|
|
- backgroundColor="#fafafa"
|
|
|
|
- borderRadius="10rpx"
|
|
|
|
- :isLoading="true"
|
|
|
|
- :loadingType="5"
|
|
|
|
- ></tui-skeleton>
|
|
|
|
- <view class="container-cart-main tui-skeleton" :style="{ paddingTop: isshowDelbtn ? '0rpx' : '80rpx' }">
|
|
|
|
- <view
|
|
|
|
- class="foot-check-delbtn"
|
|
|
|
- v-if="!isshowDelbtn && goodsList.length > 0"
|
|
|
|
- :style="{ top: CustomBar + 'px' }"
|
|
|
|
- >
|
|
|
|
- <view class="foot-text"
|
|
|
|
- >共<text>{{ kindCount }}</text
|
|
|
|
- >件商品</view
|
|
|
|
- >
|
|
|
|
- <view class="delBtn" @tap.stop="showDelManager">删除</view>
|
|
|
|
- </view>
|
|
|
|
- <view v-if="!isEmpty" class="container-cart">
|
|
|
|
|
|
+ <template v-if="!isEmpty">
|
|
|
|
+ <template v-if="listType !== 'delete'">
|
|
|
|
+ <!-- 商品统计 / 批量删除商品 -->
|
|
|
|
+ <view class="cart-top">
|
|
|
|
+ <view class="count">共{{ kindCount }}件商品</view>
|
|
|
|
+ <view class="btn" @click="showDelManager">删除</view>
|
|
|
|
+ </view>
|
|
<!-- TODO -->
|
|
<!-- TODO -->
|
|
<view class="receive-coupon">
|
|
<view class="receive-coupon">
|
|
<view class="tip-text">还差¥200可用“满200元减50元”优惠券</view>
|
|
<view class="tip-text">还差¥200可用“满200元减50元”优惠券</view>
|
|
<view class="btn" @click="couponVisible = true">领券</view>
|
|
<view class="btn" @click="couponVisible = true">领券</view>
|
|
</view>
|
|
</view>
|
|
- <view class="cart-content" :style="{ paddingBottom: isIphoneX ? '130rpx' : '100rpx' }">
|
|
|
|
- <view class="goods-list">
|
|
|
|
- <view v-for="(item, index) in goodsList" :key="index" class="goods-item clearfix">
|
|
|
|
- <view class="shoptitle">
|
|
|
|
- <!--选择商店的全部商品"-->
|
|
|
|
- <view class="checkbox-box" @click.stop="checkShop(item)">
|
|
|
|
- <view
|
|
|
|
- class="checkbox iconfont"
|
|
|
|
- :class="[item.checked ? 'icon-xuanze' : 'icon-weixuanze']"
|
|
|
|
- ></view>
|
|
|
|
- </view>
|
|
|
|
- <view class="text">{{ item.name }}</view>
|
|
|
|
- </view>
|
|
|
|
- <view class="productlist">
|
|
|
|
- <view class="goods-pros" v-for="(pros, idx) in item.productList" :key="idx">
|
|
|
|
- <view class="goods-pros-t">
|
|
|
|
- <!--选择商品-->
|
|
|
|
- <view class="checkbox-box" @click.stop="checkProduct(item, pros)">
|
|
|
|
- <view
|
|
|
|
- class="checkbox iconfont"
|
|
|
|
- :class="[pros.productsChecked ? 'icon-xuanze' : 'icon-weixuanze']"
|
|
|
|
- ></view>
|
|
|
|
- </view>
|
|
|
|
- <view class="pros-img" @click.stop="navToListPage(pros)"
|
|
|
|
- ><image :src="pros.mainImage ? pros.mainImage : ''" alt=""
|
|
|
|
- /></view>
|
|
|
|
- <view class="pros-product">
|
|
|
|
- <view class="producttitle" @click.stop="navToListPage(pros)">{{
|
|
|
|
- pros.productName
|
|
|
|
- }}</view>
|
|
|
|
- <view class="productspec">规格:{{ pros.unit ? pros.unit : '' }}</view>
|
|
|
|
- <view class="floor-item-act" v-if="pros.activeStatus == 1">
|
|
|
|
- <text class="tag tag-01" v-if="!pros.heUserId">自营</text>
|
|
|
|
- <text class="tag tag-01" v-else>促销</text>
|
|
|
|
- <text class="tag tag-02" @click.stop="clickPopupShow(pros, 2)"
|
|
|
|
- >活动价</text
|
|
|
|
- >
|
|
|
|
- </view>
|
|
|
|
- <view class="productprice">
|
|
|
|
- <!--使用过滤器对总价改变-->
|
|
|
|
- <view class="price"><text>¥</text>{{ pros.price | NumFormat }}</view>
|
|
|
|
- <view class="count">
|
|
|
|
- <view class="number-box">
|
|
|
|
- <view
|
|
|
|
- class="iconfont icon-jianhao"
|
|
|
|
- @click="changeCountSub(item, pros)"
|
|
|
|
- ></view>
|
|
|
|
- <input
|
|
|
|
- class="btn-input"
|
|
|
|
- type="number"
|
|
|
|
- maxlength="4"
|
|
|
|
- v-model="pros.productCount"
|
|
|
|
- @blur="changeNumber($event, item, pros)"
|
|
|
|
- @focus="changeInput(pros)"
|
|
|
|
- />
|
|
|
|
- <view
|
|
|
|
- class="iconfont icon-jiahao"
|
|
|
|
- @click="changeCountAdd(item, pros)"
|
|
|
|
- ></view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <view class="goods-pros-b clearfix" :class="[isshowDelbtn ? 'none' : 'show']">
|
|
|
|
- <view class="sum-none" v-if="item.reducedPrice > 0">
|
|
|
|
- <text class="money-sign">¥</text>
|
|
|
|
- <text class="money">{{ item.totalOriginalPrice | NumFormat }}</text>
|
|
|
|
- <text class="money-reduced"
|
|
|
|
- >减<text>¥{{ item.reducedPrice | NumFormat }}</text></text
|
|
|
|
- >
|
|
|
|
- </view>
|
|
|
|
- <view class="sum"
|
|
|
|
- >合计:<text class="money"
|
|
|
|
- ><text class="money-sign">¥</text>{{ item.totalPrice | NumFormat }}</text
|
|
|
|
- ></view
|
|
|
|
- >
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <view class="failure-list" v-if="failureList.length > 0">
|
|
|
|
- <view class="failure-title">
|
|
|
|
- <view class="title-txt"
|
|
|
|
- >失效商品<text>{{ failureList.length }}件</text></view
|
|
|
|
- >
|
|
|
|
- <view class="title-btn" @click.stop="deletefailureList"
|
|
|
|
- ><text class="butto">清空失效商品</text></view
|
|
|
|
- >
|
|
|
|
- </view>
|
|
|
|
- <view class="productlist">
|
|
|
|
- <view class="goods-pros" v-for="(failure, failureIdx) in failureList" :key="failureIdx">
|
|
|
|
- <view class="goods-pros-t" @click.stop="navToListPage(failure)">
|
|
|
|
- <!--选择商品-->
|
|
|
|
- <view
|
|
|
|
- class="checkbox-box"
|
|
|
|
- @click.stop="ischeckFailure(failure)"
|
|
|
|
- v-if="isshowDelbtn"
|
|
|
|
- >
|
|
|
|
- <button
|
|
|
|
- class="checkbox iconfont"
|
|
|
|
- :class="[failure.productsChecked ? 'icon-xuanze' : 'icon-weixuanze']"
|
|
|
|
- ></button>
|
|
|
|
- </view>
|
|
|
|
- <text class="img-tip">失效</text>
|
|
|
|
- <view class="pros-img">
|
|
|
|
- <image :src="failure.image ? failure.image : ''" alt="" />
|
|
|
|
- </view>
|
|
|
|
- <view class="pros-product">
|
|
|
|
- <view class="producttitle">{{ failure.name }}</view>
|
|
|
|
- <view class="productspec">规格:{{ failure.unit ? failure.unit : '' }}</view>
|
|
|
|
- <view class="productstate">商品已下架</view>
|
|
|
|
- </view>
|
|
|
|
- <view class="pros-marks" v-if="failure.isFailureLayer"></view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
|
|
+ </template>
|
|
|
|
+ <!-- 购物车列表 -->
|
|
|
|
+ <cm-cart-product
|
|
|
|
+ v-for="(cart, index) in goodsList"
|
|
|
|
+ class="product-list"
|
|
|
|
+ :listType="listType"
|
|
|
|
+ :key="index"
|
|
|
|
+ :data="cart"
|
|
|
|
+ vkey="productList"
|
|
|
|
+ @chooseAll="chooseAll"
|
|
|
|
+ @chooseOne="chooseOne"
|
|
|
|
+ ></cm-cart-product>
|
|
|
|
+
|
|
|
|
+ <!-- 失效商品列表 -->
|
|
|
|
+ <cm-cart-product class="product-list" :key="index" :data="failureList" listType="expired"></cm-cart-product>
|
|
|
|
+
|
|
|
|
+ <!-- 底部按钮 -->
|
|
|
|
+ <view class="footer" :style="[footerBottom]">
|
|
|
|
+ <view class="radio" @click="checkAll">
|
|
|
|
+ <text class="iconfont" :class="[isCheckAll ? 'icon-xuanze' : 'icon-weixuanze']"></text>
|
|
|
|
+ <text class="tip">全选</text>
|
|
</view>
|
|
</view>
|
|
- <!-- 脚部菜单 -->
|
|
|
|
- <view class="footer" :style="{ paddingBottom: isIphoneX ? '68rpx' : '0rpx' }">
|
|
|
|
- <view class="footer-le">
|
|
|
|
- <view class="foot-check checkbox-box" @tap.stop="checkAll()">
|
|
|
|
- <button
|
|
|
|
- class="checkbox iconfont"
|
|
|
|
- :class="[isCheckAll ? 'icon-xuanze' : 'icon-weixuanze']"
|
|
|
|
- ></button>
|
|
|
|
- <view class="text">全选</view>
|
|
|
|
|
|
+ <template v-if="!isshowDelbtn">
|
|
|
|
+ <view class="center">
|
|
|
|
+ <view class="row">
|
|
|
|
+ <text>总价:</text> <text class="total-price">¥{{ allPrice | NumFormat }}</text>
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
- <view class="sum">
|
|
|
|
- <view v-if="!isshowDelbtn" class="sum-price">
|
|
|
|
- <view class="row">
|
|
|
|
- <text>总价:</text>
|
|
|
|
- <text class="money-sign">¥</text>
|
|
|
|
- <text class="money">{{ allPrice | NumFormat }}</text>
|
|
|
|
- </view>
|
|
|
|
- <view class="row">
|
|
|
|
- <text>共减:</text>
|
|
|
|
- <text class="discounted-price">¥200.00</text>
|
|
|
|
- <text @click="showDiscountedDetail">优惠明细</text>
|
|
|
|
- <text
|
|
|
|
- class="iconfont"
|
|
|
|
- :class="showDitail ? 'tui-icon-arrowdown' : 'tui-icon-arrowup'"
|
|
|
|
- ></text>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
|
|
+ <!-- TODO -->
|
|
|
|
+ <view class="row">
|
|
|
|
+ <text>共减</text> <text class="discounted-price">¥200.00</text>
|
|
|
|
+ <text @click="showDiscountedDetail">优惠明细</text>
|
|
|
|
+ <text
|
|
|
|
+ class="iconfont"
|
|
|
|
+ :class="showDitail ? 'tui-icon-arrowdown' : 'tui-icon-arrowup'"
|
|
|
|
+ ></text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view v-if="!isshowDelbtn" class="footer-ri">
|
|
|
|
- <view class="btn hanld-btn" @tap="toConfirmation">去结算({{ allCount }})</view>
|
|
|
|
- </view>
|
|
|
|
- <view v-else class="footer-del">
|
|
|
|
- <view class="btn btn-cancel" @tap.stop="hideDelManage">取消</view>
|
|
|
|
- <view class="btn btn-confirm" @tap.stop="deleteList">删除</view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <view v-else class="cart-content empty">
|
|
|
|
- <view class="empty-container">
|
|
|
|
- <image
|
|
|
|
- class="empty-container-image"
|
|
|
|
- :src="StaticUrl + 'icon-empty-cart.png'"
|
|
|
|
- mode="aspectFit"
|
|
|
|
- ></image>
|
|
|
|
- <text class="error-text">购物车空空的,快去逛逛吧~</text>
|
|
|
|
|
|
+ <view class="submit" @click="toConfirmation">去结算({{ allCount }})</view>
|
|
|
|
+ </template>
|
|
|
|
+ <view v-else class="footer-del">
|
|
|
|
+ <view class="btn btn-cancel" @tap.stop="hideDelManage">取消</view>
|
|
|
|
+ <view class="btn btn-confirm" @tap.stop="deleteList">删除</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ </template>
|
|
|
|
+ <view class="empty" v-else>
|
|
|
|
+ <cm-empty :image="StaticUrl + 'icon-empty-cart.png'" message="购物车空空的,快去逛逛吧~"></cm-empty>
|
|
</view>
|
|
</view>
|
|
- <!-- 操作弹窗 -->
|
|
|
|
- <tui-modal
|
|
|
|
- :show="modal"
|
|
|
|
- @click="handleClick"
|
|
|
|
- @cancel="hideModal"
|
|
|
|
- :content="contentModalText"
|
|
|
|
- color="#333"
|
|
|
|
- :size="32"
|
|
|
|
- shape="circle"
|
|
|
|
- :maskClosable="false"
|
|
|
|
- ></tui-modal>
|
|
|
|
- <!-- 促销活动弹窗 -->
|
|
|
|
- <activi-popup :product="handlerPros" :popupShow="popupShow"></activi-popup>
|
|
|
|
<!-- 优惠券列表 TODO-->
|
|
<!-- 优惠券列表 TODO-->
|
|
- <cm-coupon-list title="优惠券" listType="search" :visible="couponVisible" @close="closeCouponList"></cm-coupon-list>
|
|
|
|
|
|
+ <cm-coupon-list
|
|
|
|
+ title="优惠券"
|
|
|
|
+ listType="search"
|
|
|
|
+ :visible="couponVisible"
|
|
|
|
+ @close="closeCouponList"
|
|
|
|
+ ></cm-coupon-list>
|
|
<!-- 优惠明细 -->
|
|
<!-- 优惠明细 -->
|
|
<cm-drawer
|
|
<cm-drawer
|
|
title="优惠明细"
|
|
title="优惠明细"
|
|
:visible="showDitail"
|
|
:visible="showDitail"
|
|
position="bottom"
|
|
position="bottom"
|
|
- :offset="150"
|
|
|
|
|
|
+ :offset="100"
|
|
@close="showDitail = false"
|
|
@close="showDitail = false"
|
|
zIndex="99"
|
|
zIndex="99"
|
|
>
|
|
>
|
|
@@ -235,31 +92,40 @@
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
</cm-drawer>
|
|
</cm-drawer>
|
|
- <!-- 透明模态层 -->
|
|
|
|
- <modal-layer v-if="modallayer"></modal-layer>
|
|
|
|
|
|
+ <!-- 操作弹窗 -->
|
|
|
|
+ <tui-modal
|
|
|
|
+ :show="modal"
|
|
|
|
+ @click="handleClick"
|
|
|
|
+ @cancel="hideModal"
|
|
|
|
+ :content="contentModalText"
|
|
|
|
+ color="#333"
|
|
|
|
+ :size="32"
|
|
|
|
+ shape="circle"
|
|
|
|
+ :maskClosable="false"
|
|
|
|
+ ></tui-modal>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
+
|
|
<script>
|
|
<script>
|
|
import authorize from '@/common/authorize.js'
|
|
import authorize from '@/common/authorize.js'
|
|
-import HeaderCart from '@/components/cm-module/headerNavbar/header-cart.vue' //顶部自定义胶囊'
|
|
|
|
-import activiPopup from '@/components/cm-module/productDetails/cm-activipopu'
|
|
|
|
-import modalLayer from '@/components/cm-module/modal-layer/modal-layer'
|
|
|
|
import CmCouponList from '@/components/cm-module/cm-coupon-list/cm-coupon-list'
|
|
import CmCouponList from '@/components/cm-module/cm-coupon-list/cm-coupon-list'
|
|
import CmDrawer from '@/components/cm-module/cm-drawer/cm-drawer.vue'
|
|
import CmDrawer from '@/components/cm-module/cm-drawer/cm-drawer.vue'
|
|
|
|
+import CmCartProduct from '@/components/cm-module/cm-cart-product/cm-cart-product.vue'
|
|
|
|
+import HeaderCart from '@/components/cm-module/headerNavbar/header-cart.vue'
|
|
|
|
+import CmEmpty from '@/components/cm-module/cm-empty/cm-empty.vue'
|
|
|
|
+
|
|
import { mapGetters, mapActions, mapMutations } from 'vuex'
|
|
import { mapGetters, mapActions, mapMutations } from 'vuex'
|
|
-import { cartList } from '@/common/json/data.json.js' //本地数据
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
- modalLayer,
|
|
|
|
- HeaderCart,
|
|
|
|
- activiPopup,
|
|
|
|
CmCouponList,
|
|
CmCouponList,
|
|
- CmDrawer
|
|
|
|
|
|
+ CmDrawer,
|
|
|
|
+ CmCartProduct,
|
|
|
|
+ HeaderCart,
|
|
|
|
+ CmEmpty
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- StaticUrl: this.$Static,
|
|
|
|
nvabarData: {
|
|
nvabarData: {
|
|
//顶部自定义导航
|
|
//顶部自定义导航
|
|
showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示,
|
|
showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示,
|
|
@@ -267,7 +133,8 @@ export default {
|
|
title: '购物车' // 导航栏 中间的标题
|
|
title: '购物车' // 导航栏 中间的标题
|
|
},
|
|
},
|
|
headerBtnPosi: this.setHeaderBtnPosi(), //获取设备顶部胶囊高度
|
|
headerBtnPosi: this.setHeaderBtnPosi(), //获取设备顶部胶囊高度
|
|
- systeminfo: this.setSysteminfo(), //获取设备信息
|
|
|
|
|
|
+ systeminfo: this.setSysteminfo(),
|
|
|
|
+ StaticUrl: this.$Static,
|
|
CustomBar: this.CustomBar, // 顶部导航栏高度
|
|
CustomBar: this.CustomBar, // 顶部导航栏高度
|
|
popupShow: false,
|
|
popupShow: false,
|
|
handlerPros: {}, //监听单挑促销商品
|
|
handlerPros: {}, //监听单挑促销商品
|
|
@@ -278,11 +145,13 @@ export default {
|
|
skeletonShow: true,
|
|
skeletonShow: true,
|
|
isshowDelbtn: false,
|
|
isshowDelbtn: false,
|
|
scrollHeight: 'auto',
|
|
scrollHeight: 'auto',
|
|
|
|
+ hasNextPage: false,
|
|
modal: false,
|
|
modal: false,
|
|
contentModalText: '',
|
|
contentModalText: '',
|
|
deleteType: 0,
|
|
deleteType: 0,
|
|
couponVisible: false,
|
|
couponVisible: false,
|
|
- showDitail: false
|
|
|
|
|
|
+ showDitail: false,
|
|
|
|
+ listType: 'list'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad() {
|
|
onLoad() {
|
|
@@ -302,6 +171,11 @@ export default {
|
|
//被选中的产品数量
|
|
//被选中的产品数量
|
|
allCount() {
|
|
allCount() {
|
|
return this.cartIds.length
|
|
return this.cartIds.length
|
|
|
|
+ },
|
|
|
|
+ footerBottom() {
|
|
|
|
+ return {
|
|
|
|
+ bottom: this.isIphoneX ? '0' : ''
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
filters: {
|
|
filters: {
|
|
@@ -357,13 +231,9 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
// 关闭优惠券弹窗
|
|
// 关闭优惠券弹窗
|
|
- closeCouponList(){
|
|
|
|
|
|
+ closeCouponList() {
|
|
this.couponVisible = false
|
|
this.couponVisible = false
|
|
},
|
|
},
|
|
- // 优惠明细 TODO
|
|
|
|
- showDiscountedDetail() {
|
|
|
|
- this.showDitail = true
|
|
|
|
- },
|
|
|
|
// 活动价弹窗
|
|
// 活动价弹窗
|
|
clickPopupShow(pros, type) {
|
|
clickPopupShow(pros, type) {
|
|
if (pros.ladderList.length > 0) {
|
|
if (pros.ladderList.length > 0) {
|
|
@@ -371,6 +241,10 @@ export default {
|
|
this.handlerPros = pros
|
|
this.handlerPros = pros
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ // 优惠明细 TODO
|
|
|
|
+ showDiscountedDetail() {
|
|
|
|
+ this.showDitail = true
|
|
|
|
+ },
|
|
// 勾选单个失效商品
|
|
// 勾选单个失效商品
|
|
ischeckFailure(failure) {
|
|
ischeckFailure(failure) {
|
|
this.selectFailure({
|
|
this.selectFailure({
|
|
@@ -379,21 +253,12 @@ export default {
|
|
})
|
|
})
|
|
this.getCheckedProductId()
|
|
this.getCheckedProductId()
|
|
},
|
|
},
|
|
- // 勾选单个商品
|
|
|
|
- checkProduct(shop, product) {
|
|
|
|
- this.selectProduct({
|
|
|
|
- shopId: shop.shopId,
|
|
|
|
- productId: product.productId,
|
|
|
|
- checked: !product.productsChecked
|
|
|
|
- })
|
|
|
|
|
|
+ // 勾选供应商下所有商品
|
|
|
|
+ chooseAll() {
|
|
this.isSelectAll()
|
|
this.isSelectAll()
|
|
},
|
|
},
|
|
- // 勾选商店所有商品
|
|
|
|
- checkShop(shop) {
|
|
|
|
- this.selectAllShopProduct({
|
|
|
|
- shopId: shop.shopId,
|
|
|
|
- checked: !shop.checked
|
|
|
|
- })
|
|
|
|
|
|
+ // 勾选单核商品
|
|
|
|
+ chooseOne() {
|
|
this.isSelectAll()
|
|
this.isSelectAll()
|
|
},
|
|
},
|
|
// 勾选全部商品
|
|
// 勾选全部商品
|
|
@@ -501,12 +366,14 @@ export default {
|
|
//显示删除商品管理
|
|
//显示删除商品管理
|
|
showDelManager() {
|
|
showDelManager() {
|
|
this.isshowDelbtn = true
|
|
this.isshowDelbtn = true
|
|
|
|
+ this.listType = 'delete'
|
|
},
|
|
},
|
|
//隐藏删除商品管理
|
|
//隐藏删除商品管理
|
|
hideDelManage() {
|
|
hideDelManage() {
|
|
this.selectAllFailure(false)
|
|
this.selectAllFailure(false)
|
|
this.getCheckedProductId()
|
|
this.getCheckedProductId()
|
|
this.isshowDelbtn = false
|
|
this.isshowDelbtn = false
|
|
|
|
+ this.listType = 'list'
|
|
},
|
|
},
|
|
//删除购物车商品
|
|
//删除购物车商品
|
|
deleteList() {
|
|
deleteList() {
|
|
@@ -536,6 +403,7 @@ export default {
|
|
//一键删除失效商品
|
|
//一键删除失效商品
|
|
this.removeFailureFromCart().finally(() => {
|
|
this.removeFailureFromCart().finally(() => {
|
|
this.isshowDelbtn = false
|
|
this.isshowDelbtn = false
|
|
|
|
+ this.listType = 'list'
|
|
})
|
|
})
|
|
}
|
|
}
|
|
this.modal = false
|
|
this.modal = false
|
|
@@ -593,753 +461,193 @@ export default {
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
-page {
|
|
|
|
|
|
+.cart {
|
|
|
|
+ padding-bottom: 124rpx;
|
|
background: #f7f7f7;
|
|
background: #f7f7f7;
|
|
- height: auto;
|
|
|
|
-}
|
|
|
|
-.discounted-ditail {
|
|
|
|
- padding: 52rpx 8rpx 16rpx;
|
|
|
|
- .row {
|
|
|
|
|
|
+ min-height: 100%;
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
+ .cart-top {
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
align-items: center;
|
|
- padding: 12rpx 0;
|
|
|
|
- text {
|
|
|
|
|
|
+ padding: 0 24rpx;
|
|
|
|
+ width: 750rpx;
|
|
|
|
+ height: 80rpx;
|
|
|
|
+ background: #f7f7f7;
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
+ .count {
|
|
font-size: 30rpx;
|
|
font-size: 30rpx;
|
|
color: #333333;
|
|
color: #333333;
|
|
- &.red {
|
|
|
|
- color: #f94b4b;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- &.total{
|
|
|
|
- font-size: 30rpx;
|
|
|
|
- font-weight: 600;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- .tip {
|
|
|
|
- padding: 12rpx 0;
|
|
|
|
- font-size: 26rpx;
|
|
|
|
- color: #999999;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-.receive-coupon{
|
|
|
|
- display: flex;
|
|
|
|
- justify-content: space-between;
|
|
|
|
- align-items: center;
|
|
|
|
- padding: 24rpx;
|
|
|
|
- background: #fff;
|
|
|
|
- .tip-text{
|
|
|
|
- font-size: 26rpx;
|
|
|
|
- color: #FF457B;
|
|
|
|
- }
|
|
|
|
- .btn{
|
|
|
|
- width: 88rpx;
|
|
|
|
- height: 42rpx;
|
|
|
|
- background: linear-gradient(270deg, #F83C6C 0%, #FC32B4 100%);
|
|
|
|
- border-radius: 28rpx;
|
|
|
|
- font-size: 26rpx;
|
|
|
|
- color: #FFFFFF;
|
|
|
|
- text-align: center;
|
|
|
|
- line-height: 42rpx;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-.cart-content {
|
|
|
|
- position: relative;
|
|
|
|
-}
|
|
|
|
-.container-cart-main.none {
|
|
|
|
- display: none;
|
|
|
|
-}
|
|
|
|
-.container-cart-main.show {
|
|
|
|
- display: block;
|
|
|
|
-}
|
|
|
|
-.cart-content.empty.none {
|
|
|
|
- display: none;
|
|
|
|
-}
|
|
|
|
-.cart-content.empty.show {
|
|
|
|
- display: block;
|
|
|
|
-}
|
|
|
|
-.container-cart.show {
|
|
|
|
- display: block;
|
|
|
|
-}
|
|
|
|
-.container-cart.none {
|
|
|
|
- display: none;
|
|
|
|
-}
|
|
|
|
-.empty-container.none {
|
|
|
|
- display: none;
|
|
|
|
-}
|
|
|
|
-.empty-container.show {
|
|
|
|
- display: flex;
|
|
|
|
-}
|
|
|
|
-.foot-check-delbtn {
|
|
|
|
- width: 100%;
|
|
|
|
- height: 80rpx;
|
|
|
|
- position: fixed;
|
|
|
|
- top: 0;
|
|
|
|
- left: 0;
|
|
|
|
- box-sizing: border-box;
|
|
|
|
- padding: 15rpx 24rpx;
|
|
|
|
- background-color: #f7f7f7;
|
|
|
|
- z-index: 990;
|
|
|
|
- .foot-text {
|
|
|
|
- font-size: $font-size-26;
|
|
|
|
- height: 50rpx;
|
|
|
|
- line-height: 50rpx;
|
|
|
|
- color: #666666;
|
|
|
|
- float: left;
|
|
|
|
- padding-left: 10rpx;
|
|
|
|
- text {
|
|
|
|
- margin: 0 6rpx;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- .delBtn {
|
|
|
|
- width: 100rpx;
|
|
|
|
- display: inline-block;
|
|
|
|
- padding: 0 15rpx;
|
|
|
|
- font-size: $font-size-26;
|
|
|
|
- height: 50rpx;
|
|
|
|
- line-height: 50rpx;
|
|
|
|
- border-radius: 30rpx;
|
|
|
|
- background: #ffffff;
|
|
|
|
- border: 1px solid #ff457b;
|
|
|
|
- color: #ff457b;
|
|
|
|
- float: right;
|
|
|
|
- text-align: center;
|
|
|
|
- &.none {
|
|
|
|
- display: none;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-.checkbox-box {
|
|
|
|
- display: flex;
|
|
|
|
- align-items: center;
|
|
|
|
- .checkbox {
|
|
|
|
- display: flex;
|
|
|
|
- margin: 0;
|
|
|
|
- padding: 0 5rpx;
|
|
|
|
- display: flex;
|
|
|
|
- flex-direction: column;
|
|
|
|
- align-items: center;
|
|
|
|
- box-sizing: border-box;
|
|
|
|
- text-align: center;
|
|
|
|
- text-decoration: none;
|
|
|
|
- border-radius: 0;
|
|
|
|
- -webkit-tap-highlight-color: transparent;
|
|
|
|
- overflow: hidden;
|
|
|
|
- background-color: #ffffff;
|
|
|
|
- font-size: 36rpx;
|
|
|
|
- color: #999999;
|
|
|
|
- &.icon-xuanze {
|
|
|
|
- color: $color-system;
|
|
|
|
}
|
|
}
|
|
- }
|
|
|
|
- &.disabled {
|
|
|
|
- .checkbox {
|
|
|
|
- color: #999999;
|
|
|
|
|
|
+ .btn {
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ align-items: center;
|
|
|
|
+ width: 88rpx;
|
|
|
|
+ height: 42rpx;
|
|
|
|
+ background: #fff8fd;
|
|
|
|
+ border: 1rpx solid #ff457b;
|
|
|
|
+ border-radius: 24rpx;
|
|
|
|
+ font-size: 26rpx;
|
|
|
|
+ color: #ff457b;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- .text {
|
|
|
|
- font-size: $font-size-24;
|
|
|
|
- margin-left: 10rpx;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-.goods-list {
|
|
|
|
- width: 100%;
|
|
|
|
- height: auto;
|
|
|
|
- background-color: #f7f7f7;
|
|
|
|
- .goods-item {
|
|
|
|
- width: 702rpx;
|
|
|
|
- padding: 0 24rpx;
|
|
|
|
- background: #ffffff;
|
|
|
|
- margin-bottom: 24rpx;
|
|
|
|
- }
|
|
|
|
- .shoptitle {
|
|
|
|
|
|
+ .receive-coupon {
|
|
display: flex;
|
|
display: flex;
|
|
|
|
+ justify-content: space-between;
|
|
align-items: center;
|
|
align-items: center;
|
|
- height: 80rpx;
|
|
|
|
- line-height: 80rpx;
|
|
|
|
- .checkbox-box {
|
|
|
|
- padding: 10rpx;
|
|
|
|
|
|
+ padding: 24rpx;
|
|
|
|
+ background: #fff;
|
|
|
|
+ .tip-text {
|
|
|
|
+ font-size: 26rpx;
|
|
|
|
+ color: #ff457b;
|
|
}
|
|
}
|
|
- .text {
|
|
|
|
- width: 450rpx;
|
|
|
|
- display: block;
|
|
|
|
- overflow: hidden;
|
|
|
|
- text-overflow: ellipsis;
|
|
|
|
- white-space: nowrap;
|
|
|
|
- margin-left: 20rpx;
|
|
|
|
- font-size: $font-size-28;
|
|
|
|
- color: $text-color;
|
|
|
|
- text-align: left;
|
|
|
|
- font-weight: bold;
|
|
|
|
|
|
+ .btn {
|
|
|
|
+ width: 88rpx;
|
|
|
|
+ height: 42rpx;
|
|
|
|
+ background: linear-gradient(270deg, #f83c6c 0%, #fc32b4 100%);
|
|
|
|
+ border-radius: 28rpx;
|
|
|
|
+ font-size: 26rpx;
|
|
|
|
+ color: #ffffff;
|
|
|
|
+ text-align: center;
|
|
|
|
+ line-height: 42rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- .goods-pros {
|
|
|
|
- width: 100%;
|
|
|
|
- height: auto;
|
|
|
|
- margin-bottom: 20rpx;
|
|
|
|
- }
|
|
|
|
- .goods-pros-t {
|
|
|
|
|
|
+ .footer {
|
|
|
|
+ position: fixed;
|
|
|
|
+ bottom: -40rpx;
|
|
|
|
+ left: 0;
|
|
|
|
+ z-index: 899;
|
|
display: flex;
|
|
display: flex;
|
|
|
|
+ justify-content: space-between;
|
|
align-items: center;
|
|
align-items: center;
|
|
width: 100%;
|
|
width: 100%;
|
|
- height: 210rpx;
|
|
|
|
- padding: 0 0 26rpx 0;
|
|
|
|
- .checkbox-box {
|
|
|
|
- padding: 10rpx;
|
|
|
|
- }
|
|
|
|
- .pros-img {
|
|
|
|
- width: 210rpx;
|
|
|
|
- height: 100%;
|
|
|
|
- border-radius: 10rpx;
|
|
|
|
- margin: 0 20rpx;
|
|
|
|
- border: 1px solid #f3f3f3;
|
|
|
|
- image {
|
|
|
|
- width: 100%;
|
|
|
|
- height: 100%;
|
|
|
|
- border-radius: 10rpx;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- .goods-pros-b {
|
|
|
|
- width: 100%;
|
|
|
|
- height: auto;
|
|
|
|
- padding: 0 0 24rpx 0;
|
|
|
|
|
|
+ height: 140rpx;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
- &.show {
|
|
|
|
- display: block;
|
|
|
|
- }
|
|
|
|
- &.none {
|
|
|
|
- display: none;
|
|
|
|
- }
|
|
|
|
- .sum-none {
|
|
|
|
- width: 100%;
|
|
|
|
- height: 48rpx;
|
|
|
|
- line-height: 48rpx;
|
|
|
|
- color: $text-color;
|
|
|
|
- float: left;
|
|
|
|
- text-align: right;
|
|
|
|
- .money {
|
|
|
|
- font-size: $font-size-26;
|
|
|
|
- color: #999999;
|
|
|
|
- text-decoration: line-through;
|
|
|
|
- }
|
|
|
|
- .money-sign {
|
|
|
|
- font-size: $font-size-26;
|
|
|
|
- color: #999999;
|
|
|
|
- text-decoration: line-through;
|
|
|
|
- }
|
|
|
|
- .money-reduced {
|
|
|
|
- margin-left: 10rpx;
|
|
|
|
- font-size: $font-size-26;
|
|
|
|
- color: $color-system;
|
|
|
|
- .iconfont {
|
|
|
|
- font-size: $font-size-34;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- .sum {
|
|
|
|
- width: 100%;
|
|
|
|
- height: 40rpx;
|
|
|
|
- font-size: $font-size-26;
|
|
|
|
- line-height: 40rpx;
|
|
|
|
- color: $text-color;
|
|
|
|
- float: left;
|
|
|
|
- display: flex;
|
|
|
|
- justify-content: flex-end;
|
|
|
|
- font-weight: bold;
|
|
|
|
- .money {
|
|
|
|
- color: $color-system;
|
|
|
|
- font-size: $font-size-26;
|
|
|
|
- }
|
|
|
|
- .money-sign {
|
|
|
|
- font-size: $font-size-24;
|
|
|
|
- color: $color-system;
|
|
|
|
|
|
+ padding: 0 24rpx 40rpx;
|
|
|
|
+ border-top: 1rpx solid #eee;
|
|
|
|
+ background: #ffffff;
|
|
|
|
+ .radio {
|
|
|
|
+ font-size: 36rpx;
|
|
|
|
+ color: #b2b2b2;
|
|
|
|
+ .icon-xuanze {
|
|
|
|
+ color: #f83c6c;
|
|
}
|
|
}
|
|
- }
|
|
|
|
- }
|
|
|
|
- .pros-product {
|
|
|
|
- width: 416rpx;
|
|
|
|
- height: 100%;
|
|
|
|
- line-height: 36rpx;
|
|
|
|
- font-size: $font-size-28;
|
|
|
|
- position: relative;
|
|
|
|
- .producttitle {
|
|
|
|
- width: 100%;
|
|
|
|
- display: inline-block;
|
|
|
|
- height: auto;
|
|
|
|
- text-overflow: ellipsis;
|
|
|
|
- display: -webkit-box;
|
|
|
|
- word-break: break-all;
|
|
|
|
- -webkit-box-orient: vertical;
|
|
|
|
- -webkit-line-clamp: 2;
|
|
|
|
- overflow: hidden;
|
|
|
|
- margin-bottom: 15rpx;
|
|
|
|
- .no-text {
|
|
|
|
- display: inline-block;
|
|
|
|
- height: 36rpx;
|
|
|
|
- padding: 0 12rpx;
|
|
|
|
- line-height: 36rpx;
|
|
|
|
- background: linear-gradient(315deg, rgba(231, 0, 0, 1) 0%, rgba(255, 104, 1, 1) 100%);
|
|
|
|
- border-radius: 18rpx;
|
|
|
|
- text-align: center;
|
|
|
|
- color: #ffffff;
|
|
|
|
- font-size: $font-size-28;
|
|
|
|
- margin-right: 24rpx;
|
|
|
|
|
|
+ .tip {
|
|
|
|
+ font-size: 30rpx;
|
|
|
|
+ color: #333333;
|
|
|
|
+ margin-left: 6rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- .productspec {
|
|
|
|
- height: 36rpx;
|
|
|
|
- color: #999999;
|
|
|
|
- font-size: $font-size-26;
|
|
|
|
- }
|
|
|
|
- .productprice {
|
|
|
|
- width: 100%;
|
|
|
|
- height: 48rpx;
|
|
|
|
- margin: 30rpx 0 0 0;
|
|
|
|
- .price {
|
|
|
|
- line-height: 48rpx;
|
|
|
|
- font-size: $font-size-26;
|
|
|
|
- width: 48%;
|
|
|
|
- color: $color-system;
|
|
|
|
- float: left;
|
|
|
|
- font-weight: bold;
|
|
|
|
- &.disabled {
|
|
|
|
- color: #999999;
|
|
|
|
- text-decoration: line-through;
|
|
|
|
- }
|
|
|
|
- .money-sign {
|
|
|
|
- font-size: $font-size-24;
|
|
|
|
- color: $color-system;
|
|
|
|
|
|
+ .row {
|
|
|
|
+ &:nth-child(1) {
|
|
|
|
+ font-size: 26rpx;
|
|
|
|
+ color: #333333;
|
|
|
|
+ .total-price {
|
|
|
|
+ color: #ff457b;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- .count {
|
|
|
|
- height: 100%;
|
|
|
|
- float: right;
|
|
|
|
- position: relative;
|
|
|
|
- &.show {
|
|
|
|
- display: block;
|
|
|
|
- }
|
|
|
|
- &.none {
|
|
|
|
- display: none;
|
|
|
|
- }
|
|
|
|
- .count-tips {
|
|
|
|
- width: auto;
|
|
|
|
- display: inline-block;
|
|
|
|
- padding: 0 15rpx;
|
|
|
|
- line-height: 44rpx;
|
|
|
|
- height: 44rpx;
|
|
|
|
- border-radius: 22rpx;
|
|
|
|
- background: $btn-confirm;
|
|
|
|
- font-size: $font-size-24;
|
|
|
|
- text-align: center;
|
|
|
|
- color: #ffffff;
|
|
|
|
- position: absolute;
|
|
|
|
- top: -60rpx;
|
|
|
|
- left: -5rpx;
|
|
|
|
- z-index: 5;
|
|
|
|
- &.step {
|
|
|
|
- left: -217rpx;
|
|
|
|
- }
|
|
|
|
- &::before {
|
|
|
|
- content: '';
|
|
|
|
- position: absolute;
|
|
|
|
- bottom: -30rpx;
|
|
|
|
- right: 15rpx;
|
|
|
|
- z-index: 1;
|
|
|
|
- width: 0;
|
|
|
|
- height: 0;
|
|
|
|
- border-width: 18rpx;
|
|
|
|
- border-style: solid;
|
|
|
|
- border-color: $color-system transparent transparent transparent;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- .number-box {
|
|
|
|
- display: flex;
|
|
|
|
- justify-content: center;
|
|
|
|
- align-items: center;
|
|
|
|
- border: 2rpx solid #e1e1e1;
|
|
|
|
- border-radius: 30rpx;
|
|
|
|
- height: 48rpx;
|
|
|
|
- margin-left: 20rpx;
|
|
|
|
- .iconfont {
|
|
|
|
- font-size: $font-size-24;
|
|
|
|
- padding: 0 14rpx;
|
|
|
|
- color: #666666;
|
|
|
|
- text-align: center;
|
|
|
|
- line-height: 48rpx;
|
|
|
|
- font-weight: bold;
|
|
|
|
- background: #ffffff;
|
|
|
|
- &.icon-jianhao {
|
|
|
|
- border-radius: 30rpx 0 0 30rpx;
|
|
|
|
- }
|
|
|
|
- &.icon-jiahao {
|
|
|
|
- border-radius: 0 30rpx 30rpx 0;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- .btn-input {
|
|
|
|
- width: 56rpx;
|
|
|
|
- height: 44rpx;
|
|
|
|
- line-height: 44rpx;
|
|
|
|
- border-radius: 4rpx;
|
|
|
|
- text-align: center;
|
|
|
|
- font-size: $font-size-24;
|
|
|
|
- color: #333333;
|
|
|
|
- background-color: #f7f7f7;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- .uni-numbox {
|
|
|
|
- position: absolute;
|
|
|
|
- left: 45rpx;
|
|
|
|
- bottom: 0;
|
|
|
|
- .uni-numbox-minus,
|
|
|
|
- .uni-numbox-plus {
|
|
|
|
- width: 50rpx;
|
|
|
|
- line-height: 40rpx;
|
|
|
|
- }
|
|
|
|
- .uni-numbox-value {
|
|
|
|
- font-size: $font-size-28;
|
|
|
|
- width: 60rpx;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ &:nth-child(2) {
|
|
|
|
+ margin-top: 6rpx;
|
|
|
|
+ font-size: 24rpx;
|
|
|
|
+ color: #ff457b;
|
|
}
|
|
}
|
|
- }
|
|
|
|
- .floor-item-act {
|
|
|
|
- width: 100%;
|
|
|
|
- height: 30rpx;
|
|
|
|
- margin-top: 8rpx;
|
|
|
|
- float: left;
|
|
|
|
- .tag {
|
|
|
|
- display: inline-block;
|
|
|
|
- height: 32rpx;
|
|
|
|
- font-size: 22rpx;
|
|
|
|
- line-height: 30rpx;
|
|
|
|
- text-align: center;
|
|
|
|
- color: #f83c6c;
|
|
|
|
- float: left;
|
|
|
|
- margin-right: 10rpx;
|
|
|
|
- &.tag-02 {
|
|
|
|
- width: 80rpx;
|
|
|
|
- background: url(https://static.caimei365.com/app/mini-hehe/icon/icon-active.png) top center
|
|
|
|
- no-repeat;
|
|
|
|
- background-size: contain;
|
|
|
|
- }
|
|
|
|
- &.tag-01 {
|
|
|
|
- width: 56rpx;
|
|
|
|
- color: #fff;
|
|
|
|
- background-color: #f83c6c;
|
|
|
|
- border-radius: 4rpx;
|
|
|
|
- }
|
|
|
|
|
|
+ .discounted-price {
|
|
|
|
+ margin-right: 32rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- }
|
|
|
|
-}
|
|
|
|
-.failure-list {
|
|
|
|
- width: 702rpx;
|
|
|
|
- height: auto;
|
|
|
|
- padding: 0 24rpx;
|
|
|
|
- margin-top: 20rpx;
|
|
|
|
- background: #ffffff;
|
|
|
|
- .failure-title {
|
|
|
|
- width: 100%;
|
|
|
|
- height: 82rpx;
|
|
|
|
- line-height: 82rpx;
|
|
|
|
- font-size: $font-size-28;
|
|
|
|
- border-bottom: 1px solid #ebebeb;
|
|
|
|
- .title-txt {
|
|
|
|
- float: left;
|
|
|
|
- color: #666666;
|
|
|
|
- text-align: left;
|
|
|
|
- }
|
|
|
|
- .title-btn {
|
|
|
|
- float: right;
|
|
|
|
- color: $color-system;
|
|
|
|
- text-align: right;
|
|
|
|
|
|
+ .submit {
|
|
|
|
+ width: 210rpx;
|
|
|
|
+ height: 80rpx;
|
|
|
|
+ background: linear-gradient(90deg, #fc32b4 0%, #f83c6c 100%);
|
|
|
|
+ border-radius: 40rpx;
|
|
|
|
+ font-size: 30rpx;
|
|
|
|
+ color: #ffffff;
|
|
|
|
+ text-align: center;
|
|
line-height: 80rpx;
|
|
line-height: 80rpx;
|
|
- .butto {
|
|
|
|
- display: inline-block;
|
|
|
|
- padding: 0 15rpx;
|
|
|
|
- font-size: $font-size-26;
|
|
|
|
- height: 50rpx;
|
|
|
|
- line-height: 50rpx;
|
|
|
|
- border-radius: 30rpx;
|
|
|
|
- background: #fff8fd;
|
|
|
|
- border: 1px solid #ff457b;
|
|
|
|
- color: #ff457b;
|
|
|
|
- margin-top: 15rpx;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- .productlist {
|
|
|
|
- padding-top: 10rpx;
|
|
|
|
- .goods-pros {
|
|
|
|
- width: 100%;
|
|
|
|
- height: auto;
|
|
|
|
- padding: 20rpx 0;
|
|
|
|
}
|
|
}
|
|
- .goods-pros-t {
|
|
|
|
|
|
+ .footer-del {
|
|
|
|
+ width: 420rpx;
|
|
|
|
+ height: 100rpx;
|
|
|
|
+ position: absolute;
|
|
|
|
+ padding-left: 200rpx;
|
|
|
|
+ background: #ffffff;
|
|
|
|
+ right: 0;
|
|
|
|
+ top: 0;
|
|
|
|
+ z-index: 1000;
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
+ padding: 10rpx 0;
|
|
display: flex;
|
|
display: flex;
|
|
- align-items: center;
|
|
|
|
- width: 100%;
|
|
|
|
- height: 210rpx;
|
|
|
|
- position: relative;
|
|
|
|
- .img-tip {
|
|
|
|
- display: block;
|
|
|
|
- width: 72rpx;
|
|
|
|
- height: 36rpx;
|
|
|
|
- line-height: 36rpx;
|
|
|
|
- font-size: $font-size-24;
|
|
|
|
- text-align: center;
|
|
|
|
- color: #ffffff;
|
|
|
|
- border-radius: 24rpx;
|
|
|
|
- background: rgba(51, 51, 51, 0.3);
|
|
|
|
- // position: absolute;
|
|
|
|
- // left: 0;
|
|
|
|
- // top: 0;
|
|
|
|
- }
|
|
|
|
- .checkbox-box {
|
|
|
|
- padding: 10rpx;
|
|
|
|
- }
|
|
|
|
- .pros-img {
|
|
|
|
- width: 180rpx;
|
|
|
|
- height: 100%;
|
|
|
|
- border-radius: 10rpx;
|
|
|
|
- margin: 0 20rpx;
|
|
|
|
- border: 1px solid #f3f3f3;
|
|
|
|
- position: relative;
|
|
|
|
- image {
|
|
|
|
- width: 100%;
|
|
|
|
- height: 100%;
|
|
|
|
- border-radius: 10rpx;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- .pros-marks {
|
|
|
|
- width: 730rpx;
|
|
|
|
- height: 250rpx;
|
|
|
|
- z-index: 90;
|
|
|
|
- background: rgba(0, 0, 0, 0.05);
|
|
|
|
- position: absolute;
|
|
|
|
- left: -20rpx;
|
|
|
|
- top: -20rpx;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- .goods-pros-b {
|
|
|
|
- width: 622rpx;
|
|
|
|
- margin-left: 84rpx;
|
|
|
|
- height: 40rpx;
|
|
|
|
- padding: 0 0 26rpx 0;
|
|
|
|
- // border-top: 1px solid #EBEBEB;
|
|
|
|
&.show {
|
|
&.show {
|
|
- display: block;
|
|
|
|
|
|
+ animation: showDelbtn 0s linear both;
|
|
}
|
|
}
|
|
&.none {
|
|
&.none {
|
|
- display: none;
|
|
|
|
- }
|
|
|
|
- .sum {
|
|
|
|
- font-size: $font-size-28;
|
|
|
|
- line-height: 40rpx;
|
|
|
|
- color: $text-color;
|
|
|
|
- display: flex;
|
|
|
|
- justify-content: flex-end;
|
|
|
|
- .money {
|
|
|
|
- color: #ff2a2a;
|
|
|
|
- font-size: $font-size-28;
|
|
|
|
- }
|
|
|
|
- .money-sign {
|
|
|
|
- font-size: $font-size-24;
|
|
|
|
- color: #ff2a2a;
|
|
|
|
- }
|
|
|
|
|
|
+ animation: hideDelbtn 0s linear both;
|
|
}
|
|
}
|
|
- }
|
|
|
|
- .pros-product {
|
|
|
|
- width: 402rpx;
|
|
|
|
- height: 100%;
|
|
|
|
- line-height: 36rpx;
|
|
|
|
- font-size: $font-size-28;
|
|
|
|
- position: relative;
|
|
|
|
- .producttitle {
|
|
|
|
- width: 100%;
|
|
|
|
- display: inline-block;
|
|
|
|
- height: auto;
|
|
|
|
- text-overflow: ellipsis;
|
|
|
|
- display: -webkit-box;
|
|
|
|
- word-break: break-all;
|
|
|
|
- -webkit-box-orient: vertical;
|
|
|
|
- -webkit-line-clamp: 2;
|
|
|
|
- overflow: hidden;
|
|
|
|
- margin-bottom: 8rpx;
|
|
|
|
- .no-text {
|
|
|
|
- display: inline-block;
|
|
|
|
- height: 36rpx;
|
|
|
|
- padding: 0 12rpx;
|
|
|
|
- line-height: 36rpx;
|
|
|
|
- background: linear-gradient(315deg, rgba(231, 0, 0, 1) 0%, rgba(255, 104, 1, 1) 100%);
|
|
|
|
- border-radius: 18rpx;
|
|
|
|
- text-align: center;
|
|
|
|
- color: #ffffff;
|
|
|
|
- font-size: $font-size-28;
|
|
|
|
- margin-right: 24rpx;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- .productspec {
|
|
|
|
- height: 36rpx;
|
|
|
|
- color: #999999;
|
|
|
|
- font-size: $font-size-26;
|
|
|
|
- margin-top: 20rpx;
|
|
|
|
- }
|
|
|
|
- .productstate {
|
|
|
|
|
|
+ .btn {
|
|
|
|
+ flex: 1;
|
|
|
|
+ margin: 0 8rpx;
|
|
|
|
+ height: 100%;
|
|
|
|
+ line-height: 80rpx;
|
|
font-size: $font-size-28;
|
|
font-size: $font-size-28;
|
|
- height: 44rpx;
|
|
|
|
- color: #ff2a2a;
|
|
|
|
- position: absolute;
|
|
|
|
- bottom: 0;
|
|
|
|
- left: 0;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-.footer {
|
|
|
|
- width: 100%;
|
|
|
|
- background-color: #ffffff;
|
|
|
|
- height: 100rpx;
|
|
|
|
- position: fixed;
|
|
|
|
- bottom: 0rpx;
|
|
|
|
- z-index: 100;
|
|
|
|
- border-top: 1px solid #EFEFEF;
|
|
|
|
- .footer-le {
|
|
|
|
- width: 520rpx;
|
|
|
|
- height: 100%;
|
|
|
|
- padding: 10rpx 24rpx;
|
|
|
|
- float: left;
|
|
|
|
- box-sizing: border-box;
|
|
|
|
- .foot-check {
|
|
|
|
- width: 100rpx;
|
|
|
|
- float: left;
|
|
|
|
- line-height: 80rpx;
|
|
|
|
- font-size: $font-size-24;
|
|
|
|
- .checkbox {
|
|
|
|
- width: 40rpx;
|
|
|
|
|
|
+ color: #ffffff;
|
|
text-align: center;
|
|
text-align: center;
|
|
|
|
+ float: left;
|
|
|
|
+ border-radius: 40rpx;
|
|
}
|
|
}
|
|
- .text {
|
|
|
|
- width: 60rpx;
|
|
|
|
- float: right;
|
|
|
|
|
|
+ .btn.btn-cancel {
|
|
|
|
+ background: #f7f7f7;
|
|
|
|
+ color: #b2b2b2;
|
|
}
|
|
}
|
|
- }
|
|
|
|
- .sum {
|
|
|
|
- width: 360rpx;
|
|
|
|
- height: 100%;
|
|
|
|
- float: right;
|
|
|
|
- box-sizing: border-box;
|
|
|
|
- padding: 0 10rpx;
|
|
|
|
- .sum-price {
|
|
|
|
- display: flex;
|
|
|
|
- justify-content: center;
|
|
|
|
- align-items: flex-end;
|
|
|
|
- flex-direction: column;
|
|
|
|
- width: 100%;
|
|
|
|
- height: 80rpx;
|
|
|
|
- font-size: $font-size-30;
|
|
|
|
- color: $text-color;
|
|
|
|
- float: left;
|
|
|
|
- font-weight: normal;
|
|
|
|
- .money {
|
|
|
|
- color: $color-system;
|
|
|
|
|
|
+ .btn.btn-confirm {
|
|
|
|
+ background: $btn-confirm;
|
|
|
|
+ color: #ffffff;
|
|
|
|
+ }
|
|
|
|
+ @keyframes showDelbtn {
|
|
|
|
+ 0% {
|
|
|
|
+ transform: translateX(0);
|
|
}
|
|
}
|
|
- .money-sign {
|
|
|
|
- font-size: $font-size-24;
|
|
|
|
- color: $color-system;
|
|
|
|
|
|
+ 100% {
|
|
|
|
+ transform: translateX(-100%);
|
|
}
|
|
}
|
|
- .discounted-price{
|
|
|
|
- margin-right: 32rpx;
|
|
|
|
|
|
+ }
|
|
|
|
+ @keyframes hideDelbtn {
|
|
|
|
+ 0% {
|
|
|
|
+ transform: translateX(-100%);
|
|
}
|
|
}
|
|
- .row{
|
|
|
|
- &:nth-child(2){
|
|
|
|
- font-size: 24rpx;
|
|
|
|
- color: #FF457B;
|
|
|
|
- }
|
|
|
|
|
|
+ 100% {
|
|
|
|
+ transform: translateX(0);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- .footer-ri {
|
|
|
|
- width: 230rpx;
|
|
|
|
- height: 100%;
|
|
|
|
- float: right;
|
|
|
|
- display: flex;
|
|
|
|
- justify-content: space-between;
|
|
|
|
- align-items: center;
|
|
|
|
- z-index: 999;
|
|
|
|
- box-sizing: border-box;
|
|
|
|
- padding: 13rpx 15rpx;
|
|
|
|
- &.none {
|
|
|
|
- display: none;
|
|
|
|
- }
|
|
|
|
- .btn {
|
|
|
|
- width: 200rpx;
|
|
|
|
- height: 100%;
|
|
|
|
- background: $btn-confirm;
|
|
|
|
- font-size: $font-size-28;
|
|
|
|
- line-height: 80rpx;
|
|
|
|
- color: #ffffff;
|
|
|
|
|
|
+ .discounted-ditail {
|
|
|
|
+ padding: 52rpx 8rpx 0;
|
|
|
|
+ .row {
|
|
display: flex;
|
|
display: flex;
|
|
- border-radius: 40rpx;
|
|
|
|
- justify-content: center;
|
|
|
|
|
|
+ justify-content: space-between;
|
|
align-items: center;
|
|
align-items: center;
|
|
- }
|
|
|
|
- }
|
|
|
|
- .footer-del {
|
|
|
|
- width: 420rpx;
|
|
|
|
- height: 100rpx;
|
|
|
|
- position: absolute;
|
|
|
|
- padding-left: 200rpx;
|
|
|
|
- background: #ffffff;
|
|
|
|
- right: 0;
|
|
|
|
- top: 0;
|
|
|
|
- z-index: 1000;
|
|
|
|
- box-sizing: border-box;
|
|
|
|
- padding: 10rpx 0;
|
|
|
|
- display: flex;
|
|
|
|
- &.show {
|
|
|
|
- animation: showDelbtn 0s linear both;
|
|
|
|
- }
|
|
|
|
- &.none {
|
|
|
|
- animation: hideDelbtn 0s linear both;
|
|
|
|
- }
|
|
|
|
- .btn {
|
|
|
|
- flex: 1;
|
|
|
|
- margin: 0 8rpx;
|
|
|
|
- height: 100%;
|
|
|
|
- line-height: 80rpx;
|
|
|
|
- font-size: $font-size-28;
|
|
|
|
- color: #ffffff;
|
|
|
|
- text-align: center;
|
|
|
|
- float: left;
|
|
|
|
- border-radius: 40rpx;
|
|
|
|
- }
|
|
|
|
- .btn.btn-cancel {
|
|
|
|
- background: #f7f7f7;
|
|
|
|
- color: #b2b2b2;
|
|
|
|
- }
|
|
|
|
- .btn.btn-confirm {
|
|
|
|
- background: $btn-confirm;
|
|
|
|
- color: #ffffff;
|
|
|
|
- }
|
|
|
|
- @keyframes showDelbtn {
|
|
|
|
- 0% {
|
|
|
|
- transform: translateX(0);
|
|
|
|
|
|
+ padding: 12rpx 0;
|
|
|
|
+ text {
|
|
|
|
+ font-size: 30rpx;
|
|
|
|
+ color: #333333;
|
|
|
|
+ &.red {
|
|
|
|
+ color: #f94b4b;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- 100% {
|
|
|
|
- transform: translateX(-100%);
|
|
|
|
|
|
+ &.total {
|
|
|
|
+ font-size: 30rpx;
|
|
|
|
+ font-weight: 600;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- @keyframes hideDelbtn {
|
|
|
|
- 0% {
|
|
|
|
- transform: translateX(-100%);
|
|
|
|
- }
|
|
|
|
- 100% {
|
|
|
|
- transform: translateX(0);
|
|
|
|
- }
|
|
|
|
|
|
+ .tip {
|
|
|
|
+ padding: 12rpx 0;
|
|
|
|
+ font-size: 26rpx;
|
|
|
|
+ color: #999999;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ .empty{
|
|
|
|
+ height: 80vh;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|