bargain_process.vue 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695
  1. <template>
  2. <view class="bargain-process-container">
  3. <!-- #ifdef H5 -->
  4. <download-nav v-if="showDownload"></download-nav>
  5. <!-- #endif -->
  6. <view v-show="status == -1">
  7. <view class="bargain-process-header">
  8. <view class="mt20 column status-container">
  9. <view class="white xxl">
  10. {{activityObj.bargain_tips}}
  11. </view>
  12. <view class="mt10 white xxs">
  13. {{activityObj.simple_tips}}
  14. </view>
  15. </view>
  16. </view>
  17. <view class="main">
  18. <navigator class="goods-planel row" :url="'/pages/goods_details/goods_details?id=' + activityObj.goods_id" hover-class="none">
  19. <custom-image width="180rpx" height="180rpx" :src="activityObj.image" radius="10rpx" />
  20. <view class="goods-info">
  21. <view class="goods-name line2 nr">
  22. {{activityObj.name}}
  23. </view>
  24. <view class="xs" style="color: #F95F2F;">
  25. 最低可砍至<text class="sm" style="line-height: 48rpx;">¥<text class="xl">{{activityObj.activity_price}}</text></text>
  26. </view>
  27. <view class="xs muted">
  28. 原价 <text style="text-decoration:line-through;">¥{{activityObj.price}}</text>
  29. </view>
  30. </view>
  31. </navigator>
  32. <view class="choose-container">
  33. <view class="title xl normal">
  34. 请选择商品规格
  35. </view>
  36. <view class="choose-content row-between" @click="showSpecPop">
  37. <view class="row">
  38. <view class="muted sm">已选:</view>
  39. <view class="md normal">
  40. {{userSpecText}}
  41. </view>
  42. </view>
  43. <u-icon name="arrow-right" size="28" color="#999" />
  44. </view>
  45. </view>
  46. <view class="lunch-btn white br60 row-center" @click="$launchBargain">发起砍价</view>
  47. </view>
  48. </view>
  49. <view v-show="status != -1">
  50. <view class="bargain-process-header">
  51. <view class="mt20 status-container row">
  52. <custom-image
  53. v-if="bargainObj.share_avatar"
  54. width="80rpx"
  55. height="80rpx"
  56. :src="bargainObj.share_avatar"
  57. round
  58. :customStyle="{'border': '2rpx solid #fff'}"
  59. />
  60. <view class="column ml20">
  61. <view class="white xxl">
  62. {{bargainObj.bargain_tips}}
  63. </view>
  64. <view class="mt10 white xxs">
  65. {{bargainObj.simple_tips || '邀请好友帮忙砍价 —— 砍至'+ bargainObj.current_price +'元即可发货'}}
  66. </view>
  67. </view>
  68. </view>
  69. </view>
  70. <view class="main">
  71. <navigator class="goods-planel row" :url="'/pages/goods_details/goods_details?id=' + bargainObj.goods_id" hover-class="none">
  72. <custom-image width="180rpx" height="180rpx" :src="bargainObj.image" radius="10rpx" />
  73. <view class="goods-info">
  74. <view class="goods-name line2 nr">
  75. {{bargainObj.name}}
  76. </view>
  77. <view class="xs muted">
  78. {{bargainObj.spec_value_str}}
  79. </view>
  80. <view class="row-between mt10">
  81. <view class="xs muted">
  82. 原价 ¥{{bargainObj.price || 0}}
  83. </view>
  84. <view class="row" v-show="showCountDown" v-if="timestamp > 0">
  85. <u-count-down
  86. :timestamp="timestamp"
  87. :bg-color="primaryColor"
  88. color="#fff"
  89. :separator-color="primaryColor"
  90. height="36"
  91. :show-days="true"
  92. @end="closeBargainOrderFun"
  93. />
  94. <text class="muted xs ml10">内可砍</text>
  95. </view>
  96. </view>
  97. </view>
  98. </navigator>
  99. <!-- 非被邀请状态 -->
  100. <view class="bargain-panel" v-if="status != 5">
  101. <view class="bargain-panel-header nr">
  102. 已砍¥{{bargainObj.knife_price || 0}},还差¥{{bargainObj.diff_price || 0}}
  103. </view>
  104. <view class="progress-container row">
  105. <view class="progress">
  106. <view class="progress-bar" :style="{'width': precent + '%'}">
  107. </view>
  108. </view>
  109. <view class="primary xs ml20">
  110. <text class="xxs">¥</text>{{bargainObj.activity_price}}
  111. </view>
  112. </view>
  113. <view class="nr lighter row-center" style="margin-top: 35rpx;" v-if="bargainObj.status != 0 && bargainObj != -1">
  114. {{bargainObj.status_tips}}
  115. </view>
  116. <view class="invite-btn1 br60 white row-center lg" @click="shareToBargain" v-if="bargainObj.direct_buy_btn != 1 && bargainObj.invite_btn">
  117. 邀请好友帮砍价
  118. </view>
  119. <view class="invite-btn1 br60 white row-center lg" v-if="bargainObj.buy_btn" @tap="handleClickBuy" >
  120. 立即购买
  121. </view>
  122. <view class="fail-btn br60 white row-center lg" v-if="bargainObj.status == 2">
  123. 砍价失败
  124. </view>
  125. <view class="invite-btn-group row-between" v-if="bargainObj.direct_buy_btn">
  126. <view class="buy-now-btn br60 md row-center" @click="handleClickBuy">
  127. ¥{{bargainObj.current_price}} 直接购买
  128. </view>
  129. <view class="invite-friend-btn white br60 md row-center" @click="shareToBargain">
  130. 邀请好友帮砍价
  131. </view>
  132. </view>
  133. <view class="invite-btn1 br60 white row-center lg" v-if="bargainObj.order_btn" @click="toOrderDetail">
  134. 查看订单
  135. </view>
  136. <view class="bargain-code-content">
  137. <view class="bargain-code-title row-between">
  138. <view class="md normal bold">
  139. 砍价记录
  140. </view>
  141. <view class="muted xs">
  142. 已有{{bargainObj.knife_list && bargainObj.knife_list.length}}人帮砍
  143. </view>
  144. </view>
  145. <view class="code-content">
  146. <view class="user-item row-between" v-for="(item, index) in bargainObj.knife_list" :key="item.id">
  147. <view class="user-content row">
  148. <custom-image width="80rpx" height="80rpx" radius="60rpx" :src="item.avatar" />
  149. <view class="ml20">
  150. <view class="sm normal">
  151. {{item.nickname}}
  152. </view>
  153. <view class="muted xxs">
  154. 小刀一砍,惊喜满满
  155. </view>
  156. </view>
  157. </view>
  158. <view class="bargain-price xs primary">
  159. ¥{{item.help_price || 0}}
  160. </view>
  161. </view>
  162. </view>
  163. </view>
  164. </view>
  165. <!-- end -->
  166. <!-- 被邀请状态 -->
  167. <view class="shared-panel" v-if="status == 5" >
  168. <view class="btn-container">
  169. <view class="nr muted row-center">
  170. {{bargainObj.status_tips}}
  171. </view>
  172. <view class="help-knife-btn row-center white lg br60" v-if="bargainObj.knife_btn" @click="$helpBargain">
  173. 帮忙砍一刀
  174. </view>
  175. <navigator hover-class="none" url="/pages/bundle/bargain/bargain" class="knife-btn row-center lg normal br60" v-if="bargainObj.sponsor_btn">
  176. 我也要砍价
  177. </navigator>
  178. </view>
  179. <view class="code-content">
  180. <view class="bargain-code-title row-between">
  181. <view class="md normal bold">
  182. 砍价记录
  183. </view>
  184. <view class="muted xs">
  185. 已有{{bargainObj.knife_list.length}}人帮砍
  186. </view>
  187. </view>
  188. <view class="user-item row-between" v-for="(item, index) in bargainObj.knife_list" :key="item.id">
  189. <view class="user-content row">
  190. <custom-image width="80rpx" height="80rpx" radius="60rpx" :src="item.avatar" />
  191. <view class="ml20">
  192. <view class="sm normal">
  193. {{item.nickname}}
  194. </view>
  195. <view class="muted xxs">
  196. 小刀一砍,惊喜满满
  197. </view>
  198. </view>
  199. </view>
  200. <view class="bargain-price xs primary">
  201. ¥{{item.help_price || 0}}
  202. </view>
  203. </view>
  204. </view>
  205. </view>
  206. <!-- end -->
  207. </view>
  208. </view>
  209. <loading-view v-if="showLoadingView" />
  210. <goods-bargain v-if="status != -1" ref="goodsBargain" />
  211. <u-popup v-model="showBargainPop" mode="center">
  212. <view class="bargain-pop-container">
  213. <view class="md normal bold row-center" style="padding-top: 64rpx;">
  214. 恭喜您成功砍下<text class="primary lg">{{knifePrice || 0}}</text>元
  215. </view>
  216. <view class="bold md row-center" style="margin-top: 38rpx;" v-if="!isHelpKnife">
  217. 还差<text class="ml20 differ-price primary">{{diffPrice || 0}}<text style="font-size: 40rpx;">元</text></text>
  218. </view>
  219. <view class="bold primary xxl row-center" style="margin-top: 38rpx;" v-else>
  220. 已为好友砍价成功
  221. </view>
  222. <view class="progress-container row-center">
  223. <view class="progress">
  224. <view class="progress-bar" :style="{'width': precent + '%'}" />
  225. </view>
  226. </view>
  227. <view class="row-center">
  228. <view class="invite-btn row-center md" @click="shareToBargain">
  229. {{isHelpKnife ? '确定' : '邀请好友帮砍'}}
  230. </view>
  231. </view>
  232. </view>
  233. <view class="close-icon row-center" @click="closeBargainPop" mode="bottom">
  234. <u-icon name="close-circle" size="68rpx" color="#fff"></u-icon>
  235. </view>
  236. </u-popup>
  237. <spec-popup
  238. :show="showPop"
  239. :goods="activityObj"
  240. :isBargain="true"
  241. :show-add="false"
  242. :show-buy="false"
  243. :showConfirm="true"
  244. :disabledNumberBox="true"
  245. :showStock="false"
  246. @confirm="chooseSpec"
  247. @close="showPop=false"
  248. />
  249. <share-popup :show="showSharePop" @close="showSharePop = false" :goodsId="bargainId" :isBargain="true" :shareTitle="bargainObj.share_titles || bargainObj.name" :summary="bargainObj.share_intros || bargainObj.simple_tips" :img-url="bargainObj.image" />
  250. <float-tab></float-tab>
  251. </view>
  252. </template>
  253. <script>
  254. export default {
  255. data() {
  256. return {
  257. showPop: false,
  258. showBargainPop: false,
  259. showSharePop: false,
  260. activityObj: {},
  261. bargainObj: {},
  262. status: 1,
  263. precent: 0,
  264. timestamp: 0,
  265. userSpecText: '请选择商品规格',
  266. userSpec: {},
  267. bargainId: -1,
  268. activityId: -1,
  269. // 砍价弹窗变量
  270. knifePrice: 0,
  271. diffPrice: 0,
  272. isHelpKnife: false,
  273. showCountDown: true,
  274. showLoadingView: true,
  275. showDownload: false
  276. }
  277. },
  278. onLoad(options) {
  279. if (options && options.scene) {
  280. let scene = strToParams(decodeURIComponent(options.scene));
  281. options.bargainId = scene.id;
  282. }
  283. if(options && options.id) {
  284. options.bargainId = options.id
  285. }
  286. // #ifdef H5
  287. if(options && options.isapp == 1) {
  288. this.showDownload = true
  289. }
  290. // #endif
  291. // 活动详情ID
  292. this.bargainId = options.bargainId;
  293. // 砍价活动ID
  294. this.activityId = options.activityId;
  295. console.log(this.bargainId, this.activityId, "option")
  296. if(this.activityId && this.activityId != -1) {
  297. this.$getBargainDetail(this.activityId);
  298. }
  299. else if(this.bargainId && this.bargainId != -1) {
  300. this.$getBargainActivityDetail(this.bargainId)
  301. }
  302. },
  303. onReachBottom() {
  304. if(this.$refs.goodsBargain) {
  305. this.$refs.goodsBargain.$getBargainList();
  306. }
  307. },
  308. /**
  309. * 页面相关事件处理函数--监听用户下拉动作
  310. */
  311. onPullDownRefresh: function() {
  312. setTimeout(() => {
  313. uni.stopPullDownRefresh()
  314. }, 200);
  315. },
  316. // #ifdef MP-WEIXIN
  317. onShareAppMessage() {
  318. return {
  319. path: "pages/bundle/bargain_process/bargain_process?bargainId=" + this.bargainId,
  320. title: this.bargainObj.share_titles
  321. }
  322. },
  323. // #endif
  324. methods: {
  325. showSpecPop() {
  326. this.showPop = true;
  327. },
  328. closeBargainPop() {
  329. this.showBargainPop = false
  330. },
  331. $getBargainDetail(id) {
  332. getBargainDetail({bargain_id: id}).then(res => {
  333. if(res.code == 1) {
  334. this.activityObj = res.data;
  335. this.status = res.data.status;
  336. this.showLoadingView = false;
  337. this.userSpecText = res.data.goods_item[0].spec_value_str
  338. this.userSpec = {
  339. id: res.data.goods_item[0].id
  340. }
  341. // let url = config.baseURL.replace(/\/api\//g, "/mobile/");
  342. let options = {
  343. shareTitle: this.activityObj.name,
  344. shareLink: location.href + "&invite_code=" + this.$store.getters.inviteCode,
  345. shareImage: this.activityObj.image,
  346. shareDesc: this.activityObj.simple_tips
  347. }
  348. this.wxShare(options)
  349. console.log(options, "share-bargain-options1", location.href);
  350. }
  351. })
  352. },
  353. chooseSpec(e) {
  354. this.userSpec = e.detail;
  355. this.userSpecText = e.detail.spec_value_str;
  356. this.showPop = false;
  357. },
  358. $launchBargain() {
  359. let data = {
  360. // 砍价活动id
  361. bargain_id: this.activityId,
  362. item_id: this.userSpec.id
  363. }
  364. launchBargain(data).then(res => {
  365. if(res.code == 1) {
  366. this.$toast({title: res.msg});
  367. this.knifePrice = res.data.knife_price;
  368. this.diffPrice = res.data.diff_price;
  369. this.precent = res.data.progress * 100;
  370. if(this.precent > 100) {
  371. this.precent = 100
  372. }
  373. this.showBargainPop = true;
  374. this.bargainId = res.data.id;
  375. this.showLoadingView = true;
  376. uni.showLoading()
  377. this.$getBargainActivityDetail(res.data.id);
  378. }
  379. })
  380. },
  381. $getBargainActivityDetail(id) {
  382. let timestamp = 0;
  383. let now_time = (new Date().getTime()) / 1000
  384. getBargainActivityDetail({
  385. id: id
  386. }).then(res => {
  387. if(res.code == 1) {
  388. uni.hideLoading()
  389. this.status = res.data.status;
  390. this.bargainObj = res.data;
  391. timestamp = res.data.over_time;
  392. this.precent = res.data.progress * 100;
  393. if(this.precent > 100) {
  394. this.precent = 100
  395. }
  396. this.showLoadingView = false;
  397. this.timestamp = (timestamp - Math.floor(now_time));
  398. console.log('calc: ', timestamp, '-', Math.floor(now_time), '=', this.timestamp )
  399. let url = location.href.replace(/activityId=\d*/g, "bargainId=" + id);
  400. let options = {
  401. shareTitle: this.bargainObj.share_titles || this.bargainObj.name,
  402. shareLink: url + "&invite_code=" + this.$store.getters.inviteCode,
  403. shareImage: this.bargainObj.image,
  404. shareDesc: this.bargainObj.share_intros || this.bargainObj.simple_tips
  405. }
  406. this.wxShare(options)
  407. console.log(options, "share-bargain-options2", url);
  408. if(this.timestamp <= 0 || this.status == 1) {
  409. // 砍价已结束
  410. this.showCountDown = false;
  411. }
  412. else {
  413. this.showCountDown = true;
  414. }
  415. }
  416. })
  417. },
  418. shareToBargain() {
  419. this.showBargainPop = false
  420. if(this.isHelpKnife) {
  421. return;
  422. }
  423. this.showSharePop = true
  424. },
  425. $helpBargain() {
  426. // 帮好友砍价
  427. helpBargain({
  428. id: this.bargainId
  429. }).then(res => {
  430. if(res.code == 1) {
  431. this.knifePrice = res.data.knife_price;
  432. this.precent = res.data.progress * 100;
  433. if(this.precent > 100) {
  434. this.precent = 100
  435. }
  436. this.isHelpKnife = true;
  437. this.showBargainPop = true;
  438. this.$getBargainActivityDetail(this.bargainId)
  439. }
  440. })
  441. },
  442. toOrderDetail() {
  443. uni.navigateTo({
  444. url: "/pages/order_details/order_details?id=" + this.bargainObj.order_id
  445. })
  446. },
  447. closeBargainOrderFun() {
  448. // 计时结束后关闭订单
  449. closeBargainOrder({
  450. id: this.bargainObj.id
  451. }).then(res => {
  452. if(res.code == 1) {
  453. this.$toast({
  454. title: res.msg
  455. })
  456. this.$getBargainActivityDetail(this.bargainObj.id)
  457. }
  458. })
  459. },
  460. handleClickBuy() {
  461. let goods = [{
  462. num: 1,
  463. item_id: this.bargainObj.item_id
  464. }]
  465. let params = {
  466. goods
  467. }
  468. console.log(goods, 'handleClickBuy')
  469. uni.navigateTo({
  470. url: '/pages/confirm_order/confirm_order?data=' + encodeURIComponent(JSON.stringify(params)) + "&bargain_launch_id=" + this.bargainObj.id
  471. })
  472. }
  473. }
  474. }
  475. </script>
  476. <style lang="scss">
  477. .bargain-process-container {
  478. .bargain-process-header {
  479. background-image: url(https://daopic.samcms.com/xm_static/images/bg_hometop.png);
  480. height: 420rpx;
  481. background-size: 100% 100%;
  482. padding-top: 30rpx;
  483. .rule-contain {
  484. background-color: rgba(255, 255, 255, 0.8);
  485. border-radius: 100rpx;
  486. padding: 6rpx 10rpx;
  487. margin-right: 24rpx;
  488. }
  489. .status-container {
  490. margin-left: 24rpx;
  491. }
  492. }
  493. .main {
  494. padding: 0 24rpx;
  495. margin-top: -230rpx;
  496. .goods-planel {
  497. background-color: white;
  498. padding: 30rpx 24rpx;
  499. border-radius: 20rpx;
  500. box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.06);
  501. .goods-info {
  502. margin-left: 24rpx;
  503. flex: 1;
  504. .goods-name {
  505. line-height: 40rpx;
  506. }
  507. }
  508. }
  509. // 砍价状态2
  510. .bargain-panel {
  511. margin-top: 30rpx;
  512. padding: 24rpx 24rpx 20rpx;
  513. background-color: $-color-white;
  514. box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.06);
  515. border-radius: 20rpx;
  516. .bargain-panel-header {
  517. font-weight: bold;
  518. }
  519. .progress-container {
  520. margin-top: 33rpx;
  521. .progress {
  522. flex: 1;
  523. background-color: #FFEBE5;
  524. height: 20rpx;
  525. border-radius: 50rpx;
  526. .progress-bar {
  527. background: linear-gradient(90deg, #F95F2F 0%, #FF2C3C 100%);
  528. transition: width .5s ease;
  529. height: 100%;
  530. width: 0%;
  531. border-radius: 50rpx;
  532. }
  533. }
  534. }
  535. .invite-btn1 {
  536. background-color: $-color-primary;
  537. height: 84rpx;
  538. margin-top: 36rpx;
  539. box-shadow: 0px 3px 10px rgba(235, 36, 51, 0.5);
  540. }
  541. .fail-btn {
  542. background-color: #E5E5E5;
  543. height: 84rpx;
  544. margin-top: 30rpx;
  545. }
  546. .invite-btn-group {
  547. margin-top: 60rpx;
  548. .buy-now-btn {
  549. width: 316rpx;
  550. height: 84rpx;
  551. color: #F95F2F;
  552. font-size: 30rpx;
  553. background-color: rgba($color: #F95F2F, $alpha: 0.2);
  554. }
  555. .invite-friend-btn {
  556. width: 316rpx;
  557. height: 84rpx;
  558. background-color: $-color-primary;
  559. }
  560. }
  561. .bargain-code-content {
  562. margin-top: 62rpx;
  563. .bargain-code-title {
  564. }
  565. .code-content {
  566. margin-top: 30rpx;
  567. .user-item {
  568. padding: 15rpx 0;
  569. margin-bottom: 30rpx;
  570. }
  571. }
  572. }
  573. }
  574. // end
  575. // 被邀请状态
  576. .shared-panel {
  577. .btn-container {
  578. margin-top: 40rpx;
  579. .help-knife-btn {
  580. background-color: $-color-primary;
  581. height: 84rpx;
  582. box-shadow: 0px 3px 10px rgba(235, 36, 51, 0.5);
  583. }
  584. .knife-btn {
  585. height: 84rpx;
  586. background-color: $-color-white;
  587. border: 1px solid #BBBBBB;
  588. margin-top: 30rpx;
  589. }
  590. }
  591. .code-content {
  592. margin-top: 30rpx;
  593. padding: 27rpx 24rpx;
  594. background-color: $-color-white;
  595. .user-item {
  596. padding: 15rpx 0;
  597. margin-top: 10rpx;
  598. }
  599. }
  600. }
  601. // end
  602. .choose-container {
  603. margin: 40rpx 0;
  604. .title {
  605. font-weight: 500;
  606. margin-bottom: 30rpx;
  607. }
  608. .choose-content {
  609. padding: 30rpx 20rpx;
  610. background-color: $-color-white;
  611. border-radius: 10px;
  612. }
  613. }
  614. .lunch-btn {
  615. height: 84rpx;
  616. background-color: $-color-primary;
  617. box-shadow: 0px 3px 10px rgba(235, 36, 51, 0.5);
  618. }
  619. }
  620. .pop-container {
  621. height: 800rpx;
  622. .goods-info {
  623. padding: 20rpx 20rpx;
  624. .goods-spec {
  625. align-self: flex-end;
  626. }
  627. }
  628. .spec-selector {
  629. padding: 30rpx 20rpx;
  630. .title {
  631. line-height: 36rpx;
  632. }
  633. .spec-item {
  634. padding: 8rpx 28rpx;
  635. background-color: #F4F4F4;
  636. }
  637. .spec-active-item {
  638. padding: 8rpx 28rpx;
  639. color: white;
  640. background-color: $-color-primary;
  641. }
  642. }
  643. .pickup-number {
  644. margin-top: 30rpx;
  645. padding: 0 20rpx;
  646. }
  647. }
  648. .bargain-pop-container {
  649. width: 559rpx;
  650. height: 580rpx;
  651. background-image: url(../../static/images/bg_kanjia.png);
  652. background-size: 100% 100%;
  653. .differ-price {
  654. font-size: 58rpx;
  655. line-height: 38rpx;
  656. }
  657. .progress-container {
  658. margin-top: 26rpx;
  659. .progress {
  660. width: 409rpx;
  661. height: 20rpx;
  662. background-color: #FD498F1A;
  663. border-radius: 50rpx;
  664. .progress-bar {
  665. height: 100%;
  666. width: 0%;
  667. background: linear-gradient(90deg, #FA444D 0%, #FD498F 100%);
  668. border-radius: 50rpx;
  669. transition: width .5s ease;
  670. }
  671. }
  672. }
  673. .invite-btn {
  674. background-image: url(../../static/images/coupon_button.png);
  675. background-size: 100% 100%;
  676. height: 106rpx;
  677. color: #7B3200;
  678. font-weight: 500;
  679. margin-top: 180rpx;
  680. width: 478rpx;
  681. }
  682. }
  683. .close-icon {
  684. margin-top: 26rpx;
  685. }
  686. .share-pop-container {
  687. height: 500rpx;
  688. background-color: $-color-white;
  689. }
  690. }
  691. </style>