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
a9f3543a
authored
May 15, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
js
parent
8226644a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
13 deletions
src/views/wallet/Record.vue
src/views/wallet/WalletDetail.vue
view/24.js
view/26.js
src/views/wallet/Record.vue
View file @
a9f3543a
...
...
@@ -24,16 +24,14 @@
</
template
>
<
template
v-else
>
<li
class=
"no-data"
>
<
p
style=
"color: #333;width: 80%;margin: 0 auto;font-size: 13px;margin-top: 28px;"
>
您的钱包当前还没有记录哦,去看看商品吧~
<a
style=
"color: #1080d0;"
href=
"/v3/s"
>
去搜索
</a></p
>
</li>
<
i
class=
"iconfont icon-zanwushuju"
style=
"color: #999;margin: 0 auto;display: block;text-align: center;font-size: 90px;padding-top: 60px;"
></i
>
<p
style=
"color: #333;width: 80%;margin: 0 auto;font-size: 13px;margin-top: 28px;"
>
您的钱包当前还没有记录哦,去看看商品吧~
<a
style=
"color: #1080d0;"
href=
"/v3/s"
>
去搜索
</a></p>
</li>
</
template
>
</ul>
<van-popup
v-model=
"dateShow"
position=
"bottom"
:overlay=
"true"
>
<van-datetime-picker
v-model=
"currentDate"
type=
"year-month"
:formatter=
"formatter"
@
cancel=
"onDateCancel"
@
confirm=
"onDateConfirm"
@
change=
"dateChange"
/>
</van-popup>
<van-popup
v-model=
"typeShow"
position=
"bottom"
:overlay=
"true"
>
<van-picker
show-toolbar
title=
"交易类型"
:columns=
"columns"
@
cancel=
"onTypeCancel"
@
confirm=
"onTypeConfirm"
/>
</van-popup>
</div>
<!--记录类型弹出框-->
<div
class=
"dialog-layer-shade"
v-if=
"dialog"
>
...
...
@@ -209,15 +207,13 @@
})
},
onTypeConfirm
(
value
,
index
)
{
this
.
dialog
=
false
;
this
.
active
=
index
;
this
.
text
=
this
.
columns
[
index
].
text
;
this
.
typeCheckedkeyId
=
value
.
keyId
;
this
.
typeCheckedText
=
value
.
text
;
this
.
typeCheckedkeyId
=
value
;
this
.
recordYear
=
this
.
updateYear
||
this
.
recordYear
;
this
.
recordMonth
=
this
.
updateMonth
||
this
.
recordMonth
;
...
...
src/views/wallet/WalletDetail.vue
View file @
a9f3543a
...
...
@@ -214,8 +214,7 @@
this
.
active
=
index
;
this
.
text
=
this
.
columns
[
index
].
text
;
this
.
typeCheckedkeyId
=
value
.
keyId
;
this
.
typeCheckedText
=
value
.
text
;
this
.
typeCheckedkeyId
=
value
;
this
.
dateYear
=
this
.
updateYear
||
this
.
dateYear
;
this
.
dateMonth
=
this
.
updateMonth
||
this
.
dateMonth
;
...
...
view/24.js
View file @
a9f3543a
...
...
@@ -8,7 +8,7 @@
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"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: 'walletRecord',\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 || 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: 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
core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es6.promise */ \"./node_modules/_core-js@2.6.3@core-js/modules/es6.promise.js\");\n/* harmony import */ var core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es6.symbol */ \"./node_modules/_core-js@2.6.3@core-js/modules/es6.symbol.js\");\n/* harmony import */ var core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.5.22@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_6__ = __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_7__ = __webpack_require__(/*! @/views/common/Header.vue */ \"./src/views/common/Header.vue\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_8__ = __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_5__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_8__[\"Icon\"]).use(vant__WEBPACK_IMPORTED_MODULE_8__[\"Popup\"]).use(vant__WEBPACK_IMPORTED_MODULE_8__[\"DatetimePicker\"]).use(vant__WEBPACK_IMPORTED_MODULE_8__[\"Picker\"]).use(vant__WEBPACK_IMPORTED_MODULE_8__[\"Toast\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'walletRecord',\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_6__[\"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 || 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: 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;\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_7
__[\"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"
);
/***/
}),
...
...
@@ -20,7 +20,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"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 \"section\",\n { staticClass: \"wallet-record\" },\n [\n _c(\"Header\", { attrs: { title: _vm.title, meaushow: _vm.meaushow } }),\n _c(\n \"div\",\n { staticClass: \"record-content\" },\n [\n _c(\n \"div\",\n { staticClass: \"record-type\", on: { click: _vm.showPopType } },\n [\n _vm._v(_vm._s(_vm.text)),\n _c(\"van-icon\", {\n staticClass: \"va-m\",\n staticStyle: { \"font-size\": \"20px\", \"margin-left\": \"5px\" },\n attrs: { name: \"arrow-down\" }\n })\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"record-date\" }, [\n _c(\n \"span\",\n { on: { click: _vm.showPopDate } },\n [\n _vm._v(\n _vm._s(_vm.recordYear) +\n \"年\" +\n _vm._s(_vm.recordMonth) +\n \"月 \"\n ),\n _c(\"van-icon\", {\n staticClass: \"va-m\",\n staticStyle: { \"font-size\": \"16px\" },\n attrs: { name: \"arrow-down\" }\n })\n ],\n 1\n )\n ]),\n _c(\n \"ul\",\n { staticClass: \"record-detail\" },\n [\n _vm.walletRecordData.length > 0\n ? _vm._l(_vm.walletRecordData, function(item, index) {\n return _c(\"li\", { key: index }, [\n _c(\"div\", { staticClass: \"record-item\" }, [\n _c(\"span\", [\n _vm._v(\n _vm._s(\n item.wallet_type == 1 ? \"钱包充值\" : \"钱包提现\"\n )\n )\n ]),\n _c(\"br\"),\n _vm._v(_vm._s(item.create_time))\n ]),\n item.wallet_type == 2\n ? _c(\"div\", { staticClass: \"record-num\" }, [\n _vm._v(\n \"\\n \" +\n _vm._s(item.amount_format)\n ),\n _c(\"br\"),\n item.status == 1\n ? _c(\"span\", { staticClass: \"withdrawText\" }, [\n _vm._v(\"提现中\")\n ])\n : _c(\"span\", { staticClass: \"successText\" }, [\n _vm._v(\"已完成\")\n ])\n ])\n : _vm._e(),\n item.wallet_type == 1\n ? _c(\"div\", { staticClass: \"record-num\" }, [\n _vm._v(\n \"\\n \" +\n _vm._s(item.amount_format)\n ),\n _c(\"br\"),\n item.status == 1\n ? _c(\n \"span\",\n {\n staticClass: \"rechargeBtn\",\n on: {\n click: function($event) {\n _vm.detail(item.amount)\n }\n }\n },\n [_vm._v(\"待支付\")]\n )\n : _c(\"span\", { staticClass: \"successText\" }, [\n _vm._v(\"已完成\")\n ])\n ])\n : _vm._e()\n ])\n })\n : [_vm._m(0)]\n ],\n 2\n ),\n _c(\n \"van-popup\",\n {\n attrs: { position: \"bottom\", overlay: true },\n model: {\n value: _vm.dateShow,\n callback: function($$v) {\n _vm.dateShow = $$v\n },\n expression: \"dateShow\"\n }\n },\n [\n _c(\"van-datetime-picker\", {\n attrs: { type: \"year-month\", formatter: _vm.formatter },\n on: {\n cancel: _vm.onDateCancel,\n confirm: _vm.onDateConfirm,\n change: _vm.dateChange\n },\n model: {\n value: _vm.currentDate,\n callback: function($$v) {\n _vm.currentDate = $$v\n },\n expression: \"currentDate\"\n }\n })\n ],\n 1\n )
,\n _c(\n \"van-popup\",\n {\n attrs: { position: \"bottom\", overlay: true },\n model: {\n value: _vm.typeShow,\n callback: function($$v) {\n _vm.typeShow = $$v\n },\n expression: \"typeShow\"\n }\n },\n [\n _c(\"van-picker\", {\n attrs: {\n \"show-toolbar\": \"\",\n title: \"交易类型\",\n columns: _vm.columns\n },\n on: { cancel: _vm.onTypeCancel, confirm: _vm.onTypeConfirm }\n })\n ],\n 1\n )\n ],\n 1\n ),\n _vm.dialog\n ? _c(\"div\", { staticClass: \"dialog-layer-shade\" }, [\n _c(\"div\", { staticClass: \"dialog-layer\" }, [\n _c(\"p\", { staticClass: \"tit\" }, [_vm._v(\"交易类型\")]),\n _c(\n \"ul\",\n { staticClass: \"tab boxsiz\" },\n _vm._l(_vm.columns, function(item, index) {\n return _c(\n \"li\",\n {\n key: index,\n class: { curr: _vm.active == index },\n on: {\n click: function($event) {\n _vm.onTypeConfirm(item.keyId, index)\n }\n }\n },\n [_vm._v(_vm._s(item.text))]\n )\n }),\n 0\n ),\n _c(\n \"a\",\n {\n staticClass: \"btn\",\n attrs: { href: \"javascript:;\" },\n on: {\n click: function($event) {\n _vm.dialog = false\n }\n }\n },\n [_vm._v(\"取消\")]\n )\n ])\n ])\n : _vm._e()\n ],\n 1\n )\n}\nvar staticRenderFns = [\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"li\", { staticClass: \"no-data\" }, [
\n _c(\n \"p\",\n {\n staticStyle: {\n color: \"#333\",\n width: \"80%\",\n margin: \"0 auto\",\n \"font-size\": \"13px\",\n \"margin-top\": \"28px\"\n }\n },\n [\n _vm._v(\"您的钱包当前还没有记录哦,去看看商品吧~ \"),\n _c(\n \"a\",\n { staticStyle: { color: \"#1080d0\" }, attrs: { href: \"/v3/s\" } },\n [_vm._v(\"去搜索\")]\n )\n ]\n )\n ])\n }\n]\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/views/wallet/Record.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 \"section\",\n { staticClass: \"wallet-record\" },\n [\n _c(\"Header\", { attrs: { title: _vm.title, meaushow: _vm.meaushow } }),\n _c(\n \"div\",\n { staticClass: \"record-content\" },\n [\n _c(\n \"div\",\n { staticClass: \"record-type\", on: { click: _vm.showPopType } },\n [\n _vm._v(_vm._s(_vm.text)),\n _c(\"van-icon\", {\n staticClass: \"va-m\",\n staticStyle: { \"font-size\": \"20px\", \"margin-left\": \"5px\" },\n attrs: { name: \"arrow-down\" }\n })\n ],\n 1\n ),\n _c(\"div\", { staticClass: \"record-date\" }, [\n _c(\n \"span\",\n { on: { click: _vm.showPopDate } },\n [\n _vm._v(\n _vm._s(_vm.recordYear) +\n \"年\" +\n _vm._s(_vm.recordMonth) +\n \"月 \"\n ),\n _c(\"van-icon\", {\n staticClass: \"va-m\",\n staticStyle: { \"font-size\": \"16px\" },\n attrs: { name: \"arrow-down\" }\n })\n ],\n 1\n )\n ]),\n _c(\n \"ul\",\n { staticClass: \"record-detail\" },\n [\n _vm.walletRecordData.length > 0\n ? _vm._l(_vm.walletRecordData, function(item, index) {\n return _c(\"li\", { key: index }, [\n _c(\"div\", { staticClass: \"record-item\" }, [\n _c(\"span\", [\n _vm._v(\n _vm._s(\n item.wallet_type == 1 ? \"钱包充值\" : \"钱包提现\"\n )\n )\n ]),\n _c(\"br\"),\n _vm._v(_vm._s(item.create_time))\n ]),\n item.wallet_type == 2\n ? _c(\"div\", { staticClass: \"record-num\" }, [\n _vm._v(\n \"\\n \" +\n _vm._s(item.amount_format)\n ),\n _c(\"br\"),\n item.status == 1\n ? _c(\"span\", { staticClass: \"withdrawText\" }, [\n _vm._v(\"提现中\")\n ])\n : _c(\"span\", { staticClass: \"successText\" }, [\n _vm._v(\"已完成\")\n ])\n ])\n : _vm._e(),\n item.wallet_type == 1\n ? _c(\"div\", { staticClass: \"record-num\" }, [\n _vm._v(\n \"\\n \" +\n _vm._s(item.amount_format)\n ),\n _c(\"br\"),\n item.status == 1\n ? _c(\n \"span\",\n {\n staticClass: \"rechargeBtn\",\n on: {\n click: function($event) {\n _vm.detail(item.amount)\n }\n }\n },\n [_vm._v(\"待支付\")]\n )\n : _c(\"span\", { staticClass: \"successText\" }, [\n _vm._v(\"已完成\")\n ])\n ])\n : _vm._e()\n ])\n })\n : [_vm._m(0)]\n ],\n 2\n ),\n _c(\n \"van-popup\",\n {\n attrs: { position: \"bottom\", overlay: true },\n model: {\n value: _vm.dateShow,\n callback: function($$v) {\n _vm.dateShow = $$v\n },\n expression: \"dateShow\"\n }\n },\n [\n _c(\"van-datetime-picker\", {\n attrs: { type: \"year-month\", formatter: _vm.formatter },\n on: {\n cancel: _vm.onDateCancel,\n confirm: _vm.onDateConfirm,\n change: _vm.dateChange\n },\n model: {\n value: _vm.currentDate,\n callback: function($$v) {\n _vm.currentDate = $$v\n },\n expression: \"currentDate\"\n }\n })\n ],\n 1\n )
\n ],\n 1\n ),\n _vm.dialog\n ? _c(\"div\", { staticClass: \"dialog-layer-shade\" }, [\n _c(\"div\", { staticClass: \"dialog-layer\" }, [\n _c(\"p\", { staticClass: \"tit\" }, [_vm._v(\"交易类型\")]),\n _c(\n \"ul\",\n { staticClass: \"tab boxsiz\" },\n _vm._l(_vm.columns, function(item, index) {\n return _c(\n \"li\",\n {\n key: index,\n class: { curr: _vm.active == index },\n on: {\n click: function($event) {\n _vm.onTypeConfirm(item.keyId, index)\n }\n }\n },\n [_vm._v(_vm._s(item.text))]\n )\n }),\n 0\n ),\n _c(\n \"a\",\n {\n staticClass: \"btn\",\n attrs: { href: \"javascript:;\" },\n on: {\n click: function($event) {\n _vm.dialog = false\n }\n }\n },\n [_vm._v(\"取消\")]\n )\n ])\n ])\n : _vm._e()\n ],\n 1\n )\n}\nvar staticRenderFns = [\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"li\", { staticClass: \"no-data\" }, [\n _c(\"i\", {\n staticClass: \"iconfont icon-zanwushuju\",\n staticStyle: {\n color: \"#999\",\n margin: \"0 auto\",\n display: \"block\",\n \"text-align\": \"center\",\n \"font-size\": \"90px\",\n \"padding-top\": \"60px\"\n }\n }),
\n _c(\n \"p\",\n {\n staticStyle: {\n color: \"#333\",\n width: \"80%\",\n margin: \"0 auto\",\n \"font-size\": \"13px\",\n \"margin-top\": \"28px\"\n }\n },\n [\n _vm._v(\"您的钱包当前还没有记录哦,去看看商品吧~ \"),\n _c(\n \"a\",\n { staticStyle: { color: \"#1080d0\" }, attrs: { href: \"/v3/s\" } },\n [_vm._v(\"去搜索\")]\n )\n ]\n )\n ])\n }\n]\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/views/wallet/Record.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"
);
/***/
}),
...
...
view/26.js
View file @
a9f3543a
...
...
@@ -8,7 +8,7 @@
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"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\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: 'walletDetail',\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 || 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: 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\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: 'walletDetail',\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 || 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: 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;\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"
);
/***/
}),
...
...
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