seckill.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801
  1. <template>
  2. <view class="container_box">
  3. <view class="fixed_top_status_bar"></view>
  4. <view class="seckill_top_wrap" :style="{backgroundImage:'url('+ top_bg +')',height:swiper_list.length>0?'358rpx' : nav_list.length == 0&&goods_list.length==0 ? '88rpx' : '160rpx'}">
  5. <view class="seckill_top" :style="{backgroundColor:scroll_top==0?'':'#E31719'}">
  6. <image :src="imgUrl+'seckill/to_back.png'" mode="" class="to_back_icon" @click="toPrev"></image>
  7. <view class="seckill_title" >{{$L('限时秒杀')}}</view>
  8. </view>
  9. <view class="nav_list_wrap" v-if="activity_open">
  10. <view class="nav_list" v-if='goods_list.length>0'>
  11. <view :class="current == 'all'?'nav_item active':'nav_item'" v-if='goods_list.length>0' @click="changeSort('all',0)">{{$L('全部')}}</view>
  12. <view :class="current == index?'nav_item active':'nav_item'" v-for="(item,index) in nav_list" :key="index" @click="changeSort(index,item.labelId)">{{item.labelName}}</view>
  13. </view>
  14. </view>
  15. <view class="swiper_wrap" v-if="activity_open&&is_show_banner" :style="{paddingTop:is_show_banner?'10rpx':'150rpx'}">
  16. <swiper class="carousel" circular @change="swiperChange" autoplay="true">
  17. <swiper-item v-show="swiperItem.imgUrl" class="carousel_item" v-for="(swiperItem,swiperIndex) in swiper_list" :key="swiperIndex" @click="skipTo(swiperItem)">
  18. <image :src="swiperItem.imgUrl" class="carousel_item"/>
  19. </swiper-item>
  20. </swiper>
  21. </view>
  22. </view>
  23. <view v-if="activity_open" :style="{marginTop:is_show_banner?'86rpx':'10rpx'}">
  24. <view :class="is_fixed_nav?'fixed_nav seckill_time_wrap':'seckill_time_wrap'" :style="{marginTop:swiper_list.length>0?'0':'10rpx'}" v-if="time_list.length>0&&current=='all'">
  25. <view class="seckill_icon_wrap">
  26. <image :src="imgUrl+'seckill/seckill_icon.png'" mode="" class="seckill_icon"></image>
  27. </view>
  28. <view class="seckill_time">
  29. <view class="seckill_time_item" v-for="(item,index) in time_list" :key="index" @click="changeList(index,item.stageId)">
  30. <view :class="currIndex == index?'active_time time_item':'time_item'">{{item.time}}</view>
  31. <view :class="currIndex == index?'active_time_text time_text':'time_text'">{{item.state==1?'即将开始':'已开抢'}}</view>
  32. </view>
  33. </view>
  34. </view>
  35. <view class="goods_wrap" :style="{paddingTop:is_fixed_nav?'160rpx':'0'}">
  36. <view class="goods_item" v-for="(item,index) in goods_list" :key="index" @click="toGoodsDetail(item.productId,item.goodsId)">
  37. <view class="goods_img_wrap">
  38. <image :src="item.mainImage" mode="" class="goods_img"></image>
  39. </view>
  40. <view class="goods_item_wrap">
  41. <view class="goods_name">{{item.goodsName}}</view>
  42. <view class="goods_bottom_wrap">
  43. <view class="goods_bottom_left">
  44. <view class="goods_price">
  45. <text class="small_price">¥</text>
  46. <text class="big_price">{{$getPartNumber(item.seckillPrice,'int')}}</text>
  47. <text class="small_price">{{$getPartNumber(item.seckillPrice,'decimal')}}</text>
  48. </view>
  49. <view class="old_price">¥{{$getPartNumber(item.productPrice,'int')}}{{$getPartNumber(item.productPrice,'decimal')}}</view>
  50. </view>
  51. <!-- 进行中去抢购 -->
  52. <view class="goods_bottom_right" :style="{backgroundImage:'url('+ purchase_url +')'}" v-if="item.state == 2 && item.secKillProgress !='100%'">
  53. <text class="to_buy">{{$L('去抢购')}}</text>
  54. <view class="progress-box">
  55. <progress :percent="$formatPercent(item.secKillProgress)" stroke-width="3" backgroundColor="rgba(0,0,0,0)" border-radius="5" activeColor="#fff"/>
  56. </view>
  57. <text class="have_buy_percent">{{$L('已抢')}}{{item.secKillProgress}}</text>
  58. </view>
  59. <!-- 进行中已抢完 -->
  60. <view class="sold_out_wrap" v-if="item.state == 2 && item.secKillProgress =='100%'">
  61. <view class="sold_out_btn" @click.stop="haveSoldOut">{{$L('已抢完')}}</view>
  62. <view class="sold_out_num">{{item.buyQuantity}}{{$L('件已抢完')}}</view>
  63. </view>
  64. <!-- 即将开始设置/取消提醒 -->
  65. <view class="remind_wrap" v-if="item.state == 1">
  66. <view class="set_remind_btn remind_btn" v-if="!item.isRemind" @click.stop="setRemind(item.stageProductId)">{{$L('设置提醒')}}</view>
  67. <view class="cancel_remind_btn remind_btn" v-else @click.stop="setRemind(item.stageProductId)">{{$L('取消提醒')}}</view>
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. <view class="is_more" v-if="goods_list.length > 0">{{hasmore ? '数据加载中...' : '数据加载完毕~'}}</view>
  73. </view>
  74. <!-- 无秒杀空页面 -->
  75. <view class="empty_page" v-if="is_show_empty">
  76. <image :src="imgUrl+'index/empty.png'" mode="" class="empty_img"></image>
  77. <view class="empty_text">{{$L('今日无秒杀')}}</view>
  78. </view>
  79. </view>
  80. <notOpen v-if='!activity_open'></notOpen>
  81. </view>
  82. </template>
  83. <script>
  84. import {
  85. mapState
  86. } from 'vuex';
  87. import notOpen from '../../components/not_open.vue'
  88. export default{
  89. data(){
  90. return {
  91. imgUrl:getApp().globalData.imgUrl,
  92. top_bg:getApp().globalData.imgUrl+'seckill/top_bg2.png',
  93. top_bg2:getApp().globalData.imgUrl+'seckill/top_bg2.png',
  94. purchase_url:getApp().globalData.imgUrl+'seckill/purchase_bg.png',
  95. nav_list:[],
  96. swiper_list:[],
  97. time_list:[],
  98. goods_list:[],
  99. current:'all',
  100. swiperCurrent:0,
  101. currIndex:0,
  102. label_id:0, //分类id
  103. stage_id:'', //场次id
  104. pn:1,
  105. has_more:true,
  106. seckillId:'',
  107. is_show_banner:true,
  108. is_show_empty:false,
  109. banner_height:'358rpx',
  110. is_fixed_nav:false, //是否固定场次
  111. if_hide:false,
  112. scroll_top:0,
  113. activity_open:false
  114. }
  115. },
  116. components:{
  117. notOpen
  118. },
  119. computed: {
  120. ...mapState(['hasLogin','userInfo'])
  121. },
  122. onLoad(option){
  123. this.ifOpen()
  124. this.seckillId = option.seckillId
  125. },
  126. onShow(){
  127. if(this.if_hide&&this.activity_open){
  128. if(this.stage_id){
  129. this.getActivityGoods()
  130. }
  131. }
  132. },
  133. onHide(){
  134. this.if_hide=true
  135. },
  136. onPageScroll(e){
  137. this.scroll_top=e.scrollTop
  138. if(this.is_show_banner){ //有轮播图
  139. if(e.scrollTop > 179){
  140. this.top_bg = getApp().globalData.imgUrl+'seckill/top_bg2.png'
  141. this.is_fixed_nav = true
  142. }else{
  143. this.top_bg = this.is_show_banner?getApp().globalData.imgUrl+'seckill/top_bg.png':getApp().globalData.imgUrl+'seckill/top_bg2.png',
  144. this.is_fixed_nav = false
  145. }
  146. }else{ //没有轮播图
  147. if(e.scrollTop > 44){
  148. this.is_fixed_nav = true
  149. }else{
  150. this.is_fixed_nav = false
  151. }
  152. }
  153. },
  154. onReachBottom(){
  155. if(this.hasmore){
  156. this.getActivityGoods()
  157. }
  158. },
  159. methods:{
  160. // 判断活动是否开启
  161. ifOpen(){
  162. let param = {}
  163. param.data={}
  164. param.data.names='seckill_is_enable'
  165. param.url = 'v3/system/front/setting/getSettings'
  166. param.method = 'GET'
  167. this.$request(param).then(res => {
  168. if (res.state == 200) {
  169. if(res.data[0]=='1'){
  170. this.activity_open=true
  171. this.getSeckillList()
  172. this.getBannerList()
  173. }else{
  174. this.activity_open=false
  175. }
  176. }
  177. })
  178. },
  179. toPrev(){
  180. // #ifdef H5
  181. const pages = getCurrentPages()
  182. if (pages.length > 1) {
  183. uni.navigateBack(1)
  184. return;
  185. }
  186. //使用vue-router返回上一级
  187. let a = this.$router.go(-1)
  188. if (a == undefined) {
  189. //重新定向跳转页面
  190. uni.reLaunch({
  191. url: '/pages/index/index'
  192. })
  193. }
  194. return;
  195. // #endif
  196. uni.navigateBack(1)
  197. },
  198. //获取轮播图
  199. getBannerList(){
  200. let _this = this
  201. this.$request({
  202. url:'v3/promotion/front/seckill/banner',
  203. method: 'GET',
  204. data:{
  205. seckillId:_this.seckillId
  206. }
  207. }).then((res)=>{
  208. if (res.state == 200) {
  209. var newList=[]
  210. if(res.data.banner){
  211. _this.swiper_list=JSON.parse(res.data.banner)
  212. _this.swiper_list.map((item)=>{
  213. if(item.imgUrl){
  214. newList.push(item)
  215. }
  216. })
  217. }
  218. _this.swiper_list=newList
  219. if(_this.swiper_list.length == 0){
  220. _this.top_bg = getApp().globalData.imgUrl+'seckill/top_bg2.png'
  221. _this.is_show_banner = false
  222. }else{
  223. _this.top_bg = getApp().globalData.imgUrl+'seckill/top_bg.png'
  224. _this.is_show_banner = true
  225. }
  226. // _this.getSessionList()
  227. }else if(res.state == 255){
  228. _this.is_show_empty = true
  229. }else{
  230. uni.showToast({
  231. title:res.msg,
  232. icon:'none'
  233. })
  234. }
  235. });
  236. },
  237. // 获取顶部分类
  238. getSeckillList(){
  239. let _this = this
  240. this.$request({
  241. url:'v3/promotion/front/seckill/getSeckillLabel',
  242. method: 'GET',
  243. data:{
  244. seckillId:_this.seckillId
  245. }
  246. }).then((res)=>{
  247. if (res.state == 200) {
  248. let result = res.data.list
  249. if(result.length > 0){
  250. _this.nav_list = result
  251. // _this.label_id = _this.label_id == ''?_this.nav_list[0].labelId:_this.label_id
  252. _this.currIndex = 0
  253. }else{
  254. _this.is_show_empty = true
  255. }
  256. _this.getSessionList()
  257. }else if(res.state == 255){
  258. _this.is_show_empty = true
  259. }else{
  260. uni.showToast({
  261. title:res.msg,
  262. icon:'none'
  263. })
  264. }
  265. });
  266. },
  267. // 获取场次列表
  268. getSessionList(){
  269. let _this = this
  270. this.$request({
  271. url:'v3/promotion/front/seckill/getSeckillStage',
  272. method: 'GET',
  273. data:{
  274. seckillId:_this.seckillId
  275. }
  276. }).then((res)=>{
  277. if (res.state == 200) {
  278. let result = res.data.list
  279. if(result != null && result.length>0){
  280. _this.time_list = result
  281. _this.stage_id = _this.time_list[_this.currIndex].stageId
  282. this.getActivityGoods()
  283. }else{
  284. _this.is_show_empty = true
  285. }
  286. }else if(res.state == 255){
  287. _this.is_show_empty = true
  288. }else{
  289. uni.showToast({
  290. title:res.msg,
  291. icon:'none'
  292. })
  293. }
  294. });
  295. },
  296. // 获取商品列表activitySession
  297. getActivityGoods(){
  298. uni.showLoading()
  299. let _this = this
  300. var param={}
  301. param.labelId=_this.label_id
  302. if(_this.current=='all'){
  303. param.stageId=_this.stage_id
  304. }
  305. param.seckillId=_this.seckillId
  306. this.$request({
  307. url:'v3/promotion/front/seckill/goodsList',
  308. data:param,
  309. method: 'GET',
  310. }).then((res)=>{
  311. if (res.state == 200) {
  312. let result = res.data
  313. if(_this.current=='all'){
  314. _this.is_show_empty = _this.time_list.length == 0?true:false
  315. }else{
  316. _this.is_show_empty = result.list.length == 0?true:false
  317. }
  318. if(_this.pn == 1){
  319. _this.goods_list = result.list
  320. }else{
  321. _this.goods_list = _this.goods_list.concat(result.list)
  322. }
  323. let page = result.pagination
  324. if(page.current < Math.ceil(page.total/page.pageSize)){
  325. _this.hasmore = true
  326. }else{
  327. _this.hasmore = false
  328. }
  329. if(_this.hasmore){
  330. _this.pn ++
  331. }
  332. uni.hideLoading()
  333. }else{
  334. uni.hideLoading()
  335. uni.showToast({
  336. title:res.msg,
  337. icon:'none'
  338. })
  339. }
  340. });
  341. },
  342. // 切换分类
  343. async changeSort(index,id){
  344. this.current = index
  345. this.label_id = id
  346. this.currIndex = 0
  347. await this.getSessionList()
  348. },
  349. // 切换场次
  350. async changeList(index,id){
  351. this.currIndex = index
  352. this.stage_id = id
  353. await this.getActivityGoods()
  354. },
  355. swiperChange(e){
  356. this.swiperIndex = e.detail.current
  357. },
  358. // 设置/取消提醒
  359. setRemind(stageProductId){
  360. if(this.hasLogin){
  361. let param = {
  362. stageProductId
  363. }
  364. let _this = this
  365. this.$request({
  366. url: 'v3/promotion/front/seckill/isRemind',
  367. method: 'POST',
  368. data: param,
  369. }).then((res)=>{
  370. if (res.state == 200) {
  371. uni.showToast({
  372. title:res.msg
  373. })
  374. setTimeout(()=>{
  375. _this.getActivityGoods()
  376. },1500)
  377. }else{
  378. uni.showToast({
  379. title:res.msg,
  380. icon:'none'
  381. })
  382. }
  383. });
  384. }else{
  385. uni.navigateTo({
  386. url:'/pages/public/login'
  387. })
  388. }
  389. },
  390. toGoodsDetail(productId,goodsId){
  391. uni.navigateTo({
  392. url:'/pages/product/detail?productId='+productId+'&goodsId='+goodsId
  393. })
  394. },
  395. // 已抢完
  396. haveSoldOut(){
  397. uni.showToast({
  398. title:'该商品已抢完,去看看别的吧!',
  399. icon:'none'
  400. })
  401. },
  402. // 相关跳转
  403. skipTo(swiperitem) {
  404. if (swiperitem.link_type == 'url') { //跳转链接地址
  405. // #ifdef H5
  406. window.open(swiperitem.link_value)
  407. // #endif
  408. // #ifdef APP-PLUS
  409. plus.runtime.openURL(swiperitem.link_value) //这里默认使用外部浏览器打开而不是内部web-view组件打开
  410. // #endif
  411. // #ifdef MP
  412. uni.navigateTo({
  413. url: '/pages/index/skip_to?url=' + swiperitem.link_value
  414. })
  415. // #endif
  416. } else if (swiperitem.link_type == 'goods') { //跳转商品详情页
  417. uni.navigateTo({
  418. url: '/pages/product/detail?productId=' + swiperitem.info.defaultProductId + '&goodsId=' + swiperitem.info.goodsId
  419. })
  420. } else if (swiperitem.link_type == 'category') { // 分类列表
  421. uni.navigateTo({
  422. url: '/pages/product/list?categoryId=' + swiperitem.info.categoryId
  423. })
  424. } else if (swiperitem.link_type == 'keyword') { // 关键词
  425. uni.navigateTo({
  426. url: '/pages/product/list?keyword=' + swiperitem.link_value + '&source=search'
  427. })
  428. } else if (swiperitem.link_type == 'topic') { //跳转专题页
  429. uni.navigateTo({
  430. url: '/pages/index/topic?id=' + swiperitem.info.decoId
  431. })
  432. } else if (swiperitem.link_type == 'brand_home') { //品牌列表
  433. uni.navigateTo({
  434. url: '/pages/public/brand'
  435. })
  436. } else if(swiperitem.link_type == 'seckill'){ //秒杀
  437. uni.navigateTo({
  438. url: '/pages/seckill/seckill?seckillId=' + swiperitem.info.seckillId
  439. })
  440. }else if(swiperitem.link_type == 'voucher_center'){ //优惠券领券中心
  441. uni.navigateTo({
  442. url: '/pages/coupon/couponCenter'
  443. })
  444. }
  445. },
  446. }
  447. }
  448. </script>
  449. <style lang='scss' scoped>
  450. /deep/.uni-swiper-wrapper{
  451. border-radius: 5px!important;
  452. }
  453. </style>
  454. <style lang="scss">
  455. .fixed_top_status_bar {
  456. position: fixed;
  457. /* #ifdef APP-PLUS */
  458. height: var(--status-bar-height);
  459. /* #endif */
  460. /* #ifndef APP-PLUS */
  461. height: 0;
  462. /* #endif */
  463. top: 0;
  464. left: 0;
  465. right: 0;
  466. z-index: 99;
  467. background: #fff;
  468. }
  469. .uni-swiper__dots-box{
  470. border-radius: 5px!important;
  471. }
  472. page{
  473. background-color: #f5f5f5;
  474. }
  475. .container_box{
  476. padding-top:var(--status-bar-height);
  477. width:750rpx;
  478. margin:0 auto;
  479. .seckill_top_wrap{
  480. width:750rpx;
  481. height:358rpx;
  482. background-size: 100% 100%;
  483. .seckill_top{
  484. width:750rpx;
  485. height:88rpx;
  486. display: flex;
  487. justify-content: center;
  488. align-items: center;
  489. position: fixed;
  490. top:0;
  491. left:50%;
  492. transform: translateX(-50%);
  493. z-index:1000;
  494. // #ifdef MP
  495. top: 20rpx;
  496. // #endif
  497. // #ifdef APP-PLUS
  498. top: var(--status-bar-height);
  499. // #endif
  500. // background-color: #E31719;
  501. .to_back_icon{
  502. width: 17rpx;
  503. height:29rpx;
  504. position:absolute;
  505. left:20rpx;
  506. top:32rpx;
  507. }
  508. .seckill_title{
  509. font-size: 36rpx;
  510. color:#fff;
  511. }
  512. }
  513. .nav_list_wrap{
  514. width:100%;
  515. box-sizing: border-box;
  516. margin-right: 20rpx;
  517. padding-top:88rpx;
  518. .nav_list{
  519. height:50rpx;
  520. display: flex;
  521. align-items: center;
  522. overflow-x: scroll;
  523. padding-left:20rpx;
  524. box-sizing: border-box;
  525. margin-right: 20rpx;
  526. .nav_item{
  527. white-space: nowrap;
  528. font-size:32rpx;
  529. color:#fff;
  530. margin-right:53rpx;
  531. }
  532. }
  533. }
  534. .swiper_wrap{
  535. padding:10rpx 20rpx 0 20rpx;
  536. height:300rpx;
  537. .carousel{
  538. width:100%;
  539. height:300rpx;
  540. border-radius: 5px;
  541. .carousel_item{
  542. width:100%;
  543. height:300rpx;
  544. border-radius: 5px;
  545. }
  546. }
  547. }
  548. }
  549. .seckill_time_wrap{
  550. width:750rpx;
  551. padding:0 20rpx;
  552. height:137rpx;
  553. display: flex;
  554. align-items: center;
  555. margin-top:82rpx;
  556. box-sizing: border-box;
  557. .seckill_icon_wrap{
  558. width:64rpx;
  559. height:94rpx;
  560. margin-right:25rpx;
  561. .seckill_icon{
  562. width:64rpx;
  563. height:94rpx;
  564. }
  565. }
  566. .seckill_time{
  567. width: 100%;
  568. display: flex;
  569. overflow-x: scroll;
  570. .seckill_time_item{
  571. margin-right:40rpx;
  572. display: flex;
  573. flex-direction: column;
  574. align-items: center;
  575. justify-content: center;
  576. .time_item{
  577. font-size:32rpx;
  578. color:#333;
  579. font-weight: bold;
  580. }
  581. .time_text{
  582. font-size:24rpx;
  583. color:#666;
  584. white-space: nowrap;
  585. padding:5rpx 10rpx;
  586. line-height: 24rpx;
  587. }
  588. }
  589. }
  590. .seckill_time view:last-child{
  591. margin-right:0;
  592. }
  593. }
  594. .goods_wrap{
  595. width:750rpx;
  596. padding:0 20rpx;
  597. box-sizing: border-box;
  598. .goods_item{
  599. width:100%;
  600. height:310rpx;
  601. background-color: #fff;
  602. border-radius: 15rpx;
  603. display: flex;
  604. padding:20rpx;
  605. box-sizing: border-box;
  606. margin-bottom:20rpx;
  607. .goods_img_wrap{
  608. width:270rpx;
  609. height:270rpx;
  610. border-radius: 15rpx;
  611. margin-right:20rpx;
  612. background-color: #f8f8f8;
  613. .goods_img{
  614. width:270rpx;
  615. height:270rpx;
  616. border-radius: 15rpx;
  617. }
  618. }
  619. .goods_item_wrap{
  620. width:100%;
  621. position: relative;
  622. .goods_name{
  623. font-size:28rpx;
  624. color:#2D2D2D;
  625. font-weight: 600;
  626. overflow: hidden;
  627. text-overflow: ellipsis;
  628. display: -webkit-box;
  629. -webkit-line-clamp: 2;
  630. -webkit-box-orient: vertical;
  631. word-break: break-word;
  632. margin-top:20rpx;
  633. }
  634. .goods_bottom_wrap{
  635. width:100%;
  636. position: absolute;
  637. bottom:0;
  638. left:0;
  639. display: flex;
  640. justify-content: space-between;
  641. .goods_bottom_left{
  642. padding-top: 10rpx;
  643. box-sizing: border-box;
  644. .goods_price{
  645. color:#FC1C1C;
  646. font-weight: bold;
  647. .small_price{
  648. font-size:24rpx;
  649. }
  650. .big_price{
  651. font-size:34rpx;
  652. }
  653. }
  654. .old_price{
  655. font-size:20rpx;
  656. color:#999;
  657. text-decoration: line-through;
  658. }
  659. }
  660. .sold_out_wrap{
  661. .sold_out_btn{
  662. width: 138rpx;
  663. height: 50rpx;
  664. font-size:26rpx;
  665. display: flex;
  666. justify-content: center;
  667. align-items: center;
  668. color:#fff;
  669. background: #999999;
  670. border-radius: 25rpx;
  671. }
  672. .sold_out_num{
  673. font-size: 22rpx;
  674. color:#666;
  675. margin-top:14rpx;
  676. text-align: center;
  677. }
  678. }
  679. .goods_bottom_right{
  680. width:129rpx;
  681. height:86rpx;
  682. display: flex;
  683. flex-direction: column;
  684. align-items: center;
  685. background-size: 100% 100%;
  686. .to_buy{
  687. font-size:26rpx;
  688. color:#fff;
  689. margin:6rpx 0;
  690. }
  691. .progress-box{
  692. width:90rpx;
  693. }
  694. .have_buy_percent{
  695. font-size: 20rpx;
  696. color:#fff;
  697. transform: scale(0.8);
  698. font-weight: 400;
  699. }
  700. }
  701. .remind_wrap{
  702. height:86rpx;
  703. display: flex;
  704. align-items: flex-end;
  705. .set_remind_btn{
  706. color: #fff;
  707. background: linear-gradient(90deg, #FCE000 0%, #FF6B23 0%, #FF133A 100%);
  708. }
  709. .cancel_remind_btn{
  710. color:#333;
  711. border: 1rpx solid #A6A6A6;
  712. box-sizing: border-box;
  713. }
  714. .remind_btn{
  715. width: 138rpx;
  716. height: 50rpx;
  717. font-size:26rpx;
  718. display: flex;
  719. justify-content: center;
  720. align-items: center;
  721. border-radius: 25rpx;
  722. }
  723. }
  724. }
  725. }
  726. }
  727. }
  728. }
  729. .active{
  730. font-size:32rpx !important;
  731. font-weight: bold;
  732. }
  733. .active_time{
  734. font-size:32rpx;
  735. font-weight: bold;
  736. color:#EC2116 !important;
  737. }
  738. .active_time_text{
  739. padding:2rpx 10rpx;
  740. background-color: #EC2116;
  741. color:#fff !important;
  742. border-radius: 17rpx;
  743. }
  744. .progress-box /deep/ .uni-progress /deep/ .uni-progress-bar{
  745. border:1rpx solid #fff;
  746. height:4rpx !important;
  747. border-radius: 3rpx;
  748. }
  749. .empty_page{
  750. display: flex;
  751. flex-direction: column;
  752. justify-content: center;
  753. align-items: center;
  754. margin-top:200rpx;
  755. .empty_img{
  756. width:210rpx;
  757. height: 210rpx;
  758. margin-bottom:32rpx;
  759. }
  760. .empty_text{
  761. font-size: 26rpx;
  762. color:#666;
  763. }
  764. }
  765. /* 加载更多,没有更多 */
  766. .is_more {
  767. width: 100%;
  768. display: flex;
  769. align-items: center;
  770. justify-content: center;
  771. font-size: 22rpx;
  772. color: #999999;
  773. line-height: 22rpx;
  774. padding: 10rpx 0 30rpx;
  775. background: #F5F5F5;
  776. }
  777. .fixed_nav{
  778. position:fixed;
  779. top:78rpx;
  780. left:50%;
  781. transform: translateX(-50%);
  782. z-index:999;
  783. background-color: #f5f5f5;
  784. }
  785. </style>