cartList.vue 23 KB

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