cartList.vue 23 KB

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