1 line
3.3 KiB
JavaScript
1 line
3.3 KiB
JavaScript
(my["webpackJsonp"]=my["webpackJsonp"]||[]).push([["pagesMy/moneyBalance/moneyBalance"],{2677:function(t,e,n){"use strict";(function(t){var e=n("4ea4");n("5e99");e(n("66fd"));var a=e(n("2dda"));my.__webpack_require_UNI_MP_PLUGIN__=n,t(a.default)}).call(this,n("c11b")["createPage"])},"2dda":function(t,e,n){"use strict";n.r(e);var a=n("c554"),o=n("67a8");for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);n("c397");var i=n("f0c5"),s=Object(i["a"])(o["default"],a["b"],a["c"],!1,null,"9b9194fc",null,!1,a["a"],void 0);e["default"]=s.exports},"4ac4":function(t,e,n){"use strict";(function(t){var a=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(n("648b")),r={data:function(){return{list:[],totalDetail:"",show:!1,query:{storeId:"",mtUserId:"",chainStoreId:"",recordName:"储值卡",pageNo:1,pageSize:5},cardBalance:0,title:"",storeList:[],status:"more",scrollTop:0}},components:{},onShow:function(){this.query.storeId=t.getStorageSync("storeId"),this.query.chainStoreId=t.getStorageSync("chainStoreId"),this.list=[],this.getUserBalance(),this.getAllOrderList(),this.getStores()},methods:{scrolltolower:function(){this.orderList.length<this.total?(this.query.page++,this.getAllOrderList()):this.status="no-more"},getStores:function(){var t=this;(0,o.default)({url:"business/storeInformation/store/list",method:"get"}).then((function(e){t.storeList=e.data}))},getAllOrderList:function(){var e=this;(0,o.default)({url:"business/marketingActivity/cardValueRecord/selectAllRecord",method:"get",params:this.query}).then((function(n){200==n.code&&(1!=e.pageNo?e.list=e.list.concat(n.data.records):e.list=n.data.records,e.totalDetail=n.data.total,e.show=!1,t.hideLoading())}))},godetails:function(){t.navigateTo({url:"/pagesMy/details/details"})},getUserBalance:function(){var t=this;(0,o.default)({url:"/business/userManager/user/getUserBalanceApplet",method:"get",params:this.query}).then((function(e){e.data&&(t.cardBalance=e.data.cardBalance,t.myPoints=e.data.points,t.refuelMoney=JSON.parse(e.data.refuelMoney),console.log("333333333333333",t.refuelMoney))}))},goback:function(){t.navigateBack()},getStoreName:function(t,e){var n="";return t.forEach((function(t){t.id==e&&(n=""!=t.description&&null!=t.description?t.name+"("+t.description+")":t.name)})),n}}};e.default=r}).call(this,n("c11b")["default"])},"67a8":function(t,e,n){"use strict";n.r(e);var a=n("4ac4"),o=n.n(a);for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);e["default"]=o.a},"6c88":function(t,e,n){},c397:function(t,e,n){"use strict";var a=n("6c88"),o=n.n(a);o.a},c554:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"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"))},uEmpty:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-empty/u-empty")]).then(n.bind(null,"f151"))}},o=function(){var t=this,e=t.$createElement,n=(t._self._c,t.__map(t.list,(function(e,n){var a=t.__get_orig(e),o=t.getStoreName(t.storeList,e.storeId);return{$orig:a,m0:o}})));t.$mp.data=Object.assign({},{$root:{l0:n}})},r=[]}},[["2677","common/runtime","common/vendor"]]]); |