Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
h5
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7480fe69
authored
May 14, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
css
parent
a26a94a3
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
8 additions
and
8 deletions
src/App.vue
src/views/wallet/Record.vue
src/views/wallet/Status.vue
src/views/wallet/WalletDetail.vue
view/18.js
view/19.js
view/20.js
view/app.js
src/App.vue
View file @
7480fe69
<
template
>
<
template
>
<div
id=
"app"
>
<div
id=
"app"
>
<keep-alive
exclude=
"newsDetail,wallet,
status,walletRetrieve
"
>
<keep-alive
exclude=
"newsDetail,wallet,
walletRetrieve,walletDetail,walletRecord,walletStatus
"
>
<router-view
class=
"router-view"
></router-view>
<router-view
class=
"router-view"
></router-view>
</keep-alive>
</keep-alive>
</div>
</div>
...
...
src/views/wallet/Record.vue
View file @
7480fe69
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
Vue
.
use
(
Icon
).
use
(
Popup
).
use
(
DatetimePicker
).
use
(
Picker
).
use
(
Toast
);
Vue
.
use
(
Icon
).
use
(
Popup
).
use
(
DatetimePicker
).
use
(
Picker
).
use
(
Toast
);
export
default
{
export
default
{
name
:
'
W
alletRecord'
,
name
:
'
w
alletRecord'
,
data
()
{
data
()
{
return
{
return
{
title
:
"充值提现记录"
,
title
:
"充值提现记录"
,
...
...
src/views/wallet/Status.vue
View file @
7480fe69
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
Vue
.
use
(
Icon
).
use
(
Dialog
);
Vue
.
use
(
Icon
).
use
(
Dialog
);
export
default
{
export
default
{
name
:
'
s
tatus'
,
name
:
'
walletS
tatus'
,
data
()
{
data
()
{
return
{
return
{
title
:
"钱包状态"
,
title
:
"钱包状态"
,
...
...
src/views/wallet/WalletDetail.vue
View file @
7480fe69
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
Vue
.
use
(
Icon
).
use
(
Popup
).
use
(
DatetimePicker
).
use
(
Picker
).
use
(
Toast
);
Vue
.
use
(
Icon
).
use
(
Popup
).
use
(
DatetimePicker
).
use
(
Picker
).
use
(
Toast
);
export
default
{
export
default
{
name
:
'
W
alletDetail'
,
name
:
'
w
alletDetail'
,
data
()
{
data
()
{
return
{
return
{
title
:
"钱包明细"
,
title
:
"钱包明细"
,
...
...
view/18.js
View file @
7480fe69
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
"use strict"
;
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es6.number.constructor */ \"./node_modules/_core-js@2.6.3@core-js/modules/es6.number.constructor.js\");\n/* harmony import */ var core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es6.regexp.replace */ \"./node_modules/_core-js@2.6.3@core-js/modules/es6.regexp.replace.js\");\n/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var E_h5_node_modules_babel_runtime_corejs2_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime-corejs2/helpers/esm/objectSpread */ \"./node_modules/_@babel_runtime-corejs2@7.3.1@@babel/runtime-corejs2/helpers/esm/objectSpread.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.5.22@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.0@vuex/dist/vuex.esm.js\");\n/* harmony import */ var _views_common_Header_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/views/common/Header.vue */ \"./src/views/common/Header.vue\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@1.5.7@vant/es/index.js\");\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\nvue__WEBPACK_IMPORTED_MODULE_3__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_6__[\"Icon\"]).use(vant__WEBPACK_IMPORTED_MODULE_6__[\"Popup\"]).use(vant__WEBPACK_IMPORTED_MODULE_6__[\"DatetimePicker\"]).use(vant__WEBPACK_IMPORTED_MODULE_6__[\"Picker\"]).use(vant__WEBPACK_IMPORTED_MODULE_6__[\"Toast\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: '
W
alletRecord',\n data: function data() {\n return {\n title: \"充值提现记录\",\n text: '全部',\n meaushow: true,\n recordYear: new Date().getFullYear(),\n recordMonth: new Date().getMonth() + 1 < 10 ? \"0\" + (new Date().getMonth() + 1) : new Date().getMonth() + 1,\n updateYear: '',\n updateMonth: '',\n dateShow: false,\n //年月弹出层\n typeShow: false,\n //类型弹出层\n currentDate: new Date(),\n //目前年月\n typeCheckedkeyId: '',\n typeCheckedText: '',\n dialog: false,\n active: 0,\n columns: [{\n \"keyId\": '',\n \"text\": \"全部\"\n }, {\n \"keyId\": 1,\n \"text\": \"钱包充值\"\n }, {\n \"keyId\": 2,\n \"text\": \"钱包提现\"\n }]\n };\n },\n computed: Object(E_h5_node_modules_babel_runtime_corejs2_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__[\"default\"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_4__[\"mapState\"])({\n walletRecordData: function walletRecordData(state) {\n return state.wallet.walletRecordData;\n }\n })),\n watch: {},\n created: function created() {\n //格式化日期\n function setDate(date) {\n y = date.getFullYear();\n m = date.getMonth() + 1;\n d = date.getDate();\n m = m < 10 ? \"0\" + m : m;\n d = d < 10 ? \"0\" + d : d;\n return y + \"-\" + m + \"-\" + d;\n } //封装时间格式\n\n\n function format(time, format) {\n var t = new Date(time);\n\n var tf = function tf(i) {\n return (i < 10 ? '0' : '') + i;\n };\n\n return format.replace(/yyyy|MM|dd|HH|mm|ss/g, function (a) {\n switch (a) {\n case 'yyyy':\n return tf(t.getFullYear());\n break;\n\n case 'MM':\n return tf(t.getMonth() + 1);\n break;\n\n case 'mm':\n return tf(t.getMinutes());\n break;\n\n case 'dd':\n return tf(t.getDate());\n break;\n\n case 'HH':\n return tf(t.getHours());\n break;\n\n case 'ss':\n return tf(t.getSeconds());\n break;\n }\n });\n } //获取当前月的第一天\n\n\n function getCurrentMonthFirst() {\n var date = new Date();\n date.setDate(1);\n return date;\n } //获取当前月的最后一天\n\n\n function getCurrentMonthLast() {\n var date = new Date();\n var currentMonth = date.getMonth();\n var nextMonth = ++currentMonth;\n var nextMonthFirstDay = new Date(date.getFullYear(), nextMonth, 1);\n var oneDay = 1000 * 60 * 60 * 24;\n return new Date(nextMonthFirstDay - oneDay);\n }\n\n this.$store.dispatch({\n type: 'walletRecordList',\n wallet_type: '',\n stime: format(getCurrentMonthFirst(), 'yyyy-MM-dd'),\n etime: format(getCurrentMonthLast(), 'yyyy-MM-dd')\n });\n },\n methods: {\n showPopDate: function showPopDate() {\n if (!this.dateShow) {\n this.dateShow = true;\n } else {\n this.dateShow = false;\n }\n },\n showPopType: function showPopType() {\n this.dialog = !this.dialog;\n },\n formatter: function formatter(type, value) {\n if (type === 'year') {\n return \"\".concat(value);\n } else if (type === 'month') {\n return \"\".concat(value);\n }\n\n return value;\n },\n dateChange: function dateChange(value) {\n this.updateYear = value.getValues()[0];\n this.updateMonth = value.getValues()[1];\n },\n onDateCancel: function onDateCancel() {\n this.dateShow = false;\n this.recordYear = this.recordYear;\n this.recordMonth = this.recordMonth;\n },\n onDateConfirm: function onDateConfirm() {\n this.dateShow = false;\n this.recordYear = this.updateYear;\n this.recordMonth = this.updateMonth; //获取某年某月的第一天\n\n function getMonthFirstDay(y, m) {\n var date = new Date(y, m - 1, 1);\n var firstDate = new Date(date.getTime());\n return firstDate.getFullYear() + '-' + (Number(firstDate.getMonth()) + 1) + '-' + firstDate.getDate();\n } //获取某年某月的最后一天\n\n\n function getMonthLastDay(y, m) {\n var date = new Date(y, m, 1);\n var lastDate = new Date(date.getTime() - 1000 * 60 * 60 * 24);\n return lastDate.getFullYear() + '-' + (Number(lastDate.getMonth()) + 1) + '-' + lastDate.getDate();\n }\n\n this.$store.dispatch({\n type: 'walletRecordList',\n wallet_type: this.typeCheckedkeyId || '',\n stime: getMonthFirstDay(this.recordYear, this.recordMonth),\n etime: getMonthLastDay(this.recordYear, this.recordMonth)\n });\n },\n onTypeConfirm: function onTypeConfirm(value, index) {\n this.dialog = false;\n this.active = index;\n this.text = this.columns[index].text;\n this.typeCheckedkeyId = value.keyId;\n this.typeCheckedText = value.text;\n this.recordYear = this.updateYear || this.recordYear;\n this.recordMonth = this.updateMonth || this.recordMonth; //获取某年某月的第一天\n\n function getMonthFirstDay(y, m) {\n var date = new Date(y, m - 1, 1);\n var firstDate = new Date(date.getTime());\n return firstDate.getFullYear() + '-' + (Number(firstDate.getMonth()) + 1) + '-' + firstDate.getDate();\n } //获取某年某月的最后一天\n\n\n function getMonthLastDay(y, m) {\n var date = new Date(y, m, 1);\n var lastDate = new Date(date.getTime() - 1000 * 60 * 60 * 24);\n return lastDate.getFullYear() + '-' + (Number(lastDate.getMonth()) + 1) + '-' + lastDate.getDate();\n }\n\n this.$store.dispatch({\n type: 'walletRecordList',\n wallet_type: value,\n stime: getMonthFirstDay(this.recordYear, this.recordMonth),\n etime: getMonthLastDay(this.recordYear, this.recordMonth)\n });\n },\n onTypeCancel: function onTypeCancel() {\n this.typeShow = false;\n },\n detail: function detail(amount) {\n //待支付的钱包充值订单,可跳去查看详情\n //直接调用$router.push实现携带参数的跳转\n this.$router.push({\n path: '/wallet/recharge',\n query: {\n amount: amount\n }\n });\n }\n },\n components: {\n Header: _views_common_Header_vue__WEBPACK_IMPORTED_MODULE_5__[\"default\"]\n }\n});\n\n//# sourceURL=webpack:///./src/views/wallet/Record.vue?./node_modules/_cache-loader@1.2.5@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.0.5@babel-loader/lib!./node_modules/_cache-loader@1.2.5@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.6.2@vue-loader/lib??vue-loader-options"
);
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es6.number.constructor */ \"./node_modules/_core-js@2.6.3@core-js/modules/es6.number.constructor.js\");\n/* harmony import */ var core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es6.regexp.replace */ \"./node_modules/_core-js@2.6.3@core-js/modules/es6.regexp.replace.js\");\n/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var E_h5_node_modules_babel_runtime_corejs2_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime-corejs2/helpers/esm/objectSpread */ \"./node_modules/_@babel_runtime-corejs2@7.3.1@@babel/runtime-corejs2/helpers/esm/objectSpread.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.5.22@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.0@vuex/dist/vuex.esm.js\");\n/* harmony import */ var _views_common_Header_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/views/common/Header.vue */ \"./src/views/common/Header.vue\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@1.5.7@vant/es/index.js\");\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\nvue__WEBPACK_IMPORTED_MODULE_3__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_6__[\"Icon\"]).use(vant__WEBPACK_IMPORTED_MODULE_6__[\"Popup\"]).use(vant__WEBPACK_IMPORTED_MODULE_6__[\"DatetimePicker\"]).use(vant__WEBPACK_IMPORTED_MODULE_6__[\"Picker\"]).use(vant__WEBPACK_IMPORTED_MODULE_6__[\"Toast\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: '
w
alletRecord',\n data: function data() {\n return {\n title: \"充值提现记录\",\n text: '全部',\n meaushow: true,\n recordYear: new Date().getFullYear(),\n recordMonth: new Date().getMonth() + 1 < 10 ? \"0\" + (new Date().getMonth() + 1) : new Date().getMonth() + 1,\n updateYear: '',\n updateMonth: '',\n dateShow: false,\n //年月弹出层\n typeShow: false,\n //类型弹出层\n currentDate: new Date(),\n //目前年月\n typeCheckedkeyId: '',\n typeCheckedText: '',\n dialog: false,\n active: 0,\n columns: [{\n \"keyId\": '',\n \"text\": \"全部\"\n }, {\n \"keyId\": 1,\n \"text\": \"钱包充值\"\n }, {\n \"keyId\": 2,\n \"text\": \"钱包提现\"\n }]\n };\n },\n computed: Object(E_h5_node_modules_babel_runtime_corejs2_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__[\"default\"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_4__[\"mapState\"])({\n walletRecordData: function walletRecordData(state) {\n return state.wallet.walletRecordData;\n }\n })),\n watch: {},\n created: function created() {\n //格式化日期\n function setDate(date) {\n y = date.getFullYear();\n m = date.getMonth() + 1;\n d = date.getDate();\n m = m < 10 ? \"0\" + m : m;\n d = d < 10 ? \"0\" + d : d;\n return y + \"-\" + m + \"-\" + d;\n } //封装时间格式\n\n\n function format(time, format) {\n var t = new Date(time);\n\n var tf = function tf(i) {\n return (i < 10 ? '0' : '') + i;\n };\n\n return format.replace(/yyyy|MM|dd|HH|mm|ss/g, function (a) {\n switch (a) {\n case 'yyyy':\n return tf(t.getFullYear());\n break;\n\n case 'MM':\n return tf(t.getMonth() + 1);\n break;\n\n case 'mm':\n return tf(t.getMinutes());\n break;\n\n case 'dd':\n return tf(t.getDate());\n break;\n\n case 'HH':\n return tf(t.getHours());\n break;\n\n case 'ss':\n return tf(t.getSeconds());\n break;\n }\n });\n } //获取当前月的第一天\n\n\n function getCurrentMonthFirst() {\n var date = new Date();\n date.setDate(1);\n return date;\n } //获取当前月的最后一天\n\n\n function getCurrentMonthLast() {\n var date = new Date();\n var currentMonth = date.getMonth();\n var nextMonth = ++currentMonth;\n var nextMonthFirstDay = new Date(date.getFullYear(), nextMonth, 1);\n var oneDay = 1000 * 60 * 60 * 24;\n return new Date(nextMonthFirstDay - oneDay);\n }\n\n this.$store.dispatch({\n type: 'walletRecordList',\n wallet_type: '',\n stime: format(getCurrentMonthFirst(), 'yyyy-MM-dd'),\n etime: format(getCurrentMonthLast(), 'yyyy-MM-dd')\n });\n },\n methods: {\n showPopDate: function showPopDate() {\n if (!this.dateShow) {\n this.dateShow = true;\n } else {\n this.dateShow = false;\n }\n },\n showPopType: function showPopType() {\n this.dialog = !this.dialog;\n },\n formatter: function formatter(type, value) {\n if (type === 'year') {\n return \"\".concat(value);\n } else if (type === 'month') {\n return \"\".concat(value);\n }\n\n return value;\n },\n dateChange: function dateChange(value) {\n this.updateYear = value.getValues()[0];\n this.updateMonth = value.getValues()[1];\n },\n onDateCancel: function onDateCancel() {\n this.dateShow = false;\n this.recordYear = this.recordYear;\n this.recordMonth = this.recordMonth;\n },\n onDateConfirm: function onDateConfirm() {\n this.dateShow = false;\n this.recordYear = this.updateYear;\n this.recordMonth = this.updateMonth; //获取某年某月的第一天\n\n function getMonthFirstDay(y, m) {\n var date = new Date(y, m - 1, 1);\n var firstDate = new Date(date.getTime());\n return firstDate.getFullYear() + '-' + (Number(firstDate.getMonth()) + 1) + '-' + firstDate.getDate();\n } //获取某年某月的最后一天\n\n\n function getMonthLastDay(y, m) {\n var date = new Date(y, m, 1);\n var lastDate = new Date(date.getTime() - 1000 * 60 * 60 * 24);\n return lastDate.getFullYear() + '-' + (Number(lastDate.getMonth()) + 1) + '-' + lastDate.getDate();\n }\n\n this.$store.dispatch({\n type: 'walletRecordList',\n wallet_type: this.typeCheckedkeyId || '',\n stime: getMonthFirstDay(this.recordYear, this.recordMonth),\n etime: getMonthLastDay(this.recordYear, this.recordMonth)\n });\n },\n onTypeConfirm: function onTypeConfirm(value, index) {\n this.dialog = false;\n this.active = index;\n this.text = this.columns[index].text;\n this.typeCheckedkeyId = value.keyId;\n this.typeCheckedText = value.text;\n this.recordYear = this.updateYear || this.recordYear;\n this.recordMonth = this.updateMonth || this.recordMonth; //获取某年某月的第一天\n\n function getMonthFirstDay(y, m) {\n var date = new Date(y, m - 1, 1);\n var firstDate = new Date(date.getTime());\n return firstDate.getFullYear() + '-' + (Number(firstDate.getMonth()) + 1) + '-' + firstDate.getDate();\n } //获取某年某月的最后一天\n\n\n function getMonthLastDay(y, m) {\n var date = new Date(y, m, 1);\n var lastDate = new Date(date.getTime() - 1000 * 60 * 60 * 24);\n return lastDate.getFullYear() + '-' + (Number(lastDate.getMonth()) + 1) + '-' + lastDate.getDate();\n }\n\n this.$store.dispatch({\n type: 'walletRecordList',\n wallet_type: value,\n stime: getMonthFirstDay(this.recordYear, this.recordMonth),\n etime: getMonthLastDay(this.recordYear, this.recordMonth)\n });\n },\n onTypeCancel: function onTypeCancel() {\n this.typeShow = false;\n },\n detail: function detail(amount) {\n //待支付的钱包充值订单,可跳去查看详情\n //直接调用$router.push实现携带参数的跳转\n this.$router.push({\n path: '/wallet/recharge',\n query: {\n amount: amount\n }\n });\n }\n },\n components: {\n Header: _views_common_Header_vue__WEBPACK_IMPORTED_MODULE_5__[\"default\"]\n }\n});\n\n//# sourceURL=webpack:///./src/views/wallet/Record.vue?./node_modules/_cache-loader@1.2.5@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.0.5@babel-loader/lib!./node_modules/_cache-loader@1.2.5@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.6.2@vue-loader/lib??vue-loader-options"
);
/***/
}),
/***/
}),
...
...
view/19.js
View file @
7480fe69
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
"use strict"
;
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_h5_node_modules_babel_runtime_corejs2_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime-corejs2/helpers/esm/objectSpread */ \"./node_modules/_@babel_runtime-corejs2@7.3.1@@babel/runtime-corejs2/helpers/esm/objectSpread.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.5.22@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.0@vuex/dist/vuex.esm.js\");\n/* harmony import */ var _views_common_Header_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/views/common/Header.vue */ \"./src/views/common/Header.vue\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@1.5.7@vant/es/index.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\nvue__WEBPACK_IMPORTED_MODULE_1__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_4__[\"Icon\"]).use(vant__WEBPACK_IMPORTED_MODULE_4__[\"Dialog\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: '
s
tatus',\n data: function data() {\n return {\n title: \"钱包状态\",\n meaushow: true\n };\n },\n computed: Object(E_h5_node_modules_babel_runtime_corejs2_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_2__[\"mapState\"])({\n walletInfoData: function walletInfoData(state) {\n return state.wallet.walletInfoData;\n }\n })),\n watch: {},\n created: function created() {\n this.$store.dispatch({\n type: 'getWalletInfo'\n });\n },\n methods: {\n dialogTips: function dialogTips() {\n vant__WEBPACK_IMPORTED_MODULE_4__[\"Dialog\"].alert({\n message: '<p style=\"font-size:16px;\">您的' + this.walletInfoData.wallet_freeze_format + '元正在提现中,</p><p style=\"font-size:16px;\">预计1个工作日后到账,</p><p style=\"font-size:16px;\">节假日顺延,请耐心等候。</p>'\n }).then(function () {// on close\n });\n },\n submit: function submit() {\n this.$router.push({\n path: '/wallet/activate'\n });\n },\n forgetPassword: function forgetPassword() {\n this.$router.push({\n path: '/wallet/retrieve'\n });\n },\n bindBank: function bindBank() {\n this.$router.push({\n path: '/wallet/verify'\n });\n }\n },\n components: {\n Header: _views_common_Header_vue__WEBPACK_IMPORTED_MODULE_3__[\"default\"]\n }\n});\n\n//# sourceURL=webpack:///./src/views/wallet/Status.vue?./node_modules/_cache-loader@1.2.5@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.0.5@babel-loader/lib!./node_modules/_cache-loader@1.2.5@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.6.2@vue-loader/lib??vue-loader-options"
);
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_h5_node_modules_babel_runtime_corejs2_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime-corejs2/helpers/esm/objectSpread */ \"./node_modules/_@babel_runtime-corejs2@7.3.1@@babel/runtime-corejs2/helpers/esm/objectSpread.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.5.22@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.0@vuex/dist/vuex.esm.js\");\n/* harmony import */ var _views_common_Header_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/views/common/Header.vue */ \"./src/views/common/Header.vue\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@1.5.7@vant/es/index.js\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\nvue__WEBPACK_IMPORTED_MODULE_1__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_4__[\"Icon\"]).use(vant__WEBPACK_IMPORTED_MODULE_4__[\"Dialog\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: '
walletS
tatus',\n data: function data() {\n return {\n title: \"钱包状态\",\n meaushow: true\n };\n },\n computed: Object(E_h5_node_modules_babel_runtime_corejs2_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_2__[\"mapState\"])({\n walletInfoData: function walletInfoData(state) {\n return state.wallet.walletInfoData;\n }\n })),\n watch: {},\n created: function created() {\n this.$store.dispatch({\n type: 'getWalletInfo'\n });\n },\n methods: {\n dialogTips: function dialogTips() {\n vant__WEBPACK_IMPORTED_MODULE_4__[\"Dialog\"].alert({\n message: '<p style=\"font-size:16px;\">您的' + this.walletInfoData.wallet_freeze_format + '元正在提现中,</p><p style=\"font-size:16px;\">预计1个工作日后到账,</p><p style=\"font-size:16px;\">节假日顺延,请耐心等候。</p>'\n }).then(function () {// on close\n });\n },\n submit: function submit() {\n this.$router.push({\n path: '/wallet/activate'\n });\n },\n forgetPassword: function forgetPassword() {\n this.$router.push({\n path: '/wallet/retrieve'\n });\n },\n bindBank: function bindBank() {\n this.$router.push({\n path: '/wallet/verify'\n });\n }\n },\n components: {\n Header: _views_common_Header_vue__WEBPACK_IMPORTED_MODULE_3__[\"default\"]\n }\n});\n\n//# sourceURL=webpack:///./src/views/wallet/Status.vue?./node_modules/_cache-loader@1.2.5@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.0.5@babel-loader/lib!./node_modules/_cache-loader@1.2.5@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.6.2@vue-loader/lib??vue-loader-options"
);
/***/
}),
/***/
}),
...
...
view/20.js
View file @
7480fe69
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
"use strict"
;
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es6.number.constructor */ \"./node_modules/_core-js@2.6.3@core-js/modules/es6.number.constructor.js\");\n/* harmony import */ var core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es6.regexp.replace */ \"./node_modules/_core-js@2.6.3@core-js/modules/es6.regexp.replace.js\");\n/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var E_h5_node_modules_babel_runtime_corejs2_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime-corejs2/helpers/esm/objectSpread */ \"./node_modules/_@babel_runtime-corejs2@7.3.1@@babel/runtime-corejs2/helpers/esm/objectSpread.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.5.22@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.0@vuex/dist/vuex.esm.js\");\n/* harmony import */ var _views_common_Header_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/views/common/Header.vue */ \"./src/views/common/Header.vue\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@1.5.7@vant/es/index.js\");\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\nvue__WEBPACK_IMPORTED_MODULE_3__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_6__[\"Icon\"]).use(vant__WEBPACK_IMPORTED_MODULE_6__[\"Popup\"]).use(vant__WEBPACK_IMPORTED_MODULE_6__[\"DatetimePicker\"]).use(vant__WEBPACK_IMPORTED_MODULE_6__[\"Picker\"]).use(vant__WEBPACK_IMPORTED_MODULE_6__[\"Toast\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: '
W
alletDetail',\n data: function data() {\n return {\n title: \"钱包明细\",\n meaushow: true,\n dateYear: new Date().getFullYear(),\n //初始化当前年\n dateMonth: new Date().getMonth() + 1 < 10 ? \"0\" + (new Date().getMonth() + 1) : new Date().getMonth() + 1,\n //初始化当前月\n updateYear: '',\n updateMonth: '',\n dateShow: false,\n //年月弹出层\n typeShow: false,\n //类型弹出层\n currentDate: new Date(),\n //目前年月\n typeCheckedkeyId: '',\n typeCheckedText: '',\n text: '全部交易类型',\n dialog: false,\n active: 0,\n columns: [{\n \"keyId\": '',\n \"text\": \"全部交易类型\"\n }, {\n \"keyId\": 21,\n \"text\": \"订单支付\"\n }, {\n \"keyId\": 10,\n \"text\": \"钱包充值\"\n }, {\n \"keyId\": 20,\n \"text\": \"钱包提现\"\n }, {\n \"keyId\": 12,\n \"text\": \"活动返现\"\n }, {\n \"keyId\": 100,\n \"text\": \"余额调整\"\n }]\n };\n },\n computed: Object(E_h5_node_modules_babel_runtime_corejs2_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__[\"default\"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_4__[\"mapState\"])({\n walletListData: function walletListData(state) {\n return state.wallet.walletListData;\n }\n })),\n watch: {},\n created: function created() {\n //格式化日期\n function setDate(date) {\n y = date.getFullYear();\n m = date.getMonth() + 1;\n d = date.getDate();\n m = m < 10 ? \"0\" + m : m;\n d = d < 10 ? \"0\" + d : d;\n return y + \"-\" + m + \"-\" + d;\n } //封装时间格式\n\n\n function format(time, format) {\n var t = new Date(time);\n\n var tf = function tf(i) {\n return (i < 10 ? '0' : '') + i;\n };\n\n return format.replace(/yyyy|MM|dd|HH|mm|ss/g, function (a) {\n switch (a) {\n case 'yyyy':\n return tf(t.getFullYear());\n break;\n\n case 'MM':\n return tf(t.getMonth() + 1);\n break;\n\n case 'mm':\n return tf(t.getMinutes());\n break;\n\n case 'dd':\n return tf(t.getDate());\n break;\n\n case 'HH':\n return tf(t.getHours());\n break;\n\n case 'ss':\n return tf(t.getSeconds());\n break;\n }\n });\n } //获取当前月的第一天\n\n\n function getCurrentMonthFirst() {\n var date = new Date();\n date.setDate(1);\n return date;\n } //获取当前月的最后一天\n\n\n function getCurrentMonthLast() {\n var date = new Date();\n var currentMonth = date.getMonth();\n var nextMonth = ++currentMonth;\n var nextMonthFirstDay = new Date(date.getFullYear(), nextMonth, 1);\n var oneDay = 1000 * 60 * 60 * 24;\n return new Date(nextMonthFirstDay - oneDay);\n }\n\n this.$store.dispatch({\n type: 'walletListLog',\n log_type: '',\n stime: format(getCurrentMonthFirst(), 'yyyy-MM-dd'),\n etime: format(getCurrentMonthLast(), 'yyyy-MM-dd')\n });\n },\n methods: {\n showPopDate: function showPopDate() {\n if (!this.dateShow) {\n this.dateShow = true;\n } else {\n this.dateShow = false;\n }\n },\n showPopType: function showPopType() {\n this.dialog = !this.dialog;\n },\n formatter: function formatter(type, value) {\n if (type === 'year') {\n return \"\".concat(value);\n } else if (type === 'month') {\n return \"\".concat(value);\n }\n\n return value;\n },\n dateChange: function dateChange(value) {\n this.updateYear = value.getValues()[0];\n this.updateMonth = value.getValues()[1];\n },\n onDateCancel: function onDateCancel() {\n this.dateShow = false;\n this.dateYear = this.dateYear;\n this.dateMonth = this.dateMonth;\n },\n onDateConfirm: function onDateConfirm() {\n this.dateShow = false;\n this.dateYear = this.updateYear;\n this.dateMonth = this.updateMonth; //获取某年某月的第一天\n\n function getMonthFirstDay(y, m) {\n var date = new Date(y, m - 1, 1);\n var firstDate = new Date(date.getTime());\n return firstDate.getFullYear() + '-' + (Number(firstDate.getMonth()) + 1) + '-' + firstDate.getDate();\n } //获取某年某月的最后一天\n\n\n function getMonthLastDay(y, m) {\n var date = new Date(y, m, 1);\n var lastDate = new Date(date.getTime() - 1000 * 60 * 60 * 24);\n return lastDate.getFullYear() + '-' + (Number(lastDate.getMonth()) + 1) + '-' + lastDate.getDate();\n }\n\n this.$store.dispatch({\n type: 'walletListLog',\n log_type: this.typeCheckedkeyId || '',\n stime: getMonthFirstDay(this.dateYear, this.dateMonth),\n etime: getMonthLastDay(this.dateYear, this.dateMonth)\n });\n },\n onTypeConfirm: function onTypeConfirm(value, index) {\n this.dialog = false;\n this.active = index;\n this.text = this.columns[index].text;\n this.typeCheckedkeyId = value.keyId;\n this.typeCheckedText = value.text;\n this.dateYear = this.updateYear || this.dateYear;\n this.dateMonth = this.updateMonth || this.dateMonth; //获取某年某月的第一天\n\n function getMonthFirstDay(y, m) {\n var date = new Date(y, m - 1, 1);\n var firstDate = new Date(date.getTime());\n return firstDate.getFullYear() + '-' + (Number(firstDate.getMonth()) + 1) + '-' + firstDate.getDate();\n } //获取某年某月的最后一天\n\n\n function getMonthLastDay(y, m) {\n var date = new Date(y, m, 1);\n var lastDate = new Date(date.getTime() - 1000 * 60 * 60 * 24);\n return lastDate.getFullYear() + '-' + (Number(lastDate.getMonth()) + 1) + '-' + lastDate.getDate();\n }\n\n this.$store.dispatch({\n type: 'walletListLog',\n log_type: value,\n stime: getMonthFirstDay(this.dateYear, this.dateMonth),\n etime: getMonthLastDay(this.dateYear, this.dateMonth)\n });\n },\n onTypeCancel: function onTypeCancel() {\n this.typeShow = false;\n }\n },\n components: {\n Header: _views_common_Header_vue__WEBPACK_IMPORTED_MODULE_5__[\"default\"]\n }\n});\n\n//# sourceURL=webpack:///./src/views/wallet/WalletDetail.vue?./node_modules/_cache-loader@1.2.5@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.0.5@babel-loader/lib!./node_modules/_cache-loader@1.2.5@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.6.2@vue-loader/lib??vue-loader-options"
);
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es6.number.constructor */ \"./node_modules/_core-js@2.6.3@core-js/modules/es6.number.constructor.js\");\n/* harmony import */ var core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es6.regexp.replace */ \"./node_modules/_core-js@2.6.3@core-js/modules/es6.regexp.replace.js\");\n/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var E_h5_node_modules_babel_runtime_corejs2_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime-corejs2/helpers/esm/objectSpread */ \"./node_modules/_@babel_runtime-corejs2@7.3.1@@babel/runtime-corejs2/helpers/esm/objectSpread.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.5.22@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.0@vuex/dist/vuex.esm.js\");\n/* harmony import */ var _views_common_Header_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/views/common/Header.vue */ \"./src/views/common/Header.vue\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@1.5.7@vant/es/index.js\");\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\nvue__WEBPACK_IMPORTED_MODULE_3__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_6__[\"Icon\"]).use(vant__WEBPACK_IMPORTED_MODULE_6__[\"Popup\"]).use(vant__WEBPACK_IMPORTED_MODULE_6__[\"DatetimePicker\"]).use(vant__WEBPACK_IMPORTED_MODULE_6__[\"Picker\"]).use(vant__WEBPACK_IMPORTED_MODULE_6__[\"Toast\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: '
w
alletDetail',\n data: function data() {\n return {\n title: \"钱包明细\",\n meaushow: true,\n dateYear: new Date().getFullYear(),\n //初始化当前年\n dateMonth: new Date().getMonth() + 1 < 10 ? \"0\" + (new Date().getMonth() + 1) : new Date().getMonth() + 1,\n //初始化当前月\n updateYear: '',\n updateMonth: '',\n dateShow: false,\n //年月弹出层\n typeShow: false,\n //类型弹出层\n currentDate: new Date(),\n //目前年月\n typeCheckedkeyId: '',\n typeCheckedText: '',\n text: '全部交易类型',\n dialog: false,\n active: 0,\n columns: [{\n \"keyId\": '',\n \"text\": \"全部交易类型\"\n }, {\n \"keyId\": 21,\n \"text\": \"订单支付\"\n }, {\n \"keyId\": 10,\n \"text\": \"钱包充值\"\n }, {\n \"keyId\": 20,\n \"text\": \"钱包提现\"\n }, {\n \"keyId\": 12,\n \"text\": \"活动返现\"\n }, {\n \"keyId\": 100,\n \"text\": \"余额调整\"\n }]\n };\n },\n computed: Object(E_h5_node_modules_babel_runtime_corejs2_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__[\"default\"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_4__[\"mapState\"])({\n walletListData: function walletListData(state) {\n return state.wallet.walletListData;\n }\n })),\n watch: {},\n created: function created() {\n //格式化日期\n function setDate(date) {\n y = date.getFullYear();\n m = date.getMonth() + 1;\n d = date.getDate();\n m = m < 10 ? \"0\" + m : m;\n d = d < 10 ? \"0\" + d : d;\n return y + \"-\" + m + \"-\" + d;\n } //封装时间格式\n\n\n function format(time, format) {\n var t = new Date(time);\n\n var tf = function tf(i) {\n return (i < 10 ? '0' : '') + i;\n };\n\n return format.replace(/yyyy|MM|dd|HH|mm|ss/g, function (a) {\n switch (a) {\n case 'yyyy':\n return tf(t.getFullYear());\n break;\n\n case 'MM':\n return tf(t.getMonth() + 1);\n break;\n\n case 'mm':\n return tf(t.getMinutes());\n break;\n\n case 'dd':\n return tf(t.getDate());\n break;\n\n case 'HH':\n return tf(t.getHours());\n break;\n\n case 'ss':\n return tf(t.getSeconds());\n break;\n }\n });\n } //获取当前月的第一天\n\n\n function getCurrentMonthFirst() {\n var date = new Date();\n date.setDate(1);\n return date;\n } //获取当前月的最后一天\n\n\n function getCurrentMonthLast() {\n var date = new Date();\n var currentMonth = date.getMonth();\n var nextMonth = ++currentMonth;\n var nextMonthFirstDay = new Date(date.getFullYear(), nextMonth, 1);\n var oneDay = 1000 * 60 * 60 * 24;\n return new Date(nextMonthFirstDay - oneDay);\n }\n\n this.$store.dispatch({\n type: 'walletListLog',\n log_type: '',\n stime: format(getCurrentMonthFirst(), 'yyyy-MM-dd'),\n etime: format(getCurrentMonthLast(), 'yyyy-MM-dd')\n });\n },\n methods: {\n showPopDate: function showPopDate() {\n if (!this.dateShow) {\n this.dateShow = true;\n } else {\n this.dateShow = false;\n }\n },\n showPopType: function showPopType() {\n this.dialog = !this.dialog;\n },\n formatter: function formatter(type, value) {\n if (type === 'year') {\n return \"\".concat(value);\n } else if (type === 'month') {\n return \"\".concat(value);\n }\n\n return value;\n },\n dateChange: function dateChange(value) {\n this.updateYear = value.getValues()[0];\n this.updateMonth = value.getValues()[1];\n },\n onDateCancel: function onDateCancel() {\n this.dateShow = false;\n this.dateYear = this.dateYear;\n this.dateMonth = this.dateMonth;\n },\n onDateConfirm: function onDateConfirm() {\n this.dateShow = false;\n this.dateYear = this.updateYear;\n this.dateMonth = this.updateMonth; //获取某年某月的第一天\n\n function getMonthFirstDay(y, m) {\n var date = new Date(y, m - 1, 1);\n var firstDate = new Date(date.getTime());\n return firstDate.getFullYear() + '-' + (Number(firstDate.getMonth()) + 1) + '-' + firstDate.getDate();\n } //获取某年某月的最后一天\n\n\n function getMonthLastDay(y, m) {\n var date = new Date(y, m, 1);\n var lastDate = new Date(date.getTime() - 1000 * 60 * 60 * 24);\n return lastDate.getFullYear() + '-' + (Number(lastDate.getMonth()) + 1) + '-' + lastDate.getDate();\n }\n\n this.$store.dispatch({\n type: 'walletListLog',\n log_type: this.typeCheckedkeyId || '',\n stime: getMonthFirstDay(this.dateYear, this.dateMonth),\n etime: getMonthLastDay(this.dateYear, this.dateMonth)\n });\n },\n onTypeConfirm: function onTypeConfirm(value, index) {\n this.dialog = false;\n this.active = index;\n this.text = this.columns[index].text;\n this.typeCheckedkeyId = value.keyId;\n this.typeCheckedText = value.text;\n this.dateYear = this.updateYear || this.dateYear;\n this.dateMonth = this.updateMonth || this.dateMonth; //获取某年某月的第一天\n\n function getMonthFirstDay(y, m) {\n var date = new Date(y, m - 1, 1);\n var firstDate = new Date(date.getTime());\n return firstDate.getFullYear() + '-' + (Number(firstDate.getMonth()) + 1) + '-' + firstDate.getDate();\n } //获取某年某月的最后一天\n\n\n function getMonthLastDay(y, m) {\n var date = new Date(y, m, 1);\n var lastDate = new Date(date.getTime() - 1000 * 60 * 60 * 24);\n return lastDate.getFullYear() + '-' + (Number(lastDate.getMonth()) + 1) + '-' + lastDate.getDate();\n }\n\n this.$store.dispatch({\n type: 'walletListLog',\n log_type: value,\n stime: getMonthFirstDay(this.dateYear, this.dateMonth),\n etime: getMonthLastDay(this.dateYear, this.dateMonth)\n });\n },\n onTypeCancel: function onTypeCancel() {\n this.typeShow = false;\n }\n },\n components: {\n Header: _views_common_Header_vue__WEBPACK_IMPORTED_MODULE_5__[\"default\"]\n }\n});\n\n//# sourceURL=webpack:///./src/views/wallet/WalletDetail.vue?./node_modules/_cache-loader@1.2.5@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.0.5@babel-loader/lib!./node_modules/_cache-loader@1.2.5@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.6.2@vue-loader/lib??vue-loader-options"
);
/***/
}),
/***/
}),
...
...
view/app.js
View file @
7480fe69
...
@@ -631,7 +631,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
...
@@ -631,7 +631,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
"use strict"
;
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"div\",\n { attrs: { id: \"app\" } },\n [\n _c(\n \"keep-alive\",\n {
attrs: { exclude: \"newsDetail,wallet,status,walletRetrieve\" }
},\n [_c(\"router-view\", { staticClass: \"router-view\" })],\n 1\n )\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/App.vue?./node_modules/_cache-loader@1.2.5@cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%22afd9f050-vue-loader-template%22%7D!./node_modules/_vue-loader@15.6.2@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@1.2.5@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.6.2@vue-loader/lib??vue-loader-options"
);
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"div\",\n { attrs: { id: \"app\" } },\n [\n _c(\n \"keep-alive\",\n {
\n attrs: {\n exclude:\n \"newsDetail,wallet,walletRetrieve,walletDetail,walletRecord,walletStatus\"\n }\n
},\n [_c(\"router-view\", { staticClass: \"router-view\" })],\n 1\n )\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/App.vue?./node_modules/_cache-loader@1.2.5@cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%22afd9f050-vue-loader-template%22%7D!./node_modules/_vue-loader@15.6.2@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@1.2.5@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.6.2@vue-loader/lib??vue-loader-options"
);
/***/
}),
/***/
}),
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment