activity.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795
  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.businessId || ''
  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.receiveLuckyBag()
  208. },100)
  209. }else{
  210. uni.removeStorageSync('userinfos')
  211. uni.showToast({
  212. icon:'none',
  213. title:res.msg+'请重新领取福袋',
  214. });
  215. }
  216. })
  217. },
  218. shouquan(){
  219. if(this.userinfos.nickname==''){
  220. uni.showToast({
  221. icon:'none',
  222. title: "请先授权微信昵称",
  223. });
  224. }
  225. },
  226. confimrname(){
  227. if(this.userinfos.nickname==''){
  228. uni.showToast({
  229. icon:'none',
  230. title: "请授权微信昵称",
  231. });
  232. return
  233. }
  234. // if(this.userinfos.avatar==''){
  235. // uni.showToast({
  236. // icon:'none',
  237. // title: "请授权微信头像",
  238. // });
  239. // return
  240. // }
  241. uni.setStorageSync('userinfos',this.userinfos)
  242. this.editUserA()
  243. this.userlogo=false
  244. },
  245. onNickNameInput(e){
  246. console.log(e)
  247. this.userinfos.nickname=e.detail.value
  248. },
  249. onChooseAvatar(e){
  250. this.userinfos.avatar=e.detail.avatarUrl
  251. uni.uploadFile({
  252. url: 'https://h5api.his.cdwjyyh.com'+'/app/common/uploadOSS', //仅为示例,非真实的接口地址
  253. filePath: e.detail.avatarUrl,
  254. name: 'file',
  255. formData: {
  256. 'user': 'test' // 上传附带参数
  257. },
  258. success: (uploadFileRes) => {
  259. console.log(uploadFileRes)
  260. // 根据接口具体返回格式 赋值具体对应url
  261. var data=JSON.parse(uploadFileRes.data)
  262. this.headImg=uni.getStorageSync('requestPath')+data.fileName
  263. this.userinfos.avatar=data.url
  264. }
  265. });
  266. },
  267. handleReceive() {
  268. if (this.isLoginH5 == 0) {
  269. this.utils.isLoginCourse().then(
  270. isLogin => {
  271. this.isLogin = isLogin
  272. console.log("==isLogin=",this.isLogin)
  273. if (this.isLogin) {
  274. // this.editUserA()
  275. if (this.chatId) {
  276. this.userlogo = true
  277. } else {
  278. this.receiveLuckyBag()
  279. }
  280. } else {
  281. this.goLogin()
  282. }
  283. },
  284. rej => {}
  285. );
  286. } else {
  287. this.utils.isLoginResCourse().then(
  288. isLogin => {
  289. this.isLogin = isLogin
  290. if (this.isLogin) {
  291. this.receiveLuckyBag()
  292. } else {
  293. this.goLogin()
  294. }
  295. },
  296. rej => {}
  297. );
  298. }
  299. },
  300. receiveLuckyBag() {
  301. if(this.btnLoading) {
  302. return
  303. }
  304. uni.showToast({
  305. title: '领取中...',
  306. icon: 'loading'
  307. });
  308. this.btnLoading = true
  309. const param = {
  310. ...this.urlOption,
  311. recordId: this.recordId
  312. }
  313. receiveLuckyBag(param).then(res => {
  314. uni.hideLoading()
  315. this.btnLoading = false
  316. if(res.code == 200) {
  317. this.coinAmount = res.data.coinAmount || 0
  318. this.balance = res.data.balance || 0
  319. this.collectType = 1
  320. this.show = true
  321. } else {
  322. uni.showModal({
  323. title: '领取失败',
  324. content: res.msg,
  325. showCancel: false,
  326. success: function (res) {
  327. if (res.confirm) {
  328. console.log('用户点击确定');
  329. } else if (res.cancel) {
  330. console.log('用户点击取消');
  331. }
  332. }
  333. });
  334. }
  335. }).catch(()=>{
  336. this.btnLoading = false
  337. })
  338. },
  339. navTo() {
  340. this.show = false
  341. uni.navigateTo({
  342. url: '/pages_course/appDownload'
  343. })
  344. },
  345. getLuckyBagInfo() {
  346. getLuckyBagInfo({
  347. recordId: this.recordId
  348. }).then(res => {
  349. if (res.code == 200) {
  350. this.collectType = res.data.collectType || 0; //领取状态(0-已发放 1-已领取 2-已失效)
  351. this.isExpiry = res.data.isExpiry; //false 失效 true 有效
  352. } else {
  353. uni.showToast({
  354. title: res.msg,
  355. icon: 'none'
  356. });
  357. }
  358. })
  359. },
  360. goLogin(data) {
  361. if (this.isLoginH5 == 0) {
  362. this.goWXLogin(1)
  363. return
  364. }
  365. },
  366. goWXLogin() {
  367. this.utils.getProvider().then(provider => {
  368. console.log('当前的环境商', provider)
  369. if (!provider) {
  370. reject()
  371. }
  372. uni.login({
  373. provider: provider,
  374. success: async loginRes => {
  375. console.log(loginRes)
  376. uni.getUserInfo({
  377. provider: provider,
  378. success: (infoRes) => {
  379. uni.showToast({
  380. title: '登录中...',
  381. icon: 'loading'
  382. });
  383. loginByMp({
  384. code: loginRes.code,
  385. encryptedData: infoRes.encryptedData,
  386. iv: infoRes.iv,
  387. appId: getApp().globalData.appId
  388. }).then(res => {
  389. uni.hideLoading();
  390. if (res.code == 200) {
  391. // this.checkUserInfoA()
  392. this.$store.commit('setCoureLogin', 1);
  393. uni.setStorageSync(
  394. 'AppTokenmini_RTCourse', res
  395. .token);
  396. uni.setStorageSync('auto_userInfo',
  397. JSON.stringify(res.user));
  398. this.isLogin = true
  399. if(this.chatId){
  400. this.userlogo=true
  401. }else{
  402. this.receiveLuckyBag()
  403. }
  404. } else {
  405. uni.showToast({
  406. title: res.msg,
  407. icon: 'none'
  408. });
  409. }
  410. }).catch(err => {
  411. uni.hideLoading();
  412. uni.showToast({
  413. icon: 'none',
  414. title: "登录失败,请重新登录",
  415. });
  416. });
  417. }
  418. });
  419. }
  420. })
  421. }).catch(err => {})
  422. }
  423. }
  424. }
  425. </script>
  426. <style scoped lang="scss">
  427. .subname{
  428. background-color: #00aa00;
  429. color: #fff;
  430. }
  431. .subavt{
  432. background-color: #fff;
  433. border: 2rpx #0a0 solid;
  434. color: #00aa00;
  435. }
  436. .boxweixin{
  437. width: 44rpx;
  438. height: 44rpx;
  439. border-radius: 50%;
  440. text-align: center;
  441. line-height: 34rpx;
  442. color: #0a0;
  443. }
  444. .boxnosel{
  445. border: #757575 4rpx solid;
  446. }
  447. .boxsel{
  448. border: #0a0 4rpx solid;
  449. }
  450. .button-container {
  451. position: relative;
  452. width: 240rpx;
  453. }
  454. .hidden-input {
  455. position: absolute;
  456. top: 0;
  457. left: 0;
  458. width: 100%;
  459. height: 100%;
  460. opacity: 0;
  461. z-index: 2;
  462. }
  463. .custom-button {
  464. position: relative;
  465. z-index: 1;
  466. /* 其他样式 */
  467. width:100%;
  468. margin: 0 auto;
  469. height: 80rpx;
  470. line-height: 60rpx;
  471. font-size: 28rpx;
  472. padding: 10rpx 20rpx;
  473. }
  474. .submitname{
  475. width: 90%;
  476. margin: 0 auto;
  477. text-align: center;
  478. padding: 30rpx;
  479. margin-top: 40rpx;
  480. }
  481. .sub{
  482. background-color: #f0f0f0;
  483. color: #0a0;
  484. }
  485. .subact{
  486. background-color: #0a0;
  487. color: #fff;
  488. }
  489. .userlogo{
  490. height: 760rpx;
  491. }
  492. .exsct {
  493. height: 92rpx;
  494. width: 437rpx;
  495. background-color: transparent;
  496. border-radius: 69rpx;
  497. position: absolute;
  498. top: 27rpx;
  499. left: 28rpx;
  500. box-shadow: inset -57rpx 0px 40rpx -26rpx rgba(255, 255, 255, 0.7);
  501. will-change: left, opacity;
  502. animation: leftFade 2s linear infinite;
  503. opacity: 0;
  504. }
  505. .color_FB2205 {
  506. color: #FB2205;
  507. }
  508. .activity_title2,
  509. .activity_title3,
  510. .activity_title4 {
  511. margin-top: 8vh;
  512. margin-bottom: 56rpx;
  513. font-family: PingFang SC, PingFang SC;
  514. font-weight: 600;
  515. font-size: 48rpx;
  516. line-height: 80rpx;
  517. filter: drop-shadow(0px 4rpx 8rpx rgba(174, 0, 25, 0.8));
  518. text-align: center;
  519. font-style: normal;
  520. text-transform: none;
  521. background: linear-gradient(270deg, #FFF5EE 0%, #FFE2B3 100%);
  522. -webkit-background-clip: text;
  523. background-clip: text;
  524. -webkit-text-fill-color: transparent;
  525. text-fill-color: transparent;
  526. display: inline-block
  527. }
  528. .activity_title3 {
  529. font-size: 48rpx;
  530. line-height: 80rpx;
  531. margin-top: 6vh;
  532. margin-bottom: 8rpx;
  533. }
  534. .activity_title4 {
  535. font-size: 32rpx;
  536. line-height: 44rpx;
  537. margin-top: 0;
  538. margin-bottom: 48rpx;
  539. }
  540. .container_box {
  541. min-height: 100vh;
  542. position: relative;
  543. background: linear-gradient(180deg, #FD2F3C 0%, #FFE7CE 100%);
  544. }
  545. .activity_yh_right {
  546. width: 100rpx;
  547. position: absolute;
  548. top: 25%;
  549. right: 0;
  550. }
  551. .activity_yh_left {
  552. width: 114rpx;
  553. position: absolute;
  554. top: 50%;
  555. left: 0;
  556. }
  557. .header-nav {
  558. height: 88rpx;
  559. display: flex;
  560. align-items: center;
  561. justify-content: center;
  562. overflow: hidden;
  563. box-sizing: border-box;
  564. width: 100%;
  565. }
  566. .conbox {
  567. position: relative;
  568. display: flex;
  569. flex-direction: column;
  570. align-items: center;
  571. justify-content: flex-start;
  572. z-index: 3;
  573. .activity_title {
  574. width: 632rpx;
  575. height: auto;
  576. margin-top: 28rpx;
  577. }
  578. .ybg_box {
  579. width: 566rpx;
  580. height: 580rpx;
  581. position: relative;
  582. .activity_ysx,
  583. .activity_ylq {
  584. position: absolute;
  585. left: 242rpx;
  586. top: 215rpx;
  587. width: 300rpx;
  588. height: auto;
  589. }
  590. .ybg {
  591. width: 616rpx;
  592. height: 616rpx;
  593. background: #FFE7CE;
  594. border-radius: 0rpx 0rpx 0rpx 0rpx;
  595. filter: blur(94.30000305175781px);
  596. }
  597. image {
  598. height: 580rpx;
  599. position: absolute;
  600. top: 0;
  601. left: 0;
  602. z-index: 99;
  603. }
  604. }
  605. .activity_btn_down {
  606. width: 416rpx;
  607. height: 88rpx;
  608. margin-top: 94rpx;
  609. background: rgba(0, 0, 0, 0.3);
  610. border-radius: 56rpx 56rpx 56rpx 56rpx;
  611. font-family: PingFang SC, PingFang SC;
  612. font-weight: 600;
  613. font-size: 28rpx;
  614. color: #FFFFFF;
  615. image {
  616. width: 32rpx;
  617. height: 32rpx;
  618. margin-left: 16rpx;
  619. }
  620. }
  621. .activity_btn {
  622. height: 137rpx;
  623. width: 502rpx;
  624. margin-top: 48rpx;
  625. font-family: PingFang SC;
  626. font-weight: 600;
  627. font-size: 44rpx;
  628. color: #FFFFFF;
  629. display: flex;
  630. align-items: center;
  631. justify-content: center;
  632. position: relative;
  633. z-index: 2;
  634. overflow: hidden;
  635. border-radius: 137rpx;
  636. image {
  637. height: 137rpx;
  638. position: absolute;
  639. left: 0;
  640. top: 12rpx;
  641. z-index: -1;
  642. }
  643. }
  644. }
  645. .popup-box {
  646. width: 518rpx;
  647. min-height: 568rpx;
  648. background: linear-gradient(180deg, #FFE7AC 0%, #FFFFFF 100%);
  649. border-radius: 56rpx 56rpx 56rpx 56rpx;
  650. position: relative;
  651. display: flex;
  652. align-items: center;
  653. flex-direction: column;
  654. box-shadow: 0 0 30px -6px rgba(255, 231, 206, 1);
  655. .activity_jb {
  656. height: 184rpx;
  657. margin-top: -130rpx;
  658. position: relative;
  659. }
  660. .popup-tit {
  661. font-family: PingFang SC;
  662. font-weight: 600;
  663. font-size: 40rpx;
  664. color: #000000;
  665. line-height: 80rpx;
  666. }
  667. .con {
  668. margin-top: 16rpx;
  669. width: 438rpx;
  670. min-height: 170rpx;
  671. padding: 16rpx 0;
  672. background: #FFE8AE;
  673. border-radius: 16rpx 16rpx 16rpx 16rpx;
  674. font-family: PingFang SC;
  675. font-weight: 400;
  676. font-size: 28rpx;
  677. color: #333333;
  678. display: flex;
  679. flex-direction: column;
  680. align-items: center;
  681. justify-content: center;
  682. }
  683. .numbox {
  684. font-weight: 600;
  685. margin-bottom: 12rpx;
  686. }
  687. .num {
  688. font-size: 68rpx;
  689. margin-right: 10rpx;
  690. }
  691. .popbtn {
  692. width: 358rpx;
  693. height: 88rpx;
  694. background: linear-gradient(90deg, #F82D31 0%, #FD6C05 100%);
  695. box-shadow: 0rpx 8rpx 0rpx 0rpx #FEBC92;
  696. border-radius: 64rpx 64rpx 64rpx 64rpx;
  697. margin-top: 32rpx;
  698. font-family: PingFang SC, PingFang SC;
  699. font-weight: 600;
  700. font-size: 32rpx;
  701. color: #FFFFFF;
  702. }
  703. }
  704. .popup-tips {
  705. margin-top: 20rpx;
  706. font-family: PingFang SC;
  707. font-weight: 400;
  708. font-size: 24rpx;
  709. color: #666666;
  710. text-align: center;
  711. }
  712. .footer_img {
  713. width: 100%;
  714. position: fixed;
  715. bottom: 0;
  716. left: 0;
  717. }
  718. .animation {
  719. will-change: transform;
  720. animation: scaleAnimation 2s ease infinite;
  721. }
  722. @keyframes leftFade {
  723. 0% {
  724. left: -464rpx;
  725. opacity: 0;
  726. }
  727. 25% {
  728. opacity: 1;
  729. left: -249rpx;
  730. }
  731. 50% {
  732. opacity: 0;
  733. left: 16rpx;
  734. }
  735. 100% {
  736. opacity: 0;
  737. left: 490rpx;
  738. }
  739. }
  740. @keyframes scaleAnimation {
  741. 0% {
  742. transform: scale(1);
  743. }
  744. // 30% {
  745. // transform: scale(1.05);
  746. // }
  747. 50% {
  748. transform: scale(1.05);
  749. }
  750. 100% {
  751. transform: scale(1);
  752. }
  753. }
  754. </style>