user-service-detail.html 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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="bgcfff">
  18. <div id="app">
  19. <van-nav-bar class="user_rank_explan_title user_title_normal" left-arrow title="问题详情" @click-left="backpage" v-if="toptitleisshow">
  20. <template #left> <img src="./static/images/left.png" alt=""></template>
  21. </van-nav-bar>
  22. <div class="pt16 pb16 pl16 pr16 bb8f7f7f7 top_line" v-cloak>
  23. <div class="f18 c333 b">{{articleinfo.Title}}</div>
  24. </div>
  25. <div class="service-detail pl16 pr16">
  26. <div class="f14 c666" v-html="articleinfo.Content"></div>
  27. </div>
  28. </div>
  29. <script src="./static/js/klm-vv.min.js"></script>
  30. <script src="./static/js/klm-axios-config.js"></script>
  31. <script>
  32. // 通过 CDN 引入时不会自动注册 Lazyload 组件
  33. // 可以通过下面的方式手动注册
  34. Vue.use(vant.Lazyload);
  35. // 在 #app 标签下渲染一个按钮组件
  36. let app = new Vue({
  37. el: '#app',
  38. data() {
  39. return {
  40. toptitleisshow:false,
  41. active: 0,
  42. articleinfo:{
  43. Title:'',
  44. Content:''
  45. },
  46. isShow: false,
  47. };
  48. },
  49. created() {
  50. this.toptitleisshow = toptitleisshow;
  51. this.getarticledetail()
  52. },
  53. methods: {
  54. async getarticledetail(){
  55. const Id = PublicLib.getCookieInfo('articleId');
  56. const res = await getRequest('/api/v1/servicecenter/detail?t='+Math.random(6),JSON.stringify({Id}));
  57. if(res.status !== '1') return tips('获取文章详情失败,请重试!')
  58. this.articleinfo = res.data
  59. },
  60. //- 返回上一个页面
  61. backpage(){
  62. PublicLib.GoBack({Level:1});
  63. }
  64. }
  65. });
  66. </script>
  67. </body>
  68. </html>