多租户商城-商户小程序端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

824 lines
22 KiB

3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <template>
  2. <div class="hom-pro-list">
  3. <div class="title" v-if="false">
  4. <!-- #ifdef MP-WEIXIN -->
  5. <img class="title-img" src="../../../static/images/product/img-title.png" alt="商品推荐" mode="widthFix" />
  6. <!-- #endif -->
  7. <!-- #ifdef H5 || APP-PLUS -->
  8. <image class="title-img" src="../../../static/images/product/img-title.png" alt="商品推荐" mode="widthFix" />
  9. <!-- #endif -->
  10. </div>
  11. <div v-if="componentContent.arrangeType == '横向滑动' && productData.length > 2" class="product-list">
  12. <scroll-view ref="mySwiper" class="swiper product-list-box" scroll-x="true">
  13. <div class="swiper-wrap">
  14. <div class="product-list-item-warp" v-for="(item,index) in productData" :key="index">
  15. <div class="product-list-item"
  16. v-if="JSON.stringify(item)!=='{}' && componentContent.productStyleValue == '1'"
  17. @click="jumpProductDetail(item)">
  18. <div class="product-list-img">
  19. <img class="img pic-img default-img" :src="item.image"
  20. onerror="this.src='url(http://36.138.125.206:8081/ceres-local-file/image/default.png) no-repeat center';this.οnerrοr=null">
  21. </div>
  22. <div class="product-list-info">
  23. <label class="product-name">{{ item.productName }}</label>
  24. <div class="flex">
  25. <div class="shop-box" v-if="typeId == 1" @click.stop="jumpStore(item)">
  26. <label class="shop-name">{{ item.shopName }}</label>
  27. </div>
  28. <label class="buy-count">已售{{ item.number ? item.number : 0 }}</label>
  29. </div>
  30. <div class="price-warp">
  31. <!-- #ifdef MP-WEIXIN -->
  32. <img class="iconImg" v-if="item.activityType == 1"
  33. src="../../../static/images/groupBuyIcon.png">
  34. <img class="iconImg" v-if="item.activityType == 2"
  35. src="../../../static/images/spikeIcon.png">
  36. <img class="iconImg" v-if="item.activityType == 4"
  37. src="../../../static/images/spikeIcon.png">
  38. <img class="iconImg" v-if="item.activityType == 3"
  39. src="../../../static/images/discountListIcon.png">
  40. <img class="iconImg" v-if="item.activityType == 5"
  41. src="../../../static/images/discountListIcon.png">
  42. <img class="iconImg" v-if="item.activityType == 9"
  43. src="../../../static/images/memberCenterIcon.png">
  44. <img class="iconImg" v-if="item.activityType == 8"
  45. src="https://zk-cereshop.oss-cn-shenzhen.aliyuncs.com/zkthink/2022-02-15/d0d8d96f28904167b271de4ae924d1a8_sceneMarketing.png">
  46. <!-- #endif -->
  47. <!-- #ifdef H5 || APP-PLUS -->
  48. <image class="iconImg" v-if="item.activityType == 1"
  49. src="../../../static/images/groupBuyIcon.png">
  50. <image class="iconImg" v-if="item.activityType == 2"
  51. src="../../../static/images/spikeIcon.png">
  52. <image class="iconImg" v-if="item.activityType == 4"
  53. src="../../../static/images/spikeIcon.png">
  54. <image class="iconImg" v-if="item.activityType == 3"
  55. src="../../../static/images/discountListIcon.png">
  56. <image class="iconImg" v-if="item.activityType == 5"
  57. src="../../../static/images/discountListIcon.png">
  58. <image class="iconImg" v-if="item.activityType == 9"
  59. src="../../../static/images/memberCenterIcon.png">
  60. <image class="iconImg" v-if="item.activityType == 8"
  61. src="https://zk-cereshop.oss-cn-shenzhen.aliyuncs.com/zkthink/2022-02-15/d0d8d96f28904167b271de4ae924d1a8_sceneMarketing.png">
  62. <!-- #endif -->
  63. <div class="price">
  64. ¥ {{ item.price }}
  65. </div>
  66. <div class="original-price">
  67. ¥ {{ item.originalPrice }}
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. <div class="product-swiper-item" v-if="componentContent.productStyleValue == '2'">
  73. <div class="product-swiper-img">
  74. <img class="img pic-img default-img" :src="item.image"
  75. onerror="this.src='url(http://36.138.125.206:8081/ceres-local-file/image/default.png) no-repeat center';this.οnerrοr=null">
  76. </div>
  77. <div class="product-swiper-info">
  78. <div class="product-info-content">
  79. <div class="product-name-row">
  80. <label class="product-name">{{ item.productName }}</label>
  81. <img class="product-star" src="../../../static/images/product/icon_star.png">
  82. <label class="product-star-text">{{ item.qaNum || 3.5 }}</label>
  83. </div>
  84. <div class="product-price-row">
  85. <div class="price-warp">
  86. ¥ {{ item.price }}
  87. </div>
  88. <img class="product-add" src="../../../static/images/product/icon_add.png">
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. <div class="item3" v-if="componentContent.productStyleValue == '3'">
  94. <div class="item3_name">{{ item.productName }}</div>
  95. <div class="item3_image">
  96. <img :src="item.image" fit="contain"></img>
  97. </div>
  98. <div class="item3_btn_row">
  99. <div class="item3_btn">点击</div>
  100. </div>
  101. </div>
  102. <div class="item4" v-if="componentContent.productStyleValue == '4'">
  103. <div class="item4_content">
  104. <div class="item4_image">
  105. <img :src="item.image" fit="contain"></img>
  106. </div>
  107. <div class="item4_info">
  108. <div class="item4_name">{{ item.productName }}</div>
  109. <div class="item4_price">¥{{ item.price }}</div>
  110. </div>
  111. <div class="item4_arrow">
  112. <img src="../../../static/images/product/icon_right_arrow.png">
  113. </div>
  114. </div>
  115. <div class="item4_index_image" v-if="index < 3">
  116. <img src="../../../static/images/product/icon_index_1.png" v-if="index == 0">
  117. <img src="../../../static/images/product/icon_index_2.png" v-if="index == 1">
  118. <img src="../../../static/images/product/icon_index_3.png" v-if="index == 2">
  119. </div>
  120. </div>
  121. <!-- 自定义骨架屏 -->
  122. <div class="product-list-item ske-loading" v-if="JSON.stringify(item)==='{}'">
  123. <div class="product-list-img child-loading">
  124. </div>
  125. <div class="product-list-info">
  126. <label class="product-name child-loading"></label>
  127. <div class="price-warp child-loading" style="padding: 5px 0">
  128. </div>
  129. <div class="price-warp child-loading" style="padding: 5px 0">
  130. </div>
  131. </div>
  132. </div>
  133. </div>
  134. </div>
  135. </scroll-view>
  136. <!-- <view class="swiper-dots" v-if="productData && productData.length > 2" >
  137. <text class="dot" :class="index - swiperCurrent <= 1 && index - swiperCurrent >=0 && 'dot-active'"
  138. v-for="(dot, index) in productData.length" :key="index"></text>
  139. </view> -->
  140. </div>
  141. <div v-else class="product-list">
  142. <ProductSkeleton style="" v-if="isFirst" :loading="loading" :isFirst="isFirst" />
  143. <div class="product-list-box" v-else>
  144. <div class="product-list-item-warp" v-for="(item,index) in productData" :key="index">
  145. <div @click="jumpProductDetail(item)" v-if="componentContent.productStyleValue == '1'"
  146. class="product-list-item">
  147. <div class="product-list-img">
  148. <img class="img pic-img default-img" :src="item.image"
  149. onerror="this.src='url(http://36.138.125.206:8081/ceres-local-file/image/default.png) no-repeat center';this.οnerrοr=null">
  150. </div>
  151. <div class="product-list-info">
  152. <label class="product-name">{{ item.productName }}</label>
  153. <div class="flex">
  154. <div class="shop-box" v-if="typeId == 1" @click.stop="jumpStore(item)">
  155. <label class="shop-name">{{ item.shopName }}</label>
  156. <div class="shop-logo">
  157. <img :src="item.shopLogo">
  158. </div>
  159. </div>
  160. <label class="buy-count">已售{{ item.number ? item.number : 0 }}</label>
  161. </div>
  162. <div class="price-warp">
  163. <!-- #ifdef MP-WEIXIN -->
  164. <img class="iconImg" v-if="item.activityType == 1"
  165. src="../../../static/images/groupBuyIcon.png" />
  166. <img class="iconImg" v-if="item.activityType == 2"
  167. src="../../../static/images/spikeIcon.png" />
  168. <img class="iconImg" v-if="item.activityType == 4"
  169. src="../../../static/images/spikeIcon.png" />
  170. <img class="iconImg" v-if="item.activityType == 3"
  171. src="../../../static/images/discountListIcon.png" />
  172. <img class="iconImg" v-if="item.activityType == 5"
  173. src="../../../static/images/discountListIcon.png" />
  174. <img class="iconImg" v-if="item.activityType == 9"
  175. src="../../../static/images/memberCenterIcon.png" />
  176. <img class="iconImg" v-if="item.activityType == 8"
  177. src="https://zk-cereshop.oss-cn-shenzhen.aliyuncs.com/zkthink/2022-02-15/d0d8d96f28904167b271de4ae924d1a8_sceneMarketing.png" />
  178. <!-- #endif -->
  179. <!-- #ifdef H5 || APP-PLUS -->
  180. <image class="iconImg" v-if="item.activityType == 1"
  181. src="../../../static/images/groupBuyIcon.png" />
  182. <image class="iconImg" v-if="item.activityType == 2"
  183. src="../../../static/images/spikeIcon.png" />
  184. <image class="iconImg" v-if="item.activityType == 4"
  185. src="../../../static/images/spikeIcon.png" />
  186. <image class="iconImg" v-if="item.activityType == 3"
  187. src="../../../static/images/discountListIcon.png" />
  188. <image class="iconImg" v-if="item.activityType == 5"
  189. src="../../../static/images/discountListIcon.png" />
  190. <image class="iconImg" v-if="item.activityType == 9"
  191. src="../../../static/images/memberCenterIcon.png" />
  192. <image class="iconImg" v-if="item.activityType == 8"
  193. src="https://zk-cereshop.oss-cn-shenzhen.aliyuncs.com/zkthink/2022-02-15/d0d8d96f28904167b271de4ae924d1a8_sceneMarketing.png" />
  194. <!-- #endif -->
  195. <div class="price">
  196. ¥ {{ item.price }}
  197. </div>
  198. <div class="original-price">
  199. ¥ {{ item.originalPrice }}
  200. </div>
  201. </div>
  202. </div>
  203. </div>
  204. <div class="product-swiper-item" @click="jumpProductDetail(item)"
  205. v-if="componentContent.productStyleValue == '2'">
  206. <div class="product-swiper-img">
  207. <img class="img pic-img default-img" :src="item.image"
  208. onerror="this.src='url(http://36.138.125.206:8081/ceres-local-file/image/default.png) no-repeat center';this.οnerrοr=null">
  209. </div>
  210. <div class="product-swiper-info">
  211. <div class="product-info-content">
  212. <div class="product-name-row">
  213. <label class="product-name">{{ item.productName }}</label>
  214. <img class="product-star" src="../../../static/images/product/icon_star.png">
  215. <label class="product-star-text">{{ item.qaNum || 3.5 }}</label>
  216. </div>
  217. <div class="product-price-row">
  218. <div class="price-warp">
  219. ¥ {{ item.price }}
  220. </div>
  221. <img class="product-add" src="../../../static/images/product/icon_add.png">
  222. </div>
  223. </div>
  224. </div>
  225. </div>
  226. <div class="item3" @click="jumpProductDetail(item)"
  227. v-if="componentContent.productStyleValue == '3'">
  228. <div class="item3_name">{{ item.productName }}</div>
  229. <div class="item3_image">
  230. <img :src="item.image" fit="contain"></img>
  231. </div>
  232. <div class="item3_btn_row">
  233. <div class="item3_btn">点击</div>
  234. </div>
  235. </div>
  236. <div class="item4" @click="jumpProductDetail(item)"
  237. v-if="componentContent.productStyleValue == '4'">
  238. <div class="item4_content">
  239. <div class="item4_image">
  240. <img :src="item.image" fit="contain"></img>
  241. </div>
  242. <div class="item4_info">
  243. <div class="item4_name">{{ item.productName }}</div>
  244. <div class="item4_price">¥{{ item.price }}</div>
  245. </div>
  246. <div class="item4_arrow">
  247. <img src="../../../static/images/product/icon_right_arrow.png">
  248. </div>
  249. </div>
  250. <div class="item4_index_image" v-if="index < 3">
  251. <img src="../../../static/images/product/icon_index_1.png" v-if="index == 0">
  252. <img src="../../../static/images/product/icon_index_2.png" v-if="index == 1">
  253. <img src="../../../static/images/product/icon_index_3.png" v-if="index == 2">
  254. </div>
  255. </div>
  256. </div>
  257. </div>
  258. </div>
  259. <button v-show="componentContent.showMore" class="btn-more"
  260. @click="jumpProList(componentContent.productData)">查看全部 <span
  261. class="icon iconfont icon-arrow-right"></span></button>
  262. </div>
  263. </template>
  264. <script>
  265. import {
  266. commonMixin
  267. } from '../mixin'
  268. import ProductSkeleton from "@/components/basics/components/ProductSkeleton";
  269. export default {
  270. mixins: [commonMixin],
  271. components: {
  272. ProductSkeleton
  273. },
  274. data() {
  275. return {
  276. swiperCurrent: 0,
  277. }
  278. },
  279. methods: {
  280. swiperChange(e) {
  281. this.swiperCurrent = e.detail.current;
  282. }
  283. }
  284. }
  285. </script>
  286. <style lang="scss" scoped>
  287. .hom-pro-list {
  288. padding: 20rpx 13rpx;
  289. .title {
  290. text-align: center;
  291. margin-bottom: 20rpx;
  292. .title-img {
  293. width: 211rpx;
  294. }
  295. }
  296. /**多行多列**/
  297. .product-list {
  298. position: relative;
  299. .product-list-box {
  300. display: flex;
  301. flex-wrap: wrap;
  302. flex-direction: row;
  303. &.swiper {
  304. height: 470upx;
  305. }
  306. }
  307. .swiper-wrap{
  308. display: flex;
  309. flex-wrap: nowrap;
  310. justify-content: space-between;
  311. padding-left: 20upx;
  312. padding-right: 20upx;
  313. }
  314. &.product-swiper .product-list-box {
  315. padding-left: 0;
  316. }
  317. .product-list-item-warp {
  318. margin: 0 0 0upx 0;
  319. .product-list-item {
  320. width: 348rpx;
  321. padding: 0 7rpx;
  322. box-sizing: content-box;
  323. .product-list-img {
  324. width: 348rpx;
  325. height: 348rpx;
  326. background-color: white;
  327. border-radius: 10rpx 10rpx 0 0;
  328. .img {
  329. width: 100%;
  330. height: 100%;
  331. object-fit: contain;
  332. }
  333. }
  334. .product-list-info {
  335. background-color: #FFFFFF;
  336. //box-shadow: 0px 0px 15px 0px rgba(52, 52, 52, 0.15);
  337. border-radius: 0 0 10rpx 10rpx;
  338. padding: 20rpx;
  339. label {
  340. font-weight: normal;
  341. }
  342. .product-name {
  343. font-size: 28rpx;
  344. color: #333;
  345. display: block;
  346. overflow: hidden;
  347. text-overflow: ellipsis;
  348. white-space: nowrap;
  349. margin-bottom: 18rpx;
  350. line-height: 40rpx;
  351. }
  352. .flex {
  353. display: flex;
  354. align-items: center;
  355. }
  356. .shop-box {
  357. background-color: #333333;
  358. border-radius: 0rpx 20rpx 20rpx 0rpx;
  359. line-height: 40rpx;
  360. display: flex;
  361. align-items: center;
  362. height: 40rpx;
  363. margin-right: 10rpx;
  364. .shop-name {
  365. font-size: 20rpx;
  366. color: #FFEBC4;
  367. padding: 0 8rpx 0 12rpx;
  368. }
  369. .shop-logo {
  370. border: 2rpx solid #707070;
  371. border-radius: 50%;
  372. overflow: hidden;
  373. float: right;
  374. img {
  375. width: 34rpx;
  376. height: 34rpx;
  377. display: block;
  378. }
  379. }
  380. }
  381. .buy-count {
  382. color: #C5AA7B;
  383. font-size: 20rpx;
  384. border: 2rpx solid #E4E5E6;
  385. line-height: 40rpx;
  386. padding: 0 5rpx;
  387. }
  388. .price-warp {
  389. display: flex;
  390. align-items: baseline;
  391. line-height: 56rpx;
  392. .iconImg {
  393. width: 58rpx;
  394. height: 36rpx;
  395. margin-right: 10rpx;
  396. }
  397. .price {
  398. color: #C83732;
  399. font-size: 40rpx;
  400. margin-right: 20rpx;
  401. }
  402. .original-price {
  403. font-size: 24rpx;
  404. color: #ccc;
  405. text-decoration: line-through;
  406. }
  407. }
  408. }
  409. }
  410. .product-swiper-item {
  411. height: 320px;
  412. width: 242px !important;
  413. position: relative;
  414. margin-left: 10px;
  415. margin-right: 10px;
  416. .product-swiper-img {
  417. width: 210px;
  418. height: 220px;
  419. margin-left: auto;
  420. margin-right: auto;
  421. background: #F6F6F8;
  422. border: 2px solid #FFFFFF;
  423. border-radius: 16px;
  424. position: relative;
  425. padding: 20px;
  426. z-index: 2;
  427. box-sizing: border-box;
  428. .img {
  429. width: 100%;
  430. height: 100%;
  431. object-fit: contain;
  432. }
  433. }
  434. .product-swiper-info {
  435. width: 242px;
  436. height: 210px;
  437. position: absolute;
  438. top: 110px;
  439. background: #FDFDFD;
  440. box-shadow: 0px 16px 24px 0px #F6F6F6;
  441. border-radius: 16px;
  442. text-align: center;
  443. .product-info-content {
  444. margin-top: 125px;
  445. .product-name-row {
  446. width: 100%;
  447. height: 22px;
  448. line-height: 22px;
  449. display: flex;
  450. flex-direction: row;
  451. flex-wrap: nowrap;
  452. align-content: center;
  453. justify-content: flex-start;
  454. align-items: center;
  455. .product-name {
  456. width: 100%;
  457. height: auto;
  458. font-size: 16px;
  459. font-family: Source Han Sans CN;
  460. font-weight: bold;
  461. color: #252744;
  462. display: block;
  463. overflow: hidden;
  464. text-overflow: ellipsis;
  465. white-space: nowrap;
  466. line-height: 28upx;
  467. margin-left: 24upx;
  468. text-align: left;
  469. }
  470. .product-star {
  471. width: 22px;
  472. height: 22px;
  473. }
  474. .product-star-text {
  475. width: auto;
  476. height: 28upx;
  477. line-height: 28upx;
  478. font-size: 14px;
  479. font-family: Source Han Sans CN;
  480. font-weight: bold;
  481. color: #A5A5AD;
  482. margin-right: 20upx;
  483. margin-left: 5upx;
  484. }
  485. }
  486. .product-sku-row {
  487. width: 100%;
  488. height: 28upx;
  489. line-height: 28upx;
  490. margin-top: 15upx;
  491. display: flex;
  492. flex-direction: row;
  493. flex-wrap: nowrap;
  494. align-content: center;
  495. justify-content: flex-start;
  496. align-items: center;
  497. .product-sku-name {
  498. font-size: 24px;
  499. font-family: Source Han Sans CN;
  500. font-weight: 400;
  501. color: #90919C;
  502. margin-left: 30upx;
  503. }
  504. }
  505. .product-price-row {
  506. width: 100%;
  507. height: 50upx;
  508. line-height: 50upx;
  509. display: flex;
  510. flex-direction: row;
  511. flex-wrap: nowrap;
  512. align-content: center;
  513. justify-content: space-between;
  514. align-items: center;
  515. margin-top: 10upx;
  516. .price-warp {
  517. display: flex;
  518. align-items: center;
  519. line-height: 28upx;
  520. margin-left: 24upx;
  521. justify-content: flex-start;
  522. width: auto;
  523. flex-direction: row;
  524. flex-wrap: nowrap;
  525. font-size: 14px;
  526. font-family: Source Han Sans CN;
  527. font-weight: bold;
  528. color: #252744;
  529. }
  530. .product-add {
  531. width: 50px;
  532. height: 50px;
  533. margin-right: 24px;
  534. }
  535. }
  536. }
  537. }
  538. }
  539. .item3 {
  540. display: flex;
  541. flex-direction: column;
  542. flex-wrap: nowrap;
  543. align-content: center;
  544. justify-content: center;
  545. align-items: center;
  546. background: #F6F6F8;
  547. box-shadow: 0upx 12upx 24upx 0upx #EDEDED;
  548. border-radius: 24upx;
  549. border: 1upx solid #FFFFFF;
  550. width: 280upx;
  551. height: 430upx;
  552. margin: 10upx 20upx;
  553. .item3_name {
  554. font-family: Source Han Sans CN;
  555. font-weight: 400;
  556. font-size: 24upx;
  557. color: #252744;
  558. margin-top: 15upx;
  559. }
  560. .item3_image {
  561. margin: 15upx;
  562. width: 100%;
  563. padding: 10upx;
  564. box-sizing:border-box;
  565. img {
  566. width: 100%;
  567. }
  568. }
  569. .item3_btn_row {
  570. margin-bottom: 15upx;
  571. .item3_btn {
  572. background: #252744;
  573. border-radius: 24rpx;
  574. font-family: Microsoft YaHei;
  575. font-weight: 400;
  576. font-size: 20rpx;
  577. color: #FFFFFF;
  578. padding-left: 30upx;
  579. padding-right: 30upx;
  580. padding-top: 8upx;
  581. padding-bottom: 10upx;
  582. }
  583. }
  584. }
  585. .item4 {
  586. width: 680upx;
  587. height: 210upx;
  588. margin: 10upx 20upx;
  589. background: #FDFDFD;
  590. box-shadow: 0upx 24upx 60upx 0upx #E5E5E5;
  591. border-radius: 16upx;
  592. position: relative;
  593. .item4_index_image {
  594. width: 50upx;
  595. height: 50upx;
  596. position: absolute;
  597. left: 26upx;
  598. z-index: 100;
  599. img {
  600. width: 100%;
  601. }
  602. }
  603. .item4_content {
  604. width: 100%;
  605. height: 100%;
  606. position: absolute;
  607. display: flex;
  608. flex-direction: row;
  609. flex-wrap: nowrap;
  610. align-content: center;
  611. justify-content: space-between;
  612. align-items: center;
  613. .item4_image {
  614. width: 164upx;
  615. height: 164upx;
  616. background: #F6F6F7;
  617. border-radius: 8upx;
  618. margin: 24upx;
  619. img {
  620. width: 100%;
  621. }
  622. }
  623. .item4_info {
  624. height: 100%;
  625. padding-top: 46upx;
  626. padding-bottom: 46upx;
  627. flex: 1;
  628. display: flex;
  629. flex-direction: column;
  630. flex-wrap: nowrap;
  631. align-content: center;
  632. justify-content: space-between;
  633. align-items: flex-start;
  634. box-sizing:border-box;
  635. .item4_name {
  636. font-family: Microsoft YaHei;
  637. font-weight: bold;
  638. font-size: 28upx;
  639. color: #252744;
  640. }
  641. .item4_price {
  642. font-family: Source Han Sans CN;
  643. font-weight: 400;
  644. font-size: 28upx;
  645. color: #252744;
  646. }
  647. }
  648. .item4_arrow {
  649. width: 20upx;
  650. height: 20upx;
  651. margin: 24upx;
  652. img {
  653. width: 100%;
  654. height: 100%;
  655. }
  656. }
  657. }
  658. }
  659. }
  660. //::v-deep .swiper-pagination-bullet{
  661. // display: none;
  662. //}
  663. }
  664. }
  665. //::v-deep .uni-swiper-dots{
  666. // display: flex;
  667. // justify-content: center;
  668. // padding: 10rpx 0;
  669. // .uni-swiper-dot{
  670. // width: 10rpx;
  671. // height: 10rpx;
  672. // background: #333333;
  673. // opacity: 0.3;
  674. // border-radius: 5rpx;
  675. // margin: 0 5rpx;
  676. // &-active{
  677. // width: 20rpx;
  678. // height: 10rpx;
  679. // opacity: 1;
  680. // }
  681. // }
  682. //}
  683. .swiper-dots {
  684. display: flex;
  685. position: absolute;
  686. left: 50%;
  687. transform: translateX(-50%);
  688. bottom: 15rpx;
  689. z-index: 66;
  690. .dot {
  691. width: 10rpx;
  692. height: 10rpx;
  693. background: #333333;
  694. opacity: 0.3;
  695. border-radius: 5rpx;
  696. margin: 0 10rpx;
  697. }
  698. .dot-active {
  699. width: 20rpx;
  700. opacity: 1;
  701. }
  702. }
  703. //.pagination{
  704. // display: flex;
  705. // justify-content: center;
  706. // padding: 20rpx 0;
  707. // ::v-deep .swiper-pagination-bullet{
  708. // width: 10rpx;
  709. // height: 10rpx;
  710. // background: #333333;
  711. // opacity: 0.3;
  712. // border-radius: 5rpx;
  713. // margin: 0 5rpx;
  714. // }
  715. // ::v-deep .swiper-pagination-bullet-active{
  716. // width: 20rpx;
  717. // height: 10rpx;
  718. // opacity: 1;
  719. // }
  720. //}
  721. .btn-more {
  722. width: 170rpx;
  723. height: 54rpx;
  724. line-height: 54rpx;
  725. border: 2rpx solid #C5AA7B;
  726. color: #C5AA7B;
  727. font-size: 24rpx;
  728. background-color: transparent;
  729. margin: 20rpx auto 0;
  730. display: flex;
  731. align-items: center;
  732. }
  733. </style>