You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wx2uni/unpackage/dist/build/h5/static/js/pages-messageDetail-index.5...

1 line
9.8 KiB
JavaScript

1 year ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-messageDetail-index"],{"0bb0":function(t,e,i){"use strict";var a=i("8ca1"),o=i.n(a);o.a},"2f8d":function(t,e,i){"use strict";i.r(e);var a=i("984d"),o=i("f98b");for(var n in o)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(n);i("0bb0");var s=i("f0c5"),r=Object(s["a"])(o["default"],a["b"],a["c"],!1,null,"6214f2fe",null,!1,a["a"],void 0);e["default"]=r.exports},"2fbd":function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("ac1f"),i("5319");var a=getApp(),o={data:function(){return{iosDialogTobe:!1,serviceInfo:{tel:"",qrCode:""},pageType:null,currentId:null,currentInfo:{title:""},showText:"",tagStyle:{p:"margin-top: 0; margin-bottom: 0;line-height: 1.8; white-space:pre-wrap;",body:" margin: 0; color: #333; font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; font-variant: tabular-nums; line-height: 1.8; -webkit-font-feature-settings: 'tnum'; font-feature-settings: 'tnum';",h1:" margin-top: 0; margin-bottom: 0.5em;margin-top:0.3em; color: rgba(0, 0, 0, 0.85); font-weight: 500;line-height: 1.1;font-size:24px; ",h2:" margin-top: 0; margin-bottom: 0.5em;margin-top:0.3em; color: rgba(0, 0, 0, 0.85); font-weight: 500;line-height: 1.1;font-size:21px; ",h3:" margin-top: 0; margin-bottom: 0.5em;margin-top:0.3em; color: rgba(0, 0, 0, 0.85); font-weight: 500;line-height: 1.1;font-size:16px; ",h4:" margin-top: 0; margin-bottom: 0.5em;margin-top:0.3em; color: rgba(0, 0, 0, 0.85); font-weight: 500;line-height: 1.1 ",h5:" margin-top: 0; margin-bottom: 0.5em;margin-top:0.3em; color: rgba(0, 0, 0, 0.85); font-weight: 500;line-height: 1.1 ",h6:" margin-top: 0; margin-bottom: 0.5em;margin-top:0.3em; color: rgba(0, 0, 0, 0.85); font-weight: 500;line-height: 1.1 ",strong:"font-weight: bolder;",b:"font-weight: bolder;",dl:"margin-top: 0; margin-bottom: 1em;",ol:"margin-top: 0; margin-bottom: 1em;",ul:"margin-top: 0; margin-bottom: 1em;",li:"line-height: 1.8",hr:"box-sizing: content-box;height:1rpx;overflow: visible;background-color: #ddd;border:0;",table:"border-collapse: collapse;border: 1px solid #d9d9d9;margin: 18px 0 16px 0;line-height: 1.8",td:"border: 1px solid #d9d9d9;vertical-align: top;padding: 4px 8px;line-height: 1.8"},html:""}},onLoad:function(t){console.log(t),t.type&&this.setData({pageType:t.type}),t.id&&(this.setData({currentId:t.id}),this.requestInfo())},onReady:function(){},onShow:function(){var t=this;setTimeout((function(){t.setData({serviceInfo:a.globalData.serviceInfo})}),10)},onHide:function(){},onUnload:function(){},onPullDownRefresh:function(){},onReachBottom:function(){},methods:{onShareAppMessage1:function(){},requestInfo:function(){var t=this;uni.showLoading({title:"正在获取内容"}),uni.request({url:a.globalData.ip+"/bocai/cms/details/"+this.currentId,header:a.globalData.headers,success:function(e){console.log(e),200==e.data.status?(setTimeout((function(){var i=e.data.data.content.replace(/<img/g,'<img style="max-width:100% !important;height:auto !important;margin-top:10px;"');console.log(i),t.setData({currentInfo:e.data.data,showText:i,html:e.data.data.content.replace(/<!doctype html>/g,"")}),uni.hideLoading()}),1e3),uni.request({url:a.globalData.ip+"/bocai/cms/read/"+t.currentId,header:a.globalData.headers,success:function(t){console.log(t),t.data.status}})):(uni.showToast({title:e.data.msg,icon:"none",duration:2e3}),uni.hideLoading())}})},showTobe:function(){this.setData({iosDialogTobe:!0})},closeDialog:function(){this.setData({iosDialogTobe:!1})}}};e.default=o},"8ca1":function(t,e,i){var a=i("c9a8");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=i("4f06").default;o("3cd40933",a,!0,{sourceMap:!1,shadowMode:!1})},"984d":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(