cartList.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878
  1. <template>
  2. <div class="wrapper">
  3. <u-navbar :isBack="false" title="购物车"></u-navbar>
  4. <!-- 空白页-->
  5. <view v-if="cartDetail.cartList == '' || cartDetail.cartList == [] || !cartDetail" class="empty">
  6. <image src="/static/emptyCart.png" mode="aspectFit"></image>
  7. <view class="empty-tips">
  8. 空空如也
  9. <navigator class="navigator" url="/pages/tabbar/home/index" open-type="switchTab">随便逛逛></navigator>
  10. </view>
  11. </view>
  12. <!-- 店铺商品信息 -->
  13. <div class="content">
  14. <div class="box box2" :class="{ invalid: isInvalid(item) }" v-for="(item, index) in cartDetail.cartList" :key="index">
  15. <view class="tab">
  16. <view class="store-line">
  17. <u-checkbox-group class="store-line-check">
  18. <!-- #ifndef MP-WEIXIN -->
  19. <u-checkbox shape="circle" :active-color="lightColor" v-model="item.checked" @change="checkboxChangeDP(item)"></u-checkbox>
  20. <!-- #endif -->
  21. <!-- 微信小程序这里 v-model出现问题,改用:value -->
  22. <!-- #ifdef MP-WEIXIN -->
  23. <u-checkbox shape="circle" :active-color="lightColor" :value="item.checked" @change="checkboxChangeDP(item)"></u-checkbox>
  24. <!-- #endif -->
  25. </u-checkbox-group>
  26. <span class="storeName store-line-desc" @click.stop="navigateToStore(item)">{{
  27. item.storeName
  28. }}</span>
  29. </view>
  30. <view class="right_Col" @click="navigateToConpon(item)">
  31. <div class="right_Line"></div>
  32. <span>领劵</span>
  33. </view>
  34. </view>
  35. <u-swipe-action :show="skuItem.selected" @open="openAction(skuItem)" :options="options" bg-color="#fff" ref="swiperAction" class="cartItem" v-for="(skuItem, i) in item.skuList" :index="i"
  36. :key="skuItem.goodsSku.id" @click="changeActionTab(skuItem)" @longpress="changeActionTab(skuItem)">
  37. <!-- 满减活动 -->
  38. <div v-if="skuItem.promotions" v-for="(fullDiscount,fullDiscountIndex) in skuItem.promotions" :key="fullDiscountIndex">
  39. <div v-if="fullDiscount.promotionType == 'FULL_DISCOUNT'">
  40. <div class="promotion-notice" v-if="item.promotionNotice">
  41. <span class="tips">满减</span>
  42. <span style="flex:10;">{{item.promotionNotice}}</span>
  43. </div>
  44. </div>
  45. </div>
  46. <view class="goods-row" :class="{ invalid: isInvalid(skuItem) }">
  47. <view class="goods-config">
  48. <view>
  49. <u-checkbox-group v-if="skuItem.invalid == 0">
  50. <!-- #ifndef MP-WEIXIN -->
  51. <u-checkbox shape="circle" :active-color="lightColor" class="c-left" v-model="skuItem.checked" @change="checkboxChange(skuItem)"></u-checkbox>
  52. <!-- #endif -->
  53. <!-- 微信小程序这里 v-model出现问题,改用:value -->
  54. <!-- #ifdef MP-WEIXIN -->
  55. <u-checkbox shape="circle" :active-color="lightColor" class="c-left" :value="skuItem.checked" @change="checkboxChange(skuItem)"></u-checkbox>
  56. <!-- #endif -->
  57. </u-checkbox-group>
  58. <span class="invalid" v-else style="font-size: 24rpx">失效</span>
  59. </view>
  60. <u-image border-radius="20" :fade="true" @click.native="navigateToGoods(skuItem)" width="200rpx" height="200rpx" :src="skuItem.goodsSku.thumbnail" @click="navigateToGoods(skuItem)" />
  61. </view>
  62. <view class="goods-content">
  63. <!-- 商品名称 -->
  64. <p class="sp-name" @click="navigateToGoods(skuItem)">
  65. {{ skuItem.goodsSku.goodsName }}
  66. </p>
  67. <!-- 规格 -->
  68. <p class="sp-type">{{skuItem.goodsSku.simpleSpecs}}</p>
  69. <p class="sp-number">
  70. <view class="sp-price">
  71. <div class="default-color" :class="{'theme-color':skuItem.promotions.length <=0 }">
  72. ¥<span>{{ formatPrice(skuItem.goodsSku.price)[0] }}</span>
  73. <span>.{{ formatPrice(skuItem.goodsSku.price)[1] }}</span>
  74. </div>
  75. </view>
  76. <view>
  77. <!-- #ifndef MP-WEIXIN -->
  78. <u-number-box class="uNumber" :min="1" input-width="70" input-height="40" size="20" v-model="skuItem.num" @change="numChange(skuItem)"></u-number-box>
  79. <!-- #endif -->
  80. <!-- #ifdef MP-WEIXIN -->
  81. <u-number-box class="uNumber" :min="1" input-width="70" input-height="40" size="20" :value="skuItem.num" @plus="numChange(skuItem, '1')" @change="numChange_WEIXIN" :skuItem="skuItem"
  82. @minus="numChange(skuItem, '0')"></u-number-box>
  83. <!-- #endif -->
  84. </view>
  85. <!-- 如果当有促销并且促销是 限时抢购 -->
  86. <!-- promotions -->
  87. <div class="promotions-list" v-if="skuItem.promotions" v-for="(seckill,seckillIndex) in skuItem.promotions" :key="seckillIndex">
  88. <div class="promotions-item-seckill" v-if="seckill.promotionType == 'SECKILL'">
  89. 距秒杀结束: <u-count-down show-border :hide-zero-day="true" :color="$mainColor" border-color="#ededed" font-size="24" :timestamp="getCountDownTime(seckill.endTime)">
  90. </u-count-down>
  91. </div>
  92. </div>
  93. <!-- 如果有活动 并且是选中的状态,显示预估到手价格 -->
  94. <div class="priceDetail-flowPrice" :class="{'theme-color':skuItem.priceDetailDTO}"
  95. v-if="skuItem.priceDetailDTO && skuItem.invalid == 0 && skuItem.promotions.length!=0 && skuItem.checked && skuItem.checked">
  96. 预估到手价 ¥<span>{{ formatPrice(skuItem.priceDetailDTO.flowPrice)[0]}}</span>
  97. <span>.{{ formatPrice(skuItem.priceDetailDTO.flowPrice)[1] }} </span>
  98. </div>
  99. </view>
  100. </view>
  101. </u-swipe-action>
  102. </div>
  103. </div>
  104. <u-modal v-model="deleteShow" :confirm-style="{'color':lightColor}" @confirm="delectConfirm" show-cancel-button :content="deleteContent" :async-close="true"></u-modal>
  105. <!-- 结账 -->
  106. <div class="box box6">
  107. <view class="navL">
  108. <u-checkbox shape="circle" :active-color="lightColor" v-model="checkout" @change="checkOut()" label-size="24">全选</u-checkbox>
  109. <span class="price">
  110. <div class="prices">
  111. <div class="fullPrice">
  112. <span class="number" v-if="cartDetail && cartDetail.priceDetailDTO">
  113. 总计: <span>¥{{ formatPrice(cartDetail.priceDetailDTO.flowPrice)[0] }}</span>.<span>{{ formatPrice(cartDetail.priceDetailDTO.flowPrice)[1] }}</span>
  114. </span>
  115. <span class="number" v-else>总计:0.00</span>
  116. </div>
  117. <div v-if="cartDetail.cartList && cartDetail.cartList.length!=0 && cartDetail.priceDetailDTO && cartDetail.priceDetailDTO.discountPrice!=0 " class="discountPrice">
  118. <span>优惠减:¥{{(cartDetail.priceDetailDTO.goodsPrice - cartDetail.priceDetailDTO.flowPrice) | unitPrice}} </span>
  119. <span class="discountDetails" @click="discountDetails">优惠明细</span>
  120. </div>
  121. </div>
  122. </span>
  123. </view>
  124. <!-- 优惠详情 -->
  125. <u-popup z-index="3" close mode="bottom" height="50%" closeable v-model="discountDetailsFlag" border-radius="20">
  126. <div class="discount-list">
  127. <view class="discount-title">优惠明细</view>
  128. <div class="discount-way">
  129. <div class="discount-item" v-if="cartDetail.priceDetailDTO">
  130. <span>商品总额</span>
  131. <span>¥{{cartDetail.priceDetailDTO.goodsPrice | unitPrice}}</span>
  132. </div>
  133. <div class="discount-item" v-if="cartDetail.priceDetailDTO">
  134. <span>优惠券</span>
  135. <span>-¥{{cartDetail.priceDetailDTO.couponPrice | unitPrice}}</span>
  136. </div>
  137. <div class="discount-item" v-if="cartDetail.priceDetailDTO">
  138. <span>其他优惠</span>
  139. <span>-¥{{cartDetail.priceDetailDTO.discountPrice | unitPrice}}</span>
  140. </div>
  141. </div>
  142. </div>
  143. </u-popup>
  144. <view v-if="isEdit" @click="deleteGoods()">
  145. <div class="settlement">删除</div>
  146. </view>
  147. <view v-else @click="submitOrder()">
  148. <div class="settlement">去结算</div>
  149. </view>
  150. </div>
  151. <u-toast ref="uToast" />
  152. </div>
  153. </template>
  154. <script>
  155. import * as API_Trade from "@/api/trade";
  156. export default {
  157. data() {
  158. return {
  159. lightColor: this.$lightColor,
  160. discountDetailsFlag: false, //优惠明细开关
  161. // 商品栏右侧滑动按钮
  162. options: [
  163. {
  164. text: "删除",
  165. style: {
  166. backgroundColor: this.$lightColor, //高亮颜色
  167. },
  168. },
  169. ],
  170. isInvalid(val) {
  171. //是否无效商品
  172. if (val.invalid == 1) {
  173. return true;
  174. } else {
  175. return false;
  176. }
  177. },
  178. deleteShow: false, //右滑删除
  179. deleteContent: "删除该商品?", //删除显示的信息
  180. cartDetail: "", //购物车详情
  181. goodsVal: "", //单个商品详情
  182. isEdit: false, // 是否是编辑
  183. checkout: true, //全选按钮
  184. WEIXIN_num: "", //购物车兼容微信步进器
  185. };
  186. },
  187. mounted() {
  188. // #ifdef MP-WEIXIN
  189. // 小程序默认分享
  190. uni.showShareMenu({ withShareTicket: true });
  191. // #endif
  192. },
  193. /**
  194. * 初始化信息
  195. */
  196. onShow() {
  197. this.deleteShow ? (this.deleteShow = false) : true;
  198. if (this.$refs.swiperAction) {
  199. this.$refs.swiperAction.forEach((item, index) => {
  200. item.show = false;
  201. });
  202. this.getCardData();
  203. } else {
  204. this.getCardData();
  205. }
  206. },
  207. methods: {
  208. /**
  209. * 倒数计时
  210. */
  211. getCountDownTime(val) {
  212. let date = new Date(val.replace(/-/g, "/"));
  213. let timeSimple = new Date(date).getTime() / 1000;
  214. return timeSimple - new Date().getTime() / 1000;
  215. },
  216. /**
  217. * 优惠明细开关
  218. */
  219. discountDetails() {
  220. this.discountDetailsFlag = true;
  221. },
  222. /**
  223. * 格式化金钱 1999 --> [1999,00]
  224. */
  225. formatPrice(val) {
  226. if (typeof val == "undefined") {
  227. return val;
  228. }
  229. return val.toFixed(2).split(".");
  230. },
  231. /**
  232. * 左滑打开删除
  233. */
  234. openAction(skuItem) {
  235. /**循环父级有多少个店铺 */
  236. this.cartDetail.cartList.forEach((cartItem) => {
  237. if (cartItem.skuList) {
  238. cartItem.skuList.forEach((sku) => {
  239. this.$set(sku, "selected", false);
  240. });
  241. }
  242. });
  243. this.$set(skuItem, "selected", true);
  244. },
  245. /**
  246. * 滑动删除
  247. */
  248. changeActionTab(val) {
  249. this.deleteShow = true;
  250. this.goodsVal = val;
  251. },
  252. /**
  253. * 点击删除
  254. */
  255. delectConfirm() {
  256. API_Trade.deleteSkuItem(this.goodsVal.goodsSku.id).then((res) => {
  257. if (res.statusCode == 200) {
  258. uni.showToast({
  259. title: "此商品删除成功",
  260. duration: 2000,
  261. });
  262. this.deleteShow = false;
  263. this.getCardData();
  264. }
  265. });
  266. },
  267. /**
  268. * 删除商品
  269. */
  270. deleteGoods() {
  271. if (this.whetherChecked()) {
  272. var delGoodsData = [];
  273. this.cartDetail.cartList.forEach((item) => {
  274. item.skuList.forEach((goodsItem) => {
  275. if (goodsItem.checked) {
  276. delGoodsData.push(goodsItem.goodsSku.id);
  277. }
  278. });
  279. });
  280. if (delGoodsData && delGoodsData.length > 0) {
  281. // 执行删除
  282. API_Trade.deleteSkuItem(delGoodsData).then((res) => {
  283. if (res.data.success) {
  284. uni.showToast({
  285. title: "删除成功!",
  286. icon: "none",
  287. });
  288. this.getCardData();
  289. }
  290. });
  291. } else {
  292. uni.showToast({
  293. title: "请选择删除商品,如果商品失效,请左滑无效商品删除",
  294. icon: "none",
  295. });
  296. }
  297. }
  298. },
  299. /**
  300. * 跳转到店铺
  301. */
  302. navigateToStore(val) {
  303. uni.navigateTo({
  304. url: "../product/shopPage?id=" + val.storeId,
  305. });
  306. },
  307. /**
  308. * 跳转到优惠券
  309. */
  310. navigateToConpon(val) {
  311. uni.navigateTo({
  312. url: "/pages/cart/coupon/couponCenter?storeId=" + val.storeId,
  313. });
  314. },
  315. /**
  316. * 跳转到商品
  317. */
  318. navigateToGoods(val) {
  319. uni.navigateTo({
  320. url:
  321. "/pages/product/goods?id=" +
  322. val.goodsSku.id +
  323. "&goodsId=" +
  324. val.goodsSku.goodsId,
  325. });
  326. },
  327. /**
  328. * 点击步进器微信回调
  329. */
  330. numChange_WEIXIN(callback) {
  331. this.WEIXIN_num = callback.value;
  332. this.numChange(callback.data, "3");
  333. },
  334. /**
  335. * 点击步进器回调
  336. */
  337. numChange(val, nums) {
  338. // #ifdef MP-WEIXIN
  339. if (nums && nums == "1") {
  340. val.num++;
  341. } else if (nums && nums == "0") {
  342. val.num--;
  343. } else if (nums && nums == "3") {
  344. val.num = this.WEIXIN_num;
  345. }
  346. // #endif
  347. this.updateSkuNumFun(val.goodsSku.id, val.num);
  348. },
  349. /**
  350. * 去结算
  351. */
  352. submitOrder() {
  353. if (this.whetherChecked()) {
  354. this.navigateTo("/pages/order/fillorder?way=CART");
  355. }
  356. },
  357. /**
  358. * 验证是否选中商品
  359. */
  360. whetherChecked() {
  361. let canBuy = false;
  362. this.cartDetail.cartList.forEach((item) => {
  363. if (item.checked) {
  364. canBuy = true;
  365. } else {
  366. item.skuList.forEach((skuItem) => {
  367. if (skuItem.checked) {
  368. canBuy = true;
  369. }
  370. });
  371. }
  372. });
  373. if (!canBuy) {
  374. uni.showToast({
  375. title: "您还没有选择商品",
  376. duration: 2000,
  377. icon: "none",
  378. });
  379. return false;
  380. } else {
  381. return true;
  382. }
  383. },
  384. /**
  385. * 跳转
  386. */
  387. navigateTo(url) {
  388. uni.navigateTo({
  389. url,
  390. });
  391. },
  392. /**
  393. * 全选
  394. */
  395. checkOut() {
  396. API_Trade.checkAll(this.checkout).then((result) => {
  397. if (result.data.success) {
  398. this.getCardData();
  399. return true;
  400. }
  401. });
  402. },
  403. /**
  404. * 获取店铺选中信息
  405. */
  406. checkStoreFun(skuId, num) {
  407. API_Trade.checkStore(skuId, num).then((result) => {
  408. if (result.data.success) {
  409. this.getCardData();
  410. }
  411. });
  412. },
  413. /**
  414. * 店铺点击
  415. */
  416. checkboxChangeDP(e) {
  417. // #ifdef MP-WEIXIN
  418. e.checked = !e.checked;
  419. // #endif
  420. this.checkStoreFun(e.storeId, e.checked);
  421. },
  422. /**
  423. * 获取购物车选中信息
  424. */
  425. updateSkuCheckedFun(skuId, num) {
  426. API_Trade.updateSkuChecked(skuId, num).then((result) => {
  427. if (result.data.success) {
  428. this.getCardData();
  429. }
  430. });
  431. },
  432. /**
  433. * 更新商品购物车数量
  434. */
  435. updateSkuNumFun(skuId, num) {
  436. API_Trade.updateSkuNum(skuId, num).then((result) => {
  437. if (result.statusCode == 200) {
  438. this.getCardData();
  439. } else {
  440. let _this = this;
  441. setTimeout(() => {
  442. _this.getCardData();
  443. }, 1000);
  444. }
  445. });
  446. },
  447. /**
  448. * 获取购物车数据
  449. */
  450. getCardData() {
  451. if (this.$options.filters.isLogin("auth")) {
  452. uni.showLoading({
  453. title: "加载中",
  454. });
  455. API_Trade.getCarts()
  456. .then((result) => {
  457. if (result.data.success) {
  458. this.cartDetail = result.data.result;
  459. this.checkout = true;
  460. for (let i = 0; i < this.cartDetail.cartList.length; i++) {
  461. let item = this.cartDetail.cartList[i];
  462. // 循环出当前商品是否全选
  463. if (item.checked == 0) {
  464. this.checkout = false;
  465. }
  466. // 如果有拼团活动顺便删除
  467. item.skuList &&
  468. item.skuList.forEach((sku) => {
  469. sku.promotions &&
  470. sku.promotions.forEach((pro, proIndex) => {
  471. if (pro.promotionType == "PINTUAN") {
  472. sku.promotions.splice(proIndex, 1);
  473. }
  474. });
  475. });
  476. }
  477. uni.stopPullDownRefresh();
  478. }
  479. })
  480. .catch((err) => {});
  481. uni.hideLoading();
  482. } else {
  483. uni.hideLoading();
  484. }
  485. },
  486. /**
  487. * 选中某个复选框时,由checkbox时触发
  488. */
  489. checkboxChange(e) {
  490. // #ifdef MP-WEIXIN
  491. e.checked = !e.checked;
  492. // #endif
  493. this.updateSkuCheckedFun(e.goodsSku.id, e.checked);
  494. },
  495. },
  496. };
  497. </script>
  498. <style scoped lang="scss">
  499. // #ifdef MP-WEIXIN
  500. @import "./mp-carui.scss";
  501. // #endif
  502. .u-image {
  503. box-shadow: 0 4rpx 12rpx 0 rgba(0, 0, 0, 0.05);
  504. }
  505. .promotion-notice {
  506. margin-left: 68rpx;
  507. font-size: 24rpx;
  508. color: #333;
  509. font-weight: bold;
  510. display: flex;
  511. align-items: center;
  512. /deep/ .tips {
  513. margin: 0 8rpx 0 0;
  514. background: $main-color;
  515. border-radius: 100px;
  516. display: block;
  517. flex: 1;
  518. padding: 2rpx 12rpx;
  519. color: #fff;
  520. }
  521. }
  522. .promotionNotice {
  523. font-size: 24rpx;
  524. }
  525. .goods-row {
  526. padding: 30rpx 0;
  527. display: flex;
  528. align-items: center;
  529. }
  530. .storeName {
  531. font-weight: bold;
  532. }
  533. .invalid {
  534. filter: grayscale(1);
  535. }
  536. .cartItem {
  537. border-radius: 0.4em;
  538. transition: 0.35s;
  539. }
  540. .index {
  541. padding-top: var(--status-bar-height);
  542. }
  543. /* 空白页 */
  544. /deep/ .u-number-input {
  545. background: #fff !important;
  546. border: 1px solid #ededed;
  547. margin: 0 !important;
  548. }
  549. /deep/ .u-icon-minus,
  550. /deep/ .u-icon-plus {
  551. background: #ffffff !important;
  552. border: 1px solid #ededed;
  553. color: #333 !important;
  554. width: 40rpx;
  555. }
  556. .empty {
  557. position: fixed;
  558. left: 0;
  559. top: 0;
  560. width: 100%;
  561. height: 100vh;
  562. z-index: 99;
  563. padding-bottom: 100rpx;
  564. display: flex;
  565. justify-content: center;
  566. flex-direction: column;
  567. align-items: center;
  568. background: #fff;
  569. image {
  570. width: 240rpx;
  571. height: 160rpx;
  572. margin-bottom: 30rpx;
  573. }
  574. .empty-tips {
  575. display: flex;
  576. font-size: $font-sm + 2rpx;
  577. color: $font-color-disabled;
  578. .navigator {
  579. color: $uni-color-primary;
  580. margin-left: 16rpx;
  581. }
  582. }
  583. }
  584. .settlement {
  585. width: 180rpx;
  586. height: 70rpx;
  587. line-height: 70rpx;
  588. background: linear-gradient(91deg, $light-color 1%, $aider-light-color 99%);
  589. border-radius: 900rpx;
  590. text-align: center;
  591. color: #fff;
  592. margin-right: 10rpx;
  593. }
  594. .price {
  595. display: flex;
  596. align-items: center;
  597. /deep/ .number {
  598. line-height: 1;
  599. font-size: 30rpx;
  600. > span {
  601. font-weight: bold;
  602. }
  603. }
  604. }
  605. .box2 {
  606. border-radius: 30rpx;
  607. padding: 32rpx 40rpx 32rpx;
  608. .u-checkbox {
  609. display: flex;
  610. align-items: center;
  611. text-align: center;
  612. }
  613. background: #fff;
  614. margin-bottom: 20rpx;
  615. }
  616. .wrapper {
  617. height: 100%;
  618. }
  619. /deep/ .u-col {
  620. padding: 24rpx 0 !important;
  621. }
  622. .goods-content {
  623. width: 100%;
  624. height: 100%;
  625. overflow: hidden;
  626. > p {
  627. padding-left: 20rpx;
  628. }
  629. }
  630. .allCheck {
  631. // padding: 0 10rpx;
  632. font-size: 24rpx;
  633. }
  634. .content {
  635. padding: 20rpx 0 20rpx 0;
  636. margin-bottom: 80rpx;
  637. }
  638. .line {
  639. float: left;
  640. width: 1px;
  641. height: 100%;
  642. border-right: 1px solid $light-color;
  643. }
  644. .store-line-check,
  645. .store-line-img,
  646. .store-line-desc {
  647. // #ifdef MP-WEIXIN
  648. float: left;
  649. // #endif
  650. }
  651. .store-line {
  652. // #ifndef MP-WEIXIN
  653. display: flex;
  654. // #endif
  655. overflow: hidden;
  656. }
  657. .goods-config {
  658. display: flex;
  659. align-items: center;
  660. /deep/ .invalid {
  661. display: block;
  662. width: 80rpx !important;
  663. }
  664. }
  665. .tab {
  666. display: flex;
  667. align-items: center;
  668. justify-content: space-between;
  669. padding: 30rpx 0;
  670. }
  671. .couponIcon {
  672. margin-left: 20rpx;
  673. }
  674. .right_Col {
  675. color: $light-color;
  676. font-size: 26rpx;
  677. > span {
  678. margin-left: 20rpx;
  679. }
  680. }
  681. .right_Line {
  682. width: 3px;
  683. float: left;
  684. height: 40rpx;
  685. border-left: 1px solid #eeeeee;
  686. /deep/ span {
  687. margin-left: 20rpx;
  688. }
  689. }
  690. .box6 {
  691. justify-content: space-between;
  692. position: fixed;
  693. // #ifdef APP-PLUS || MP-WEIXIN
  694. bottom: 0;
  695. // #endif
  696. // #ifdef H5
  697. bottom: 100rpx;
  698. // #endif
  699. left: 0;
  700. border-top: 1px solid #ededed;
  701. display: flex;
  702. height: 100rpx;
  703. overflow: hidden;
  704. align-items: center;
  705. width: 100%;
  706. background: rgba(255, 255, 255, 1);
  707. color: #333;
  708. z-index: 99;
  709. > .navL {
  710. padding: 0 32rpx;
  711. display: flex;
  712. align-items: center;
  713. }
  714. }
  715. .sp-name {
  716. display: -webkit-box;
  717. -webkit-box-orient: vertical;
  718. -webkit-line-clamp: 2;
  719. overflow: hidden;
  720. font-size: 26rpx;
  721. color: #333;
  722. font-weight: bold;
  723. }
  724. .sp-type {
  725. color: $u-light-color;
  726. padding: 10rpx 0;
  727. font-size: 24rpx;
  728. overflow: hidden;
  729. text-overflow: ellipsis;
  730. white-space: nowrap;
  731. }
  732. .default-color {
  733. color: #333;
  734. }
  735. .theme-color {
  736. color: $main-color;
  737. }
  738. .sp-number {
  739. font-weight: bold;
  740. display: flex;
  741. justify-content: space-between;
  742. > .sp-price {
  743. /deep/ span:nth-of-type(1) {
  744. font-size: 38rpx;
  745. }
  746. /deep/ span:nth-of-type(2) {
  747. font-size: 24rpx;
  748. }
  749. }
  750. }
  751. .priceDetail-flowPrice {
  752. font-weight: bold;
  753. padding-left: 20rpx;
  754. > span:nth-of-type(1) {
  755. font-size: 38rpx;
  756. }
  757. }
  758. .prices {
  759. display: flex;
  760. flex-direction: column;
  761. > .discountPrice {
  762. align-items: center;
  763. display: flex;
  764. font-size: 24rpx;
  765. color: rgb(201, 199, 199);
  766. }
  767. }
  768. .discountDetails {
  769. margin-left: 10px;
  770. color: #666;
  771. padding: 4rpx 10rpx;
  772. border-radius: 100px;
  773. background: rgba(201, 199, 199, 0.3);
  774. }
  775. .discount-item {
  776. display: flex;
  777. margin: 40rpx 0;
  778. justify-content: space-between;
  779. > span:nth-of-type(1) {
  780. color: #666;
  781. }
  782. > span:nth-of-type(2) {
  783. color: #333;
  784. font-weight: bold;
  785. }
  786. }
  787. .discount-title {
  788. font-size: 36rpx;
  789. margin-top: 20rpx;
  790. text-align: center;
  791. }
  792. .discount-way {
  793. width: 94%;
  794. margin: 0 3%;
  795. }
  796. .discount-list {
  797. width: 100%;
  798. }
  799. .promotions-list {
  800. margin-left: 20rpx;
  801. > .promotions-item-seckill {
  802. background: rgba($color: $main-color, $alpha: 0.1);
  803. font-size: 24rpx;
  804. color: $main-color;
  805. display: inline;
  806. padding: 0rpx 10rpx;
  807. border-radius: 100px;
  808. }
  809. }
  810. </style>