index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778
  1. <template>
  2. <view>
  3. <!-- #ifdef MP-ALIPAY -->
  4. <u-navbar :placeholder="true" bgColor="#fff" :autoBack="true" :border="true" title="盲票开启" v-if="rollingShow" leftIconSize="0"></u-navbar>
  5. <!-- #endif -->
  6. <!-- #ifndef MP-ALIPAY -->
  7. <u-navbar :placeholder="true" bgColor="#fff" :autoBack="true" :border="true" title="盲票开启" v-if="rollingShow"></u-navbar>
  8. <!-- #endif -->
  9. <view class="rolling" v-if="rollingShow">
  10. <!-- 奖品滚动 -->
  11. <view class="rolling-prize">
  12. <view ref="rolling" class="rolling-prize-list" :animation="animationData">
  13. <view class="rolling-prize-list-item flex" v-for="(item, index) in list" :key="index">
  14. <view class="rolling-prize-list-item__items flex">
  15. <view class="content flex" v-for="(items, indexs) in item" :key="indexs">
  16. <image :src="items.picUrl" mode="aspectFit"></image>
  17. <view class="content-title ells-one" v-if="items.prizeType && items.prizeType.value != 'coin'">{{ items.title }}</view>
  18. <view class="content-title ells-one" v-else>盲豆</view>
  19. <view class="content-price" v-if="items.prizeType && items.prizeType.value != 'coin'">¥{{ $numberFormat(items.value) }}</view>
  20. <view class="content-price" v-else>{{ items.value }}个</view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="rolling-prize-list" :animation="animationData">
  26. <view class="rolling-prize-list-item flex" v-for="(item, index) in list" :key="index">
  27. <view class="rolling-prize-list-item__items flex">
  28. <view class="content flex" v-for="(items, indexs) in item" :key="indexs">
  29. <image :src="items.picUrl" mode="aspectFit"></image>
  30. <view class="content-title ells-one" v-if="items.prizeType && items.prizeType.value != 'coin'">{{ items.title }}</view>
  31. <view class="content-title ells-one" v-else>盲豆</view>
  32. <view class="content-price" v-if="items.prizeType && items.prizeType.value != 'coin'">¥{{ $numberFormat(items.value) }}</view>
  33. <view class="content-price" v-else>{{ items.value }}个</view>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. <!-- 按钮 -->
  40. <view class="rolling-btn flex">
  41. <view class="rolling-btn-content flex" :class="{ 'btn-stop': btnIng }" @click="stop" v-show="btnShow">
  42. <image src="../../static/ticketBox/ticket_btn_center.png" mode="scaleToFill"></image>
  43. <view class="rolling-btn-content-title">停止滚动</view>
  44. </view>
  45. </view>
  46. <!-- 倒计时 -->
  47. <view class="rolling-time flex">
  48. <view class="num">{{ num }}</view>
  49. </view>
  50. </view>
  51. <!-- 奖品显示 -->
  52. <view class="prize" v-else>
  53. <!-- #ifndef MP-ALIPAY -->
  54. <view class="prize-navLeft flex" :style="{ top: statusHeight + 'px' }" @click="back">
  55. <u-icon size="19" color="#fff" name="arrow-left"></u-icon>
  56. </view>
  57. <!-- #endif -->
  58. <view class="prize-title flex">
  59. <image src="../../packagePrize/static/rolling_title.png" mode="scaleToFill"></image>
  60. </view>
  61. <view class="prize-box flex">
  62. <view class="prize-box-popup flex">
  63. <view class="prize-box-popup__image flex">
  64. <image :src="prizeInfo.picUrl" mode="aspectFit"></image>
  65. </view>
  66. <image class="prize-box-popup__rotate" src="../static/rolling_bg1.png" mode="scaleToFill" v-if="rotateShow" />
  67. <image class="prize-box-popup__circular" src="../static/rolling_bg2.png" mode="scaleToFill" v-if="circularShow" />
  68. </view>
  69. </view>
  70. <view class="prize-info flex">
  71. <view class="prize-info-content">
  72. <view class="prize-info-content-price" v-if="prizeInfo.prizeType && prizeInfo.prizeType.value != 'coin'"><text>¥</text>{{ $numberFormat(prizeInfo.value) }}</view>
  73. <view class="prize-info-content-price" v-else>{{ prizeInfo.value }}个</view>
  74. <!-- #ifdef MP-ALIPAY -->
  75. <view class="prize-info-content-titletwo" v-if="prizeInfo.prizeType && prizeInfo.prizeType.value != 'coin'">{{ prizeInfo.title }}</view>
  76. <view class="prize-info-content-titletwo" v-else>盲豆</view>
  77. <!-- #endif -->
  78. <!-- #ifndef MP-ALIPAY -->
  79. <view class="prize-info-content-title ells-one" v-if="prizeInfo.prizeType && prizeInfo.prizeType.value != 'coin'">{{ prizeInfo.title }}</view>
  80. <view class="prize-info-content-title" v-else>盲豆</view>
  81. <!-- #endif -->
  82. <view class="prize-info-content-btn flex">
  83. <view class="prize-info-content-btn-content flex" v-if="isTry == 0">
  84. <image src="../../packagePrize/static/rolling_btn.png" mode="aspectFit"></image>
  85. <view class="prize-info-content-btn-content-txt" @click="toPrize(prizeInfo.prizeType)" v-if="prizeInfo.prizeType && prizeInfo.prizeType.value != 'coin'">哇,去瞅瞅我的宝贝</view>
  86. <view class="prize-info-content-btn-content-txt" @click="toPrize(prizeInfo.prizeType)" v-else>哇,去商城兑换商品</view>
  87. </view>
  88. <view class="prize-info-content-btn-content flex" v-else @click="back">
  89. <image src="../../packagePrize/static/rolling_btn.png" mode="aspectFit"></image>
  90. <view class="prize-info-content-btn-content-txt">来把真的</view>
  91. </view>
  92. </view>
  93. </view>
  94. </view>
  95. <view class="prize-tip flex" v-if="isTry == 0" @click="back">
  96. <view class="txt">再来一张</view>
  97. </view>
  98. </view>
  99. </view>
  100. </template>
  101. <script>
  102. import env from '../../config/env.js'
  103. import $http from '@/utils/request.js'
  104. export default {
  105. data() {
  106. return {
  107. animationData: {}, // 动画信息
  108. num: 8, // 动画倒计时
  109. num2: 0, // 动画持续时间
  110. time: null, // 定时器
  111. stopTime: null, //自动停止
  112. list: [],
  113. prizeInfo: {},
  114. btnIng: false,
  115. rollingShow: true,
  116. statusHeight: 30,
  117. btnShow: false,
  118. boxId: null,
  119. isTry: null,
  120. orderId: '',
  121. ticketId: '',
  122. rotateShow: true,
  123. circularShow: true
  124. }
  125. },
  126. onLoad(options) {
  127. if(options) {
  128. this.boxId = options.boxId
  129. this.isTry = Number(options.isTry)
  130. this.orderId = options.orderId
  131. this.ticketId = options.ticketId
  132. }
  133. // 创建动画实例
  134. this.animation = uni.createAnimation()
  135. // #ifdef MP-WEIXIN
  136. const res = uni.getMenuButtonBoundingClientRect()
  137. this.statusHeight = res.top //胶囊距离顶部
  138. // #endif
  139. },
  140. onUnload() {
  141. // 移除动画
  142. this.animationData = {}
  143. },
  144. mounted() {
  145. this.getList()
  146. },
  147. methods: {
  148. getList() {
  149. let _this = this
  150. let data = {
  151. boxId: _this.boxId,
  152. isTry: _this.isTry,
  153. orderId: _this.orderId,
  154. ticketId: _this.ticketId
  155. }
  156. let num = 0
  157. let time = setInterval(() => {
  158. num ++
  159. uni.showLoading({
  160. title: '加载中'
  161. });
  162. $http.post('/api/v1/mp/user/ticket/autoCashPrize', data).then(res => {
  163. if(res.code == 0) {
  164. clearInterval(time)
  165. _this.list = res.data.ticketAwardsPrizeList
  166. _this.list.forEach(item => {
  167. item.forEach(ele => {
  168. ele.picUrl = env.filePublic + ele.picUrl.split(',')[0] + '?imageView2/2/w/170'
  169. ele.prizeType = JSON.parse(ele.prizeType)
  170. })
  171. })
  172. _this.prizeInfo = {
  173. ...res.data,
  174. picUrl: env.filePublic + res.data.picUrl.split(',')[0] + '?imageView2/2/w/340',
  175. prizeType: JSON.parse(res.data.prizeType)
  176. }
  177. setTimeout(()=> {
  178. uni.hideLoading();
  179. _this.btnShow = true
  180. _this.running()
  181. },500)
  182. } else if (res.code == 401 ) {
  183. uni.hideLoading();
  184. clearInterval(time)
  185. uni.navigateBack({
  186. delta: 2
  187. })
  188. } else if(res.code == 500) {
  189. uni.hideLoading();
  190. clearInterval(time)
  191. uni.navigateBack({
  192. delta: 1
  193. })
  194. }
  195. if (num == 10) {
  196. uni.hideLoading();
  197. clearInterval(time)
  198. }
  199. }).catch(() => {
  200. uni.hideLoading();
  201. clearInterval(time)
  202. uni.navigateBack({
  203. delta: 1
  204. })
  205. })
  206. }, 1000)
  207. },
  208. // 动画开始
  209. running() {
  210. // #ifdef H5
  211. // 获取滚动奖品列表长度
  212. this.data = this.$refs.rolling.$el.clientWidth
  213. // 调用 step() 来表示一组动画完成
  214. this.animation.translateX(-this.data).step({
  215. duration: 8000,
  216. timingFunction: 'linear'
  217. })
  218. // export方法导出动画数据
  219. this.animationData = this.animation.export()
  220. // 倒计时
  221. this.time = setInterval(() => {
  222. // 开奖倒计时、页面显示
  223. this.num--
  224. // 记录动画执行时间,停止动画计算移动距离时使用
  225. this.num2++
  226. if (this.num == 0) {
  227. clearInterval(this.time)
  228. }
  229. }, 1000)
  230. // 不手动停止动画,自动停止
  231. this.stopTime = setTimeout(() => {
  232. this.stop()
  233. }, 8000);
  234. // #endif
  235. // #ifdef MP-ALIPAY
  236. my.createSelectorQuery().select('.rolling-prize-list').boundingClientRect().exec(info => {
  237. this.data = info[0].width
  238. // 调用 step() 来表示一组动画完成
  239. this.animation.translateX(-this.data).step({
  240. duration: 8000,
  241. timingFunction: 'linear'
  242. })
  243. // export方法导出动画数据
  244. this.animationData = this.animation.export()
  245. // 倒计时
  246. this.time = setInterval(() => {
  247. // 开奖倒计时、页面显示
  248. this.num--
  249. // 记录动画执行时间,停止动画计算移动距离时使用
  250. this.num2++
  251. if (this.num == 0) {
  252. clearInterval(this.time)
  253. }
  254. }, 1000)
  255. })
  256. // 不手动停止动画,自动停止
  257. this.stopTime = setTimeout(() => {
  258. this.num = 0
  259. this.stop()
  260. }, 8000);
  261. // #endif
  262. // #ifdef MP-WEIXIN
  263. // 元素详细信息
  264. uni.createSelectorQuery().in(this).select(".rolling-prize-list").boundingClientRect(info => {
  265. this.data = info.width
  266. // 调用 step() 来表示一组动画完成
  267. this.animation.translateX(-this.data).step({
  268. duration: 8000,
  269. timingFunction: 'linear'
  270. })
  271. // export方法导出动画数据
  272. this.animationData = this.animation.export()
  273. // 倒计时
  274. this.time = setInterval(() => {
  275. // 开奖倒计时、页面显示
  276. this.num--
  277. // 记录动画执行时间,停止动画计算移动距离时使用
  278. this.num2++
  279. if (this.num == 0) {
  280. clearInterval(this.time)
  281. }
  282. }, 1000)
  283. }).exec();
  284. // 不手动停止动画,自动停止
  285. this.stopTime = setTimeout(() => {
  286. this.num = 0
  287. this.stop()
  288. }, 8000);
  289. // #endif
  290. },
  291. // 停止动画
  292. stop() {
  293. if(this.btnIng) return
  294. this.btnIng = true
  295. // 获取屏幕距离,用于计算停止动画移动距离计算
  296. // #ifndef MP-ALIPAY
  297. let screenWidth = null
  298. uni.getSystemInfo({
  299. success: function(res) {
  300. screenWidth = res.screenWidth;
  301. }
  302. });
  303. // #endif
  304. /**
  305. * 0秒:下标4
  306. * 1秒:下标6
  307. * 2秒:下标8
  308. * 3秒:下标10
  309. * 4秒:下标12
  310. * 5秒:下标14
  311. * 6秒:下标16
  312. * 7秒:下标2
  313. * 8秒:下标2
  314. * */
  315. clearInterval(this.time)
  316. clearTimeout(this.stopTime)
  317. this.animationData = {}
  318. if (this.num2 == 0) {
  319. this.list[3][1] = JSON.parse(JSON.stringify(this.prizeInfo))
  320. } else if (this.num2 == 1) {
  321. this.list[5][1] = JSON.parse(JSON.stringify(this.prizeInfo))
  322. } else if (this.num2 == 2) {
  323. this.list[7][1] = JSON.parse(JSON.stringify(this.prizeInfo))
  324. } else if (this.num2 == 3) {
  325. this.list[9][1] = JSON.parse(JSON.stringify(this.prizeInfo))
  326. } else if (this.num2 == 4) {
  327. this.list[11][1] = JSON.parse(JSON.stringify(this.prizeInfo))
  328. } else if (this.num2 == 5) {
  329. this.list[13][1] = JSON.parse(JSON.stringify(this.prizeInfo))
  330. } else if (this.num2 == 6) {
  331. this.list[15][1] = JSON.parse(JSON.stringify(this.prizeInfo))
  332. } else if (this.num2 == 7) {
  333. this.list[1][1] = JSON.parse(JSON.stringify(this.prizeInfo))
  334. } else if (this.num2 == 8) {
  335. // #ifdef MP-WEIXIN || MP-ALIPAY
  336. this.list[1][1] = JSON.parse(JSON.stringify(this.prizeInfo))
  337. // #endif
  338. // #ifdef H5
  339. this.list[3][1] = JSON.parse(JSON.stringify(this.prizeInfo))
  340. // #endif
  341. }
  342. // #ifdef H5
  343. /**
  344. * 根据动画时间移动到指定位置
  345. * this.data / 8 :动画平均移动距离
  346. * this.num2 : 动画执行时间
  347. * screenWidth * 3 :移动3个屏幕距离
  348. */
  349. this.animation.translateX(-(this.data / 8 * this.num2 + screenWidth * 3)).step({
  350. duration: 4000,
  351. timingFunction: 'ease'
  352. })
  353. this.animationData = this.animation.export()
  354. setTimeout(() => {
  355. this.rollingShow = false
  356. },4500)
  357. setTimeout(() => {
  358. this.circularShow = false
  359. },5100)
  360. setTimeout(() => {
  361. this.rotateShow = false
  362. },7500)
  363. // #endif
  364. // #ifdef MP-ALIPAY
  365. let _this = this
  366. uni.getSystemInfo({
  367. success: (res)=> {
  368. let windowWidth = res.windowWidth;
  369. my.createSelectorQuery().select('.rolling-prize-list').boundingClientRect().exec(info => {
  370. _this.data = info[0].width
  371. _this.animation.translateX(-(_this.data + windowWidth * 3)).step({
  372. duration: 4000,
  373. timingFunction: 'ease'
  374. })
  375. _this.animationData = _this.animation.export()
  376. })
  377. setTimeout(() => {
  378. _this.rollingShow = false
  379. },4500)
  380. setTimeout(() => {
  381. _this.circularShow = false
  382. },5100)
  383. setTimeout(() => {
  384. _this.rotateShow = false
  385. },7500)
  386. }
  387. });
  388. // #endif
  389. // #ifdef MP-WEIXIN
  390. uni.createSelectorQuery().in(this).select(".rolling-prize-list").boundingClientRect(info => {
  391. this.data = info.width
  392. this.animation.translateX(-(this.data / 8 * this.num2 + screenWidth * 3)).step({
  393. duration: 4000,
  394. timingFunction: 'ease'
  395. })
  396. this.animationData = this.animation.export()
  397. }).exec();
  398. setTimeout(() => {
  399. this.rollingShow = false
  400. },4500)
  401. setTimeout(() => {
  402. this.circularShow = false
  403. },5100)
  404. setTimeout(() => {
  405. this.rotateShow = false
  406. },7500)
  407. // #endif
  408. },
  409. back() {
  410. uni.navigateBack({
  411. delta: 1
  412. })
  413. },
  414. toPrize(data) {
  415. if (data.value == 'goods') {
  416. uni.redirectTo({
  417. url: '/packagePrize/prize/index'
  418. })
  419. }
  420. if (data.value == 'coupon') {
  421. uni.redirectTo({
  422. url: '/packagePrize/prize/index?coupon=1'
  423. })
  424. }
  425. if (data.value == 'coupon_pkg') {
  426. uni.redirectTo({
  427. url: '/packagePrize/prize/index?coupon=1'
  428. })
  429. }
  430. if (data.value == 'coin') {
  431. uni.switchTab({
  432. url: '/pages/core/index'
  433. })
  434. }
  435. },
  436. },
  437. }
  438. </script>
  439. <style lang="scss" scoped>
  440. .rolling {
  441. width: 100%;
  442. height: calc(100vh - 44px);
  443. background: url(https://mp-public-1310078123.cos.ap-shanghai.myqcloud.com/v2/prize_bkg1.png) center center no-repeat;
  444. background-size: 100vw calc(100vh - 44px);
  445. overflow: hidden;
  446. // 奖品滚动
  447. &-prize {
  448. display: flex;
  449. margin-top: 28vh;
  450. height: 28vh;
  451. background: url(https://mp-public-1310078123.cos.ap-shanghai.myqcloud.com/v2/prize_bkg2.png) center center no-repeat;
  452. background-size: 100vw 28vh;
  453. margin-bottom: 82rpx;
  454. &-list {
  455. display: flex;
  456. margin-top: 76rpx;
  457. height: calc(100% - 76rpx);
  458. &-item {
  459. width: 100vw;
  460. height: 100%;
  461. &__items {
  462. align-items: flex-start;
  463. justify-content: space-evenly;
  464. width: 100vw;
  465. height: 100%;
  466. .content {
  467. flex-direction: column;
  468. width: 30%;
  469. height: 85%;
  470. image {
  471. width: 100%;
  472. height: 60%;
  473. margin-bottom: 16rpx;
  474. }
  475. &-title {
  476. width: 100%;
  477. line-height: 34rpx;
  478. font-size: 26rpx;
  479. text-align: center;
  480. margin-bottom: 20rpx;
  481. }
  482. &-price {
  483. width: 100%;
  484. line-height: 26rpx;
  485. font-size: 26rpx;
  486. text-align: center;
  487. }
  488. }
  489. // .content:nth-child(2) {
  490. // justify-content: flex-start;
  491. // color: #333;
  492. // image {
  493. // width: 100%;
  494. // height: 60%;
  495. // }
  496. // .content-title {
  497. // font-weight: bold;
  498. // }
  499. // .content-price {
  500. // font-weight: bold;
  501. // }
  502. // }
  503. }
  504. }
  505. }
  506. }
  507. // 按钮
  508. &-btn {
  509. height: 160rpx;
  510. margin-bottom: 36rpx;
  511. &-content {
  512. position: relative;
  513. height: 100%;
  514. image {
  515. width: 486rpx;
  516. height: 100%;
  517. }
  518. &-title {
  519. position: absolute;
  520. top: 30rpx;
  521. font-size: 72rpx;
  522. font-family: YouSheBiaoTiHei;
  523. font-weight: 400;
  524. color: #FFFFFF;
  525. line-height: 72rpx;
  526. opacity: 0.99;
  527. }
  528. }
  529. .btn-stop {
  530. animation: scaleBtn 0.2s linear;
  531. }
  532. // 放大缩小动画
  533. @keyframes scaleBtn {
  534. from {
  535. transform: scale(0.9);
  536. }
  537. to {
  538. transform: scale(1);
  539. }
  540. }
  541. }
  542. // 倒计时
  543. &-time {
  544. .num {
  545. font-size: 110rpx;
  546. font-family: YouSheBiaoTiHei;
  547. font-weight: 400;
  548. color: #FFFFFF;
  549. line-height: 110rpx;
  550. }
  551. }
  552. }
  553. // 奖品显示
  554. .prize {
  555. position: relative;
  556. width: 100%;
  557. height: 100vh;
  558. background: url(https://mp-public-1310078123.cos.ap-shanghai.myqcloud.com/v2/hit_bkg.png) center center no-repeat;
  559. background-size: 100vw 100vh;
  560. overflow: hidden;
  561. &-navLeft {
  562. position: absolute;
  563. left: 34rpx;
  564. width: 66rpx;
  565. height: 66rpx;
  566. background-color: rgba(255, 255, 255, .36);
  567. border-radius: 50%;
  568. }
  569. &-title {
  570. padding-top: 15vh;
  571. margin-bottom: 120rpx;
  572. image {
  573. width: 484rpx;
  574. height: 108rpx;
  575. }
  576. }
  577. &-box {
  578. margin-bottom: 34rpx;
  579. &-popup {
  580. position: relative;
  581. flex-direction: column;
  582. width: 75vw;
  583. height: 38vh;
  584. background-color: #FFFFFF;
  585. border-radius: 22rpx;
  586. &__image {
  587. position: relative;
  588. z-index: 10;
  589. width: 65%;
  590. height: 65%;
  591. image {
  592. width: 100%;
  593. height: 100%;
  594. }
  595. }
  596. &__rotate {
  597. position: absolute;
  598. width: 100%;
  599. height: 100%;
  600. z-index: 5;
  601. animation: rotateBg 3s linear;
  602. }
  603. &__circular {
  604. position: absolute;
  605. width: 600rpx;
  606. height: 600rpx;
  607. z-index: 5;
  608. animation: scaleBg 0.7s linear;
  609. }
  610. // 旋转动画
  611. @keyframes rotateBg {
  612. from {
  613. transform: rotate(0);
  614. }
  615. to {
  616. transform: rotate(360deg);
  617. }
  618. }
  619. // 放大动画
  620. @keyframes scaleBg {
  621. from {
  622. transform: scale(0.8);
  623. }
  624. to {
  625. transform: scale(1.8);
  626. }
  627. }
  628. }
  629. }
  630. &-info {
  631. margin-bottom: 40rpx;
  632. &-content {
  633. width: 70vw;
  634. &-price {
  635. text-align: center;
  636. font-size: 40rpx;
  637. line-height: 40rpx;
  638. font-family: PingFang SC;
  639. font-weight: bold;
  640. color: #FFFFFF;
  641. margin-bottom: 20rpx;
  642. text {
  643. font-size: 28rpx;
  644. }
  645. }
  646. &-title {
  647. height: 36rpx;
  648. overflow: hidden;
  649. text-align: center;
  650. font-size: 36rpx;
  651. line-height: 36rpx;
  652. color: #FFFFFF;
  653. margin-bottom: 50rpx;
  654. }
  655. &-titletwo {
  656. height: 36rpx;
  657. text-align: center;
  658. font-size: 36rpx;
  659. line-height: 36rpx;
  660. color: #FFFFFF;
  661. margin-bottom: 50rpx;
  662. white-space: nowrap;
  663. overflow: hidden;
  664. text-overflow: ellipsis;
  665. }
  666. &-btn {
  667. &-content {
  668. position: relative;
  669. width: 70vw;
  670. image {
  671. width: 70vw;
  672. height: 112rpx;
  673. }
  674. &-txt {
  675. position: absolute;
  676. top: 0;
  677. height: 112rpx;
  678. line-height: 112rpx;
  679. font-size: 30rpx;
  680. text-align: center;
  681. color: #FFFFFF;
  682. }
  683. }
  684. }
  685. }
  686. }
  687. &-tip {
  688. .txt {
  689. width: 332rpx;
  690. height: 66rpx;
  691. line-height: 66rpx;
  692. text-align: center;
  693. background: rgba(255, 211, 157, .3);
  694. border-radius: 34rpx;
  695. font-size: 34rpx;
  696. font-weight: 500;
  697. color: #FB930D;
  698. }
  699. }
  700. }
  701. </style>