bonus.js 2.9 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["plugins/stock/bonus/bonus"],{"290a":function(t,e,n){"use strict";n.r(e);var o=n("fe9d"),i=n("862f");for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("9c83");var c,r=n("f0c5"),u=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,"3ccab9d8",null,!1,o["a"],c);e["default"]=u.exports},"862f":function(t,e,n){"use strict";n.r(e);var o=n("e77f"),i=n.n(o);for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a},"9c83":function(t,e,n){"use strict";var o=n("d47d"),i=n.n(o);i.a},d47d:function(t,e,n){},e77f:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("2f62");function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var r={data:function(){return{show:!1,cash_detail:"",setting:{},detail:{}}},computed:a({},(0,o.mapState)({stock:function(t){return t.mallConfig.__wxapp_img.stock}})),methods:{toCash:function(){t.navigateTo({url:"/plugins/stock/cash/cash"})},toDetail:function(){var e=this.cash_detail?this.cash_detail:"";t.navigateTo({url:"/plugins/stock/cash-detail/cash-detail?name="+e})},getSetting:function(){var e=this;e.$showLoading({type:"global",text:"加载中..."}),e.$request({url:e.$api.stock.setting}).then((function(n){e.getInfo(),0==n.code?e.setting=n.data:t.showToast({title:n.msg,icon:"none",duration:1e3})})).catch((function(n){e.$hideLoading(),t.hideLoading()}))},getInfo:function(){var e=this;e.$request({url:e.$api.stock.info}).then((function(n){e.$hideLoading(),0==n.code?e.detail=n.data:t.showToast({title:n.msg,icon:"none",duration:1e3})})).catch((function(t){e.$hideLoading()}))}},onLoad:function(e){this.getSetting(),e.name&&t.setNavigationBarTitle({title:e.name}),e.cash_detail&&(this.cash_detail=e.cash_detail)}};e.default=r}).call(this,n("543d")["default"])},ed4e:function(t,e,n){"use strict";(function(t){n("8748");o(n("66fd"));var e=o(n("290a"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},fe9d:function(t,e,n){"use strict";var o,i=function(){var t=this,e=t.$createElement;t._self._c;t._isMounted||(t.e0=function(e){t.show=!t.show})},a=[];n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}))}},[["ed4e","common/runtime","common/vendor"]]]);