activity.vue 19 KB

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