1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-news-view"],{2123:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.placeholder-box[data-v-58a7c612]{height:35px}.navbar-box[data-v-58a7c612]{position:fixed;z-index:100000;topL:0;left:0;width:100%;height:35px}.navbar-box .status-bar[data-v-58a7c612]{width:100%;float:left}.navbar-box .search-box[data-v-58a7c612]{width:100%;height:45px;float:left}.navbar-box .search-box .search-input[data-v-58a7c612]{position:relative;color:#fff;height:35px;line-height:35px;border-radius:%?50?%;margin:%?10?% %?20?%;background-color:#fff;color:#666}.navbar-box .search-box .search-input[data-v-58a7c612]::before{position:absolute;content:"\\e629";left:%?30?%;top:%?0?%;font-size:%?38?%;color:#aaa}.navbar-box .search-box .search-input uni-text[data-v-58a7c612]{padding-left:%?90?%;font-size:%?30?%}.navbar-box .navbar[data-v-58a7c612]{float:left;width:100%;position:relative}.navbar-box .navbar .title[data-v-58a7c612]{width:100%;text-align:center;font-size:%?33?%;font-size:%?29?%}.navbar-box .navbar .prevPage[data-v-58a7c612]{position:absolute;left:%?20?%;top:2%;width:%?60?%;height:%?60?%}.navbar-box .navbar .prevPage uni-text[data-v-58a7c612]{color:#666;font-size:%?65?%;font-weight:700}.navbar-box .navbar .backPage[data-v-58a7c612]{background-color:rgba(0,0,0,.5);border-radius:50%}.navbar-box .navbar .backPage uni-text[data-v-58a7c612]{color:#fff;position:absolute;left:30%;top:50%;-webkit-transform:translate(-30%,-50%);transform:translate(-30%,-50%)}.navbar-box .navbar .statusLine[data-v-58a7c612]{top:%?20?%}',""]),t.exports=e},2445:function(t,e,a){"use strict";a.r(e);var i=a("593f"),n=a("c4ce");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("8f7f");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"58a7c612",null,!1,i["a"],void 0);e["default"]=s.exports},"37c8":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.main[data-v-2ce35992]{background-color:#fff;width:95%;margin:0 auto;margin-top:%?20?%}.main .title[data-v-2ce35992]{width:100%;height:%?80?%;line-height:%?50?%;padding:0 %?20?%;padding-top:%?20?%;font-size:%?32?%}.main .info[data-v-2ce35992]{width:100%;border-bottom:%?2?% solid #eee;padding-bottom:5px;font-size:%?26?%;float:left}.main .info uni-text[data-v-2ce35992]{float:left}.main .info uni-text[data-v-2ce35992]:nth-child(1){color:#ff3700;border:1px solid #ff3700;font-size:%?20?%;padding:%?2?% %?2?%;position:relative;top:%?8?%;margin-left:%?20?%;padding:0 %?5?%}.main .info uni-text[data-v-2ce35992]:nth-child(2){margin-left:%?20?%}.main .info uni-text[data-v-2ce35992]:nth-child(3){margin-left:%?20?%}.main .content[data-v-2ce35992]{padding:%?20?%;float:left;font-size:%?28?%}',""]),t.exports=e},"590b":function(t,e,a){var i=a("2123");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("5ff2aa9e",i,!0,{sourceMap:!1,shadowMode:!1})},"593f":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[t.isNavbar||t.isPrev?a("v-uni-view",{staticClass:"navbar-box",style:{height:t.menuClientRect.height+t.statusBar+t.menuClientRect.searchHeight+"px",background:t.bg}},[a("v-uni-view",{staticClass:"status-bar",style:{height:t.statusBar+"px"}}),t.isNavTitle?a("v-uni-view",{staticClass:"navbar",style:{color:t.fontColor,height:t.menuClientRect.height+"px","line-height":t.menuClientRect.height+"px"}},[t.isPrev?a("v-uni-view",{staticClass:"iconfont prevPage",class:{backPage:t.iSimmersive&&!t.isTitle,statusLine:t.iSimmersive&&t.scroll<10},style:{color:t.fontColor,"line-height":t.menuClientRect.height+"px"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.prev.apply(void 0,arguments)}}},[a("v-uni-text",{style:{color:t.fontColor}},[t._v("")])],1):t._e(),t.isTitle?a("v-uni-view",{staticClass:"title",style:{color:t.fontColor,height:t.menuClientRect.height+"px","line-height":t.menuClientRect.height+"px"}},[t._v(t._s(t.title))]):t._e()],1):t._e(),t.isSearch&&t.isTitle?a("v-uni-view",{staticClass:"search-box",style:{background:t.bg}},[a("v-uni-view",{staticClass:"iconfont search-input",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onJumpSearch.apply(void 0,arguments)}}},[a("v-uni-text",[t._v("请输入关键字")])],1)],1):t._e()],1):t._e(),t.placeholder?a("v-uni-view",{staticClass:"placeholder-box",staticStyle:{width:"100%"},style:{height:t.menuClientRect.height-1+t.menuClientRect.searchHeight+t.statusBar+"px"}}):t._e()],1)},n=[]},"5d73":function(t,e,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("2445")),r={components:{navbar:n.default},data:function(){return{scrollNum:0,isEmpty:!1,data:{}}},onLoad:function(t){var e=this;this.$http.getNewsDetail({id:t.id}).then((function(t){e.isEmpty=!1,t.status?e.data=t.data:e.isEmpty=!0})).catch((function(t){e.isEmpty=!0}))},onPageScroll:function(t){this.scrollNum=t.scrollTop},methods:{}};e.default=r},7867:function(t,e,a){var i=a("37c8");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("2b0cddb1",i,!0,{sourceMap:!1,shadowMode:!1})},"8f7f":function(t,e,a){"use strict";var i=a("590b"),n=a.n(i);n.a},"9d31":function(t,e,a){"use strict";a.r(e);var i=a("5d73"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},a53a:function(t,e,a){"use strict";a.r(e);var i=a("c9de"),n=a("9d31");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("af5e");var o=a("f0c5"),s=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"2ce35992",null,!1,i["a"],void 0);e["default"]=s.exports},ad2f:function(t,e,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("a9e3"),a("ac1f"),a("00b4"),a("99af"),a("fb6a"),a("14d9"),a("e25e");i(a("b328"));var n={props:{value:{type:[String,Number],default:0},scroll:{type:[String,Number],default:0},placeholder:{type:Boolean,default:!1},isShow:{type:Boolean,default:!0},isPrev:{type:Boolean,default:!0},isSearch:{type:Boolean,default:!1},isNavTitle:{type:Boolean,default:!0},title:{type:String,default:""},titleColor:{type:String,default:"#000000"},background:{type:String,default:"transparent"},iSimmersive:{type:Boolean,default:!1},onBack:{type:Function,default:null}},data:function(){return{statusBar:10,menuClientRect:{height:35,searchHeight:0},bg:"",fontColor:"",isTitle:!0,isNavbar:!0}},mounted:function(){var t=uni.getSystemInfoSync();this.isNavbar=this.isShow,this.bg=this.background,this.fontColor=this.titleColor,this.iSimmersive?(this.isTitle=!1,this.isNavbar=!1,this.setNavigationBarColor("#ffffff")):(this.bg="transparent"!=this.background?this.background:"#ffffff",this.setNavigationBarColor(this.titleColor)),this.isNavTitle||(this.menuClientRect.height=0),this.statusBar=0,this.isSearch&&(this.menuClientRect.searchHeight=45);var e=this.menuClientRect.height+this.statusBar;this.$emit("input",t.screenHeight-e-t.windowBottom)},methods:{onJumpSearch:function(){this.$utils.navigateTo("search/index")},prev:function(){if(this.onBack)this.onBack();else{var t=getCurrentPages();t&&t.length>1?uni.navigateBack():t.length<=1&&this.$utils.switchTab("index/index")}},setNavigationBarColor:function(t){this.fontColor=t},color2Rgb:function(t){var e=t.toLowerCase();if(/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(e)){if(4===e.length){for(var a="#",i=1;i<4;i+=1)a+=e.slice(i,i+1).concat(e.slice(i,i+1));e=a}for(var n=[],r=1;r<7;r+=2)n.push(parseInt("0x"+e.slice(r,r+2)));return n.join(",")}return t}},watch:{scroll:{handler:function(t,e){if(!this.iSimmersive)return!1;var a="#ffffff",i="#000000";"transparent"!=this.background&&(a=this.background,i="#ffffff");var n=this.color2Rgb(a);t>=10&&t<=50?(this.bg="rgba("+n+",.3)",this.setNavigationBarColor(i),this.isTitle=!0,this.isNavbar=!0):t>=51&&t<=99?(this.bg="rgba("+n+",.7)",this.setNavigationBarColor(i),this.isTitle=!0,this.isNavbar=!0):t>=100?(this.bg="rgba("+n+",1)",this.setNavigationBarColor(i),this.isTitle=!0,this.isNavbar=!0):t<10&&(this.bg="rgba("+n+",0)",this.setNavigationBarColor("#ffffff"),this.isTitle=!1,this.isNavbar=!1)},deep:!0}}};e.default=n},af5e:function(t,e,a){"use strict";var i=a("7867"),n=a.n(i);n.a},b328:function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("e9c4");var i={set:function(t,e){sessionStorage.setItem(t,vlaue)},setJson:function(t,e){sessionStorage.setItem(t,JSON.stringify(e))},get:function(t){return sessionStorage.getItem(t)},getJson:function(t){var e=sessionStorage.getItem(t);return e?JSON.parse(e):null},remove:function(t){sessionStorage.removeItem(t)},clear:function(){sessionStorage.clear()}};e.default=i},c4ce:function(t,e,a){"use strict";a.r(e);var i=a("ad2f"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},c9de:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={navbar:a("2445").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[a("navbar",{attrs:{scroll:t.scrollNum,iSimmersive:!1,placeholder:!0,title:"资讯详情"}}),t.isEmpty?t._e():a("v-uni-view",{staticClass:"main clear"},[a("v-uni-view",{staticClass:"title"},[t._v(t._s(t.data.title))]),a("v-uni-view",{staticClass:"info"},[a("v-uni-text",[t._v(t._s(t.data.cat_name))]),a("v-uni-text",{staticClass:"iconfont"},[t._v(" "+t._s(t.data.create_time))]),a("v-uni-text",{staticClass:"iconfont"},[t._v(" "+t._s(t.data.hits))])],1),a("v-uni-view",{staticClass:"content clear",domProps:{innerHTML:t._s(t.data.content)}},[t._v(t._s(t.data.content))])],1)],1)},r=[]}}]);
|