123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>详情-服务中心-爽客邦</title>
- <meta name="keywords" content="详情-服务中心-爽客邦">
- <meta name="description" content="详情-服务中心-爽客邦">
- <meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,shrink-to-fit=no,user-scalable=no" name="viewport" viewport="cover">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
- <meta content="telephone=no" name="format-detection">
- <meta content="email=no" name="format-detection">
- <meta name="apple-mobile-web-app-title" content="详情-服务中心-爽客邦">
- <meta http-equiv="Cache-Control" content="no-siteapp">
- <link rel="stylesheet" href="./static/css/main.css">
- </head>
- <body class="bgcfff">
- <div id="app">
- <van-nav-bar class="user_rank_explan_title user_title_normal" left-arrow title="问题详情" @click-left="backpage" v-if="toptitleisshow">
- <template #left> <img src="./static/images/left.png" alt=""></template>
- </van-nav-bar>
- <div class="pt16 pb16 pl16 pr16 bb8f7f7f7 top_line" v-cloak>
- <div class="f18 c333 b">{{articleinfo.Title}}</div>
- </div>
- <div class="service-detail pl16 pr16">
- <div class="f14 c666" v-html="articleinfo.Content"></div>
- </div>
- </div>
- <script src="./static/js/klm-vv.min.js"></script>
- <script src="./static/js/klm-axios-config.js"></script>
- <script>
- // 通过 CDN 引入时不会自动注册 Lazyload 组件
- // 可以通过下面的方式手动注册
- Vue.use(vant.Lazyload);
-
- // 在 #app 标签下渲染一个按钮组件
- let app = new Vue({
- el: '#app',
- data() {
- return {
- toptitleisshow:false,
- active: 0,
- articleinfo:{
- Title:'',
- Content:''
- },
- isShow: false,
- };
- },
- created() {
- this.toptitleisshow = toptitleisshow;
- this.getarticledetail()
- },
- methods: {
- async getarticledetail(){
- const Id = PublicLib.getCookieInfo('articleId');
- const res = await getRequest('/api/v1/servicecenter/detail',JSON.stringify({Id}));
- if(res.status !== '1') return tips('获取文章详情失败,请重试!')
- this.articleinfo = res.data
- },
- //- 返回上一个页面
- backpage(){
- PublicLib.GoBack({Level:1});
- }
- }
- });
- </script>
- </body>
- </html>
|