detail.js 1.9 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/info/detail"],{"5c21":function(t,e,n){},6351:function(t,e,n){"use strict";var i=n("5c21"),a=n.n(i);a.a},"64ab":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("82ba"),a={data:function(){return{id:"",item:""}},onLoad:function(t){this.id=t.id,this.loadData()},methods:{loadData:function(){var t=this;(0,i.details)({},this.id).then((function(e){var n=e.data;console.log(n),n.content=n.content.replace(/<img/g,'<img class="rich-img"').replace(/<p>\s*<img/g,'<p class="pHeight"><img'),n.content=t.getVideo(n.content),t.item=n}))},getVideo:function(t){var e=[],n=/src=[\'\"]?([^\'\"]*)[\'\"]?/i,i=t.match(/<video.*?(?:>|\/>)/gi)||[],a=t.split("</video>");i.forEach((function(t,i){var a=t.match(n);e.push(a[1])}));var c=[];return a.forEach((function(t,n){""!=t&&void 0!=t&&c.push({type:"rich-text",value:t+"</video>"});var i=a.length;n<i&&void 0!=e[n]&&c.push({type:"video",value:e[n]})})),c}}};e.default=a},"91f8":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this.$createElement;this._self._c},a=[]},9597:function(t,e,n){"use strict";n.r(e);var i=n("91f8"),a=n("e12c");for(var c in a)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(c);n("6351");var o=n("f0c5"),u=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=u.exports},e12c:function(t,e,n){"use strict";n.r(e);var i=n("64ab"),a=n.n(i);for(var c in i)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(c);e["default"]=a.a},f4fc:function(t,e,n){"use strict";(function(t,e){var i=n("4ea4");n("d1cd");i(n("66fd"));var a=i(n("9597"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(a.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])}},[["f4fc","common/runtime","common/vendor"]]]);