activity.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817
  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}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. getAddCompanyUser() {
  192. if(this.registerLoading) return;
  193. uni.showLoading({
  194. title: '注册中'
  195. })
  196. this.registerLoading = true
  197. isAddCompanyUser(this.urlOption).then(res=>{
  198. this.registerLoading = false
  199. uni.hideLoading()
  200. if(res.code==200) {
  201. this.receiveLuckyBag()
  202. } else {
  203. uni.showToast({
  204. title: res.msg,
  205. icon: 'none'
  206. });
  207. }
  208. }).catch(()=>{
  209. this.registerLoading = false
  210. uni.hideLoading()
  211. })
  212. },
  213. //修改用户昵称以及头像
  214. editUserA(){
  215. this.userinfos=uni.getStorageSync('userinfos')?uni.getStorageSync('userinfos'):this.userinfos
  216. const data={
  217. nickName:this.userinfos.nickname,
  218. // avatar:this.userinfos.avatar,
  219. }
  220. editUser(data).then(res=>{
  221. if(res.code==200){
  222. this.isLogin = true
  223. uni.showToast({
  224. icon:'none',
  225. title:'修改成功!',
  226. });
  227. setTimeout(()=>{
  228. this.getAddCompanyUser()
  229. },100)
  230. }else{
  231. uni.removeStorageSync('userinfos')
  232. uni.showToast({
  233. icon:'none',
  234. title:res.msg+'请重新领取福袋',
  235. });
  236. }
  237. })
  238. },
  239. shouquan(){
  240. if(this.userinfos.nickname==''){
  241. uni.showToast({
  242. icon:'none',
  243. title: "请先授权微信昵称",
  244. });
  245. }
  246. },
  247. confimrname(){
  248. if(this.userinfos.nickname==''){
  249. uni.showToast({
  250. icon:'none',
  251. title: "请授权微信昵称",
  252. });
  253. return
  254. }
  255. // if(this.userinfos.avatar==''){
  256. // uni.showToast({
  257. // icon:'none',
  258. // title: "请授权微信头像",
  259. // });
  260. // return
  261. // }
  262. uni.setStorageSync('userinfos',this.userinfos)
  263. this.editUserA()
  264. this.userlogo=false
  265. },
  266. onNickNameInput(e){
  267. console.log(e)
  268. this.userinfos.nickname=e.detail.value
  269. },
  270. onChooseAvatar(e){
  271. this.userinfos.avatar=e.detail.avatarUrl
  272. uni.uploadFile({
  273. url: 'https://h5api.his.cdwjyyh.com'+'/app/common/uploadOSS', //仅为示例,非真实的接口地址
  274. filePath: e.detail.avatarUrl,
  275. name: 'file',
  276. formData: {
  277. 'user': 'test' // 上传附带参数
  278. },
  279. success: (uploadFileRes) => {
  280. console.log(uploadFileRes)
  281. // 根据接口具体返回格式 赋值具体对应url
  282. var data=JSON.parse(uploadFileRes.data)
  283. this.headImg=uni.getStorageSync('requestPath')+data.fileName
  284. this.userinfos.avatar=data.url
  285. }
  286. });
  287. },
  288. handleReceive() {
  289. if (this.isLoginH5 == 0) {
  290. this.utils.isLoginCourse().then(
  291. isLogin => {
  292. this.isLogin = isLogin
  293. console.log("==isLogin=",this.isLogin)
  294. if (this.isLogin) {
  295. // this.editUserA()
  296. if (this.chatId) {
  297. this.userlogo = true
  298. } else {
  299. this.getAddCompanyUser()
  300. }
  301. } else {
  302. this.goLogin()
  303. }
  304. },
  305. rej => {}
  306. );
  307. } else {
  308. this.utils.isLoginResCourse().then(
  309. isLogin => {
  310. this.isLogin = isLogin
  311. if (this.isLogin) {
  312. this.getAddCompanyUser()
  313. } else {
  314. this.goLogin()
  315. }
  316. },
  317. rej => {}
  318. );
  319. }
  320. },
  321. receiveLuckyBag() {
  322. if(this.btnLoading) {
  323. return
  324. }
  325. uni.showToast({
  326. title: '领取中...',
  327. icon: 'loading'
  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. if(this.chatId){
  422. this.userlogo=true
  423. }else{
  424. this.receiveLuckyBag()
  425. }
  426. } else {
  427. uni.showToast({
  428. title: res.msg,
  429. icon: 'none'
  430. });
  431. }
  432. }).catch(err => {
  433. uni.hideLoading();
  434. uni.showToast({
  435. icon: 'none',
  436. title: "登录失败,请重新登录",
  437. });
  438. });
  439. }
  440. });
  441. }
  442. })
  443. }).catch(err => {})
  444. }
  445. }
  446. }
  447. </script>
  448. <style scoped lang="scss">
  449. .subname{
  450. background-color: #00aa00;
  451. color: #fff;
  452. }
  453. .subavt{
  454. background-color: #fff;
  455. border: 2rpx #0a0 solid;
  456. color: #00aa00;
  457. }
  458. .boxweixin{
  459. width: 44rpx;
  460. height: 44rpx;
  461. border-radius: 50%;
  462. text-align: center;
  463. line-height: 34rpx;
  464. color: #0a0;
  465. }
  466. .boxnosel{
  467. border: #757575 4rpx solid;
  468. }
  469. .boxsel{
  470. border: #0a0 4rpx solid;
  471. }
  472. .button-container {
  473. position: relative;
  474. width: 240rpx;
  475. }
  476. .hidden-input {
  477. position: absolute;
  478. top: 0;
  479. left: 0;
  480. width: 100%;
  481. height: 100%;
  482. opacity: 0;
  483. z-index: 2;
  484. }
  485. .custom-button {
  486. position: relative;
  487. z-index: 1;
  488. /* 其他样式 */
  489. width:100%;
  490. margin: 0 auto;
  491. height: 80rpx;
  492. line-height: 60rpx;
  493. font-size: 28rpx;
  494. padding: 10rpx 20rpx;
  495. }
  496. .submitname{
  497. width: 90%;
  498. margin: 0 auto;
  499. text-align: center;
  500. padding: 30rpx;
  501. margin-top: 40rpx;
  502. }
  503. .sub{
  504. background-color: #f0f0f0;
  505. color: #0a0;
  506. }
  507. .subact{
  508. background-color: #0a0;
  509. color: #fff;
  510. }
  511. .userlogo{
  512. height: 760rpx;
  513. }
  514. .exsct {
  515. height: 92rpx;
  516. width: 437rpx;
  517. background-color: transparent;
  518. border-radius: 69rpx;
  519. position: absolute;
  520. top: 27rpx;
  521. left: 28rpx;
  522. box-shadow: inset -57rpx 0px 40rpx -26rpx rgba(255, 255, 255, 0.7);
  523. will-change: left, opacity;
  524. animation: leftFade 2s linear infinite;
  525. opacity: 0;
  526. }
  527. .color_FB2205 {
  528. color: #FB2205;
  529. }
  530. .activity_title2,
  531. .activity_title3,
  532. .activity_title4 {
  533. margin-top: 8vh;
  534. margin-bottom: 56rpx;
  535. font-family: PingFang SC, PingFang SC;
  536. font-weight: 600;
  537. font-size: 48rpx;
  538. line-height: 80rpx;
  539. filter: drop-shadow(0px 4rpx 8rpx rgba(174, 0, 25, 0.8));
  540. text-align: center;
  541. font-style: normal;
  542. text-transform: none;
  543. background: linear-gradient(270deg, #FFF5EE 0%, #FFE2B3 100%);
  544. -webkit-background-clip: text;
  545. background-clip: text;
  546. -webkit-text-fill-color: transparent;
  547. text-fill-color: transparent;
  548. display: inline-block
  549. }
  550. .activity_title3 {
  551. font-size: 48rpx;
  552. line-height: 80rpx;
  553. margin-top: 6vh;
  554. margin-bottom: 8rpx;
  555. }
  556. .activity_title4 {
  557. font-size: 32rpx;
  558. line-height: 44rpx;
  559. margin-top: 0;
  560. margin-bottom: 48rpx;
  561. }
  562. .container_box {
  563. min-height: 100vh;
  564. position: relative;
  565. background: linear-gradient(180deg, #FD2F3C 0%, #FFE7CE 100%);
  566. }
  567. .activity_yh_right {
  568. width: 100rpx;
  569. position: absolute;
  570. top: 25%;
  571. right: 0;
  572. }
  573. .activity_yh_left {
  574. width: 114rpx;
  575. position: absolute;
  576. top: 50%;
  577. left: 0;
  578. }
  579. .header-nav {
  580. height: 88rpx;
  581. display: flex;
  582. align-items: center;
  583. justify-content: center;
  584. overflow: hidden;
  585. box-sizing: border-box;
  586. width: 100%;
  587. }
  588. .conbox {
  589. position: relative;
  590. display: flex;
  591. flex-direction: column;
  592. align-items: center;
  593. justify-content: flex-start;
  594. z-index: 3;
  595. .activity_title {
  596. width: 632rpx;
  597. height: auto;
  598. margin-top: 28rpx;
  599. }
  600. .ybg_box {
  601. width: 566rpx;
  602. height: 580rpx;
  603. position: relative;
  604. .activity_ysx,
  605. .activity_ylq {
  606. position: absolute;
  607. left: 242rpx;
  608. top: 215rpx;
  609. width: 300rpx;
  610. height: auto;
  611. }
  612. .ybg {
  613. width: 616rpx;
  614. height: 616rpx;
  615. background: #FFE7CE;
  616. border-radius: 0rpx 0rpx 0rpx 0rpx;
  617. filter: blur(94.30000305175781px);
  618. }
  619. image {
  620. height: 580rpx;
  621. position: absolute;
  622. top: 0;
  623. left: 0;
  624. z-index: 99;
  625. }
  626. }
  627. .activity_btn_down {
  628. width: 416rpx;
  629. height: 88rpx;
  630. margin-top: 94rpx;
  631. background: rgba(0, 0, 0, 0.3);
  632. border-radius: 56rpx 56rpx 56rpx 56rpx;
  633. font-family: PingFang SC, PingFang SC;
  634. font-weight: 600;
  635. font-size: 28rpx;
  636. color: #FFFFFF;
  637. image {
  638. width: 32rpx;
  639. height: 32rpx;
  640. margin-left: 16rpx;
  641. }
  642. }
  643. .activity_btn {
  644. height: 137rpx;
  645. width: 502rpx;
  646. margin-top: 48rpx;
  647. font-family: PingFang SC;
  648. font-weight: 600;
  649. font-size: 44rpx;
  650. color: #FFFFFF;
  651. display: flex;
  652. align-items: center;
  653. justify-content: center;
  654. position: relative;
  655. z-index: 2;
  656. overflow: hidden;
  657. border-radius: 137rpx;
  658. image {
  659. height: 137rpx;
  660. position: absolute;
  661. left: 0;
  662. top: 12rpx;
  663. z-index: -1;
  664. }
  665. }
  666. }
  667. .popup-box {
  668. width: 518rpx;
  669. min-height: 568rpx;
  670. background: linear-gradient(180deg, #FFE7AC 0%, #FFFFFF 100%);
  671. border-radius: 56rpx 56rpx 56rpx 56rpx;
  672. position: relative;
  673. display: flex;
  674. align-items: center;
  675. flex-direction: column;
  676. box-shadow: 0 0 30px -6px rgba(255, 231, 206, 1);
  677. .activity_jb {
  678. height: 184rpx;
  679. margin-top: -130rpx;
  680. position: relative;
  681. }
  682. .popup-tit {
  683. font-family: PingFang SC;
  684. font-weight: 600;
  685. font-size: 40rpx;
  686. color: #000000;
  687. line-height: 80rpx;
  688. }
  689. .con {
  690. margin-top: 16rpx;
  691. width: 438rpx;
  692. min-height: 170rpx;
  693. padding: 16rpx 0;
  694. background: #FFE8AE;
  695. border-radius: 16rpx 16rpx 16rpx 16rpx;
  696. font-family: PingFang SC;
  697. font-weight: 400;
  698. font-size: 28rpx;
  699. color: #333333;
  700. display: flex;
  701. flex-direction: column;
  702. align-items: center;
  703. justify-content: center;
  704. }
  705. .numbox {
  706. font-weight: 600;
  707. margin-bottom: 12rpx;
  708. }
  709. .num {
  710. font-size: 68rpx;
  711. margin-right: 10rpx;
  712. }
  713. .popbtn {
  714. width: 358rpx;
  715. height: 88rpx;
  716. background: linear-gradient(90deg, #F82D31 0%, #FD6C05 100%);
  717. box-shadow: 0rpx 8rpx 0rpx 0rpx #FEBC92;
  718. border-radius: 64rpx 64rpx 64rpx 64rpx;
  719. margin-top: 32rpx;
  720. font-family: PingFang SC, PingFang SC;
  721. font-weight: 600;
  722. font-size: 32rpx;
  723. color: #FFFFFF;
  724. }
  725. }
  726. .popup-tips {
  727. margin-top: 20rpx;
  728. font-family: PingFang SC;
  729. font-weight: 400;
  730. font-size: 24rpx;
  731. color: #666666;
  732. text-align: center;
  733. }
  734. .footer_img {
  735. width: 100%;
  736. position: fixed;
  737. bottom: 0;
  738. left: 0;
  739. }
  740. .animation {
  741. will-change: transform;
  742. animation: scaleAnimation 2s ease infinite;
  743. }
  744. @keyframes leftFade {
  745. 0% {
  746. left: -464rpx;
  747. opacity: 0;
  748. }
  749. 25% {
  750. opacity: 1;
  751. left: -249rpx;
  752. }
  753. 50% {
  754. opacity: 0;
  755. left: 16rpx;
  756. }
  757. 100% {
  758. opacity: 0;
  759. left: 490rpx;
  760. }
  761. }
  762. @keyframes scaleAnimation {
  763. 0% {
  764. transform: scale(1);
  765. }
  766. // 30% {
  767. // transform: scale(1.05);
  768. // }
  769. 50% {
  770. transform: scale(1.05);
  771. }
  772. 100% {
  773. transform: scale(1);
  774. }
  775. }
  776. </style>