activity.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794
  1. <template>
  2. <view class="container_box">
  3. <view class="header-nav"
  4. :style="{height: `calc(88rpx + ${statusBarHeight}px)`,paddingTop: statusBarHeight + 'px'}">
  5. </view>
  6. <view class="conbox">
  7. <image class="activity_yh_right" src="https://cdn.his.cdwjyyh.com/minapp/course/activity_yh_right.png"
  8. mode="widthFix"></image>
  9. <image class="activity_yh_left" src="https://cdn.his.cdwjyyh.com/minapp/course/activity_yh_left.png"
  10. mode="widthFix"></image>
  11. <image class="activity_title" v-if="collectType!=1&&isExpiry" src="https://cdn.his.cdwjyyh.com/minapp/course/activity_title.png" mode="widthFix"></image>
  12. <view class="activity_title2" v-if="!isExpiry&&collectType!=1">
  13. 福袋已经失效了~
  14. </view>
  15. <template v-if="collectType==1">
  16. <view class="activity_title3">
  17. 您已经领取过本次福袋啦~
  18. </view>
  19. <view class="activity_title4">
  20. 赶紧前往芳华未来APP,兑换好物吧
  21. </view>
  22. </template>
  23. <view class="ybg_box">
  24. <view class="ybg"></view>
  25. <image class="activity_lucky_bag" src="https://cdn.his.cdwjyyh.com/minapp/course/activity_lucky_bag.png"
  26. mode="heightFix"></image>
  27. <image class="activity_ysx" v-show="!isExpiry&&collectType!=1"
  28. src="https://cdn.his.cdwjyyh.com/minapp/course/activity_ysx.png" mode="widthFix"></image>
  29. <image class="activity_ylq" v-show="collectType==1"
  30. src="https://cdn.his.cdwjyyh.com/minapp/course/activity_ylq.png" mode="widthFix"></image>
  31. </view>
  32. <view class="activity_btn animation" v-if="collectType!=1&&isExpiry" @click="handleReceive">
  33. <view class="btn">领取福袋</view>
  34. <image src="https://cdn.his.cdwjyyh.com/minapp/course/activity_btn.png" mode="heightFix"></image>
  35. <view class="exsct"></view>
  36. </view>
  37. <view class="activity_btn_down x-c" v-else @click="navTo">
  38. <text>如何下载芳华未来APP</text>
  39. <image src="https://cdn.his.cdwjyyh.com/minapp/course/activity_more.png" mode="aspectFill"></image>
  40. </view>
  41. </view>
  42. <image class="footer_img" src="https://cdn.his.cdwjyyh.com/minapp/course/activity_xy.png" mode="widthFix">
  43. </image>
  44. <u-popup :show="show" mode="center" bgColor="transparent" :closeOnClickOverlay="false" overlayOpacity="0.7">
  45. <view class="popup-box">
  46. <image class="activity_jb" src="https://cdn.his.cdwjyyh.com/minapp/course/activity_jb.png"
  47. mode="heightFix"></image>
  48. <text class="popup-tit">恭喜您获得</text>
  49. <view class="con">
  50. <view class="numbox color_FB2205"><text class="num">+{{coinAmount||0}}</text>芳华币</view>
  51. <view>您的芳华币总额:<text class="color_FB2205" style="font-weight: 600;">{{balance||0}}</text></view>
  52. </view>
  53. <view class="popup-tips">赶紧去芳华未来APP,兑换好物吧~</view>
  54. <view class="popbtn x-c" @click="show=false">我知道啦</view>
  55. </view>
  56. <view class="popup-tips" style="color: #FFFFFF;margin-top: 60rpx;">兑换提示:请前往芳华未来APP兑换</view>
  57. <view class="popup-tips" style="color: #FFC05C;text-decoration-line: underline;" @click="navTo">如何下载芳华未来APP?
  58. </view>
  59. </u-popup>
  60. <u-popup :show="userlogo" mode="bottom" round='12'>
  61. <view class="userlogo column">
  62. <view class="mtb30 justify-start align-center ml20">
  63. <u-avatar src="/static/logo.png" size="50"></u-avatar>
  64. <view class="bold mlr20">丝路佳选</view>
  65. <view>申请</view>
  66. </view>
  67. <view class="bold fs36 ml20">授权你的昵称头像信息</view>
  68. <view class="mtb20 justify-between align-center plr20">
  69. <view class="justify-start align-center">
  70. <view class="boxweixin" :class="userinfos.nickname==''?'boxnosel':'boxsel'">
  71. <view v-if="userinfos.nickname">
  72. <u-icon name="checkbox-mark" color="#00aa00" size="22"></u-icon>
  73. </view>
  74. </view>
  75. <view class="ml20">
  76. <view class="base-color-3 bold">第一步</view>
  77. <view class="fs32 base-color-9">请点击授权微信昵称</view>
  78. </view>
  79. </view>
  80. <view class="button-container">
  81. <input
  82. type="nickname"
  83. class="hidden-input"
  84. @blur="onNickNameInput"
  85. @input="onNickNameInput"
  86. />
  87. <button class="custom-button" :class="nameuser==''?'subname':'subavt'">{{nameuser?"已授权":'允许授权'}}</button>
  88. </view>
  89. </view>
  90. <!-- <view class="mtb20 justify-between align-center plr20 mt40">
  91. <view class="justify-start align-center">
  92. <view class="boxweixin" :class="userinfos.nickname==''?'boxnosel':'boxsel'">
  93. <view v-if="userinfos.avatar">√</view>
  94. </view>
  95. <view class="ml20">
  96. <view class="base-color-3 bold">第二步</view>
  97. <view class="fs32 base-color-9">请点击授权微信头像</view>
  98. </view>
  99. </view>
  100. <view class="button-container">
  101. <button open-type="chooseAvatar" @chooseavatar="onChooseAvatar" class="hidden-input"
  102. v-if="nameuser">
  103. 允许授权
  104. </button>
  105. <button class="custom-button sub" @click="shouquan" v-if="nameuser==''">允许授权</button>
  106. <button class="custom-button " :class="avataruser==''?'subname':'subavt'"
  107. v-else>{{avataruser?"已授权":'允许授权'}}</button>
  108. </view>
  109. </view> -->
  110. <view class="submitname" @click="confimrname" :class="nameuser&&avataruser?'subact':'sub'">确定</view>
  111. </view>
  112. </u-popup>
  113. </view>
  114. </template>
  115. <script>
  116. import {
  117. mapGetters
  118. } from 'vuex';
  119. import { getLuckyBagInfo, receiveLuckyBag,loginByMp,editUser}from '@/api/course.js'
  120. export default {
  121. data() {
  122. return {
  123. statusBarHeight: uni.getSystemInfoSync().statusBarHeight,
  124. show: false,
  125. status: 0,
  126. recordId: '',
  127. urlOption: {},
  128. sortLink: '',
  129. isLogin: false,
  130. isLoginH5: 0, // 1服务号授权
  131. collectType: 0, // 领取状态(0-已发放 1-已领取 2-已失效)
  132. isExpiry: true, // false 失效 true 有效
  133. coinAmount: 0,
  134. balance: 0,
  135. chatId: '',
  136. userlogo:false,
  137. imgname:'',
  138. userinfos:{
  139. nickname:"",
  140. avatar:""
  141. },
  142. btnLoading: false
  143. }
  144. },
  145. computed: {
  146. ...mapGetters(['coureLogin']),
  147. nameuser() {
  148. return this.userinfos.nickname
  149. },
  150. avataruser() {
  151. return this.userinfos.avatar
  152. },
  153. },
  154. watch: {
  155. coureLogin: {
  156. immediate: true, // 页面一进入就检查一次
  157. handler(val) {
  158. if (val == 2 && this.isLogin) {
  159. console.log("注册AppToken失效,请重新登录")
  160. uni.removeStorageSync('web_userInfo');
  161. uni.removeStorageSync('TOKEN_WEXIN');
  162. this.isLogin = false
  163. if (this.isLoginH5 == 0) {
  164. this.goWXLogin()
  165. } else {
  166. this.goLogin()
  167. }
  168. }
  169. }
  170. }
  171. },
  172. onLoad(option) {
  173. this.urlOption = option.link ? JSON.parse(decodeURIComponent(option.link)) : {};
  174. this.sortLink = this.urlOption.link || ''
  175. this.chatId = this.urlOption.chatId || ''
  176. this.recordId =this.urlOption.recordId || ''
  177. console.log(this.sortLink)
  178. uni.$on('usercode',(data)=>{
  179. if(data) {
  180. this.goLogin(data)
  181. }
  182. })
  183. this.getLuckyBagInfo()
  184. },
  185. beforeDestroy() {
  186. uni.$off('usercode')
  187. },
  188. onUnload() {
  189. uni.$off('usercode')
  190. },
  191. methods: {
  192. //修改用户昵称以及头像
  193. editUserA(){
  194. this.userinfos=uni.getStorageSync('userinfos')?uni.getStorageSync('userinfos'):this.userinfos
  195. const data={
  196. nickName:this.userinfos.nickname,
  197. // avatar:this.userinfos.avatar,
  198. }
  199. editUser(data).then(res=>{
  200. if(res.code==200){
  201. this.isLogin = true
  202. uni.showToast({
  203. icon:'none',
  204. title:'修改成功!',
  205. });
  206. setTimeout(()=>{
  207. // this.getIsAddKf()
  208. this.getAddCompanyUser()
  209. },100)
  210. }else{
  211. uni.removeStorageSync('userinfos')
  212. uni.showToast({
  213. icon:'none',
  214. title:res.msg+'请重新领取福袋',
  215. });
  216. }
  217. })
  218. },
  219. shouquan(){
  220. if(this.userinfos.nickname==''){
  221. uni.showToast({
  222. icon:'none',
  223. title: "请先授权微信昵称",
  224. });
  225. }
  226. },
  227. confimrname(){
  228. if(this.userinfos.nickname==''){
  229. uni.showToast({
  230. icon:'none',
  231. title: "请授权微信昵称",
  232. });
  233. return
  234. }
  235. // if(this.userinfos.avatar==''){
  236. // uni.showToast({
  237. // icon:'none',
  238. // title: "请授权微信头像",
  239. // });
  240. // return
  241. // }
  242. uni.setStorageSync('userinfos',this.userinfos)
  243. this.editUserA()
  244. this.userlogo=false
  245. },
  246. onNickNameInput(e){
  247. console.log(e)
  248. this.userinfos.nickname=e.detail.value
  249. },
  250. onChooseAvatar(e){
  251. this.userinfos.avatar=e.detail.avatarUrl
  252. uni.uploadFile({
  253. url: 'https://h5api.his.cdwjyyh.com'+'/app/common/uploadOSS', //仅为示例,非真实的接口地址
  254. filePath: e.detail.avatarUrl,
  255. name: 'file',
  256. formData: {
  257. 'user': 'test' // 上传附带参数
  258. },
  259. success: (uploadFileRes) => {
  260. console.log(uploadFileRes)
  261. // 根据接口具体返回格式 赋值具体对应url
  262. var data=JSON.parse(uploadFileRes.data)
  263. this.headImg=uni.getStorageSync('requestPath')+data.fileName
  264. this.userinfos.avatar=data.url
  265. }
  266. });
  267. },
  268. handleReceive() {
  269. console.log("===",this.isLoginH5)
  270. if (this.isLoginH5 == 0) {
  271. this.utils.isLoginCourse().then(
  272. isLogin => {
  273. this.isLogin = isLogin
  274. console.log("==isLogin=",this.isLogin)
  275. if (this.isLogin) {
  276. // this.editUserA()
  277. if (this.chatId) {
  278. this.userlogo = true
  279. } else {
  280. this.receiveLuckyBag()
  281. }
  282. } else {
  283. this.goLogin()
  284. }
  285. },
  286. rej => {}
  287. );
  288. } else {
  289. this.utils.isLoginResCourse().then(
  290. isLogin => {
  291. this.isLogin = isLogin
  292. if (this.isLogin) {
  293. this.receiveLuckyBag()
  294. } else {
  295. this.goLogin()
  296. }
  297. },
  298. rej => {}
  299. );
  300. }
  301. },
  302. receiveLuckyBag() {
  303. if(this.btnLoading) {
  304. return
  305. }
  306. uni.showToast({
  307. title: '领取中...',
  308. icon: 'loading'
  309. });
  310. this.btnLoading = true
  311. console.log("this.urlOption=",this.urlOption)
  312. receiveLuckyBag({...this.urlOption}).then(res => {
  313. uni.hideLoading()
  314. this.btnLoading = false
  315. if(res.code == 200) {
  316. this.coinAmount = res.data.coinAmount || 0
  317. this.balance = res.data.balance || 0
  318. this.collectType = 1
  319. this.show = true
  320. } else {
  321. uni.showModal({
  322. title: '领取失败',
  323. content: res.msg,
  324. showCancel: false,
  325. success: function (res) {
  326. if (res.confirm) {
  327. console.log('用户点击确定');
  328. } else if (res.cancel) {
  329. console.log('用户点击取消');
  330. }
  331. }
  332. });
  333. }
  334. }).catch(()=>{
  335. this.btnLoading = false
  336. })
  337. },
  338. navTo() {
  339. this.show = false
  340. uni.navigateTo({
  341. url: '/pages_course/appDownload'
  342. })
  343. },
  344. getLuckyBagInfo() {
  345. getLuckyBagInfo({
  346. recordId: this.recordId
  347. }).then(res => {
  348. if (res.code == 200) {
  349. this.collectType = res.data.collectType || 0; //领取状态(0-已发放 1-已领取 2-已失效)
  350. this.isExpiry = res.data.isExpiry; //false 失效 true 有效
  351. } else {
  352. uni.showToast({
  353. title: res.msg,
  354. icon: 'none'
  355. });
  356. }
  357. })
  358. },
  359. goLogin(data) {
  360. if (this.isLoginH5 == 0) {
  361. this.goWXLogin(1)
  362. return
  363. }
  364. },
  365. goWXLogin() {
  366. this.utils.getProvider().then(provider => {
  367. console.log('当前的环境商', provider)
  368. if (!provider) {
  369. reject()
  370. }
  371. uni.login({
  372. provider: provider,
  373. success: async loginRes => {
  374. console.log(loginRes)
  375. uni.getUserInfo({
  376. provider: provider,
  377. success: (infoRes) => {
  378. uni.showToast({
  379. title: '登录中...',
  380. icon: 'loading'
  381. });
  382. loginByMp({
  383. code: loginRes.code,
  384. encryptedData: infoRes.encryptedData,
  385. iv: infoRes.iv,
  386. appId: getApp().globalData.appId
  387. }).then(res => {
  388. uni.hideLoading();
  389. if (res.code == 200) {
  390. // this.checkUserInfoA()
  391. this.$store.commit('setCoureLogin', 1);
  392. uni.setStorageSync(
  393. 'AppTokenmini_RTCourse', res
  394. .token);
  395. uni.setStorageSync('auto_userInfo',
  396. JSON.stringify(res.user));
  397. this.isLogin = true
  398. if(this.chatId){
  399. this.userlogo=true
  400. }else{
  401. this.receiveLuckyBag()
  402. }
  403. } else {
  404. uni.showToast({
  405. title: res.msg,
  406. icon: 'none'
  407. });
  408. }
  409. }).catch(err => {
  410. uni.hideLoading();
  411. uni.showToast({
  412. icon: 'none',
  413. title: "登录失败,请重新登录",
  414. });
  415. });
  416. }
  417. });
  418. }
  419. })
  420. }).catch(err => {})
  421. }
  422. }
  423. }
  424. </script>
  425. <style scoped lang="scss">
  426. .subname{
  427. background-color: #00aa00;
  428. color: #fff;
  429. }
  430. .subavt{
  431. background-color: #fff;
  432. border: 2rpx #0a0 solid;
  433. color: #00aa00;
  434. }
  435. .boxweixin{
  436. width: 44rpx;
  437. height: 44rpx;
  438. border-radius: 50%;
  439. text-align: center;
  440. line-height: 34rpx;
  441. color: #0a0;
  442. }
  443. .boxnosel{
  444. border: #757575 4rpx solid;
  445. }
  446. .boxsel{
  447. border: #0a0 4rpx solid;
  448. }
  449. .button-container {
  450. position: relative;
  451. width: 240rpx;
  452. }
  453. .hidden-input {
  454. position: absolute;
  455. top: 0;
  456. left: 0;
  457. width: 100%;
  458. height: 100%;
  459. opacity: 0;
  460. z-index: 2;
  461. }
  462. .custom-button {
  463. position: relative;
  464. z-index: 1;
  465. /* 其他样式 */
  466. width:100%;
  467. margin: 0 auto;
  468. height: 80rpx;
  469. line-height: 60rpx;
  470. font-size: 28rpx;
  471. padding: 10rpx 20rpx;
  472. }
  473. .submitname{
  474. width: 90%;
  475. margin: 0 auto;
  476. text-align: center;
  477. padding: 30rpx;
  478. margin-top: 40rpx;
  479. }
  480. .sub{
  481. background-color: #f0f0f0;
  482. color: #0a0;
  483. }
  484. .subact{
  485. background-color: #0a0;
  486. color: #fff;
  487. }
  488. .userlogo{
  489. height: 760rpx;
  490. }
  491. .exsct {
  492. height: 92rpx;
  493. width: 437rpx;
  494. background-color: transparent;
  495. border-radius: 69rpx;
  496. position: absolute;
  497. top: 27rpx;
  498. left: 28rpx;
  499. box-shadow: inset -57rpx 0px 40rpx -26rpx rgba(255, 255, 255, 0.7);
  500. will-change: left, opacity;
  501. animation: leftFade 2s linear infinite;
  502. opacity: 0;
  503. }
  504. .color_FB2205 {
  505. color: #FB2205;
  506. }
  507. .activity_title2,
  508. .activity_title3,
  509. .activity_title4 {
  510. margin-top: 8vh;
  511. margin-bottom: 56rpx;
  512. font-family: PingFang SC, PingFang SC;
  513. font-weight: 600;
  514. font-size: 48rpx;
  515. line-height: 80rpx;
  516. filter: drop-shadow(0px 4rpx 8rpx rgba(174, 0, 25, 0.8));
  517. text-align: center;
  518. font-style: normal;
  519. text-transform: none;
  520. background: linear-gradient(270deg, #FFF5EE 0%, #FFE2B3 100%);
  521. -webkit-background-clip: text;
  522. background-clip: text;
  523. -webkit-text-fill-color: transparent;
  524. text-fill-color: transparent;
  525. display: inline-block
  526. }
  527. .activity_title3 {
  528. font-size: 48rpx;
  529. line-height: 80rpx;
  530. margin-top: 6vh;
  531. margin-bottom: 8rpx;
  532. }
  533. .activity_title4 {
  534. font-size: 32rpx;
  535. line-height: 44rpx;
  536. margin-top: 0;
  537. margin-bottom: 48rpx;
  538. }
  539. .container_box {
  540. min-height: 100vh;
  541. position: relative;
  542. background: linear-gradient(180deg, #FD2F3C 0%, #FFE7CE 100%);
  543. }
  544. .activity_yh_right {
  545. width: 100rpx;
  546. position: absolute;
  547. top: 25%;
  548. right: 0;
  549. }
  550. .activity_yh_left {
  551. width: 114rpx;
  552. position: absolute;
  553. top: 50%;
  554. left: 0;
  555. }
  556. .header-nav {
  557. height: 88rpx;
  558. display: flex;
  559. align-items: center;
  560. justify-content: center;
  561. overflow: hidden;
  562. box-sizing: border-box;
  563. width: 100%;
  564. }
  565. .conbox {
  566. position: relative;
  567. display: flex;
  568. flex-direction: column;
  569. align-items: center;
  570. justify-content: flex-start;
  571. z-index: 3;
  572. .activity_title {
  573. width: 632rpx;
  574. height: auto;
  575. margin-top: 28rpx;
  576. }
  577. .ybg_box {
  578. width: 566rpx;
  579. height: 580rpx;
  580. position: relative;
  581. .activity_ysx,
  582. .activity_ylq {
  583. position: absolute;
  584. left: 242rpx;
  585. top: 215rpx;
  586. width: 300rpx;
  587. height: auto;
  588. }
  589. .ybg {
  590. width: 616rpx;
  591. height: 616rpx;
  592. background: #FFE7CE;
  593. border-radius: 0rpx 0rpx 0rpx 0rpx;
  594. filter: blur(94.30000305175781px);
  595. }
  596. image {
  597. height: 580rpx;
  598. position: absolute;
  599. top: 0;
  600. left: 0;
  601. z-index: 99;
  602. }
  603. }
  604. .activity_btn_down {
  605. width: 416rpx;
  606. height: 88rpx;
  607. margin-top: 94rpx;
  608. background: rgba(0, 0, 0, 0.3);
  609. border-radius: 56rpx 56rpx 56rpx 56rpx;
  610. font-family: PingFang SC, PingFang SC;
  611. font-weight: 600;
  612. font-size: 28rpx;
  613. color: #FFFFFF;
  614. image {
  615. width: 32rpx;
  616. height: 32rpx;
  617. margin-left: 16rpx;
  618. }
  619. }
  620. .activity_btn {
  621. height: 137rpx;
  622. width: 502rpx;
  623. margin-top: 48rpx;
  624. font-family: PingFang SC;
  625. font-weight: 600;
  626. font-size: 44rpx;
  627. color: #FFFFFF;
  628. display: flex;
  629. align-items: center;
  630. justify-content: center;
  631. position: relative;
  632. z-index: 2;
  633. overflow: hidden;
  634. border-radius: 137rpx;
  635. image {
  636. height: 137rpx;
  637. position: absolute;
  638. left: 0;
  639. top: 12rpx;
  640. z-index: -1;
  641. }
  642. }
  643. }
  644. .popup-box {
  645. width: 518rpx;
  646. min-height: 568rpx;
  647. background: linear-gradient(180deg, #FFE7AC 0%, #FFFFFF 100%);
  648. border-radius: 56rpx 56rpx 56rpx 56rpx;
  649. position: relative;
  650. display: flex;
  651. align-items: center;
  652. flex-direction: column;
  653. box-shadow: 0 0 30px -6px rgba(255, 231, 206, 1);
  654. .activity_jb {
  655. height: 184rpx;
  656. margin-top: -130rpx;
  657. position: relative;
  658. }
  659. .popup-tit {
  660. font-family: PingFang SC;
  661. font-weight: 600;
  662. font-size: 40rpx;
  663. color: #000000;
  664. line-height: 80rpx;
  665. }
  666. .con {
  667. margin-top: 16rpx;
  668. width: 438rpx;
  669. min-height: 170rpx;
  670. padding: 16rpx 0;
  671. background: #FFE8AE;
  672. border-radius: 16rpx 16rpx 16rpx 16rpx;
  673. font-family: PingFang SC;
  674. font-weight: 400;
  675. font-size: 28rpx;
  676. color: #333333;
  677. display: flex;
  678. flex-direction: column;
  679. align-items: center;
  680. justify-content: center;
  681. }
  682. .numbox {
  683. font-weight: 600;
  684. margin-bottom: 12rpx;
  685. }
  686. .num {
  687. font-size: 68rpx;
  688. margin-right: 10rpx;
  689. }
  690. .popbtn {
  691. width: 358rpx;
  692. height: 88rpx;
  693. background: linear-gradient(90deg, #F82D31 0%, #FD6C05 100%);
  694. box-shadow: 0rpx 8rpx 0rpx 0rpx #FEBC92;
  695. border-radius: 64rpx 64rpx 64rpx 64rpx;
  696. margin-top: 32rpx;
  697. font-family: PingFang SC, PingFang SC;
  698. font-weight: 600;
  699. font-size: 32rpx;
  700. color: #FFFFFF;
  701. }
  702. }
  703. .popup-tips {
  704. margin-top: 20rpx;
  705. font-family: PingFang SC;
  706. font-weight: 400;
  707. font-size: 24rpx;
  708. color: #666666;
  709. text-align: center;
  710. }
  711. .footer_img {
  712. width: 100%;
  713. position: fixed;
  714. bottom: 0;
  715. left: 0;
  716. }
  717. .animation {
  718. will-change: transform;
  719. animation: scaleAnimation 2s ease infinite;
  720. }
  721. @keyframes leftFade {
  722. 0% {
  723. left: -464rpx;
  724. opacity: 0;
  725. }
  726. 25% {
  727. opacity: 1;
  728. left: -249rpx;
  729. }
  730. 50% {
  731. opacity: 0;
  732. left: 16rpx;
  733. }
  734. 100% {
  735. opacity: 0;
  736. left: 490rpx;
  737. }
  738. }
  739. @keyframes scaleAnimation {
  740. 0% {
  741. transform: scale(1);
  742. }
  743. // 30% {
  744. // transform: scale(1.05);
  745. // }
  746. 50% {
  747. transform: scale(1.05);
  748. }
  749. 100% {
  750. transform: scale(1);
  751. }
  752. }
  753. </style>