luckyBag.vue 21 KB

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