activityOld.vue 24 KB

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