1 line
2.6 KiB
JavaScript
1 line
2.6 KiB
JavaScript
(my["webpackJsonp"]=my["webpackJsonp"]||[]).push([["pagesHome/MyCard/MyCard"],{5594:function(e,t,n){"use strict";(function(e){var t=n("4ea4");n("5e99");t(n("66fd"));var a=t(n("b5a7"));my.__webpack_require_UNI_MP_PLUGIN__=n,e(a.default)}).call(this,n("c11b")["createPage"])},ac95:function(e,t,n){},b5a7:function(e,t,n){"use strict";n.r(t);var a=n("e0af"),c=n("b777");for(var o in c)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return c[e]}))}(o);n("b6a7");var r=n("f0c5"),i=Object(r["a"])(c["default"],a["b"],a["c"],!1,null,"6b59a756",null,!1,a["a"],void 0);t["default"]=i.exports},b6a7:function(e,t,n){"use strict";var a=n("ac95"),c=n.n(a);c.a},b777:function(e,t,n){"use strict";n.r(t);var a=n("d86a"),c=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(o);t["default"]=c.a},d86a:function(e,t,n){"use strict";(function(e){var a=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var c=a(n("648b")),o={data:function(){return{query:{chainStoreId:"",couponType:"",useStatus:0,pageNo:1,pageSize:10},cardBalance:0,cardsList:[],cardsIndex:0,title:""}},components:{},onShow:function(){this.query.chainStoreId=e.getStorageSync("chainStoreId"),this.getUserBalance()},methods:{gocard:function(t){e.navigateTo({url:"/pagesHome/oilRecharge/oilRecharge?id="+t})},s_:function(){0!=this.cardsIndex?this.cardsIndex--:e.showToast({title:"没有上一张了",icon:"error"})},x_:function(){this.cardsIndex<this.toil?this.cardsIndex++:e.showToast({title:"没有下一张了哦",icon:"error"})},getCardFuleRecords:function(){var e=this;(0,c.default)({url:"business/marketingActivity/cardFuelRecord/queryByPageApplet",method:"get"}).then((function(t){console.log(t),200==t.code&&(e.cardsList=t.data.records,console.log(e.toil))}))},getUserBalance:function(){var e=this;this.cardsList=[],(0,c.default)({url:"/business/userManager/user/getUserBalanceApplet",method:"get",params:this.query}).then((function(t){console.log(t),200==t.code&&(e.cardBalance=t.data.cardBalance,e.cardsList=JSON.parse(t.data.refuelMoney),0!=e.cardsList.length?e.toil=e.cardsList.length-1:e.toil=e.cardsList.length)}))},goback:function(){e.navigateBack()}}};t.default=o}).call(this,n("c11b")["default"])},e0af:function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a}));var a={uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/npm-scope-dcloudio/uni-ui/lib/uni-icons/uni-icons")]).then(n.bind(null,"fefe"))}},c=function(){var e=this.$createElement;this._self._c},o=[]}},[["5594","common/runtime","common/vendor"]]]); |