doum
8 天以前 b7d451c91ec40bee70f23b1e2cf6a8797643faef
small-program/unpackage/dist/dev/mp-weixin/shop/pages/wallet/wallet.js
@@ -1,2 +1,2 @@
require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["shop/pages/wallet/wallet"],{354:function(t,e,n){"use strict";(function(t,e){var a=n(4);n(30);a(n(25));var i=a(n(355));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n(1)["default"],n(2)["createPage"])},355:function(t,e,n){"use strict";n.r(e);var a=n(356),i=n(358);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n(360),n(588);var s,r=n(41),u=Object(r["default"])(i["default"],a["render"],a["staticRenderFns"],!1,null,"44c5d18e",null,!1,a["components"],s);u.options.__file="shop/pages/wallet/wallet.vue",e["default"]=u.exports},356:function(t,e,n){"use strict";n.r(e);var a=n(357);n.d(e,"render",(function(){return a["render"]})),n.d(e,"staticRenderFns",(function(){return a["staticRenderFns"]})),n.d(e,"recyclableRender",(function(){return a["recyclableRender"]})),n.d(e,"components",(function(){return a["components"]}))},357:function(t,e,n){"use strict";var a;n.r(e),n.d(e,"render",(function(){return i})),n.d(e,"staticRenderFns",(function(){return s})),n.d(e,"recyclableRender",(function(){return o})),n.d(e,"components",(function(){return a}));try{a={uIcon:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(n.bind(null,396))},uPopup:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-popup/u-popup")]).then(n.bind(null,428))},customTabbar:function(){return n.e("components/custom-tabbar/custom-tabbar").then(n.bind(null,405))}}}catch(r){if(-1===r.message.indexOf("Cannot find module")||-1===r.message.indexOf(".vue"))throw r;console.error(r.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.showMoney?(t.countData.balance/100||0).toFixed(2):null),a=t.showMoney?(t.countData.pendingAmount/100||0).toFixed(2):null,i=t.showMoney?(t.countData.totalWithdrawn/100||0).toFixed(2):null,o=t.showMoney?(t.countData.withdrawingAmount/100||0).toFixed(2):null,s=(t.countDataList.totalIncome||0).toFixed(2),r=(t.countDataList.totalExpense||0).toFixed(2),u=t.__map(t.dataList,(function(e,n){var a=t.__get_orig(e),i=(e.num||0).toFixed(2);return{$orig:a,g6:i}}));t._isMounted||(t.e0=function(e){t.showMoney=!t.showMoney},t.e1=function(e){t.showMoney=!t.showMoney},t.e2=function(e){t.show1=!0},t.e3=function(e){t.show=!1}),t.$mp.data=Object.assign({},{$root:{g0:n,g1:a,g2:i,g3:o,g4:s,g5:r,l0:u}})},o=!1,s=[];i._withStripped=!0},358:function(t,e,n){"use strict";n.r(e);var a=n(359),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},359:function(t,e,n){"use strict";(function(t){var a=n(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n(18)),o=a(n(11)),s=n(37);function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){(0,o.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var c=function(){n.e("components/custom-tabbar/custom-tabbar").then(function(){return resolve(n(405))}.bind(null,n)).catch(n.oe)},h={components:{CustomTabbar:c},computed:u({},(0,s.mapState)(["statusbarHeight"])),data:function(){return{currentPage:1,total:0,active:0,wordsWidth:250,tempActive:0,type:0,words:"全部",tempType:0,dateType:0,dataList:[],startDate:null,endDate:null,defaultStartDate:null,defaultEndDate:null,showMoney:!1,countData:{},countDataList:{},hasNext:!0,show:!1,show1:!1,year:null,tempYear:null,month:null,tempMonth:null,tempStartDate:null,tempEndDate:null}},onLoad:function(){this.active=0,this.wordsWidth=250,this.words="全部",this.tempActive=0,this.dateType=0,this.countData={},this.tempStartDate=null,this.tempEndDate=null,this.countDataList={},this.show=!1,this.initDateStr(),t.$on("accountListReload",this.getFirstPageData())},methods:{bindChange1:function(t){this.tempStartDate=t.detail.value||null},bindChange2:function(t){this.tempEndDate=t.detail.value||null},formatter:function(t,e){return"year"===t?"".concat(e,"年"):"month"===t?"".concat(e,"月"):e},getShopPage:function(){var t=this;!this.loading&&this.hasNext&&(this.loading=!0,1==this.currentPage&&(this.hasNext=!0,this.dataList=[]),this.$u.api.shopPage({capacity:10,model:{startTime:this.startDate||this.defaultStartDate,endTime:this.endDate||this.defaultEndDate,type:1===this.active?0:2===this.active?1:"",objType:1===this.type?16:2===this.type?17:3===this.type?25:4===this.type?1:""},page:this.currentPage}).then((function(e){var n;200==e.code&&((n=t.dataList).push.apply(n,(0,i.default)(e.data.records)),t.total=e.data.total,t.currentPage=t.currentPage+1,t.dataList.length>=e.data.total?t.hasNext=!1:t.hasNext=!0)})))},getShopSummary:function(){var t=this;this.$u.api.shopSummary({startTime:this.startDate||this.defaultStartDate,endTime:this.endDate||this.defaultEndDate,type:1===this.active?0:2===this.active?1:"",objType:1===this.type?16:2===this.type?17:3===this.type?25:4===this.type?1:""}).then((function(e){200==e.code&&(t.countDataList=e.data)}))},getShopStatistics:function(){var t=this;this.$u.api.shopStatistics({}).then((function(e){200==e.code&&(t.countData=e.data)}))},comfirmDate:function(e){if(e){if(new Date(this.tempEndDate+" 00:00:00").getTime()<new Date(this.tempStartDate+" 00:00:00").getTime())return t.showToast({title:"日期范围不正确",icon:"error"});this.startDate=this.tempStartDate,this.endDate=this.tempEndDate}else this.startDate=null,this.endDate=null,this.tempStartDate=this.defaultStartDate,this.tempEndDate=this.defaultEndDate;this.getFirstPageData(),this.show1=!1},openShow:function(){this.tempActive=this.active,this.tempType=this.type,this.show=!0},comfirm:function(t){if(t){if(this.active=this.tempActive,this.type=this.tempType,this.show=!1,this.wordsWidth=250,0===this.active&&0===this.type)this.words="全部";else{var e=1===this.active?"收入 ":2===this.active?"支出 ":"",n=1===this.type?"订单结算":2===this.type?"提现":3===this.type?"订单结算退回":4===this.type?"提现退回":"";""!=e&&""!=n&&(this.wordsWidth=350),this.words=e+n}this.getFirstPageData()}else this.tempActive=0,this.tempType=0},formattedDateTime:function(t){var e=t.getFullYear(),n=(t.getMonth()+1).toString().padStart(2,"0"),a=t.getDate().toString().padStart(2,"0"),i="".concat(e,"-").concat(n,"-").concat(a);return console.log(i),i},initDateStr:function(){var t=new Date,e=new Date(t.getFullYear(),t.getMonth(),1),n=this.formattedDateTime(e),a=this.formattedDateTime(t);this.defaultStartDate=n,this.defaultEndDate=a,this.startDate=null,this.endDate=null,this.getShopStatistics(),this.getShopSummary(),this.getShopPage()},checkActive:function(t){this.tempActive=t},checkType:function(t){this.tempType=t},getFirstPageData:function(){this.currentPage=0,this.hasNext=!0,this.total=0,this.dataList=[],this.getShopPage()},jumpWithdraw:function(){t.navigateTo({url:"/shop/pages/withdraw/withdraw"})},jumpDetail:function(e){17==e.objType&&t.navigateTo({url:"/shop/pages/withdrawal-details/withdrawal-details?id="+e.objId})}}};e.default=h}).call(this,n(2)["default"])},360:function(t,e,n){"use strict";n.r(e);var a=n(361),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},361:function(t,e,n){},588:function(t,e,n){"use strict";n.r(e);var a=n(623),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},623:function(t,e,n){}},[[354,"common/runtime","common/vendor"]]]);
require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["shop/pages/wallet/wallet"],{361:function(t,e,n){"use strict";(function(t,e){var a=n(4);n(30);a(n(25));var i=a(n(362));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n(1)["default"],n(2)["createPage"])},362:function(t,e,n){"use strict";n.r(e);var a=n(363),i=n(365);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n(367),n(369);var s,r=n(41),u=Object(r["default"])(i["default"],a["render"],a["staticRenderFns"],!1,null,"44c5d18e",null,!1,a["components"],s);u.options.__file="shop/pages/wallet/wallet.vue",e["default"]=u.exports},363:function(t,e,n){"use strict";n.r(e);var a=n(364);n.d(e,"render",(function(){return a["render"]})),n.d(e,"staticRenderFns",(function(){return a["staticRenderFns"]})),n.d(e,"recyclableRender",(function(){return a["recyclableRender"]})),n.d(e,"components",(function(){return a["components"]}))},364:function(t,e,n){"use strict";var a;n.r(e),n.d(e,"render",(function(){return i})),n.d(e,"staticRenderFns",(function(){return s})),n.d(e,"recyclableRender",(function(){return o})),n.d(e,"components",(function(){return a}));try{a={uIcon:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(n.bind(null,423))},uPopup:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-popup/u-popup")]).then(n.bind(null,439))},customTabbar:function(){return n.e("components/custom-tabbar/custom-tabbar").then(n.bind(null,187))}}}catch(r){if(-1===r.message.indexOf("Cannot find module")||-1===r.message.indexOf(".vue"))throw r;console.error(r.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.showMoney?(t.countData.balance/100||0).toFixed(2):null),a=t.showMoney?(t.countData.pendingAmount/100||0).toFixed(2):null,i=t.showMoney?(t.countData.totalWithdrawn/100||0).toFixed(2):null,o=t.showMoney?(t.countData.withdrawingAmount/100||0).toFixed(2):null,s=(t.countDataList.totalIncome||0).toFixed(2),r=(t.countDataList.totalExpense||0).toFixed(2),u=t.__map(t.dataList,(function(e,n){var a=t.__get_orig(e),i=(e.num||0).toFixed(2);return{$orig:a,g6:i}}));t._isMounted||(t.e0=function(e){t.showMoney=!t.showMoney},t.e1=function(e){t.showMoney=!t.showMoney},t.e2=function(e){t.show1=!0},t.e3=function(e){t.show=!1}),t.$mp.data=Object.assign({},{$root:{g0:n,g1:a,g2:i,g3:o,g4:s,g5:r,l0:u}})},o=!1,s=[];i._withStripped=!0},365:function(t,e,n){"use strict";n.r(e);var a=n(366),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},366:function(t,e,n){"use strict";(function(t){var a=n(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n(18)),o=a(n(11)),s=n(37);function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){(0,o.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var c=function(){n.e("components/custom-tabbar/custom-tabbar").then(function(){return resolve(n(187))}.bind(null,n)).catch(n.oe)},h={components:{CustomTabbar:c},computed:u({},(0,s.mapState)(["statusbarHeight"])),data:function(){return{currentPage:1,total:0,active:0,wordsWidth:250,tempActive:0,type:0,words:"全部",tempType:0,dateType:0,dataList:[],startDate:null,endDate:null,defaultStartDate:null,defaultEndDate:null,showMoney:!1,countData:{},countDataList:{},hasNext:!0,show:!1,show1:!1,year:null,tempYear:null,month:null,tempMonth:null,tempStartDate:null,tempEndDate:null}},onLoad:function(){this.active=0,this.wordsWidth=250,this.words="全部",this.tempActive=0,this.dateType=0,this.countData={},this.tempStartDate=null,this.tempEndDate=null,this.countDataList={},this.show=!1,this.initDateStr(),t.$on("accountListReload",this.getFirstPageData())},methods:{bindChange1:function(t){this.tempStartDate=t.detail.value||null},bindChange2:function(t){this.tempEndDate=t.detail.value||null},formatter:function(t,e){return"year"===t?"".concat(e,"年"):"month"===t?"".concat(e,"月"):e},getShopPage:function(){var t=this;!this.loading&&this.hasNext&&(this.loading=!0,1==this.currentPage&&(this.hasNext=!0,this.dataList=[]),this.$u.api.shopPage({capacity:10,model:{startTime:this.startDate||this.defaultStartDate,endTime:this.endDate||this.defaultEndDate,type:1===this.active?0:2===this.active?1:"",objType:1===this.type?16:2===this.type?17:3===this.type?25:4===this.type?1:""},page:this.currentPage}).then((function(e){var n;200==e.code&&((n=t.dataList).push.apply(n,(0,i.default)(e.data.records)),t.total=e.data.total,t.currentPage=t.currentPage+1,t.dataList.length>=e.data.total?t.hasNext=!1:t.hasNext=!0)})))},getShopSummary:function(){var t=this;this.$u.api.shopSummary({startTime:this.startDate||this.defaultStartDate,endTime:this.endDate||this.defaultEndDate,type:1===this.active?0:2===this.active?1:"",objType:1===this.type?16:2===this.type?17:3===this.type?25:4===this.type?1:""}).then((function(e){200==e.code&&(t.countDataList=e.data)}))},getShopStatistics:function(){var t=this;this.$u.api.shopStatistics({}).then((function(e){200==e.code&&(t.countData=e.data)}))},comfirmDate:function(e){if(e){if(new Date(this.tempEndDate+" 00:00:00").getTime()<new Date(this.tempStartDate+" 00:00:00").getTime())return t.showToast({title:"日期范围不正确",icon:"error"});this.startDate=this.tempStartDate,this.endDate=this.tempEndDate}else this.startDate=null,this.endDate=null,this.tempStartDate=this.defaultStartDate,this.tempEndDate=this.defaultEndDate;this.getFirstPageData(),this.show1=!1},openShow:function(){this.tempActive=this.active,this.tempType=this.type,this.show=!0},comfirm:function(t){if(t){if(this.active=this.tempActive,this.type=this.tempType,this.show=!1,this.wordsWidth=250,0===this.active&&0===this.type)this.words="全部";else{var e=1===this.active?"收入 ":2===this.active?"支出 ":"",n=1===this.type?"订单结算":2===this.type?"提现":3===this.type?"订单结算退回":4===this.type?"提现退回":"";""!=e&&""!=n&&(this.wordsWidth=350),this.words=e+n}this.getFirstPageData()}else this.tempActive=0,this.tempType=0},formattedDateTime:function(t){var e=t.getFullYear(),n=(t.getMonth()+1).toString().padStart(2,"0"),a=t.getDate().toString().padStart(2,"0"),i="".concat(e,"-").concat(n,"-").concat(a);return console.log(i),i},initDateStr:function(){var t=new Date,e=new Date(t.getFullYear(),t.getMonth(),1),n=this.formattedDateTime(e),a=this.formattedDateTime(t);this.defaultStartDate=n,this.defaultEndDate=a,this.startDate=null,this.endDate=null,this.getShopStatistics(),this.getShopSummary(),this.getShopPage()},checkActive:function(t){this.tempActive=t},checkType:function(t){this.tempType=t},getFirstPageData:function(){this.currentPage=0,this.hasNext=!0,this.total=0,this.dataList=[],this.getShopPage()},jumpWithdraw:function(){t.navigateTo({url:"/shop/pages/withdraw/withdraw"})},jumpDetail:function(e){17==e.objType&&t.navigateTo({url:"/shop/pages/withdrawal-details/withdrawal-details?id="+e.objId})}}};e.default=h}).call(this,n(2)["default"])},367:function(t,e,n){"use strict";n.r(e);var a=n(368),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},368:function(t,e,n){},369:function(t,e,n){"use strict";n.r(e);var a=n(370),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},370:function(t,e,n){}},[[361,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/shop/pages/wallet/wallet.js.map