增加音乐,摇一摇,服务等页面
This commit is contained in:
@@ -0,0 +1,898 @@
|
||||
//---------------start----------------------账单列表---------------------start-------------------
|
||||
var billData=[
|
||||
{
|
||||
"currentYear": 2023,
|
||||
"currentMonth": 11,
|
||||
"outputAmount": 1100,
|
||||
"inputAmount": 11000,
|
||||
"recordList":[
|
||||
{
|
||||
"tradeDirection": "in",
|
||||
"finishTime": "2023-11-07 14:59:00",
|
||||
"createTime": "2023-11-07 15:00:00",
|
||||
"tradeIcon": "/static/image/mycenter/default-record-icon.jpg",
|
||||
"tradeStatus": "2",
|
||||
"tradeTitle": "转账-来自莉莉-11",
|
||||
"tradeCode": "TJTC_1721784520610545664",
|
||||
"tradeValue": 10000,
|
||||
"id": 1635,
|
||||
"userId": 554,
|
||||
"tradeType":"6"
|
||||
},
|
||||
{
|
||||
"tradeDirection": "out",
|
||||
"finishTime": "2023-11-07 12:15:00",
|
||||
"createTime": "2023-11-07 12:15:00",
|
||||
"tradeIcon": "/static/image/mycenter/default-record-icon.jpg",
|
||||
"tradeStatus": "2",
|
||||
"tradeTitle": "转账给莉莉-11",
|
||||
"tradeCode": "TJTC_1721743291227176960",
|
||||
"tradeValue": 500,
|
||||
"id": 1630,
|
||||
"userId": 554,
|
||||
"tradeType": "6"
|
||||
},
|
||||
{
|
||||
"tradeDirection": "out",
|
||||
"finishTime": "2023-11-06 14:44:00",
|
||||
"createTime": "2023-11-06 14:44:00",
|
||||
"tradeIcon": "/static/image/mycenter/default-record-icon.jpg",
|
||||
"tradeStatus": "2",
|
||||
"tradeTitle": "微信红包-发给莉-11",
|
||||
"tradeCode": "TJTC_1721780784832053248",
|
||||
"tradeValue": 200,
|
||||
"id": 1633,
|
||||
"userId": 554,
|
||||
"tradeType": "6"
|
||||
},
|
||||
{
|
||||
"tradeDirection": "in",
|
||||
"finishTime": "2023-11-05 14:55:00",
|
||||
"createTime": "2023-11-05 14:55:00",
|
||||
"tradeIcon": "/static/image/mycenter/default-record-icon.jpg",
|
||||
"tradeStatus": "2",
|
||||
"tradeTitle": "11微信红包-来自莉莉",
|
||||
"tradeCode": "TJTC_1721783502145454080",
|
||||
"tradeValue": 200,
|
||||
"id": 1634,
|
||||
"userId": 554,
|
||||
"tradeType": "6"
|
||||
},
|
||||
{
|
||||
"tradeDirection": "in",
|
||||
"finishTime": "2023-09-07 14:59:00",
|
||||
"createTime": "2023-11-07 15:00:00",
|
||||
"tradeIcon": "/static/image/mycenter/default-record-icon.jpg",
|
||||
"tradeStatus": "2",
|
||||
"tradeTitle": "11转账-来自莉莉",
|
||||
"tradeCode": "TJTC_1721784520610545664",
|
||||
"tradeValue": 10000,
|
||||
"id": 1635,
|
||||
"userId": 554,
|
||||
"tradeType": "6"
|
||||
},
|
||||
{
|
||||
"tradeDirection": "out",
|
||||
"finishTime": "2023-11-07 12:15:00",
|
||||
"createTime": "2023-11-07 12:15:00",
|
||||
"tradeIcon": "/static/image/mycenter/default-record-icon.jpg",
|
||||
"tradeStatus": "2",
|
||||
"tradeTitle": "11转账给莉莉",
|
||||
"tradeCode": "TJTC_1721743291227176960",
|
||||
"tradeValue": 500,
|
||||
"id": 1630,
|
||||
"userId": 554,
|
||||
"tradeType": "6"
|
||||
},
|
||||
{
|
||||
"tradeDirection": "out",
|
||||
"finishTime": "2023-11-06 14:44:00",
|
||||
"createTime": "2023-11-06 14:44:00",
|
||||
"tradeIcon": "/static/image/mycenter/default-record-icon.jpg",
|
||||
"tradeStatus": "2",
|
||||
"tradeTitle": "11微信红包-发给莉",
|
||||
"tradeCode": "TJTC_1721780784832053248",
|
||||
"tradeValue": 200,
|
||||
"id": 1633,
|
||||
"userId": 554,
|
||||
"tradeType": "6"
|
||||
},
|
||||
{
|
||||
"tradeDirection": "in",
|
||||
"finishTime": "2023-11-05 14:55:00",
|
||||
"createTime": "2023-11-05 14:55:00",
|
||||
"tradeIcon": "/static/image/mycenter/default-record-icon.jpg",
|
||||
"tradeStatus": "2",
|
||||
"tradeTitle": "11微信红包-来自莉莉",
|
||||
"tradeCode": "TJTC_1721783502145454080",
|
||||
"tradeValue": 200,
|
||||
"id": 1634,
|
||||
"userId": 554,
|
||||
"tradeType": "6"
|
||||
},
|
||||
{
|
||||
"tradeDirection": "in",
|
||||
"finishTime": "2023-09-07 14:59:00",
|
||||
"createTime": "2023-11-07 15:00:00",
|
||||
"tradeIcon": "/static/image/mycenter/default-record-icon.jpg",
|
||||
"tradeStatus": "2",
|
||||
"tradeTitle": "11转账-来自莉莉",
|
||||
"tradeCode": "TJTC_1721784520610545664",
|
||||
"tradeValue": 10000,
|
||||
"id": 1635,
|
||||
"userId": 554,
|
||||
"tradeType": "6"
|
||||
},
|
||||
{
|
||||
"tradeDirection": "out",
|
||||
"finishTime": "2023-11-07 12:15:00",
|
||||
"createTime": "2023-11-07 12:15:00",
|
||||
"tradeIcon": "/static/image/mycenter/default-record-icon.jpg",
|
||||
"tradeStatus": "2",
|
||||
"tradeTitle": "11转账给莉莉",
|
||||
"tradeCode": "TJTC_1721743291227176960",
|
||||
"tradeValue": 500,
|
||||
"id": 1630,
|
||||
"userId": 554,
|
||||
"tradeType": "6"
|
||||
},
|
||||
{
|
||||
"tradeDirection": "out",
|
||||
"finishTime": "2023-11-06 14:44:00",
|
||||
"createTime": "2023-11-06 14:44:00",
|
||||
"tradeIcon": "/static/image/mycenter/default-record-icon.jpg",
|
||||
"tradeStatus": "2",
|
||||
"tradeTitle": "11微信红包-发给莉",
|
||||
"tradeCode": "TJTC_1721780784832053248",
|
||||
"tradeValue": 200,
|
||||
"id": 1633,
|
||||
"userId": 554,
|
||||
"tradeType": "6"
|
||||
},
|
||||
{
|
||||
"tradeDirection": "in",
|
||||
"finishTime": "2023-11-05 14:55:00",
|
||||
"createTime": "2023-11-05 14:55:00",
|
||||
"tradeIcon": "/static/image/mycenter/default-record-icon.jpg",
|
||||
"tradeStatus": "2",
|
||||
"tradeTitle": "11微信红包-来自莉莉",
|
||||
"tradeCode": "TJTC_1721783502145454080",
|
||||
"tradeValue": 200,
|
||||
"id": 1634,
|
||||
"userId": 554,
|
||||
"tradeType": "6"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"currentYear": 2023,
|
||||
"currentMonth": 10,
|
||||
"outputAmount": 1000,
|
||||
"inputAmount": 10000,
|
||||
"recordList": [
|
||||
{
|
||||
"tradeDirection": "in",
|
||||
"finishTime": "2023-09-07 14:59:00",
|
||||
"createTime": "2023-11-07 15:00:00",
|
||||
"tradeIcon": "/static/image/mycenter/default-record-icon.jpg",
|
||||
"tradeStatus": "2",
|
||||
"tradeTitle": "10转账-来自莉莉",
|
||||
"tradeCode": "TJTC_1721784520610545664",
|
||||
"tradeValue": 10000,
|
||||
"id": 1635,
|
||||
"userId": 554,
|
||||
"tradeType": "6"
|
||||
},
|
||||
{
|
||||
"tradeDirection": "out",
|
||||
"finishTime": "2023-11-07 12:15:00",
|
||||
"createTime": "2023-11-07 12:15:00",
|
||||
"tradeIcon": "/static/image/mycenter/default-record-icon.jpg",
|
||||
"tradeStatus": "2",
|
||||
"tradeTitle": "10转账给莉莉",
|
||||
"tradeCode": "TJTC_1721743291227176960",
|
||||
"tradeValue": 500,
|
||||
"id": 1630,
|
||||
"userId": 554,
|
||||
"tradeType": "6"
|
||||
},
|
||||
{
|
||||
"tradeDirection": "out",
|
||||
"finishTime": "2023-11-06 14:44:00",
|
||||
"createTime": "2023-11-06 14:44:00",
|
||||
"tradeIcon": "/static/image/mycenter/default-record-icon.jpg",
|
||||
"tradeStatus": "2",
|
||||
"tradeTitle": "10-微信红包-发给莉",
|
||||
"tradeCode": "TJTC_1721780784832053248",
|
||||
"tradeValue": 200,
|
||||
"id": 1633,
|
||||
"userId": 554,
|
||||
"tradeType": "6"
|
||||
},
|
||||
{
|
||||
"tradeDirection": "in",
|
||||
"finishTime": "2023-11-05 14:55:00",
|
||||
"createTime": "2023-11-05 14:55:00",
|
||||
"tradeIcon": "/static/image/mycenter/default-record-icon.jpg",
|
||||
"tradeStatus": "2",
|
||||
"tradeTitle": "10-微信红包-来自莉莉",
|
||||
"tradeCode": "TJTC_1721783502145454080",
|
||||
"tradeValue": 200,
|
||||
"id": 1634,
|
||||
"userId": 554,
|
||||
"tradeType": "6"
|
||||
},
|
||||
{
|
||||
"tradeDirection": "in",
|
||||
"finishTime": "2023-09-07 14:59:00",
|
||||
"createTime": "2023-11-07 15:00:00",
|
||||
"tradeIcon": "/static/image/mycenter/default-record-icon.jpg",
|
||||
"tradeStatus": "2",
|
||||
"tradeTitle": "10-转账-来自莉莉",
|
||||
"tradeCode": "TJTC_1721784520610545664",
|
||||
"tradeValue": 10000,
|
||||
"id": 1635,
|
||||
"userId": 554,
|
||||
"tradeType": "6"
|
||||
},
|
||||
{
|
||||
"tradeDirection": "out",
|
||||
"finishTime": "2023-11-07 12:15:00",
|
||||
"createTime": "2023-11-07 12:15:00",
|
||||
"tradeIcon": "/static/image/mycenter/default-record-icon.jpg",
|
||||
"tradeStatus": "2",
|
||||
"tradeTitle": "10-转账给莉莉",
|
||||
"tradeCode": "TJTC_1721743291227176960",
|
||||
"tradeValue": 500,
|
||||
"id": 1630,
|
||||
"userId": 554,
|
||||
"tradeType": "6"
|
||||
},
|
||||
{
|
||||
"tradeDirection": "out",
|
||||
"finishTime": "2023-11-06 14:44:00",
|
||||
"createTime": "2023-11-06 14:44:00",
|
||||
"tradeIcon": "/static/image/mycenter/default-record-icon.jpg",
|
||||
"tradeStatus": "2",
|
||||
"tradeTitle": "10-微信红包-发给莉",
|
||||
"tradeCode": "TJTC_1721780784832053248",
|
||||
"tradeValue": 200,
|
||||
"id": 1633,
|
||||
"userId": 554,
|
||||
"tradeType": "6"
|
||||
},
|
||||
{
|
||||
"tradeDirection": "in",
|
||||
"finishTime": "2023-11-05 14:55:00",
|
||||
"createTime": "2023-11-05 14:55:00",
|
||||
"tradeIcon": "/static/image/mycenter/default-record-icon.jpg",
|
||||
"tradeStatus": "2",
|
||||
"tradeTitle": "10-微信红包-来自莉莉",
|
||||
"tradeCode": "TJTC_1721783502145454080",
|
||||
"tradeValue": 200,
|
||||
"id": 1634,
|
||||
"userId": 554,
|
||||
"tradeType": "6"
|
||||
},
|
||||
{
|
||||
"tradeDirection": "in",
|
||||
"finishTime": "2023-09-07 14:59:00",
|
||||
"createTime": "2023-11-07 15:00:00",
|
||||
"tradeIcon": "/static/image/mycenter/default-record-icon.jpg",
|
||||
"tradeStatus": "2",
|
||||
"tradeTitle": "10-转账-来自莉莉",
|
||||
"tradeCode": "TJTC_1721784520610545664",
|
||||
"tradeValue": 10000,
|
||||
"id": 1635,
|
||||
"userId": 554,
|
||||
"tradeType": "6"
|
||||
},
|
||||
{
|
||||
"tradeDirection": "out",
|
||||
"finishTime": "2023-11-07 12:15:00",
|
||||
"createTime": "2023-11-07 12:15:00",
|
||||
"tradeIcon": "/static/image/mycenter/default-record-icon.jpg",
|
||||
"tradeStatus": "2",
|
||||
"tradeTitle": "10-转账给莉莉",
|
||||
"tradeCode": "TJTC_1721743291227176960",
|
||||
"tradeValue": 500,
|
||||
"id": 1630,
|
||||
"userId": 554,
|
||||
"tradeType": "6"
|
||||
},
|
||||
{
|
||||
"tradeDirection": "out",
|
||||
"finishTime": "2023-11-06 14:44:00",
|
||||
"createTime": "2023-11-06 14:44:00",
|
||||
"tradeIcon": "/static/image/mycenter/default-record-icon.jpg",
|
||||
"tradeStatus": "2",
|
||||
"tradeTitle": "10-微信红包-发给莉",
|
||||
"tradeCode": "TJTC_1721780784832053248",
|
||||
"tradeValue": 200,
|
||||
"id": 1633,
|
||||
"userId": 554,
|
||||
"tradeType": "6"
|
||||
},
|
||||
{
|
||||
"tradeDirection": "in",
|
||||
"finishTime": "2023-11-05 14:55:00",
|
||||
"createTime": "2023-11-05 14:55:00",
|
||||
"tradeIcon": "/static/image/mycenter/default-record-icon.jpg",
|
||||
"tradeStatus": "2",
|
||||
"tradeTitle": "10-微信红包-来自莉莉",
|
||||
"tradeCode": "TJTC_1721783502145454080",
|
||||
"tradeValue": 200,
|
||||
"id": 1634,
|
||||
"userId": 554,
|
||||
"tradeType": "6"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"currentYear": 2023,
|
||||
"currentMonth": 9,
|
||||
"outputAmount": 900,
|
||||
"inputAmount": 9000,
|
||||
"recordList": [
|
||||
{
|
||||
"tradeDirection": "in",
|
||||
"finishTime": "2023-09-07 14:59:00",
|
||||
"createTime": "2023-09-07 15:00:00",
|
||||
"tradeIcon": "/static/image/mycenter/default-record-icon.jpg",
|
||||
"tradeStatus": "2",
|
||||
"tradeTitle": "9-转账-来自莉莉",
|
||||
"tradeCode": "TJTC_1721784520610545664",
|
||||
"tradeValue": 10000,
|
||||
"id": 1635,
|
||||
"userId": 554,
|
||||
"tradeType": "6"
|
||||
},
|
||||
{
|
||||
"tradeDirection": "out",
|
||||
"finishTime": "2023-09-07 12:15:00",
|
||||
"createTime": "2023-09-07 12:15:00",
|
||||
"tradeIcon": "/static/image/mycenter/default-record-icon.jpg",
|
||||
"tradeStatus": "2",
|
||||
"tradeTitle": "9-转账给莉莉",
|
||||
"tradeCode": "TJTC_1721743291227176960",
|
||||
"tradeValue": 500,
|
||||
"id": 1630,
|
||||
"userId": 554,
|
||||
"tradeType": "6"
|
||||
},
|
||||
{
|
||||
"tradeDirection": "out",
|
||||
"finishTime": "2023-11-06 14:44:00",
|
||||
"createTime": "2023-11-06 14:44:00",
|
||||
"tradeIcon": "/static/image/mycenter/default-record-icon.jpg",
|
||||
"tradeStatus": "2",
|
||||
"tradeTitle": "9-微信红包-发给莉",
|
||||
"tradeCode": "TJTC_1721780784832053248",
|
||||
"tradeValue": 200,
|
||||
"id": 1633,
|
||||
"userId": 554,
|
||||
"tradeType": "6"
|
||||
},
|
||||
{
|
||||
"tradeDirection": "in",
|
||||
"finishTime": "2023-11-05 14:55:00",
|
||||
"createTime": "2023-11-05 14:55:00",
|
||||
"tradeIcon": "/static/image/mycenter/default-record-icon.jpg",
|
||||
"tradeStatus": "2",
|
||||
"tradeTitle": "9-微信红包-来自莉莉",
|
||||
"tradeCode": "TJTC_1721783502145454080",
|
||||
"tradeValue": 200,
|
||||
"id": 1634,
|
||||
"userId": 554,
|
||||
"tradeType": "6"
|
||||
},
|
||||
{
|
||||
"tradeDirection": "in",
|
||||
"finishTime": "2023-09-07 14:59:00",
|
||||
"createTime": "2023-11-07 15:00:00",
|
||||
"tradeIcon": "/static/image/mycenter/default-record-icon.jpg",
|
||||
"tradeStatus": "2",
|
||||
"tradeTitle": "9-转账-来自莉莉",
|
||||
"tradeCode": "TJTC_1721784520610545664",
|
||||
"tradeValue": 10000,
|
||||
"id": 1635,
|
||||
"userId": 554,
|
||||
"tradeType": "6"
|
||||
},
|
||||
{
|
||||
"tradeDirection": "out",
|
||||
"finishTime": "2023-11-07 12:15:00",
|
||||
"createTime": "2023-11-07 12:15:00",
|
||||
"tradeIcon": "/static/image/mycenter/default-record-icon.jpg",
|
||||
"tradeStatus": "2",
|
||||
"tradeTitle": "9-转账给莉莉",
|
||||
"tradeCode": "TJTC_1721743291227176960",
|
||||
"tradeValue": 500,
|
||||
"id": 1630,
|
||||
"userId": 554,
|
||||
"tradeType": "6"
|
||||
},
|
||||
{
|
||||
"tradeDirection": "out",
|
||||
"finishTime": "2023-11-06 14:44:00",
|
||||
"createTime": "2023-11-06 14:44:00",
|
||||
"tradeIcon": "/static/image/mycenter/default-record-icon.jpg",
|
||||
"tradeStatus": "2",
|
||||
"tradeTitle": "9-微信红包-发给莉",
|
||||
"tradeCode": "TJTC_1721780784832053248",
|
||||
"tradeValue": 200,
|
||||
"id": 1633,
|
||||
"userId": 554,
|
||||
"tradeType": "6"
|
||||
},
|
||||
{
|
||||
"tradeDirection": "in",
|
||||
"finishTime": "2023-11-05 14:55:00",
|
||||
"createTime": "2023-11-05 14:55:00",
|
||||
"tradeIcon": "/static/image/mycenter/default-record-icon.jpg",
|
||||
"tradeStatus": "2",
|
||||
"tradeTitle": "9-微信红包-来自莉莉",
|
||||
"tradeCode": "TJTC_1721783502145454080",
|
||||
"tradeValue": 200,
|
||||
"id": 1634,
|
||||
"userId": 554,
|
||||
"tradeType": "6"
|
||||
},
|
||||
{
|
||||
"tradeDirection": "in",
|
||||
"finishTime": "2023-09-07 14:59:00",
|
||||
"createTime": "2023-11-07 15:00:00",
|
||||
"tradeIcon": "/static/image/mycenter/default-record-icon.jpg",
|
||||
"tradeStatus": "2",
|
||||
"tradeTitle": "9-转账-来自莉莉",
|
||||
"tradeCode": "TJTC_1721784520610545664",
|
||||
"tradeValue": 10000,
|
||||
"id": 1635,
|
||||
"userId": 554,
|
||||
"tradeType": "6"
|
||||
},
|
||||
{
|
||||
"tradeDirection": "out",
|
||||
"finishTime": "2023-11-07 12:15:00",
|
||||
"createTime": "2023-11-07 12:15:00",
|
||||
"tradeIcon": "/static/image/mycenter/default-record-icon.jpg",
|
||||
"tradeStatus": "2",
|
||||
"tradeTitle": "9-转账给莉莉",
|
||||
"tradeCode": "TJTC_1721743291227176960",
|
||||
"tradeValue": 500,
|
||||
"id": 1630,
|
||||
"userId": 554,
|
||||
"tradeType": "6"
|
||||
},
|
||||
{
|
||||
"tradeDirection": "out",
|
||||
"finishTime": "2023-11-06 14:44:00",
|
||||
"createTime": "2023-11-06 14:44:00",
|
||||
"tradeIcon": "/static/image/mycenter/default-record-icon.jpg",
|
||||
"tradeStatus": "2",
|
||||
"tradeTitle": "9-微信红包-发给莉",
|
||||
"tradeCode": "TJTC_1721780784832053248",
|
||||
"tradeValue": 200,
|
||||
"id": 1633,
|
||||
"userId": 554,
|
||||
"tradeType": "6"
|
||||
},
|
||||
{
|
||||
"tradeDirection": "in",
|
||||
"finishTime": "2023-11-05 14:55:00",
|
||||
"createTime": "2023-11-05 14:55:00",
|
||||
"tradeIcon": "/static/image/mycenter/default-record-icon.jpg",
|
||||
"tradeStatus": "2",
|
||||
"tradeTitle": "9-微信红包-来自莉莉",
|
||||
"tradeCode": "TJTC_1721783502145454080",
|
||||
"tradeValue": 200,
|
||||
"id": 1634,
|
||||
"userId": 554,
|
||||
"tradeType": "6"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
function getRecordList(year,month,tradeType){
|
||||
console.log("=======year"+year+"====month==="+month+"=====type==="+tradeType);
|
||||
let tempData=JSON.parse(JSON.stringify(billData));
|
||||
let recordItem= tempData.find(item=>(item.currentYear==year&&item.currentMonth==month));
|
||||
console.log("recordItem===",recordItem);
|
||||
if(recordItem!=undefined&&recordItem!=null){
|
||||
recordItem.recordList=recordItem.recordList.filter(item=>item.tradeType==tradeType);
|
||||
return recordItem;
|
||||
}else{
|
||||
return {
|
||||
"currentYear": year,
|
||||
"currentMonth": month,
|
||||
"outputAmount": 0.00,
|
||||
"inputAmount": 0.00,
|
||||
"recordList":[]
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
function addItem(newItem,callback){
|
||||
let tempData=JSON.parse(JSON.stringify(billData));
|
||||
let recordItem= tempData.find((item,index)=>{
|
||||
return item.currentYear==year&&item.currentMonth==month
|
||||
})
|
||||
recordItem.recordList.push(newItem);
|
||||
billData=tempData;
|
||||
callback();
|
||||
}
|
||||
function deleteItem(delItem,callback){
|
||||
let tempData=JSON.parse(JSON.stringify(billData));
|
||||
let recordItem= tempData.find((item,index)=>{
|
||||
return item.currentYear==year&&item.currentMonth==month
|
||||
})
|
||||
recordItem.recordList=recordItem.recordList.filter((item)=>{
|
||||
return item.createTime!=delItem.createTime;
|
||||
});
|
||||
billData=tempData;
|
||||
callback();
|
||||
}
|
||||
function updateItem(updateItem,callback){
|
||||
let tempData=JSON.parse(JSON.stringify(billData));
|
||||
let recordItem= tempData.find((item,index)=>{
|
||||
return item.currentYear==year&&item.currentMonth==month
|
||||
})
|
||||
recordItem.recordList=recordItem.recordList.filter((item)=>{
|
||||
return item.createTime!=delItem.createTime;
|
||||
});
|
||||
addItem(updateItem,callback);
|
||||
}
|
||||
//---------------end----------------------账单列表---------------------end-------------------
|
||||
const tempChartData={
|
||||
"outdata": {
|
||||
"list": [
|
||||
{
|
||||
"id": 3,
|
||||
"trade_typetxt": "转账",
|
||||
"sum_value": "65906.00",
|
||||
"trade_icon": "/assets/icon/zd3.png",
|
||||
"sum_count": 18,
|
||||
"iconSrc": "http://weadmin1.fyhcard.com/assets/icon/zd3.png",
|
||||
"billTitle": "转账",
|
||||
"amountValue": "65906.00"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"trade_typetxt": "二维码收付款",
|
||||
"sum_value": "1348.40",
|
||||
"trade_icon": "/assets/icon/zd1.png",
|
||||
"sum_count": 17,
|
||||
"iconSrc": "http://weadmin1.fyhcard.com/assets/icon/zd1.png",
|
||||
"billTitle": "二维码收付款",
|
||||
"amountValue": "1348.40"
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"trade_typetxt": "微信红包",
|
||||
"sum_value": "326.00",
|
||||
"trade_icon": "/assets/icon/sh19.png",
|
||||
"sum_count": 2,
|
||||
"iconSrc": "http://weadmin1.fyhcard.com/assets/icon/sh19.png",
|
||||
"billTitle": "微信红包",
|
||||
"amountValue": "326.00"
|
||||
}
|
||||
],
|
||||
"money": 81127.53,
|
||||
"count": 54,
|
||||
"month_list": {
|
||||
"month": [
|
||||
"06月",
|
||||
"07月",
|
||||
"08月",
|
||||
"09月",
|
||||
"10月",
|
||||
"11月"
|
||||
],
|
||||
"money": [
|
||||
136253.37,
|
||||
140794.18,
|
||||
140792.95,
|
||||
136254.18,
|
||||
140792.97,
|
||||
81127.53
|
||||
],
|
||||
"list": [
|
||||
{
|
||||
"money": 136253.37,
|
||||
"month": "06月"
|
||||
},
|
||||
{
|
||||
"money": 140794.18,
|
||||
"month": "07月"
|
||||
},
|
||||
{
|
||||
"money": 140792.95,
|
||||
"month": "08月"
|
||||
},
|
||||
{
|
||||
"money": 136254.18,
|
||||
"month": "09月"
|
||||
},
|
||||
{
|
||||
"money": 140792.97,
|
||||
"month": "10月"
|
||||
},
|
||||
{
|
||||
"money": 81127.53,
|
||||
"month": "11月"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"indata": {
|
||||
"list": [
|
||||
{
|
||||
"id": 1,
|
||||
"trade_typetxt": "二维码收付款",
|
||||
"sum_value": "62803.00",
|
||||
"trade_icon": "/assets/icon/zd1.png",
|
||||
"sum_count": 24,
|
||||
"iconSrc": "http://weadmin1.fyhcard.com/assets/icon/zd1.png",
|
||||
"billTitle": "二维码收付款",
|
||||
"amountValue": "62803.00"
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"trade_typetxt": "转账",
|
||||
"sum_value": "5591.00",
|
||||
"trade_icon": "/assets/icon/zd3.png",
|
||||
"sum_count": 10,
|
||||
"iconSrc": "http://weadmin1.fyhcard.com/assets/icon/zd3.png",
|
||||
"billTitle": "转账",
|
||||
"amountValue": "5591.00"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"trade_typetxt": "微信红包",
|
||||
"sum_value": "137.00",
|
||||
"trade_icon": "/assets/icon/sh19.png",
|
||||
"sum_count": 4,
|
||||
"iconSrc": "http://weadmin1.fyhcard.com/assets/icon/sh19.png",
|
||||
"billTitle": "微信红包",
|
||||
"amountValue": "137.00"
|
||||
}
|
||||
],
|
||||
"money": 119630,
|
||||
"count": 46,
|
||||
"month_list": {
|
||||
"month": [
|
||||
"06月",
|
||||
"07月",
|
||||
"08月",
|
||||
"09月",
|
||||
"10月",
|
||||
"11月"
|
||||
],
|
||||
"money": [
|
||||
137061,
|
||||
130787,
|
||||
152473,
|
||||
120999,
|
||||
157692,
|
||||
119630
|
||||
],
|
||||
"list": [
|
||||
{
|
||||
"money": 137061,
|
||||
"month": "06月"
|
||||
},
|
||||
{
|
||||
"money": 130787,
|
||||
"month": "07月"
|
||||
},
|
||||
{
|
||||
"money": 152473,
|
||||
"month": "08月"
|
||||
},
|
||||
{
|
||||
"money": 120999,
|
||||
"month": "09月"
|
||||
},
|
||||
{
|
||||
"money": 157692,
|
||||
"month": "10月"
|
||||
},
|
||||
{
|
||||
"money": 119630,
|
||||
"month": "11月"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"otherdata": {
|
||||
"list": [
|
||||
{
|
||||
"id": 3,
|
||||
"trade_typetxt": "零钱充值",
|
||||
"sum_value": "50850.00",
|
||||
"trade_icon": "/assets/icon/sh20.png",
|
||||
"sum_count": 7,
|
||||
"iconSrc": "http://weadmin1.fyhcard.com/assets/icon/sh20.png",
|
||||
"billTitle": "零钱充值",
|
||||
"amountValue": "50850.00"
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"trade_typetxt": "零钱提现",
|
||||
"sum_value": "13000.00",
|
||||
"trade_icon": "/assets/icon/sh20.png",
|
||||
"sum_count": 9,
|
||||
"iconSrc": "http://weadmin1.fyhcard.com/assets/icon/sh20.png",
|
||||
"billTitle": "零钱提现",
|
||||
"amountValue": "13000.00"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"trade_typetxt": "信用卡还款",
|
||||
"sum_value": "249.00",
|
||||
"trade_icon": "/assets/icon/sh8.png",
|
||||
"sum_count": 1,
|
||||
"iconSrc": "http://weadmin1.fyhcard.com/assets/icon/sh8.png",
|
||||
"billTitle": "信用卡还款",
|
||||
"amountValue": "249.00"
|
||||
}
|
||||
]
|
||||
},
|
||||
"sumoutdata": {
|
||||
"list": [
|
||||
{
|
||||
"id": 3,
|
||||
"trade_typetxt": "转账",
|
||||
"sum_value": "817456.00",
|
||||
"trade_icon": "/assets/icon/nzz.png",
|
||||
"sum_count": 190,
|
||||
"iconSrc": "http://weadmin1.fyhcard.com/assets/icon/nzz.png",
|
||||
"billTitle": "转账",
|
||||
"amountValue": "817456.00",
|
||||
"percentValue": 95.81,
|
||||
"color": "#0ABF5E"
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"trade_typetxt": "消费支出",
|
||||
"sum_value": "18745.78",
|
||||
"trade_icon": "/assets/icon/nxfzc.png",
|
||||
"sum_count": 263,
|
||||
"iconSrc": "http://weadmin1.fyhcard.com/assets/icon/nxfzc.png",
|
||||
"billTitle": "消费支出",
|
||||
"amountValue": "18745.78",
|
||||
"percentValue": 2.2,
|
||||
"color": "#57A3F9"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"trade_typetxt": "发红包",
|
||||
"sum_value": "4024.00",
|
||||
"trade_icon": "/assets/icon/nfhb.png",
|
||||
"sum_count": 43,
|
||||
"iconSrc": "http://weadmin1.fyhcard.com/assets/icon/nfhb.png",
|
||||
"billTitle": "发红包",
|
||||
"amountValue": "4024.00",
|
||||
"percentValue": 0.47,
|
||||
"color": "#fa3534"
|
||||
}
|
||||
],
|
||||
"money": 853225.78,
|
||||
"count": 505
|
||||
},
|
||||
"sumindata": {
|
||||
"list": [
|
||||
{
|
||||
"id": 1,
|
||||
"trade_typetxt": "二维码收款",
|
||||
"sum_value": "724802.00",
|
||||
"trade_icon": "/assets/icon/newm.png",
|
||||
"sum_count": 274,
|
||||
"iconSrc": "http://weadmin1.fyhcard.com/assets/icon/newm.png",
|
||||
"billTitle": "二维码收款",
|
||||
"amountValue": "724802.00",
|
||||
"percentValue": 81.22,
|
||||
"color": "#D7B746"
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"trade_typetxt": "收转账",
|
||||
"sum_value": "114567.00",
|
||||
"trade_icon": "/assets/icon/nzz.png",
|
||||
"sum_count": 91,
|
||||
"iconSrc": "http://weadmin1.fyhcard.com/assets/icon/nzz.png",
|
||||
"billTitle": "收转账",
|
||||
"amountValue": "114567.00",
|
||||
"percentValue": 12.84,
|
||||
"color": "#0ABF5E"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"trade_typetxt": "收红包",
|
||||
"sum_value": "1966.00",
|
||||
"trade_icon": "/assets/icon/nfhb.png",
|
||||
"sum_count": 33,
|
||||
"iconSrc": "http://weadmin1.fyhcard.com/assets/icon/nfhb.png",
|
||||
"billTitle": "收红包",
|
||||
"amountValue": "1966.00",
|
||||
"percentValue": 0.22,
|
||||
"color": "#fa3534"
|
||||
}
|
||||
],
|
||||
"money": 892434,
|
||||
"count": 406
|
||||
},
|
||||
"sumotherdata": {
|
||||
"list": [
|
||||
{
|
||||
"id": 3,
|
||||
"trade_typetxt": "零钱充值",
|
||||
"sum_value": "50850.00",
|
||||
"trade_icon": "/assets/icon/nlq.png",
|
||||
"sum_count": 7,
|
||||
"iconSrc": "http://weadmin1.fyhcard.com/assets/icon/nlq.png",
|
||||
"billTitle": "零钱充值",
|
||||
"title": "零钱充值",
|
||||
"amountValue": "50850.00",
|
||||
"percentValue": 7,
|
||||
"color": "#be8913"
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"trade_typetxt": "零钱提现",
|
||||
"sum_value": "13000.00",
|
||||
"trade_icon": "/assets/icon/nlq.png",
|
||||
"sum_count": 9,
|
||||
"iconSrc": "http://weadmin1.fyhcard.com/assets/icon/nlq.png",
|
||||
"billTitle": "零钱提现",
|
||||
"title": "零钱提现",
|
||||
"amountValue": "13000.00",
|
||||
"percentValue": 9,
|
||||
"color": "#3d7a25"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"trade_typetxt": "信用卡还款",
|
||||
"sum_value": "249.00",
|
||||
"trade_icon": "/assets/icon/nxyk.png",
|
||||
"sum_count": 1,
|
||||
"iconSrc": "http://weadmin1.fyhcard.com/assets/icon/nxyk.png",
|
||||
"billTitle": "信用卡还款",
|
||||
"title": "信用卡还款",
|
||||
"amountValue": "249.00",
|
||||
"percentValue": 1,
|
||||
"color": "#a254e0"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
//---------------start----------------------账单统计数据---------------------start-------------------
|
||||
|
||||
function getChartData(param){
|
||||
console.log("=======获取图表数据参数======",param);
|
||||
console.log("----------------------!!!!!!!!!!注意!!!!!!!!!!!!!这里只模拟了一组数据!!!!!!!!注意!!!!!!!!!!=============");
|
||||
return tempChartData;
|
||||
};
|
||||
|
||||
//
|
||||
|
||||
module.exports = {
|
||||
tempBillList:billData,
|
||||
tempChartData:tempChartData,
|
||||
queryRecordList:function(year,month,tradeType){
|
||||
return getRecordList(year,month,tradeType)
|
||||
},
|
||||
addItem:function(newItem,callback){
|
||||
return addItem(newItem,callback)
|
||||
},
|
||||
updateItem:function(newItem,callback){
|
||||
return updateItem(newItem,callback)
|
||||
},
|
||||
deleteItem:function(newItem,callback){
|
||||
return deleteItem(newItem,callback)
|
||||
},
|
||||
getChartData:function(param){
|
||||
return getChartData(param)
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user