user-rank-blessing.html 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>生日快乐-个人中心-创业帮</title>
  6. <meta name="keywords" content="生日快乐-个人中心-创业帮">
  7. <meta name="description" content="生日快乐-个人中心-创业帮">
  8. <meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,shrink-to-fit=no,user-scalable=no" name="viewport" viewport="cover">
  9. <meta name="apple-mobile-web-app-capable" content="yes">
  10. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
  11. <meta content="telephone=no" name="format-detection">
  12. <meta content="email=no" name="format-detection">
  13. <meta name="apple-mobile-web-app-title" content="生日快乐-个人中心-创业帮">
  14. <meta http-equiv="Cache-Control" content="no-siteapp">
  15. <link rel="stylesheet" href="./static/css/main.css">
  16. </head>
  17. <body class="pb0 ovh pt0" style="padding-top:0;">
  18. <div class="belssing" id="app" style="padding:none;" v-cloak>
  19. <van-nav-bar class="user_rank_explan_title" title="生日快乐" @click-left="backrank" v-if="toptitleisshow" left-arrow>
  20. <template #left> <img src="./static/images/left.png" alt=""></template>
  21. </van-nav-bar>
  22. <div class="ovh-x" ref="wrapper1">
  23. <div class="user_blessing">
  24. <div class="title rel"><img src="./static/images/birthday-decorate.png" alt="">
  25. <div class="fontbox cfff abs">
  26. <div class="subject f18">HI,{{username}}</div>
  27. <p class="f14">今天是你生日,创业帮衷心的祝福你生日快乐,万事顺意;感谢你在过去的时光中,对创业帮的信任与支持;愿你在未来的岁月中,继续与创业帮共同成长,创造更多辉煌。</p>
  28. <div class="Sign">——创业帮</div>
  29. <div class="Sign">2021.07.30</div><img class="decorate" src="./static/images/birthday-balloon.png" alt="">
  30. </div>
  31. </div>
  32. <div class="user_birthday_qrcode bgcfff"><img :src="rankcode" alt="" style="width:100%;"></div>
  33. <div class="user_birthday_namecode cfff f14">推荐码:{{number}}</div>
  34. <div class="user_birthday_bottombtn df">
  35. <button class="savebtn cfff f16">保存图片</button>
  36. <button class="share bgcfff c333 f16"> 分享喜悦</button>
  37. </div>
  38. </div>
  39. </div>
  40. </div>
  41. <script src="./static/js/klm-vv.min.js"></script>
  42. <script src="./static/js/appfunc.min.js"></script>
  43. <script src="./static/js/klm-axios-config.js"></script>
  44. <script src="./static/js/publicfn.js"></script>
  45. <script>
  46. // 在 #app 标签下渲染一个按钮组件
  47. let app = new Vue({
  48. el: '#app',
  49. data() {
  50. return {
  51. toptitleisshow:false,
  52. username:'',
  53. rankcode:'',
  54. number:'',
  55. };
  56. },
  57. created() {
  58. this.toptitleisshow = toptitleisshow;
  59. this.getuserrankinfo();
  60. },
  61. mounted(){
  62. this.$nextTick(() => {
  63. this.$refs.wrapper1.style.height = `${document.documentElement.clientHeight}px`;
  64. });
  65. },
  66. methods: {
  67. //- 返回我的职级
  68. backrank(){
  69. PublicLib.GoBack({Level:1});
  70. },
  71. //- 获取用户职级信息
  72. async getuserrankinfo(){
  73. PublicLib.ShowLoading({Message:''});
  74. const Id = PublicLib.getCookieInfo('userId');
  75. const res = await getRequest('api/v1/users/mylevelbadge',JSON.stringify({Id}));
  76. PublicLib.HideLoading();
  77. this.username = res.data.RealName;
  78. this.rankcode = res.data.ReferenceQrCode;
  79. this.number = res.data.MakerCode;
  80. },
  81. }
  82. });
  83. </script>
  84. </body>
  85. </html>