1 line
3.2 KiB
JavaScript
1 line
3.2 KiB
JavaScript
(my["webpackJsonp"]=my["webpackJsonp"]||[]).push([["pagesMy/CardManagement/CardManagement"],{"0b88":function(t,e,n){"use strict";(function(t){var o=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n("648b")),a={data:function(){return{title:"",tindex:0,tapList:[{text:"子卡管理"},{text:"交易统计"}],list:[],storeId:t.getStorageSync("storeId"),store:{},scrollTop:0,orderList:[],map:{page:1,pageSize:10,storeId:t.getStorageSync("storeId"),cardChildPhones:""},total:0}},onShow:function(){this.getCardValueChildren(),this.getStore()},components:{},methods:{toCheck:function(t){this.map.cardChildPhones=t,this.map.page=1,this.getMyOrder(),this.tindex=1},parseTime:function(t){var e=new Date(t),n=e.getFullYear()+"-",o=(e.getMonth()+1<10?"0"+e.getMonth():e.getMonth())+"-",r=(e.getDate()<10?"0"+e.getDate():e.getDate())+" ",a=(e.getHours()<10?"0"+e.getHours():e.getHours())+":",i=(e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes())+":",u=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return n+o+r+a+i+u},scrolltolower:function(){this.orderList.length<this.total&&(this.map.page++,this.getMyOrder())},getMyOrder:function(){var t=this;(0,r.default)({url:"business/order/cardValueChildOrder/list",method:"get",params:this.map}).then((function(e){200==e.code&&(1==t.map.page?t.orderList=e.data.records:t.orderList=_this.orderList.concat(e.data.records),t.total=e.data.total)}))},getStore:function(){var t=this;(0,r.default)({url:"business/storeInformation/store/"+this.storeId,method:"get"}).then((function(e){t.store=e.data}))},getCardValueChildren:function(){var t=this;(0,r.default)({url:"cardValudChildrens/list/"+this.storeId,method:"get"}).then((function(e){t.list=e.data}))},tapindex:function(t){this.tindex=t,console.log(t),0==t&&this.getCardValueChildren(),1==t&&this.getMyOrder()},goDetail:function(){t.navigateTo({url:"/pagesMy/CardManagement/Detail"})},goback:function(){t.navigateBack()}}};e.default=a}).call(this,n("c11b")["default"])},"10a3":function(t,e,n){"use strict";n.r(e);var o=n("0b88"),r=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=r.a},"120a":function(t,e,n){"use strict";(function(t){var e=n("4ea4");n("5e99");e(n("66fd"));var o=e(n("c342"));my.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n("c11b")["createPage"])},"22e5":function(t,e,n){"use strict";var o=n("addd"),r=n.n(o);r.a},"43fc":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}));var o={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"))}},r=function(){var t=this.$createElement;this._self._c},a=[]},addd:function(t,e,n){},c342:function(t,e,n){"use strict";n.r(e);var o=n("43fc"),r=n("10a3");for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);n("22e5");var i=n("f0c5"),u=Object(i["a"])(r["default"],o["b"],o["c"],!1,null,"5bd9dbc6",null,!1,o["a"],void 0);e["default"]=u.exports}},[["120a","common/runtime","common/vendor"]]]); |