|
|
@@ -19,7 +19,7 @@
|
|
|
<div class="text2">{{ moneyInfo.money || 0 }}</div>
|
|
|
</div>
|
|
|
|
|
|
- <van-button type="default" size="small">
|
|
|
+ <van-button type="default" size="small" @click="Withdrawal">
|
|
|
提现
|
|
|
</van-button>
|
|
|
</div>
|
|
|
@@ -65,10 +65,32 @@ export default {
|
|
|
return {
|
|
|
moneyInfo: {},
|
|
|
time: 0,
|
|
|
- option1: [{ text: '2012年5月', value: 0 }],
|
|
|
+ newDate: [],
|
|
|
+ option1: [
|
|
|
+ { text: '2012年1月', value: 0 },
|
|
|
+ { text: '2012年2月', value: 1 },
|
|
|
+ { text: '2012年3月', value: 2 },
|
|
|
+ { text: '2012年4月', value: 3 },
|
|
|
+ { text: '2012年5月', value: 4 },
|
|
|
+ { text: '2012年6月', value: 5 },
|
|
|
+ { text: '2012年7月', value: 6 },
|
|
|
+ { text: '2012年8月', value: 7 },
|
|
|
+ { text: '2012年9月', value: 8 },
|
|
|
+ { text: '2012年10月', value: 9 },
|
|
|
+ { text: '2012年11月', value: 10 },
|
|
|
+ { text: '2012年12月', value: 11 }
|
|
|
+ ],
|
|
|
empty: true
|
|
|
};
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ dataList() {
|
|
|
+ let info = [...this.newDate].find(item => {
|
|
|
+ return item.text;
|
|
|
+ });
|
|
|
+ return info;
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
loginMethods() {
|
|
|
this.$http.get('/memberInfo/findByUser').then(res => {
|
|
|
@@ -79,6 +101,15 @@ export default {
|
|
|
this.$http.postJson('/memberInfo/all', {
|
|
|
query: {}
|
|
|
});
|
|
|
+ },
|
|
|
+ Withdrawal() {
|
|
|
+ this.newDate = this.option1;
|
|
|
+ console.log(this.dataList.text);
|
|
|
+ this.$http
|
|
|
+ .get('/transactionRecord/showMyTransactionRecords', { yearMonth: this.dataList.text })
|
|
|
+ .then(res => {
|
|
|
+ console.log(res);
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
};
|