user-maker-code.html 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <!DOCTYPE html>
  2. <html class="h100p">
  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="bgc-back h100p nopb login">
  18. <div class="rel h100p" id="app" v-cloak>
  19. <van-nav-bar class="user_rank_explan_title user_title_normal" left-arrow title="创客营业守则" v-if="toptitleisshow" @click-left="goback">
  20. <template #left> <img src="./static/images/left.png" alt=""></template>
  21. </van-nav-bar>
  22. <h1 class="tc">{{articleinfo.Title}}</h1>
  23. <div class="pl16 pr16" v-html="articleinfo.Contents"></div>
  24. </div>
  25. <script src="./static/js/klm-vv.min.js"></script>
  26. <script src="./static/js/klm-axios-config.js"></script>
  27. <script>
  28. // 通过 CDN 引入时不会自动注册 Lazyload 组件
  29. // 可以通过下面的方式手动注册
  30. Vue.use(vant.Lazyload);
  31. // 在 #app 标签下渲染一个按钮组件
  32. let app = new Vue({
  33. el: '#app',
  34. data() {
  35. return {
  36. toptitleisshow:false,
  37. articleinfo:{
  38. Title: '',
  39. Contents:''
  40. }
  41. };
  42. },
  43. created() {
  44. this.toptitleisshow = toptitleisshow;
  45. this.getmakercode();
  46. },
  47. methods: {
  48. goback(){
  49. PublicLib.GoBack({Level:1});
  50. },
  51. async getmakercode(){
  52. const res = await getRequest('/api/v1/pageinfo/detail',JSON.stringify({Id:1}));
  53. if(res.status !== '1') return tips('获取创客守则失败,请重试!');
  54. this.articleinfo = res.data;
  55. }
  56. }
  57. });
  58. </script>
  59. </body>
  60. </html>