(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ [ "pages/detail/detail" ], { 4230: function(t, e, n) { "use strict"; n.r(e); var i = n("93dc"), 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; }, "60dc": function(t, e, n) { "use strict"; (function(t, e) { var i = n("4ea4"); n("94a9"); i(n("66fd")); var a = i(n("9836")); t.__webpack_require_UNI_MP_PLUGIN__ = n, e(a.default); }).call(this, n("bc2e")["default"], n("543d")["createPage"]); }, "93dc": function(t, e, n) { "use strict"; (function(t) { var i = n("4ea4"); Object.defineProperty(e, "__esModule", { value: !0 }), e.default = void 0; i(n("5c77")); var a = { data: function() { return { title: "详情", id: 0, detailData: {}, isCollected: 0 }; }, onLoad: function(t) { var e; this.id = t.id, this.tab = null !== (e = t.tab) && void 0 !== e ? e : 1, this.x_get_ad("common"), this.cpAd(), this.find(); }, methods: { toImage: function(t) { this.x_redirect("/pages/image/image?url=" + t); }, find: function() { this.x_request("api/fangji.index/detail", { id: this.id, tab: this.tab }, function(e, n) { var i = n.data; e.detailData = i, e.isCollected = i.collected, e.title = n.data.name, t.setNavigationBarTitle({ title: n.data.name }), i.ad && (e.item_ad = i.ad); }); }, wxshare: function() { t.share({ provider: "weixin", scene: "WXSceneSession", type: 1, summary: "", success: function(t) { console.log("success:" + JSON.stringify(t)); }, fail: function(t) { console.log("fail:" + JSON.stringify(t)); } }); }, wxQuanshare: function() { t.share({ provider: "", scene: "WXSceneTimeline", type: 1, summary: this.title, success: function(t) { console.log("success:" + JSON.stringify(t)); }, fail: function(t) { console.log("fail:" + JSON.stringify(t)); } }); }, collect: function() { this.x_request("api/fangji.index/collect", { prescription_id: this.id, tab: this.tab }, function(t, e) { 1 === e.code && (t.isCollected = !t.isCollected); }); } }, onShareAppMessage: function() { return { title: this.title }; }, onShareTimeline: function() { return { title: this.title }; } }; e.default = a; }).call(this, n("543d")["default"]); }, 9836: function(t, e, n) { "use strict"; n.r(e); var i = n("c1cd"), a = n("4230"); for (var c in a) [ "default" ].indexOf(c) < 0 && function(t) { n.d(e, t, function() { return a[t]; }); }(c); n("f460"); var o = n("f0c5"), s = Object(o["a"])(a["default"], i["b"], i["c"], !1, null, null, null, !1, i["a"], void 0); e["default"] = s.exports; }, be3f: function(t, e, n) {}, c1cd: function(t, e, n) { "use strict"; n.d(e, "b", function() { return a; }), n.d(e, "c", function() { return c; }), n.d(e, "a", function() { return i; }); var i = { xad: function() { return n.e("components/xad/xad").then(n.bind(null, "9621")); }, bootNav: function() { return Promise.all([ n.e("common/vendor"), n.e("components/bootNav/bootNav") ]).then(n.bind(null, "dc0f")); } }, a = function() { var t = this.$createElement, e = (this._self._c, this.isProduct ? {} : null); this.$mp.data = Object.assign({}, { $root: { a0: e } }); }, c = []; }, f460: function(t, e, n) { "use strict"; var i = n("be3f"), a = n.n(i); a.a; } }, [ [ "60dc", "common/runtime", "common/vendor" ] ] ]);