123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- <!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">
- <style>
- .back{width:.6rem;height:.6rem;left:16px;top:16px;}
- .service-detail img{width:100%;max-width:100%;float:left;}
- .service-detail,
- .service-detail p,
- .service-detail div{overflow:hidden;}
- .iphonetitle{background-color: #fcd708 !important;background-image: none !important;}
- </style>
- </head>
- <body class="bgc-back pb0 ovh-x">
- <div class="iphonetitle"> </div>
- <div class="rel" id="app" v-cloak>
- <van-nav-bar class="camp_title user_title_normal f16" title="盟主中心" @click-left="goback" v-if="toptitleisshow" left-arrow v-cloak>
- <template #left>
- <van-icon name="arrow-left" color="#333" size="20"></van-icon>
- </template>
- </van-nav-bar>
- <div class="back abs" @click="goback"></div>
- <div class="ovh"></div>
- <div class="service-detail" v-html="articleinfo.Content" @click="isOK && clickimg(0)"></div>
- </div>
- <script src="./static/js/klm-vv.min.js"></script>
- <script src="./static/js/appfunc.min.js"></script>
- <script src="./static/js/klm-axios-config.js"></script>
- <script src="./static/js/publicfn.js"></script>
- <script>
- let app = new Vue({
- el: '#app',
- data() {
- return {
- toptitleisshow:false,
- articleinfo:{
- Title:'',
- Content:''
- },
- imgelement:[],
- isOK:true,
- imgsrc:'',
- };
- },
- created(){
- //- this.getarticledetail()
- this.showhost = showHost
- this.getRules()
- },
- methods: {
- goback(){
- PublicLib.GoBack({Level:1});
- },
- clickimg(index = 0){
- if(typeof(index) == 'number'){
- PublicLib.PhotoBrowser(index,this.imgsrc);
- };
- },
- //- 截取参数函数
- //- getUrlParam(name){
- //- var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
- //- var r = window.location.search.substr(1).match(reg); //匹配目标参数
- //- if (r != null) return unescape(r[2]);
- //- return null; //返回参数值
- //- },
- //- async getarticledetail(){
- //- const that = this;
- //- const Id = PublicLib.getCookieInfo('articleId') ? PublicLib.getCookieInfo('articleId') : that.getUrlParam('Id');
- //- const res = await getRequest('api/v1/servicecenter/detail?t='+Math.random(6),JSON.stringify({Id}));
- //- if(res.status !== '1') return tips('获取文章详情失败,请重试!');
- //- that.articleinfo = res.data;
- //- var imgReg = /(\/|http)[^>]+\.(jpg|jpeg|png|gif)/g;
- //- that.imgsrc=res.data.Content.match(imgReg);
- //- setTimeout(()=>{
- //- const imgel = document.querySelectorAll('.service-detail p');
- //- imgel.forEach((item,index)=>{
- //- if(item.children.length === 1 && item.children[0].nodeName === 'IMG'){
- //- that.imgelement.push(item)
- //- };
- //- });
- //- that.imgelement.forEach((item,i)=>{
- //- that.isOK = false;
- //- item.addEventListener('click',function(){
- //- that.clickimg(i);
- //- });
- //- })
- //- },500);
- //- },
- async getRules(){
- const res = await getRequest('api/v1/pageinfo/detail?t='+Math.random(6),JSON.stringify({Id:10}));
- if(res.status !== '1')return tips('规则获取失败!');
- this.articleinfo.Content = res.data.Contents.replace('src="','src="'+showHost)
- var imgReg = /(\/|http)[^>]+\.(jpg|jpeg|png|gif)/g;
- this.imgsrc=this.articleinfo.Content.match(imgReg);
- //- this.articleinfo.Content = showHost + res.data.Contents
- },
- }
- });
- </script>
- </body>
- </html>
|