s-goods-column.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744
  1. <!-- 页面 -->
  2. <template>
  3. <view class="ss-goods-wrap">
  4. <!-- lg卡片:横向型,一行放一个,图片左内容右边 -->
  5. <view v-if="size === 'lg'" class="lg-goods-card ss-flex ss-col-stretch" :style="[elStyles]" @tap="onClick">
  6. <view v-if="tagStyle.show" class="tag-icon-box">
  7. <image class="tag-icon" :src="sheep.$url.cdn(tagStyle.src || tagStyle.imgUrl)"></image>
  8. </view>
  9. <view v-if="seckillTag" class="seckill-tag ss-flex ss-row-center"> 秒杀 </view>
  10. <view v-if="grouponTag" class="groupon-tag ss-flex ss-row-center">
  11. <view class="tag-icon">拼团</view>
  12. </view>
  13. <image class="lg-img-box" :src="sheep.$url.cdn(data.image || data.picUrl)" mode="aspectFill"></image>
  14. <view class="lg-goods-content ss-flex-1 ss-flex-col ss-p-b-10 ss-p-t-20">
  15. <view>
  16. <view v-if="goodsFields.title?.show || goodsFields.name?.show" class="lg-goods-title ss-line-2"
  17. :style="[{ color: titleColor }]">
  18. {{ data.title || data.name }}
  19. </view>
  20. <!-- <view v-if="goodsFields.subtitle?.show || goodsFields.introduction?.show"
  21. class="lg-goods-subtitle ss-m-t-10 ss-line-1"
  22. :style="[{ color: subTitleColor, background: subTitleBackground }]">
  23. {{ data.subtitle || data.introduction }}
  24. </view> -->
  25. <view class="ss-m-t-8 ss-flex ss-col-center ss-flex-wrap">
  26. <view class="sales-text">{{ salesAndStock }}</view>
  27. </view>
  28. </view>
  29. <view style="display: flex;justify-content: space-between;">
  30. <slot name="activity">
  31. <view v-if="data.promos?.length" class="tag-box ss-flex ss-col-center">
  32. <view class="activity-tag ss-m-r-10" v-for="item in data.promos" :key="item.id">
  33. {{ item.title }}
  34. </view>
  35. </view>
  36. </slot>
  37. <view class="ss-flex ss-m-t-10 ss-center">
  38. <view v-if="goodsFields.price?.show"
  39. class="lg-goods-price ss-m-r-12 ss-flex ss-col-bottom font-OPPOSANS"
  40. :style="[{ color: goodsFields.price.color }]">
  41. <text class="ss-font-24">{{ priceUnit }}</text>
  42. {{ isArray(data.price) ? fen2yuan(data.price[0]) : fen2yuan(data.price) }}
  43. </view>
  44. <slot name="cart">
  45. <view class="buy-box ss-flex ss-col-center ss-row-center" v-if="buttonShow">
  46. <text
  47. class="cicon-add-round"
  48. :class="{
  49. 'uni-numbox--disabled': inputValue >= max || disabled,
  50. 'groupon-btn': activity === 'groupon',
  51. 'seckill-btn': activity === 'seckill',
  52. }"
  53. @click.stop="formFirstAddGoods(data.skus[0].id)"
  54. v-if="!state.selectedSku.goods_num"
  55. ></text>
  56. <view @click.stop v-else>
  57. <su-number-box :min="0" :max="data.stock" :step="1" v-model="state.selectedSku.goods_num"
  58. @change="formAddGoodsChange(data.skus[0].id,$event)"/>
  59. </view>
  60. <!-- <block v-if="!state.selectedSku.goods_num">
  61. <view id="ggAddBtn" class="add-btn" @click="formFirstAddGoods(data.id)">
  62. <i class="hxicon-add" id="eleAdd"></i>
  63. <text>加入购物车</text>
  64. </view>
  65. </block>
  66. <view @click.stop v-else>
  67. <hx-number-box @change="formAddGoodsChange(data.id,$event)"
  68. :value="state.selectedSku.goods_num"></hx-number-box>
  69. </view> -->
  70. <!-- :rowData="currentGoodsData" :clickTime="animaTime + 200" @addChange="touchOnAddGoods('.addEle_gg',currentGoodsData)" -->
  71. </view>
  72. </slot>
  73. <!-- <view
  74. v-if="(goodsFields.original_price?.show||goodsFields.marketPrice?.show) &&( data.original_price > 0|| data.marketPrice > 0)"
  75. class="goods-origin-price ss-flex ss-col-bottom font-OPPOSANS"
  76. :style="[{ color: originPriceColor }]">
  77. <text class="price-unit ss-font-20">{{ priceUnit }}</text>
  78. <view class="ss-m-l-8">{{ fen2yuan(data.marketPrice) }}</view>
  79. </view> -->
  80. </view>
  81. <!-- <view class="ss-m-t-8 ss-flex ss-col-center ss-flex-wrap">
  82. <view class="sales-text">{{ salesAndStock }}</view>
  83. </view> -->
  84. </view>
  85. </view>
  86. <!-- state.selectedSku.stock -->
  87. </view>
  88. <!-- sl卡片:竖向型,一行放一个,图片上内容下边 -->
  89. <view v-if="size === 'sl'" class="sl-goods-card ss-flex-col" :style="[elStyles]" @tap="onClick">
  90. <view v-if="tagStyle.show" class="tag-icon-box">
  91. <image class="tag-icon" :src="sheep.$url.cdn(tagStyle.src || tagStyle.imgUrl)"></image>
  92. </view>
  93. <image class="sl-img-box" :src="sheep.$url.cdn(data.image || data.picUrl)" mode="aspectFill"></image>
  94. <view class="sl-goods-content">
  95. <view>
  96. <view v-if="goodsFields.title?.show || goodsFields.name?.show" class="sl-goods-title ss-line-1"
  97. :style="[{ color: titleColor }]">
  98. {{ data.title || data.name }}
  99. </view>
  100. <view v-if="goodsFields.subtitle?.show || goodsFields.introduction?.show"
  101. class="sl-goods-subtitle ss-m-t-16"
  102. :style="[{ color: subTitleColor, background: subTitleBackground }]">
  103. {{ data.subtitle || data.introduction }}
  104. </view>
  105. </view>
  106. <view>
  107. <slot name="activity">
  108. <view v-if="data.promos?.length" class="tag-box ss-flex ss-col-center ss-flex-wrap">
  109. <view class="activity-tag ss-m-r-10 ss-m-t-16" v-for="item in data.promos" :key="item.id">
  110. {{ item.title }}
  111. </view>
  112. </view>
  113. </slot>
  114. <view v-if="goodsFields.price?.show" class="ss-flex ss-col-bottom font-OPPOSANS">
  115. <view class="sl-goods-price ss-m-r-12" :style="[{ color: goodsFields.price.color }]">
  116. <text class="price-unit ss-font-24">{{ priceUnit }}</text>
  117. {{ isArray(data.price) ? fen2yuan(data.price[0]) : fen2yuan(data.price) }}
  118. </view>
  119. <view
  120. v-if="(goodsFields.original_price?.show||goodsFields.marketPrice?.show) &&( data.original_price > 0|| data.marketPrice > 0)"
  121. class="goods-origin-price ss-m-t-16 font-OPPOSANS ss-flex"
  122. :style="[{ color: originPriceColor }]">
  123. <text class="price-unit ss-font-20">{{ priceUnit }}</text>
  124. <view class="ss-m-l-8">{{ fen2yuan(data.marketPrice) }}</view>
  125. </view>
  126. </view>
  127. <view class="ss-m-t-16 ss-flex ss-flex-wrap">
  128. <view class="sales-text">{{ salesAndStock }}</view>
  129. </view>
  130. </view>
  131. </view>
  132. <slot name="cart">
  133. <view class="buy-box ss-flex ss-col-center ss-row-center">去购买</view>
  134. </slot>
  135. </view>
  136. </view>
  137. </template>
  138. <script setup>
  139. /**
  140. * 商品卡片
  141. *
  142. * @property {Array} size = [xs | sm | md | lg | sl ] - 列表数据
  143. * @property {String} tag - md及以上才有
  144. * @property {String} img - 图片
  145. * @property {String} background - 背景色
  146. * @property {String} topRadius - 上圆角
  147. * @property {String} bottomRadius - 下圆角
  148. * @property {String} title - 标题
  149. * @property {String} titleColor - 标题颜色
  150. * @property {Number} titleWidth = 0 - 标题宽度,默认0,单位rpx
  151. * @property {String} subTitle - 副标题
  152. * @property {String} subTitleColor - 副标题颜色
  153. * @property {String} subTitleBackground - 副标题背景
  154. * @property {String | Number} price - 价格
  155. * @property {String} priceColor - 价格颜色
  156. * @property {String | Number} originPrice - 原价/划线价
  157. * @property {String} originPriceColor - 原价颜色
  158. * @property {String | Number} sales - 销售数量
  159. * @property {String} salesColor - 销售数量颜色
  160. *
  161. * @slots activity - 活动插槽
  162. * @slots cart - 购物车插槽,默认包含文字,背景色,文字颜色 || 图片 || 行为
  163. *
  164. * @event {Function()} click - 点击卡片
  165. *
  166. */
  167. import {
  168. computed,
  169. reactive,
  170. getCurrentInstance,
  171. onMounted,
  172. nextTick,
  173. watch
  174. } from 'vue';
  175. import sheep from '@/sheep';
  176. import $store from '@/sheep/store';
  177. import CartApi from '@/sheep/api/trade/cart';
  178. import {
  179. showAuthModal,
  180. showShareModal
  181. } from '@/sheep/hooks/useModal';
  182. import {
  183. fen2yuan,
  184. formatSales
  185. } from '@/sheep/hooks/useGoods';
  186. import {
  187. formatStock
  188. } from '@/sheep/hooks/useGoods';
  189. import goodsCollectVue from '@/pages/user/goods-collect.vue';
  190. import hxNumberBox from '@/pages/index/components/uni-number-box';
  191. import {
  192. isArray
  193. } from 'lodash';
  194. const cart = sheep.$store('cart');
  195. // 数据
  196. const state = reactive({
  197. selectedSku: {
  198. goods_num: 0,
  199. id: ''
  200. }, // 选中的 SKU
  201. });
  202. watch(
  203. () => state.selectedSku,
  204. (newVal) => {
  205. emits('change', newVal);
  206. }, {
  207. immediate: true, // 立即执行
  208. deep: true, // 深度监听
  209. },
  210. );
  211. function formFirstAddGoods(id){
  212. console.log('我走了第一次新增购物车')
  213. state.selectedSku.id = id
  214. state.selectedSku.goods_num = 1
  215. sheep.$store('cart').add(state.selectedSku);
  216. }
  217. function formAddGoodsChange(id,e) {
  218. console.log('我走了更新购物车',id,e)
  219. if(e<1){
  220. // 走删除
  221. CartApi.deleteCart(id)
  222. // sheep.$store('cart').delete(id);
  223. return
  224. }
  225. state.selectedSku.goods_id = id
  226. state.selectedSku.goods_num = e
  227. console.log( state.selectedSku, 'state.selectedSku')
  228. sheep.$store('cart').updateCount(state.selectedSku);
  229. }
  230. function onNumberAdd(id) {
  231. // 页面登录拦截
  232. if (!$store('user').isLogin) {
  233. console.log(88888888, '啊啊啊啊')
  234. showAuthModal();
  235. return;
  236. }
  237. state.selectedSku.id = id
  238. state.selectedSku.goods_num = 1
  239. console.log(id, state.selectedSku.goods_num, 'state.selectedSku.goods_num')
  240. sheep.$store('cart').add(state.selectedSku);
  241. }
  242. // 输入框改变数量
  243. function onNumberChange(e) {
  244. e.stopPropagation();
  245. console.log(e, '777')
  246. if (e === 0) return;
  247. if (state.selectedSku.goods_num === e) return;
  248. state.selectedSku.goods_num = e;
  249. }
  250. // 加入购物车
  251. function onAddCart() {
  252. if (state.selectedSku.id <= 0) {
  253. sheep.$helper.toast('请选择规格');
  254. return;
  255. }
  256. if (state.selectedSku.stock <= 0) {
  257. sheep.$helper.toast('库存不足');
  258. return;
  259. }
  260. }
  261. // 接收参数
  262. const props = defineProps({
  263. goodsFields: {
  264. type: [Array, Object],
  265. default () {
  266. return {
  267. // 商品价格
  268. price: {
  269. show: true
  270. },
  271. // 库存
  272. stock: {
  273. show: true
  274. },
  275. // 商品名称
  276. name: {
  277. show: true
  278. },
  279. // 商品介绍
  280. introduction: {
  281. show: true
  282. },
  283. // 市场价
  284. marketPrice: {
  285. show: true
  286. },
  287. // 销量
  288. salesCount: {
  289. show: true
  290. },
  291. };
  292. },
  293. },
  294. tagStyle: {
  295. type: Object,
  296. default: {},
  297. },
  298. data: {
  299. type: Object,
  300. default: {},
  301. },
  302. index: {
  303. type: Number,
  304. default: 0,
  305. },
  306. size: {
  307. type: String,
  308. default: 'sl',
  309. },
  310. background: {
  311. type: String,
  312. default: '',
  313. },
  314. topRadius: {
  315. type: Number,
  316. default: 0,
  317. },
  318. bottomRadius: {
  319. type: Number,
  320. default: 0,
  321. },
  322. titleWidth: {
  323. type: Number,
  324. default: 0,
  325. },
  326. titleColor: {
  327. type: String,
  328. default: '#333',
  329. },
  330. priceColor: {
  331. type: String,
  332. default: '',
  333. },
  334. originPriceColor: {
  335. type: String,
  336. default: '#C4C4C4',
  337. },
  338. priceUnit: {
  339. type: String,
  340. default: '¥',
  341. },
  342. subTitleColor: {
  343. type: String,
  344. default: '#999999',
  345. },
  346. subTitleBackground: {
  347. type: String,
  348. default: '',
  349. },
  350. buttonShow: {
  351. type: Boolean,
  352. default: true,
  353. },
  354. seckillTag: {
  355. type: Boolean,
  356. default: false,
  357. },
  358. grouponTag: {
  359. type: Boolean,
  360. default: false,
  361. },
  362. });
  363. // 组件样式
  364. const elStyles = computed(() => {
  365. return {
  366. background: props.background,
  367. 'border-top-left-radius': props.topRadius + 'px',
  368. 'border-top-right-radius': props.topRadius + 'px',
  369. 'border-bottom-left-radius': props.bottomRadius + 'px',
  370. 'border-bottom-right-radius': props.bottomRadius + 'px',
  371. };
  372. });
  373. // 格式化销量、库存信息
  374. const salesAndStock = computed(() => {
  375. let text = [];
  376. if (props.goodsFields.salesCount?.show) {
  377. text.push(formatSales(props.data.sales_show_type, props.data.salesCount));
  378. }
  379. if (props.goodsFields.stock?.show) {
  380. text.push(formatStock(props.data.stock_show_type, props.data.stock));
  381. }
  382. return text.join(' | ');
  383. });
  384. // 返回事件
  385. const emits = defineEmits(['click', 'getHeight']);
  386. const onClick = () => {
  387. emits('click');
  388. };
  389. // 获取卡片实时高度
  390. const {
  391. proxy
  392. } = getCurrentInstance();
  393. const elId = `sheep_${Math.ceil(Math.random() * 10e5).toString(36)}`;
  394. function getGoodsPriceCardWH() {
  395. if (props.size === 'md') {
  396. const view = uni.createSelectorQuery().in(proxy);
  397. view.select(`#${elId}`).fields({
  398. size: true,
  399. scrollOffset: true
  400. });
  401. view.exec((data) => {
  402. let totalHeight = 0;
  403. const goodsPriceCard = data[0];
  404. if (props.data.image_wh) {
  405. totalHeight =
  406. (goodsPriceCard.width / props.data.image_wh.w) * props.data.image_wh.h +
  407. goodsPriceCard.height;
  408. } else {
  409. totalHeight = goodsPriceCard.width;
  410. }
  411. emits('getHeight', totalHeight);
  412. });
  413. }
  414. }
  415. onMounted(() => {
  416. nextTick(() => {
  417. getGoodsPriceCardWH();
  418. });
  419. });
  420. </script>
  421. <style lang="scss" scoped>
  422. .tag-icon-box {
  423. position: absolute;
  424. left: 0;
  425. top: 0;
  426. z-index: 2;
  427. .tag-icon {
  428. width: 72rpx;
  429. height: 44rpx;
  430. }
  431. }
  432. .seckill-tag {
  433. position: absolute;
  434. left: 0;
  435. top: 0;
  436. z-index: 2;
  437. width: 68rpx;
  438. height: 38rpx;
  439. background: linear-gradient(90deg, #ff5854 0%, #ff2621 100%);
  440. border-radius: 10rpx 0px 10rpx 0px;
  441. font-size: 24rpx;
  442. font-weight: 500;
  443. color: #ffffff;
  444. line-height: 32rpx;
  445. }
  446. .groupon-tag {
  447. position: absolute;
  448. left: 0;
  449. top: 0;
  450. z-index: 2;
  451. width: 68rpx;
  452. height: 38rpx;
  453. background: linear-gradient(90deg, #fe832a 0%, #ff6600 100%);
  454. border-radius: 10rpx 0px 10rpx 0px;
  455. font-size: 24rpx;
  456. font-weight: 500;
  457. color: #ffffff;
  458. line-height: 32rpx;
  459. }
  460. .goods-img {
  461. width: 100%;
  462. height: 100%;
  463. background-color: #f5f5f5;
  464. }
  465. .price-unit {
  466. margin-right: -4px;
  467. }
  468. .sales-text {
  469. display: table;
  470. font-size: 24rpx;
  471. transform: scale(0.8);
  472. margin-left: 0rpx;
  473. color: #c4c4c4;
  474. }
  475. .activity-tag {
  476. font-size: 20rpx;
  477. color: #ff0000;
  478. line-height: 30rpx;
  479. padding: 0 10rpx;
  480. border: 1px solid rgba(#ff0000, 0.25);
  481. border-radius: 4px;
  482. flex-shrink: 0;
  483. }
  484. .goods-origin-price {
  485. font-size: 20rpx;
  486. color: #c4c4c4;
  487. line-height: 36rpx;
  488. text-decoration: line-through;
  489. }
  490. // xs
  491. .xs-goods-card {
  492. overflow: hidden;
  493. // max-width: 375rpx;
  494. background-color: $white;
  495. position: relative;
  496. .xs-img-box {
  497. width: 128rpx;
  498. height: 128rpx;
  499. margin-right: 20rpx;
  500. }
  501. .xs-goods-title {
  502. font-size: 26rpx;
  503. color: #333;
  504. font-weight: 500;
  505. }
  506. .xs-goods-price {
  507. font-size: 30rpx;
  508. color: $red;
  509. }
  510. }
  511. // sm
  512. .sm-goods-card {
  513. overflow: hidden;
  514. // width: 223rpx;
  515. // width: 100%;
  516. background-color: $white;
  517. position: relative;
  518. .sm-img-box {
  519. // width: 228rpx;
  520. width: 100%;
  521. height: 208rpx;
  522. }
  523. .sm-goods-content {
  524. padding: 20rpx 16rpx;
  525. box-sizing: border-box;
  526. }
  527. .sm-goods-title {
  528. font-size: 26rpx;
  529. color: #333;
  530. }
  531. .sm-goods-price {
  532. font-size: 30rpx;
  533. color: $red;
  534. }
  535. }
  536. // md
  537. .md-goods-card {
  538. overflow: hidden;
  539. width: 100%;
  540. position: relative;
  541. z-index: 1;
  542. background-color: $white;
  543. position: relative;
  544. .md-img-box {
  545. width: 100%;
  546. }
  547. .md-goods-title {
  548. font-size: 26rpx;
  549. color: #333;
  550. width: 100%;
  551. }
  552. .md-goods-subtitle {
  553. font-size: 24rpx;
  554. font-weight: 400;
  555. color: #999999;
  556. }
  557. .md-goods-price {
  558. font-size: 30rpx;
  559. color: $red;
  560. line-height: 36rpx;
  561. }
  562. .cart-box {
  563. width: 54rpx;
  564. height: 54rpx;
  565. background: linear-gradient(90deg, #fe8900, #ff5e00);
  566. border-radius: 50%;
  567. position: absolute;
  568. bottom: 50rpx;
  569. right: 20rpx;
  570. z-index: 2;
  571. .cart-icon {
  572. width: 30rpx;
  573. height: 30rpx;
  574. }
  575. }
  576. }
  577. // lg
  578. .lg-goods-card {
  579. overflow: hidden;
  580. position: relative;
  581. z-index: 1;
  582. background-color: $white;
  583. height: 190rpx;
  584. .lg-img-box {
  585. width: 190rpx;
  586. height: 190rpx;
  587. margin-right: 20rpx;
  588. }
  589. .lg-goods-title {
  590. font-size: 28rpx;
  591. font-weight: 500;
  592. color: #333333;
  593. // line-height: 36rpx;
  594. // width: 410rpx;
  595. }
  596. .lg-goods-subtitle {
  597. font-size: 24rpx;
  598. font-weight: 400;
  599. color: #999999;
  600. // line-height: 30rpx;
  601. // width: 410rpx;
  602. }
  603. .lg-goods-price {
  604. font-size: 30rpx;
  605. color: $red;
  606. line-height: 36rpx;
  607. }
  608. .buy-box {
  609. // position: absolute;
  610. bottom: 20rpx;
  611. right: 20rpx;
  612. z-index: 2;
  613. // width: 120rpx;
  614. height: 50rpx;
  615. // background: linear-gradient(90deg, #fe8900, #ff5e00);
  616. border-radius: 25rpx;
  617. font-size: 24rpx;
  618. color: #ffffff;
  619. .cicon-add-round {
  620. font-size: 44rpx;
  621. color: var(--ui-BG-Main);
  622. }
  623. }
  624. .tag-box {
  625. width: 100%;
  626. }
  627. }
  628. // sl
  629. .sl-goods-card {
  630. overflow: hidden;
  631. position: relative;
  632. z-index: 1;
  633. width: 100%;
  634. background-color: $white;
  635. .sl-goods-content {
  636. padding: 20rpx 20rpx;
  637. box-sizing: border-box;
  638. }
  639. .sl-img-box {
  640. width: 100%;
  641. height: 360rpx;
  642. }
  643. .sl-goods-title {
  644. font-size: 26rpx;
  645. color: #333;
  646. font-weight: 500;
  647. }
  648. .sl-goods-subtitle {
  649. font-size: 24rpx;
  650. font-weight: 400;
  651. color: #999999;
  652. line-height: 30rpx;
  653. }
  654. .sl-goods-price {
  655. font-size: 30rpx;
  656. color: $red;
  657. line-height: 36rpx;
  658. }
  659. .buy-box {
  660. position: absolute;
  661. bottom: 20rpx;
  662. right: 20rpx;
  663. z-index: 2;
  664. width: 148rpx;
  665. height: 50rpx;
  666. background: linear-gradient(90deg, #fe8900, #ff5e00);
  667. border-radius: 25rpx;
  668. font-size: 24rpx;
  669. color: #ffffff;
  670. }
  671. }
  672. .ss-center {
  673. width: 100%;
  674. display: flex;
  675. align-items: center;
  676. justify-content: center;
  677. justify-content: space-between;
  678. }
  679. </style>