mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-20 20:06:44 +08:00
样式,接口修改
This commit is contained in:
@@ -41,7 +41,7 @@ export function getAgentInfo(data) {
|
|||||||
export function getAgentIncome(data) {
|
export function getAgentIncome(data) {
|
||||||
return request({
|
return request({
|
||||||
// url: getUrl('/agent/income/info', 0),
|
// url: getUrl('/agent/income/info', 0),
|
||||||
url: getUrl('/agent/agent/income/info', 1),
|
url: getUrl('/agent/agentTransform/income/info', 1),
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<van-button round color="#e9332f" size="mini">当月</van-button>
|
<van-button round color="#e9332f" size="mini">当月</van-button>
|
||||||
<span class="ml10" style="font-size: 14px;" @click="showDatePicker = true">选择日期</span>
|
<span class="ml10" style="font-size: 14px;" @click="showDatePicker = true">选择日期</span>
|
||||||
</div>
|
</div>
|
||||||
<van-row>
|
<van-row class="stickyContent">
|
||||||
<van-col span="24">
|
<van-col span="24">
|
||||||
<div id="date-picker">
|
<div id="date-picker">
|
||||||
<!-- 收入展示面板 -->
|
<!-- 收入展示面板 -->
|
||||||
@@ -30,8 +30,8 @@
|
|||||||
|
|
||||||
<!-- 输入具体内容 -->
|
<!-- 输入具体内容 -->
|
||||||
<van-row class="moneyContent" v-for="(item, index) in moneyData" :key="index">
|
<van-row class="moneyContent" v-for="(item, index) in moneyData" :key="index">
|
||||||
<van-col class="text-center" span="12">{{ item.payRollMoney }}</van-col>
|
|
||||||
<van-col class="text-center" span="12">{{ item.payRollName }}</van-col>
|
<van-col class="text-center" span="12">{{ item.payRollName }}</van-col>
|
||||||
|
<van-col class="text-center" span="12">{{ item.payRollMoney }}</van-col>
|
||||||
</van-row>
|
</van-row>
|
||||||
|
|
||||||
<!-- 日期选择 -->
|
<!-- 日期选择 -->
|
||||||
@@ -49,9 +49,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// import echarts from 'echarts'
|
|
||||||
import { Sticky, List, Button, Collapse, CollapseItem, Cell, CellGroup, DatetimePicker, Popup, Row, Col, Tab, Tabs } from 'vant'
|
import { Sticky, List, Button, Collapse, CollapseItem, Cell, CellGroup, DatetimePicker, Popup, Row, Col, Tab, Tabs } from 'vant'
|
||||||
import { getAgentIncome } from '@/api/ebiz/my/my.js'
|
import { getAgentIncome } from '@/api/ebiz/my/my.js'
|
||||||
|
import formatter from '@/assets/js/utils/date-utils.js'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -126,15 +126,21 @@ export default {
|
|||||||
currentDate: new Date(),
|
currentDate: new Date(),
|
||||||
active: 2,
|
active: 2,
|
||||||
echartsShow: true, // 展示 echarts 对应的 tab 栏
|
echartsShow: true, // 展示 echarts 对应的 tab 栏
|
||||||
monthActualPay: '', // 当月实付
|
monthActualPay: 0, // 当月实付
|
||||||
monthShouldPay: 7340, // 当月应付
|
monthShouldPay: 0, // 当月应付
|
||||||
rewardInfoList: [], // 收益明细
|
rewardInfoList: [], // 收益明细
|
||||||
paymentInfo: {} // 加扣款明细
|
paymentInfo: {} // 加扣款明细
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
const monthDate = this.$options.filters.timeFormat(this.currentDate, 'YYYYDD')
|
// let currentMonth = formatter.formatDate(new Date(), 'YYYYMM')
|
||||||
this.getIncomeInfo(monthDate)
|
// this.getIncomeInfo(currentMonth)
|
||||||
|
for (let i = 0; i < 20; i++) {
|
||||||
|
this.moneyData.push({
|
||||||
|
payRollMoney: 1000,
|
||||||
|
payRollName: 'xxxx'
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
// 基于准备好的dom,初始化echarts实例
|
// 基于准备好的dom,初始化echarts实例
|
||||||
@@ -144,10 +150,6 @@ export default {
|
|||||||
// 设置背景颜色
|
// 设置背景颜色
|
||||||
// document.body.style.backgroundColor = '#fff'
|
// document.body.style.backgroundColor = '#fff'
|
||||||
},
|
},
|
||||||
beforeRouteLeave(to, from, next) {
|
|
||||||
document.body.style.backgroundColor = ''
|
|
||||||
next()
|
|
||||||
},
|
|
||||||
components: {
|
components: {
|
||||||
[Collapse.name]: Collapse,
|
[Collapse.name]: Collapse,
|
||||||
[CollapseItem.name]: CollapseItem,
|
[CollapseItem.name]: CollapseItem,
|
||||||
@@ -317,6 +319,10 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
.stickyContent {
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
.titleBar {
|
.titleBar {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
@@ -346,6 +352,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.user-income-container {
|
.user-income-container {
|
||||||
|
min-height: 100vh;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user