oil-station/gasStation-uni/unpackage/dist/build/mp-weixin/pagesHome/MyCard/MyCard.js
2024-08-16 18:26:19 +08:00

1 line
2.6 KiB
JavaScript

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesHome/MyCard/MyCard"],{"0eee":function(e,t,n){"use strict";(function(e,t){var a=n("47a9");n("3cca");a(n("3240"));var c=a(n("d6af"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(c.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"417a":function(e,t,n){"use strict";(function(e){var a=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var c=a(n("7073")),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,111,t))}))},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("df3c")["default"])},"91c2":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/@dcloudio/uni-ui/lib/uni-icons/uni-icons")]).then(n.bind(null,"069f"))}},c=function(){var e=this.$createElement;this._self._c},o=[]},"9c17":function(e,t,n){"use strict";var a=n("c9f0"),c=n.n(a);c.a},c9f0:function(e,t,n){},ced3:function(e,t,n){"use strict";n.r(t);var a=n("417a"),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},d6af:function(e,t,n){"use strict";n.r(t);var a=n("91c2"),c=n("ced3");for(var o in c)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return c[e]}))}(o);n("9c17");var r=n("828b"),i=Object(r["a"])(c["default"],a["b"],a["c"],!1,null,"698b5e8c",null,!1,a["a"],void 0);t["default"]=i.exports}},[["0eee","common/runtime","common/vendor"]]]);