index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764
  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 ells-one" 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: '',
  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 || res.code == 500) {
  183. uni.hideLoading();
  184. clearInterval(time)
  185. uni.navigateBack({
  186. delta: 2
  187. })
  188. }
  189. if (num == 10) {
  190. uni.hideLoading();
  191. clearInterval(time)
  192. }
  193. })
  194. }, 1000)
  195. },
  196. // 动画开始
  197. running() {
  198. // #ifdef H5
  199. // 获取滚动奖品列表长度
  200. this.data = this.$refs.rolling.$el.clientWidth
  201. // 调用 step() 来表示一组动画完成
  202. this.animation.translateX(-this.data).step({
  203. duration: 8000,
  204. timingFunction: 'linear'
  205. })
  206. // export方法导出动画数据
  207. this.animationData = this.animation.export()
  208. // 倒计时
  209. this.time = setInterval(() => {
  210. // 开奖倒计时、页面显示
  211. this.num--
  212. // 记录动画执行时间,停止动画计算移动距离时使用
  213. this.num2++
  214. if (this.num == 0) {
  215. clearInterval(this.time)
  216. }
  217. }, 1000)
  218. // 不手动停止动画,自动停止
  219. this.stopTime = setTimeout(() => {
  220. this.stop()
  221. }, 8000);
  222. // #endif
  223. // #ifdef MP-ALIPAY
  224. my.createSelectorQuery().select('.rolling-prize-list').boundingClientRect().exec(info => {
  225. this.data = info[0].width
  226. // 调用 step() 来表示一组动画完成
  227. this.animation.translateX(-this.data).step({
  228. duration: 8000,
  229. timingFunction: 'linear'
  230. })
  231. // export方法导出动画数据
  232. this.animationData = this.animation.export()
  233. // 倒计时
  234. this.time = setInterval(() => {
  235. // 开奖倒计时、页面显示
  236. this.num--
  237. // 记录动画执行时间,停止动画计算移动距离时使用
  238. this.num2++
  239. if (this.num == 0) {
  240. clearInterval(this.time)
  241. }
  242. }, 1000)
  243. })
  244. // 不手动停止动画,自动停止
  245. this.stopTime = setTimeout(() => {
  246. this.num = 0
  247. this.stop()
  248. }, 8000);
  249. // #endif
  250. // #ifdef MP-WEIXIN
  251. // 元素详细信息
  252. uni.createSelectorQuery().in(this).select(".rolling-prize-list").boundingClientRect(info => {
  253. this.data = info.width
  254. // 调用 step() 来表示一组动画完成
  255. this.animation.translateX(-this.data).step({
  256. duration: 8000,
  257. timingFunction: 'linear'
  258. })
  259. // export方法导出动画数据
  260. this.animationData = this.animation.export()
  261. // 倒计时
  262. this.time = setInterval(() => {
  263. // 开奖倒计时、页面显示
  264. this.num--
  265. // 记录动画执行时间,停止动画计算移动距离时使用
  266. this.num2++
  267. if (this.num == 0) {
  268. clearInterval(this.time)
  269. }
  270. }, 1000)
  271. }).exec();
  272. // 不手动停止动画,自动停止
  273. this.stopTime = setTimeout(() => {
  274. this.num = 0
  275. this.stop()
  276. }, 8000);
  277. // #endif
  278. },
  279. // 停止动画
  280. stop() {
  281. if(this.btnIng) return
  282. this.btnIng = true
  283. // 获取屏幕距离,用于计算停止动画移动距离计算
  284. // #ifndef MP-ALIPAY
  285. let screenWidth = null
  286. uni.getSystemInfo({
  287. success: function(res) {
  288. screenWidth = res.screenWidth;
  289. }
  290. });
  291. // #endif
  292. /**
  293. * 0秒:下标4
  294. * 1秒:下标6
  295. * 2秒:下标8
  296. * 3秒:下标10
  297. * 4秒:下标12
  298. * 5秒:下标14
  299. * 6秒:下标16
  300. * 7秒:下标2
  301. * 8秒:下标2
  302. * */
  303. clearInterval(this.time)
  304. clearTimeout(this.stopTime)
  305. this.animationData = {}
  306. if (this.num2 == 0) {
  307. this.list[3][1] = JSON.parse(JSON.stringify(this.prizeInfo))
  308. } else if (this.num2 == 1) {
  309. this.list[5][1] = JSON.parse(JSON.stringify(this.prizeInfo))
  310. } else if (this.num2 == 2) {
  311. this.list[7][1] = JSON.parse(JSON.stringify(this.prizeInfo))
  312. } else if (this.num2 == 3) {
  313. this.list[9][1] = JSON.parse(JSON.stringify(this.prizeInfo))
  314. } else if (this.num2 == 4) {
  315. this.list[11][1] = JSON.parse(JSON.stringify(this.prizeInfo))
  316. } else if (this.num2 == 5) {
  317. this.list[13][1] = JSON.parse(JSON.stringify(this.prizeInfo))
  318. } else if (this.num2 == 6) {
  319. this.list[15][1] = JSON.parse(JSON.stringify(this.prizeInfo))
  320. } else if (this.num2 == 7) {
  321. this.list[1][1] = JSON.parse(JSON.stringify(this.prizeInfo))
  322. } else if (this.num2 == 8) {
  323. // #ifdef MP-WEIXIN || MP-ALIPAY
  324. this.list[1][1] = JSON.parse(JSON.stringify(this.prizeInfo))
  325. // #endif
  326. // #ifdef H5
  327. this.list[3][1] = JSON.parse(JSON.stringify(this.prizeInfo))
  328. // #endif
  329. }
  330. // #ifdef H5
  331. /**
  332. * 根据动画时间移动到指定位置
  333. * this.data / 8 :动画平均移动距离
  334. * this.num2 : 动画执行时间
  335. * screenWidth * 3 :移动3个屏幕距离
  336. */
  337. this.animation.translateX(-(this.data / 8 * this.num2 + screenWidth * 3)).step({
  338. duration: 4000,
  339. timingFunction: 'ease'
  340. })
  341. this.animationData = this.animation.export()
  342. setTimeout(() => {
  343. this.rollingShow = false
  344. },4500)
  345. setTimeout(() => {
  346. this.circularShow = false
  347. },5100)
  348. setTimeout(() => {
  349. this.rotateShow = false
  350. },7500)
  351. // #endif
  352. // #ifdef MP-ALIPAY
  353. let _this = this
  354. uni.getSystemInfo({
  355. success: (res)=> {
  356. let windowWidth = res.windowWidth;
  357. my.createSelectorQuery().select('.rolling-prize-list').boundingClientRect().exec(info => {
  358. _this.data = info[0].width
  359. _this.animation.translateX(-(_this.data + windowWidth * 3)).step({
  360. duration: 4000,
  361. timingFunction: 'ease'
  362. })
  363. _this.animationData = _this.animation.export()
  364. })
  365. setTimeout(() => {
  366. _this.rollingShow = false
  367. },4500)
  368. setTimeout(() => {
  369. _this.circularShow = false
  370. },5100)
  371. setTimeout(() => {
  372. _this.rotateShow = false
  373. },7500)
  374. }
  375. });
  376. // #endif
  377. // #ifdef MP-WEIXIN
  378. uni.createSelectorQuery().in(this).select(".rolling-prize-list").boundingClientRect(info => {
  379. this.data = info.width
  380. this.animation.translateX(-(this.data / 8 * this.num2 + screenWidth * 3)).step({
  381. duration: 4000,
  382. timingFunction: 'ease'
  383. })
  384. this.animationData = this.animation.export()
  385. }).exec();
  386. setTimeout(() => {
  387. this.rollingShow = false
  388. },4500)
  389. setTimeout(() => {
  390. this.circularShow = false
  391. },5100)
  392. setTimeout(() => {
  393. this.rotateShow = false
  394. },7500)
  395. // #endif
  396. },
  397. back() {
  398. uni.navigateBack({
  399. delta: 1
  400. })
  401. },
  402. toPrize(data) {
  403. if (data.value == 'goods') {
  404. uni.redirectTo({
  405. url: '/packagePrize/prize/index'
  406. })
  407. }
  408. if (data.value == 'coupon') {
  409. uni.redirectTo({
  410. url: '/packagePrize/prize/index?coupon=1'
  411. })
  412. }
  413. if (data.value == 'coupon_pkg') {
  414. uni.redirectTo({
  415. url: '/packagePrize/prize/index?coupon=1'
  416. })
  417. }
  418. if (data.value == 'coin') {
  419. uni.switchTab({
  420. url: '/pages/core/index'
  421. })
  422. }
  423. },
  424. },
  425. }
  426. </script>
  427. <style lang="scss" scoped>
  428. .rolling {
  429. width: 100%;
  430. height: calc(100vh - 44px);
  431. background: url(https://mp-public-1310078123.cos.ap-shanghai.myqcloud.com/v2/prize_bkg1.png) center center no-repeat;
  432. background-size: 100vw calc(100vh - 44px);
  433. overflow: hidden;
  434. // 奖品滚动
  435. &-prize {
  436. display: flex;
  437. margin-top: 28vh;
  438. height: 28vh;
  439. background: url(https://mp-public-1310078123.cos.ap-shanghai.myqcloud.com/v2/prize_bkg2.png) center center no-repeat;
  440. background-size: 100vw 28vh;
  441. margin-bottom: 82rpx;
  442. &-list {
  443. display: flex;
  444. margin-top: 76rpx;
  445. height: calc(100% - 76rpx);
  446. &-item {
  447. width: 100vw;
  448. height: 100%;
  449. &__items {
  450. align-items: flex-start;
  451. justify-content: space-evenly;
  452. width: 100vw;
  453. height: 100%;
  454. .content {
  455. flex-direction: column;
  456. width: 30%;
  457. height: 85%;
  458. image {
  459. width: 100%;
  460. height: 60%;
  461. margin-bottom: 16rpx;
  462. }
  463. &-title {
  464. width: 100%;
  465. line-height: 34rpx;
  466. font-size: 26rpx;
  467. text-align: center;
  468. margin-bottom: 20rpx;
  469. }
  470. &-price {
  471. width: 100%;
  472. line-height: 26rpx;
  473. font-size: 26rpx;
  474. text-align: center;
  475. }
  476. }
  477. // .content:nth-child(2) {
  478. // justify-content: flex-start;
  479. // color: #333;
  480. // image {
  481. // width: 100%;
  482. // height: 60%;
  483. // }
  484. // .content-title {
  485. // font-weight: bold;
  486. // }
  487. // .content-price {
  488. // font-weight: bold;
  489. // }
  490. // }
  491. }
  492. }
  493. }
  494. }
  495. // 按钮
  496. &-btn {
  497. height: 160rpx;
  498. margin-bottom: 36rpx;
  499. &-content {
  500. position: relative;
  501. height: 100%;
  502. image {
  503. width: 486rpx;
  504. height: 100%;
  505. }
  506. &-title {
  507. position: absolute;
  508. top: 30rpx;
  509. font-size: 72rpx;
  510. font-family: YouSheBiaoTiHei;
  511. font-weight: 400;
  512. color: #FFFFFF;
  513. line-height: 72rpx;
  514. opacity: 0.99;
  515. }
  516. }
  517. .btn-stop {
  518. animation: scaleBtn 0.2s linear;
  519. }
  520. // 放大缩小动画
  521. @keyframes scaleBtn {
  522. from {
  523. transform: scale(0.9);
  524. }
  525. to {
  526. transform: scale(1);
  527. }
  528. }
  529. }
  530. // 倒计时
  531. &-time {
  532. .num {
  533. font-size: 110rpx;
  534. font-family: YouSheBiaoTiHei;
  535. font-weight: 400;
  536. color: #FFFFFF;
  537. line-height: 110rpx;
  538. }
  539. }
  540. }
  541. // 奖品显示
  542. .prize {
  543. position: relative;
  544. width: 100%;
  545. height: 100vh;
  546. background: url(https://mp-public-1310078123.cos.ap-shanghai.myqcloud.com/v2/hit_bkg.png) center center no-repeat;
  547. background-size: 100vw 100vh;
  548. overflow: hidden;
  549. &-navLeft {
  550. position: absolute;
  551. left: 34rpx;
  552. width: 66rpx;
  553. height: 66rpx;
  554. background-color: rgba(255, 255, 255, .36);
  555. border-radius: 50%;
  556. }
  557. &-title {
  558. padding-top: 15vh;
  559. margin-bottom: 120rpx;
  560. image {
  561. width: 484rpx;
  562. height: 108rpx;
  563. }
  564. }
  565. &-box {
  566. margin-bottom: 34rpx;
  567. &-popup {
  568. position: relative;
  569. flex-direction: column;
  570. width: 75vw;
  571. height: 38vh;
  572. background-color: #FFFFFF;
  573. border-radius: 22rpx;
  574. &__image {
  575. position: relative;
  576. z-index: 10;
  577. width: 65%;
  578. height: 65%;
  579. image {
  580. width: 100%;
  581. height: 100%;
  582. }
  583. }
  584. &__rotate {
  585. position: absolute;
  586. width: 100%;
  587. height: 100%;
  588. z-index: 5;
  589. animation: rotateBg 3s linear;
  590. }
  591. &__circular {
  592. position: absolute;
  593. width: 600rpx;
  594. height: 600rpx;
  595. z-index: 5;
  596. animation: scaleBg 0.7s linear;
  597. }
  598. // 旋转动画
  599. @keyframes rotateBg {
  600. from {
  601. transform: rotate(0);
  602. }
  603. to {
  604. transform: rotate(360deg);
  605. }
  606. }
  607. // 放大动画
  608. @keyframes scaleBg {
  609. from {
  610. transform: scale(0.8);
  611. }
  612. to {
  613. transform: scale(1.8);
  614. }
  615. }
  616. }
  617. }
  618. &-info {
  619. margin-bottom: 40rpx;
  620. &-content {
  621. width: 70vw;
  622. &-price {
  623. text-align: center;
  624. font-size: 40rpx;
  625. line-height: 40rpx;
  626. font-family: PingFang SC;
  627. font-weight: bold;
  628. color: #FFFFFF;
  629. margin-bottom: 20rpx;
  630. text {
  631. font-size: 28rpx;
  632. }
  633. }
  634. &-title {
  635. height: 36rpx;
  636. overflow: hidden;
  637. text-align: center;
  638. font-size: 36rpx;
  639. line-height: 36rpx;
  640. color: #FFFFFF;
  641. margin-bottom: 50rpx;
  642. }
  643. &-titletwo {
  644. height: 34rpx;
  645. overflow: hidden;
  646. text-align: center;
  647. font-size: 36rpx;
  648. line-height: 36rpx;
  649. color: #FFFFFF;
  650. margin-bottom: 50rpx;
  651. }
  652. &-btn {
  653. &-content {
  654. position: relative;
  655. width: 70vw;
  656. image {
  657. width: 70vw;
  658. height: 112rpx;
  659. }
  660. &-txt {
  661. position: absolute;
  662. top: 0;
  663. height: 112rpx;
  664. line-height: 112rpx;
  665. font-size: 30rpx;
  666. text-align: center;
  667. color: #FFFFFF;
  668. }
  669. }
  670. }
  671. }
  672. }
  673. &-tip {
  674. .txt {
  675. width: 332rpx;
  676. height: 66rpx;
  677. line-height: 66rpx;
  678. text-align: center;
  679. background: rgba(255, 211, 157, .3);
  680. border-radius: 34rpx;
  681. font-size: 34rpx;
  682. font-weight: 500;
  683. color: #FB930D;
  684. }
  685. }
  686. }
  687. </style>