user-leaderLevel-rules.html 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. <style>
  17. .back{width:.6rem;height:.6rem;left:16px;top:16px;}
  18. .service-detail img{width:100%;max-width:100%;float:left;}
  19. .service-detail,
  20. .service-detail p,
  21. .service-detail div{overflow:hidden;}
  22. .iphonetitle{background-color: #fcd708 !important;background-image: none !important;}
  23. </style>
  24. </head>
  25. <body class="bgc-back pb0 ovh-x">
  26. <div class="iphonetitle"> </div>
  27. <div class="rel" id="app" v-cloak>
  28. <van-nav-bar class="camp_title user_title_normal f16" title="盟主中心" @click-left="goback" v-if="toptitleisshow" left-arrow v-cloak>
  29. <template #left>
  30. <van-icon name="arrow-left" color="#333" size="20"></van-icon>
  31. </template>
  32. </van-nav-bar>
  33. <div class="back abs" @click="goback"></div>
  34. <div class="ovh"></div>
  35. <div class="service-detail" v-html="articleinfo.Content" @click="isOK &amp;&amp; clickimg(0)"></div>
  36. </div>
  37. <script src="./static/js/klm-vv.min.js"></script>
  38. <script src="./static/js/appfunc.min.js"></script>
  39. <script src="./static/js/klm-axios-config.js"></script>
  40. <script src="./static/js/publicfn.js"></script>
  41. <script>
  42. let app = new Vue({
  43. el: '#app',
  44. data() {
  45. return {
  46. toptitleisshow:false,
  47. articleinfo:{
  48. Title:'',
  49. Content:''
  50. },
  51. imgelement:[],
  52. isOK:true,
  53. imgsrc:'',
  54. };
  55. },
  56. created(){
  57. //- this.getarticledetail()
  58. this.showhost = showHost
  59. this.getRules()
  60. },
  61. methods: {
  62. goback(){
  63. PublicLib.GoBack({Level:1});
  64. },
  65. clickimg(index = 0){
  66. if(typeof(index) == 'number'){
  67. PublicLib.PhotoBrowser(index,this.imgsrc);
  68. };
  69. },
  70. //- 截取参数函数
  71. //- getUrlParam(name){
  72. //- var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
  73. //- var r = window.location.search.substr(1).match(reg); //匹配目标参数
  74. //- if (r != null) return unescape(r[2]);
  75. //- return null; //返回参数值
  76. //- },
  77. //- async getarticledetail(){
  78. //- const that = this;
  79. //- const Id = PublicLib.getCookieInfo('articleId') ? PublicLib.getCookieInfo('articleId') : that.getUrlParam('Id');
  80. //- const res = await getRequest('api/v1/servicecenter/detail?t='+Math.random(6),JSON.stringify({Id}));
  81. //- if(res.status !== '1') return tips('获取文章详情失败,请重试!');
  82. //- that.articleinfo = res.data;
  83. //- var imgReg = /(\/|http)[^>]+\.(jpg|jpeg|png|gif)/g;
  84. //- that.imgsrc=res.data.Content.match(imgReg);
  85. //- setTimeout(()=>{
  86. //- const imgel = document.querySelectorAll('.service-detail p');
  87. //- imgel.forEach((item,index)=>{
  88. //- if(item.children.length === 1 && item.children[0].nodeName === 'IMG'){
  89. //- that.imgelement.push(item)
  90. //- };
  91. //- });
  92. //- that.imgelement.forEach((item,i)=>{
  93. //- that.isOK = false;
  94. //- item.addEventListener('click',function(){
  95. //- that.clickimg(i);
  96. //- });
  97. //- })
  98. //- },500);
  99. //- },
  100. async getRules(){
  101. const res = await getRequest('api/v1/pageinfo/detail?t='+Math.random(6),JSON.stringify({Id:10}));
  102. if(res.status !== '1')return tips('规则获取失败!');
  103. this.articleinfo.Content = res.data.Contents.replace('src="','src="'+showHost)
  104. var imgReg = /(\/|http)[^>]+\.(jpg|jpeg|png|gif)/g;
  105. this.imgsrc=this.articleinfo.Content.match(imgReg);
  106. //- this.articleinfo.Content = showHost + res.data.Contents
  107. },
  108. }
  109. });
  110. </script>
  111. </body>
  112. </html>