page.js 4.2 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/page/page"],{1203:function(n,e,t){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t("dc70"),i={data:function(){return{styles:{},pagesData:[]}},onLoad:function(){this.getPageInfo()},methods:{getPageInfo:function(){var e=this,t=this.$Route.query.id;(0,o.apiMiniPage)({id:t}).then((function(t){var o=t.common.title,i=t.common,u=t.content;n.setNavigationBarTitle({title:o}),e.styles=i,e.tempData=u.map((function(n,e){return{index:e,value:n}})),e.splitSetData()}))},splitSetData:function(){var n=this,e=this.tempData.shift();e&&(this.$set(this.pagesData,e.index,Object.freeze(e.value)),setTimeout((function(){n.splitSetData()}),100))}},computed:{pageStyle:function(){var n=this.styles,e=n.background_color,t=n.background_image,o=n.background_type;if(0!=o){var i=1==o?{"background-color":e}:{"background-image":"url(".concat(t,")")};return i}}}};e.default=i}).call(this,t("df3c")["default"])},4288:function(n,e,t){"use strict";t.r(e);var o=t("c5b6"),i=t("83f8");for(var u in i)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(u);t("cace");var r=t("828b"),a=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=a.exports},"83f8":function(n,e,t){"use strict";t.r(e);var o=t("1203"),i=t.n(o);for(var u in o)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(u);e["default"]=i.a},c5b6:function(n,e,t){"use strict";t.d(e,"b",(function(){return i})),t.d(e,"c",(function(){return u})),t.d(e,"a",(function(){return o}));var o={lazyComponent:function(){return t.e("components/lazy-component/lazy-component").then(t.bind(null,"901d"))},wSearch:function(){return t.e("components/widgets/search/search").then(t.bind(null,"3068"))},wNavigation:function(){return t.e("components/widgets/navigation/navigation").then(t.bind(null,"7524"))},wBanner:function(){return t.e("components/widgets/banner/banner").then(t.bind(null,"04bd"))},wTitle:function(){return t.e("components/widgets/title/title").then(t.bind(null,"a1e3"))},wRubik:function(){return t.e("components/widgets/rubik/rubik").then(t.bind(null,"c94ca"))},wNotice:function(){return Promise.all([t.e("common/vendor"),t.e("components/widgets/notice/notice")]).then(t.bind(null,"d39e"))},wBlank:function(){return t.e("components/widgets/blank/blank").then(t.bind(null,"2474"))},wSeparate:function(){return t.e("components/widgets/separate/separate").then(t.bind(null,"ed0c"))},wGoodsgroup:function(){return t.e("components/widgets/goodsgroup/goodsgroup").then(t.bind(null,"0370"))},wTabs:function(){return t.e("components/widgets/tabs/tabs").then(t.bind(null,"e121"))},wPresell:function(){return t.e("components/widgets/presell/presell").then(t.bind(null,"31d4"))},wHotarea:function(){return t.e("components/widgets/hotarea/hotarea").then(t.bind(null,"28d9"))},wCoupon:function(){return t.e("components/widgets/coupon/coupon").then(t.bind(null,"6d05"))},wSeckill:function(){return t.e("components/widgets/seckill/seckill").then(t.bind(null,"b048"))},wSpellgroup:function(){return t.e("components/widgets/spellgroup/spellgroup").then(t.bind(null,"7f56"))},wVideo:function(){return t.e("components/widgets/video/video").then(t.bind(null,"b6de"))},wGraphic:function(){return t.e("components/widgets/graphic/graphic").then(t.bind(null,"f360"))},wEditor:function(){return t.e("components/widgets/editor/editor").then(t.bind(null,"c470"))},wMnplive:function(){return t.e("components/widgets/mnplive/mnplive").then(t.bind(null,"d365"))},tabbar:function(){return t.e("components/tabbar/tabbar").then(t.bind(null,"c5d1"))}},i=function(){var n=this.$createElement,e=(this._self._c,this.__get_style([this.pageStyle]));this.$mp.data=Object.assign({},{$root:{s0:e}})},u=[]},cace:function(n,e,t){"use strict";var o=t("dbc8"),i=t.n(o);i.a},dbc8:function(n,e,t){n.exports={red_theme:"#FF2C3C",orange_theme:"#f7971e",pink_theme:"#fa444d",gold_theme:"#e0a356",blue_theme:"#2f80ed",green_theme:"#2ec840"}},dff4:function(n,e,t){"use strict";(function(n,e){var o=t("47a9");t("b46f");o(t("3240"));var i=o(t("4288"));n.__webpack_require_UNI_MP_PLUGIN__=t,e(i.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])}},[["dff4","common/runtime","common/vendor"]]]);