| | |
| | | require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["shop/pages/wallet/wallet"],{369:function(t,e,n){"use strict";(function(t,e){var a=n(4);n(30);a(n(25));var i=a(n(370));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n(1)["default"],n(2)["createPage"])},370:function(t,e,n){"use strict";n.r(e);var a=n(371),i=n(373);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n(375),n(377);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},371:function(t,e,n){"use strict";n.r(e);var a=n(372);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"]}))},372: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,483))},uPopup:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-popup/u-popup")]).then(n.bind(null,499))},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);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}})},o=!1,s=[];i._withStripped=!0},373:function(t,e,n){"use strict";n.r(e);var a=n(374),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},374: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,loading:!1,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){var n=this;if(e){if(!this.tempStartDate||!this.tempEndDate)return t.showToast({title:"请选择开始和结束时间",icon:"none"});if(new Date(this.tempEndDate+" 00:00:00").getTime()<new Date(this.tempStartDate+" 00:00:00").getTime())return t.showToast({title:"日期范围不正确",icon:"none"});this.startDate=this.tempStartDate,this.endDate=this.tempEndDate,this.show1=!1,setTimeout((function(){n.getFirstPageData()}),300)}else this.startDate=null,this.endDate=null,this.tempStartDate=this.defaultStartDate,this.tempEndDate=this.defaultEndDate,this.show1=!1,setTimeout((function(){n.getFirstPageData()}),300)},openShow:function(){this.tempActive=this.active,this.tempType=this.type,this.show=!0},comfirm:function(t){var e=this;if(t){if(this.active=this.tempActive,this.type=this.tempType,this.wordsWidth=250,0===this.active&&0===this.type)this.words="全部";else{var n=1===this.active?"收入 ":2===this.active?"支出 ":"",a=1===this.type?"订单结算":2===this.type?"提现":3===this.type?"订单结算退回":4===this.type?"提现退回":"";""!=n&&""!=a&&(this.wordsWidth=350),this.words=n+a}this.show=!1,setTimeout((function(){e.getFirstPageData()}),300)}else this.tempActive=0,this.tempType=0,this.active=0,this.type=0,this.words="全部",this.show=!1,setTimeout((function(){e.getFirstPageData()}),300)},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.loading=!1,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"])},375:function(t,e,n){"use strict";n.r(e);var a=n(376),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},376:function(t,e,n){},377:function(t,e,n){"use strict";n.r(e);var a=n(378),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},378:function(t,e,n){}},[[369,"common/runtime","common/vendor"]]]); |
| | | require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["shop/pages/wallet/wallet"],{369:function(t,e,n){"use strict";(function(t,e){var a=n(4);n(30);a(n(25));var i=a(n(370));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n(1)["default"],n(2)["createPage"])},370:function(t,e,n){"use strict";n.r(e);var a=n(371),i=n(373);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n(375),n(377);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},371:function(t,e,n){"use strict";n.r(e);var a=n(372);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"]}))},372: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,483))},uPopup:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-popup/u-popup")]).then(n.bind(null,499))},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);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}})},o=!1,s=[];i._withStripped=!0},373:function(t,e,n){"use strict";n.r(e);var a=n(374),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},374: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,loading:!1,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,optType:1===this.active?1:2===this.active?-1:"",type:1===this.type?0:2===this.type?1:4===this.type?2:""},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,optType:1===this.active?1:2===this.active?-1:"",type:1===this.type?0:2===this.type?1:4===this.type?2:""}).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){var n=this;if(e){if(!this.tempStartDate||!this.tempEndDate)return t.showToast({title:"请选择开始和结束时间",icon:"none"});if(new Date(this.tempEndDate+" 00:00:00").getTime()<=new Date(this.tempStartDate+" 00:00:00").getTime())return t.showToast({title:"开始时间必须小于截止时间",icon:"none"});this.startDate=this.tempStartDate,this.endDate=this.tempEndDate,this.show1=!1,setTimeout((function(){n.getFirstPageData()}),300)}else this.startDate=null,this.endDate=null,this.tempStartDate=null,this.tempEndDate=null,this.show1=!1,setTimeout((function(){n.getFirstPageData()}),300)},openShow:function(){this.tempActive=this.active,this.tempType=this.type,this.show=!0},comfirm:function(t){var e=this;if(t){if(this.active=this.tempActive,this.type=this.tempType,this.wordsWidth=250,0===this.active&&0===this.type)this.words="全部";else{var n=1===this.active?"收入 ":2===this.active?"支出 ":"",a=1===this.type?"订单结算":2===this.type?"提现":3===this.type?"订单结算退回":4===this.type?"提现退回":"";""!=n&&""!=a&&(this.wordsWidth=350),this.words=n+a}this.show=!1,setTimeout((function(){e.getFirstPageData()}),300)}else this.tempActive=0,this.tempType=0,this.active=0,this.type=0,this.words="全部",this.show=!1,setTimeout((function(){e.getFirstPageData()}),300)},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.loading=!1,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"])},375:function(t,e,n){"use strict";n.r(e);var a=n(376),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},376:function(t,e,n){},377:function(t,e,n){"use strict";n.r(e);var a=n(378),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},378:function(t,e,n){}},[[369,"common/runtime","common/vendor"]]]); |
| | | //# sourceMappingURL=../../../../.sourcemap/mp-weixin/shop/pages/wallet/wallet.js.map |