| 1 |
- require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["bundle/pages/integral_goods_details/integral_goods_details"],{"5fa1":function(e,n,t){e.exports={red_theme:"#FF2C3C",orange_theme:"#f7971e",pink_theme:"#fa444d",gold_theme:"#e0a356",blue_theme:"#2f80ed",green_theme:"#2ec840"}},"71f3":function(e,n,t){"use strict";var o=t("5fa1"),u=t.n(o);u.a},"811f":function(e,n,t){"use strict";t.d(n,"b",(function(){return u})),t.d(n,"c",(function(){return r})),t.d(n,"a",(function(){return o}));var o={navbar:function(){return Promise.all([t.e("common/vendor"),t.e("components/navbar/navbar")]).then(t.bind(null,"909a"))},uImage:function(){return t.e("components/uview-ui/components/u-image/u-image").then(t.bind(null,"566d"))},price:function(){return t.e("components/price/price").then(t.bind(null,"1266"))},uIcon:function(){return t.e("components/uview-ui/components/u-icon/u-icon").then(t.bind(null,"1340"))},uParse:function(){return Promise.all([t.e("common/vendor"),t.e("components/uview-ui/components/u-parse/u-parse")]).then(t.bind(null,"ee86"))},uPopup:function(){return t.e("components/uview-ui/components/u-popup/u-popup").then(t.bind(null,"002f"))},uNumberBox:function(){return t.e("components/uview-ui/components/u-number-box/u-number-box").then(t.bind(null,"0662"))},pageStatus:function(){return t.e("components/page-status/page-status").then(t.bind(null,"7cfb"))},uEmpty:function(){return t.e("components/uview-ui/components/u-empty/u-empty").then(t.bind(null,"7bc9"))},uBackTop:function(){return t.e("components/uview-ui/components/u-back-top/u-back-top").then(t.bind(null,"c97f"))}},u=function(){var e=this,n=e.$createElement,t=(e._self._c,{background:"rgba(256,256,256,"+e.percent+")"});e._isMounted||(e.e0=function(n){e.showSpec=!0}),e.$mp.data=Object.assign({},{$root:{a0:t}})},r=[]},"81fc":function(e,n,t){"use strict";t.r(n);var o=t("811f"),u=t("b8aa");for(var r in u)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return u[e]}))}(r);t("71f3");var i=t("828b"),a=Object(i["a"])(u["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=a.exports},b8aa:function(e,n,t){"use strict";t.r(n);var o=t("dc35"),u=t.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(r);n["default"]=u.a},d8c0:function(e,n,t){"use strict";(function(e,n){var o=t("47a9");t("b46f");o(t("3240"));var u=o(t("81fc"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(u.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])},dc35:function(e,n,t){"use strict";(function(e){var o=t("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u=o(t("7eb4")),r=o(t("ee10")),i=t("77e2"),a=t("704d"),c={data:function(){return{pageStatus:a.PageStatusEnum["LOADING"],pageErrorMsg:"",goodsInfo:{},count:1,showSpec:!1,scrollTop:0,percent:0}},methods:{previewImage:function(n){e.previewImage({current:n,urls:[n]})},toSettlement:function(){this.$Router.push({path:"/bundle/pages/integral_settlement/integral_settlement",query:{id:this.goods_id,num:this.count}})},initGoodsDetail:function(){var e=this;return new Promise((function(n,t){(0,i.apiIntegralGoodsDetail)({id:e.goods_id}).then((function(n){return e.goodsInfo=n,n})).then((function(e){n(e)})).catch((function(e){t(e)}))}))}},onPageScroll:function(n){var t=e.upx2px(100),o=n.scrollTop;this.percent=o/t>1?1:o/t,this.scrollTop=o},onShow:function(){var e=this;return(0,r.default)(u.default.mark((function n(){var t;return u.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t=e.$Route.query,e.goods_id=t.id,n.prev=2,e.goods_id){n.next=5;break}throw new Error("该商品不存在");case 5:return n.next=7,e.initGoodsDetail();case 7:e.pageStatus=a.PageStatusEnum["NORMAL"],n.next=15;break;case 10:n.prev=10,n.t0=n["catch"](2),console.log(n.t0),e.pageErrorMsg=n.t0.message,e.pageStatus=a.PageStatusEnum["ERROR"];case 15:case"end":return n.stop()}}),n,null,[[2,10]])})))()},onShareAppMessage:function(){var e=this.goodsInfo;return{title:e.name,imageUrl:e.image,path:"/bundle/pages/integral_goods_details/integral_goods_details?id="+this.goods_id+"&invite_code="+this.$store.getters.inviteCode}}};n.default=c}).call(this,t("df3c")["default"])}},[["d8c0","common/runtime","common/vendor","bundle/common/vendor"]]]);
|