fix(bonus-lx): 奖金明细页面调整优化 bug-149
This commit is contained in:
parent
2ea0ff0f41
commit
8483914d0b
|
@ -1,410 +1,419 @@
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<view class="main">
|
<view class="main">
|
||||||
<view v-if="userInfo.pkCountry!=1" class="top">
|
<view v-if="userInfo.pkCountry != 1" class="top">
|
||||||
<view class="search-bottom">
|
<view class="search-bottom">
|
||||||
<view class="time-text">{{'查询时间'}}</view>
|
<view class="time-text">{{ '查询时间' }}</view>
|
||||||
<view class="time1">
|
<view class="time1">
|
||||||
<picker :value="query.startDate" mode="date" @change="bindDateChange">
|
<picker :value="query.startDate" mode="date" @change="bindDateChange">
|
||||||
<view v-if="query.startDate!=''" class="uni-input">{{query.startDate}}</view>
|
<view v-if="query.startDate != ''" class="uni-input">{{
|
||||||
<view v-else class="uni-input">{{'开始日期'}}</view>
|
query.startDate
|
||||||
</picker>
|
}}</view>
|
||||||
</view>
|
<view v-else class="uni-input">{{ '开始日期' }}</view>
|
||||||
<view class="text_s">{{'至'}}</view>
|
</picker>
|
||||||
<view class="time1">
|
</view>
|
||||||
<picker :value="query.endDate" mode="date" @change="bindDateChange1">
|
<view class="text_s">{{ '至' }}</view>
|
||||||
<view v-if="query.endDate!=''" class="uni-input">{{query.endDate}}</view>
|
<view class="time1">
|
||||||
<view v-else class="uni-input">{{'结束日期'}}</view>
|
<picker :value="query.endDate" mode="date" @change="bindDateChange1">
|
||||||
</picker>
|
<view v-if="query.endDate != ''" class="uni-input">{{
|
||||||
</view>
|
query.endDate
|
||||||
<view class="search-icons" @click="submit">
|
}}</view>
|
||||||
<image class="search-icon-s" src="../../static/images/search.png"></image>
|
<view v-else class="uni-input">{{ '结束日期' }}</view>
|
||||||
</view>
|
</picker>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="search-icons" @click="submit">
|
||||||
</view>
|
<image
|
||||||
<view class="search-content">
|
class="search-icon-s"
|
||||||
<view class="search-list">
|
src="../../static/images/search.png"
|
||||||
<view v-for="item in dataList" class="search-view">
|
></image>
|
||||||
<view style="height: 20rpx;"></view>
|
</view>
|
||||||
<view class="flex_s">
|
</view>
|
||||||
<view class="data-left">
|
</view>
|
||||||
{{'奖金日期'}}
|
<view class="search-content">
|
||||||
</view>
|
<view class="search-list">
|
||||||
<view class="data-right">
|
<view v-for="item in dataList" class="search-view">
|
||||||
{{item.settleDate }}
|
<view style="height: 20rpx"></view>
|
||||||
</view>
|
<view class="flex_s">
|
||||||
</view>
|
<view class="data-left">
|
||||||
<view class="flex_s">
|
{{ '奖金日期' }}
|
||||||
<view class="data-left">
|
</view>
|
||||||
{{'直推收益'}}({{ isLocaled() }})
|
<view class="data-right">
|
||||||
</view>
|
{{ item.settleDate }}
|
||||||
<view class="data-right">
|
</view>
|
||||||
{{item.directIncome| toThousandthAndKeepDecimal }}
|
</view>
|
||||||
</view>
|
<view class="flex_s">
|
||||||
</view>
|
<view class="data-left">
|
||||||
<view class="flex_s">
|
{{ '直推收益' }}
|
||||||
<view class="data-left">
|
</view>
|
||||||
{{'拓展收益'}}({{ isLocaled() }})
|
<view class="data-right">
|
||||||
</view>
|
{{ item.directIncome | toThousandthAndKeepDecimal }}
|
||||||
<view class="data-right">
|
</view>
|
||||||
{{item.expandIncome| toThousandthAndKeepDecimal}}
|
</view>
|
||||||
</view>
|
<view class="flex_s">
|
||||||
</view>
|
<view class="data-left">
|
||||||
<view class="flex_s">
|
{{ '拓展收益' }}
|
||||||
|
</view>
|
||||||
|
<view class="data-right">
|
||||||
|
{{ item.expandIncome | toThousandthAndKeepDecimal }}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="flex_s">
|
||||||
|
<view class="data-left">
|
||||||
|
{{ '辅导收益' }}
|
||||||
|
</view>
|
||||||
|
<view class="data-right">
|
||||||
|
{{ item.coachIncome | toThousandthAndKeepDecimal }}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<!-- <view class="flex_s">
|
||||||
<view class="data-left">
|
<view class="data-left">
|
||||||
{{'辅导收益'}}({{ isLocaled() }})
|
{{'分红收益'}}
|
||||||
</view>
|
|
||||||
<view class="data-right">
|
|
||||||
{{item.coachIncome | toThousandthAndKeepDecimal}}
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<!-- <view class="flex_s">
|
|
||||||
<view class="data-left">
|
|
||||||
{{'分红收益'}}({{ isLocaled() }})
|
|
||||||
</view>
|
</view>
|
||||||
<view class="data-right">
|
<view class="data-right">
|
||||||
{{item.shareIncome| toThousandthAndKeepDecimal}}
|
{{item.shareIncome| toThousandthAndKeepDecimal}}
|
||||||
</view>
|
</view>
|
||||||
</view> -->
|
</view> -->
|
||||||
<view class="flex_s" v-if="userInfo.pkCountry==1">
|
<view class="flex_s" v-if="userInfo.pkCountry == 1">
|
||||||
<view class="data-left">
|
<view class="data-left">
|
||||||
{{'服务补贴'}}({{ isLocaled() }})
|
{{ '服务补贴' }}
|
||||||
</view>
|
</view>
|
||||||
<view class="data-right">
|
<view class="data-right">
|
||||||
{{item.serviceIncome| toThousandthAndKeepDecimal}}
|
{{ item.serviceIncome | toThousandthAndKeepDecimal }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="flex_s">
|
<view class="flex_s">
|
||||||
<view class="data-left">
|
<view class="data-left"> 级差收益 </view>
|
||||||
级差收益({{ isLocaled() }})
|
<view class="data-right">
|
||||||
</view>
|
{{ item.repurRangeIncome | toThousandthAndKeepDecimal }}
|
||||||
<view class="data-right">
|
</view>
|
||||||
{{item.repurRangeIncome| toThousandthAndKeepDecimal}}
|
</view>
|
||||||
</view>
|
<view class="flex_s">
|
||||||
</view>
|
<view class="data-left">
|
||||||
<view class="flex_s">
|
{{ $t('直推级差') }}
|
||||||
<view class="data-left">
|
</view>
|
||||||
{{$t('直推级差')}}({{ isLocaled() }})
|
<view class="data-right">
|
||||||
</view>
|
{{ item.globalPoints | toThousandthAndKeepDecimal }}
|
||||||
<view class="data-right">
|
</view>
|
||||||
{{item.globalPoints| toThousandthAndKeepDecimal}}
|
</view>
|
||||||
</view>
|
<view class="flex_s" v-if="userInfo.pkCountry == 1">
|
||||||
</view>
|
<view class="data-left">
|
||||||
<view class="flex_s" v-if="userInfo.pkCountry==1">
|
{{ '重复消费' }}
|
||||||
<view class="data-left">
|
</view>
|
||||||
{{'重复消费'}}({{ isLocaled() }})
|
<view class="data-right">
|
||||||
</view>
|
{{ item.backPoints | toThousandthAndKeepDecimal }}
|
||||||
<view class="data-right">
|
</view>
|
||||||
{{item.backPoints| toThousandthAndKeepDecimal}}
|
</view>
|
||||||
</view>
|
<view class="flex_s" v-if="userInfo.pkCountry == 1">
|
||||||
</view>
|
<view class="data-left">
|
||||||
<view class="flex_s" v-if="userInfo.pkCountry==1">
|
{{ '平台服务费' }}
|
||||||
<view class="data-left">
|
</view>
|
||||||
{{'平台服务费'}}({{ isLocaled() }})
|
<view class="data-right">
|
||||||
</view>
|
{{ item.serviceSpend | toThousandthAndKeepDecimal }}
|
||||||
<view class="data-right">
|
</view>
|
||||||
{{item.serviceSpend| toThousandthAndKeepDecimal}}
|
</view>
|
||||||
</view>
|
<view class="flex_s">
|
||||||
</view>
|
<view class="data-left">
|
||||||
<view class="flex_s">
|
{{ '实发小计' }}
|
||||||
<view class="data-left">
|
</view>
|
||||||
{{'实发小计'}}({{ isLocaled() }})
|
<view class="data-right">
|
||||||
</view>
|
{{ item.purRealSubtotal | toThousandthAndKeepDecimal }}
|
||||||
<view class="data-right">
|
</view>
|
||||||
{{item.purRealSubtotal| toThousandthAndKeepDecimal}}
|
</view>
|
||||||
</view>
|
<!-- <view class="border_s">
|
||||||
</view>
|
|
||||||
<!-- <view class="border_s">
|
|
||||||
<view class="button" v-if="checkRule==true" @click="urlTap">
|
<view class="button" v-if="checkRule==true" @click="urlTap">
|
||||||
{{'查看详情'}}
|
{{'查看详情'}}
|
||||||
</view>
|
</view>
|
||||||
</view> -->
|
</view> -->
|
||||||
<view style="clear: both;"></view>
|
<view style="clear: both"></view>
|
||||||
<view style="height: 20rpx;background-color: #fff;"></view>
|
<view style="height: 20rpx; background-color: #fff"></view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import * as api from '@/config/login.js'
|
import * as api from '@/config/login.js'
|
||||||
import {
|
import { setToken } from '@/config/auth.js'
|
||||||
setToken
|
import store from '@/store'
|
||||||
} from '@/config/auth.js'
|
import { isLocaled } from '@/util/numberToCurrency'
|
||||||
import store from '@/store'
|
|
||||||
import {
|
|
||||||
isLocaled
|
|
||||||
} from '@/util/numberToCurrency'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
getBonusTypeList: [],
|
getBonusTypeList: [],
|
||||||
index: null,
|
index: null,
|
||||||
dataList: [],
|
dataList: [],
|
||||||
userInfo: [],
|
userInfo: [],
|
||||||
query: {
|
query: {
|
||||||
startDate: '',
|
startDate: '',
|
||||||
endDate: '',
|
endDate: '',
|
||||||
sourceMemberCode: '',
|
sourceMemberCode: '',
|
||||||
sourceMemberName: '',
|
sourceMemberName: '',
|
||||||
pkBonusItems: ''
|
pkBonusItems: '',
|
||||||
},
|
},
|
||||||
page: {
|
page: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 50
|
pageSize: 50,
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
props: ["num", "checkRule"],
|
props: ['num', 'checkRule'],
|
||||||
onLoad() {
|
onLoad() {},
|
||||||
|
created() {
|
||||||
},
|
// this.getType()
|
||||||
created() {
|
this.userInfo = uni.getStorageSync('User')
|
||||||
// this.getType()
|
this.getDataList()
|
||||||
this.userInfo = uni.getStorageSync('User')
|
},
|
||||||
this.getDataList()
|
methods: {
|
||||||
},
|
isLocaled,
|
||||||
methods: {
|
urlTap() {
|
||||||
isLocaled,
|
uni.navigateTo({
|
||||||
urlTap() {
|
url: '/pages/bonusSource/index',
|
||||||
uni.navigateTo({
|
})
|
||||||
url: '/pages/bonusSource/index'
|
},
|
||||||
})
|
getInfo() {
|
||||||
},
|
api
|
||||||
getInfo() {
|
.getInfo()
|
||||||
api.getInfo().then(res => {
|
.then(res => {
|
||||||
if (res) {
|
if (res) {
|
||||||
this.userInfo = res.data
|
this.userInfo = res.data
|
||||||
}
|
}
|
||||||
}).catch(error => {
|
})
|
||||||
reject(error)
|
.catch(error => {
|
||||||
})
|
reject(error)
|
||||||
},
|
})
|
||||||
submit() {
|
},
|
||||||
this.getDataList()
|
submit() {
|
||||||
},
|
this.getDataList()
|
||||||
getType() {
|
},
|
||||||
api.getBonusType().then(res => {
|
getType() {
|
||||||
if (res) {
|
api
|
||||||
this.getBonusTypeList = res.rows
|
.getBonusType()
|
||||||
}
|
.then(res => {
|
||||||
}).catch(error => {
|
if (res) {
|
||||||
reject(error)
|
this.getBonusTypeList = res.rows
|
||||||
})
|
}
|
||||||
},
|
})
|
||||||
bindPickerChange(e) {
|
.catch(error => {
|
||||||
this.index = e.detail.value
|
reject(error)
|
||||||
},
|
})
|
||||||
bindDateChange(e) {
|
},
|
||||||
this.query.startDate = e.detail.value
|
bindPickerChange(e) {
|
||||||
},
|
this.index = e.detail.value
|
||||||
bindDateChange1(e) {
|
},
|
||||||
this.query.endDate = e.detail.value
|
bindDateChange(e) {
|
||||||
},
|
this.query.startDate = e.detail.value
|
||||||
getDataList(num) {
|
},
|
||||||
api.queryBonusFirst(this.query, `?pageNum=${num||1}&pageSize=${this.page.pageSize}`).then(res => {
|
bindDateChange1(e) {
|
||||||
if (res) {
|
this.query.endDate = e.detail.value
|
||||||
this.dataList.push(...res.rows)
|
},
|
||||||
}
|
getDataList(num) {
|
||||||
}).catch(error => {
|
api
|
||||||
reject(error)
|
.queryBonusFirst(
|
||||||
})
|
this.query,
|
||||||
},
|
`?pageNum=${num || 1}&pageSize=${this.page.pageSize}`
|
||||||
submit() {
|
)
|
||||||
|
.then(res => {
|
||||||
},
|
if (res) {
|
||||||
},
|
this.dataList.push(...res.rows)
|
||||||
}
|
}
|
||||||
|
})
|
||||||
|
.catch(error => {
|
||||||
|
reject(error)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
submit() {},
|
||||||
|
},
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
.border_s {
|
.border_s {
|
||||||
border-bottom: 1rpx solid #eee;
|
border-bottom: 1rpx solid #eee;
|
||||||
height: 10rpx;
|
height: 10rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
padding: 0 30rpx;
|
padding: 0 30rpx;
|
||||||
/* width: 150rpx; */
|
/* width: 150rpx; */
|
||||||
height: 52rpx;
|
height: 52rpx;
|
||||||
line-height: 52rpx;
|
line-height: 52rpx;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background: #005BAC;
|
background: #005bac;
|
||||||
margin: 30rpx 0 0 0;
|
margin: 30rpx 0 0 0;
|
||||||
float: right;
|
float: right;
|
||||||
border-radius: 24rpx;
|
border-radius: 24rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.type {
|
.type {
|
||||||
color: #005BAC !important;
|
color: #005bac !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flex_s {
|
.flex_s {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding-bottom: 15rpx;
|
padding-bottom: 15rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.data-left {
|
.data-left {
|
||||||
color: #999;
|
color: #999;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.data-right {
|
.data-right {
|
||||||
color: #333;
|
color: #333;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-view {
|
.search-view {
|
||||||
/* display: flex; */
|
/* display: flex; */
|
||||||
/* justify-content: space-between; */
|
/* justify-content: space-between; */
|
||||||
padding: 30rpx 20rpx 0 20rpx;
|
padding: 16rpx 20rpx 0 20rpx;
|
||||||
border-bottom: 20rpx solid #eee;
|
border-bottom: 20rpx solid #eee;
|
||||||
/* border-bottom: 1px solid #eee; */
|
/* border-bottom: 1px solid #eee; */
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-list {
|
.search-list {
|
||||||
margin-bottom: 25rpx;
|
margin-bottom: 25rpx;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-content {
|
.search-content {
|
||||||
margin-top: 25rpx;
|
margin-top: 25rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text_s {
|
.text_s {
|
||||||
color: #333;
|
color: #333;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-icon-s {
|
.search-icon-s {
|
||||||
width: 22rpx;
|
width: 22rpx;
|
||||||
height: 22rpx;
|
height: 22rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-icons {
|
.search-icons {
|
||||||
width: 47rpx;
|
width: 47rpx;
|
||||||
height: 47rpx;
|
height: 47rpx;
|
||||||
background: #005BAC;
|
background: #005bac;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
margin-left: 20rpx;
|
margin-left: 20rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin: 30rpx 20rpx 0 0;
|
margin: 30rpx 20rpx 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.time1 {
|
.time1 {
|
||||||
width: 158rpx;
|
width: 158rpx;
|
||||||
height: 75rpx;
|
height: 75rpx;
|
||||||
border-bottom: 1rpx solid #eee;
|
border-bottom: 1rpx solid #eee;
|
||||||
margin: 0 50rpx 30rpx 50rpx;
|
margin: 0 50rpx 30rpx 50rpx;
|
||||||
color: #999;
|
color: #999;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
/* margin-bottom: 30rpx; */
|
/* margin-bottom: 30rpx; */
|
||||||
}
|
}
|
||||||
|
|
||||||
.time-text {
|
.time-text {
|
||||||
color: #999;
|
color: #999;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-bottom {
|
.search-bottom {
|
||||||
height: 100rpx;
|
height: 100rpx;
|
||||||
line-height: 100rpx;
|
line-height: 100rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-left: 20rpx;
|
margin-left: 20rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.texts {
|
.texts {
|
||||||
color: #333;
|
color: #333;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
/* width:200rpx; */
|
/* width:200rpx; */
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.select-text {
|
.select-text {
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-right: 20rpx;
|
margin-right: 20rpx;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.selIcon {
|
.selIcon {
|
||||||
width: 20rpx;
|
width: 20rpx;
|
||||||
height: 20rpx;
|
height: 20rpx;
|
||||||
margin-top: 10rpx;
|
margin-top: 10rpx;
|
||||||
margin-left: 5rpx;
|
margin-left: 5rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text-s {
|
.text-s {
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
color: #999;
|
color: #999;
|
||||||
margin-right: 10rpx;
|
margin-right: 10rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.place {
|
.place {
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
color: #999;
|
color: #999;
|
||||||
}
|
}
|
||||||
|
|
||||||
.border-colors {
|
.border-colors {
|
||||||
border: none;
|
border: none;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
margin-left: 30rpx;
|
margin-left: 30rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
page {
|
page {
|
||||||
background-color: #f2f2f2;
|
background-color: #f2f2f2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-icon {
|
.search-icon {
|
||||||
width: 25rpx;
|
width: 25rpx;
|
||||||
height: 25rpx;
|
height: 25rpx;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 30rpx;
|
left: 30rpx;
|
||||||
top: 12rpx;
|
top: 12rpx;
|
||||||
|
|
||||||
image {}
|
image {
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.search-bg {}
|
.search-bg {
|
||||||
|
}
|
||||||
|
|
||||||
.top {
|
.top {
|
||||||
/* height: 200rpx; */
|
/* height: 200rpx; */
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
padding: 20rpx 0 20rpx 0;
|
padding: 20rpx 0 20rpx 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-tops {
|
.search-tops {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
height: 65rpx;
|
height: 65rpx;
|
||||||
line-height: 65rpx;
|
line-height: 65rpx;
|
||||||
padding-bottom: 40rpx;
|
padding-bottom: 40rpx;
|
||||||
border-bottom: 1px solid #eee;
|
border-bottom: 1px solid #eee;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-bg {
|
.search-bg {
|
||||||
width: 432rpx;
|
width: 432rpx;
|
||||||
height: 35rpx;
|
height: 35rpx;
|
||||||
background: #F5F6F8;
|
background: #f5f6f8;
|
||||||
border-radius: 33rpx;
|
border-radius: 33rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 20rpx 50rpx;
|
padding: 20rpx 50rpx;
|
||||||
margin-left: 20rpx;
|
margin-left: 20rpx;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
|
@ -13,7 +13,7 @@ module.exports = vm => {
|
||||||
|
|
||||||
//#ifdef DEV_SERVER
|
//#ifdef DEV_SERVER
|
||||||
console.log('DEV_SERVER')
|
console.log('DEV_SERVER')
|
||||||
config.baseURL = 'http://localhost:8080'
|
config.baseURL = 'http://t-app.beida413.com/prod-api'
|
||||||
//#endif
|
//#endif
|
||||||
|
|
||||||
//#ifdef QA_SERVER
|
//#ifdef QA_SERVER
|
||||||
|
|
|
@ -1,234 +1,320 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="main">
|
<view class="main">
|
||||||
<scroll-view class="left_scrol_style" scroll-x="false" scroll-y="true">
|
<view class="totals-summary-bar">
|
||||||
<view class="top-lists" v-if="navList.length > 0">
|
<view class="total-item">
|
||||||
<view v-for="(item, index) in navList" v-show="item.menuKey!=''" :key="index"
|
<text class="total-label">本月合计</text>
|
||||||
:class="navIndex == item.path ? 'styles' : ''" class="nav-view" @click="clickHref(item.path)">
|
<text class="total-amount primary-amount">{{
|
||||||
{{ item.name }}
|
formatCurrency(monthIncomeTotal)
|
||||||
</view>
|
}}</text>
|
||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
<view class="total-separator"></view>
|
||||||
<view class="sum-val">
|
<view class="total-item">
|
||||||
<view v-if="monthIncomeTotal" >本月合计: <span>{{monthIncomeTotal | toThousandthAndKeepDecimal}}</span></view>
|
<text class="total-label">昨日合计</text>
|
||||||
<view>昨日合计: <span>{{toSum | toThousandthAndKeepDecimal}}</span></view>
|
<text class="total-amount secondary-amount">{{
|
||||||
</view>
|
formatCurrency(toSum)
|
||||||
<template>
|
}}</text>
|
||||||
<sgsy v-if="navIndex==0" ref="sgsyData" :checkRule="marketList[0].isShow" :num="page.pageNum" />
|
</view>
|
||||||
<fgsy v-if="navIndex==1" ref="sgsyData" :checkRule="marketList[0].isShow" />
|
</view>
|
||||||
<hignfsy v-if="navIndex==2" ref="sgsyData" :checkRule="marketList[0].isShow" />
|
<template>
|
||||||
<hfsy v-if="navIndex==3" ref="sgsyData" :checkRule="marketList[0].isShow" />
|
<sgsy
|
||||||
<sbydsy v-if="navIndex==4" ref="sgsyData" :checkRule="marketList[0].isShow" />
|
v-if="navIndex == 0"
|
||||||
<fgqsy v-if="navIndex==5" ref="sgsyData" :checkRule="marketList[0].isShow" />
|
ref="sgsyData"
|
||||||
<ckkj v-if="navIndex==6" ref="sgsyData" :checkRule="marketList[0].isShow" />
|
:checkRule="marketList[0].isShow"
|
||||||
</template>
|
:num="page.pageNum"
|
||||||
</view>
|
/>
|
||||||
|
<fgsy
|
||||||
|
v-if="navIndex == 1"
|
||||||
|
ref="sgsyData"
|
||||||
|
:checkRule="marketList[0].isShow"
|
||||||
|
/>
|
||||||
|
<hignfsy
|
||||||
|
v-if="navIndex == 2"
|
||||||
|
ref="sgsyData"
|
||||||
|
:checkRule="marketList[0].isShow"
|
||||||
|
/>
|
||||||
|
<hfsy
|
||||||
|
v-if="navIndex == 3"
|
||||||
|
ref="sgsyData"
|
||||||
|
:checkRule="marketList[0].isShow"
|
||||||
|
/>
|
||||||
|
<sbydsy
|
||||||
|
v-if="navIndex == 4"
|
||||||
|
ref="sgsyData"
|
||||||
|
:checkRule="marketList[0].isShow"
|
||||||
|
/>
|
||||||
|
<fgqsy
|
||||||
|
v-if="navIndex == 5"
|
||||||
|
ref="sgsyData"
|
||||||
|
:checkRule="marketList[0].isShow"
|
||||||
|
/>
|
||||||
|
<ckkj
|
||||||
|
v-if="navIndex == 6"
|
||||||
|
ref="sgsyData"
|
||||||
|
:checkRule="marketList[0].isShow"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import * as api from '@/config/login.js'
|
import * as api from '@/config/login.js'
|
||||||
import * as apis from '@/config/market.js'
|
import * as apis from '@/config/market.js'
|
||||||
import * as api1 from '@/config/bonus.js'
|
import * as api1 from '@/config/bonus.js'
|
||||||
import {
|
import { setToken } from '@/config/auth.js'
|
||||||
setToken
|
import store from '@/store'
|
||||||
} from '@/config/auth.js'
|
import sgsy from '@/components/bonus/sgsy.vue'
|
||||||
import store from '@/store'
|
import fgsy from '@/components/bonus/fgsy.vue'
|
||||||
import sgsy from '@/components/bonus/sgsy.vue'
|
import hignfsy from '@/components/bonus/hignfsy.vue'
|
||||||
import fgsy from '@/components/bonus/fgsy.vue'
|
import hfsy from '@/components/bonus/hfsy.vue'
|
||||||
import hignfsy from '@/components/bonus/hignfsy.vue'
|
import sbydsy from '@/components/bonus/sbydsy.vue'
|
||||||
import hfsy from '@/components/bonus/hfsy.vue'
|
import fgqsy from '@/components/bonus/fgqsy.vue'
|
||||||
import sbydsy from '@/components/bonus/sbydsy.vue'
|
import ckkj from '@/components/bonus/ckkj.vue'
|
||||||
import fgqsy from '@/components/bonus/fgqsy.vue'
|
export default {
|
||||||
import ckkj from '@/components/bonus/ckkj.vue'
|
data() {
|
||||||
export default {
|
return {
|
||||||
data() {
|
toSum: 0,
|
||||||
return {
|
index: null,
|
||||||
toSum: 0,
|
userInfo: [],
|
||||||
index: null,
|
marketList: [
|
||||||
userInfo: [],
|
{
|
||||||
marketList: [{
|
text: '奖金来源',
|
||||||
text: '奖金来源',
|
id: 3,
|
||||||
id: 3,
|
path: '/marketDynamics',
|
||||||
path: "/marketDynamics",
|
name: 'bonusSource',
|
||||||
name: 'bonusSource',
|
isShow: false,
|
||||||
isShow: false,
|
},
|
||||||
}, ],
|
],
|
||||||
navList: [{
|
navList: [
|
||||||
name: '首购收益',
|
{
|
||||||
path: 0,
|
name: '首购收益',
|
||||||
value: "firstPurchase",
|
path: 0,
|
||||||
menuKey: ''
|
value: 'firstPurchase',
|
||||||
},
|
menuKey: '',
|
||||||
{
|
},
|
||||||
name: '复购收益',
|
{
|
||||||
path: 1,
|
name: '复购收益',
|
||||||
value: "repurchaseEarnings",
|
path: 1,
|
||||||
menuKey: ''
|
value: 'repurchaseEarnings',
|
||||||
},
|
menuKey: '',
|
||||||
{
|
},
|
||||||
name: '海粉收益',
|
{
|
||||||
path: 2,
|
name: '海粉收益',
|
||||||
value: "hignFans",
|
path: 2,
|
||||||
menuKey: ''
|
value: 'hignFans',
|
||||||
},
|
menuKey: '',
|
||||||
{
|
},
|
||||||
name: '海粉收益',
|
{
|
||||||
path: 3,
|
name: '海粉收益',
|
||||||
value: "seaFans",
|
path: 3,
|
||||||
menuKey: ''
|
value: 'seaFans',
|
||||||
},
|
menuKey: '',
|
||||||
// { name: '圣宝云代收益',path:4,value:"sbyd",menuKey:''},
|
},
|
||||||
{
|
// { name: '圣宝云代收益',path:4,value:"sbyd",menuKey:''},
|
||||||
name: '复购券收益',
|
{
|
||||||
path: 5,
|
name: '复购券收益',
|
||||||
value: "repurchaseTicket",
|
path: 5,
|
||||||
menuKey: ''
|
value: 'repurchaseTicket',
|
||||||
},
|
menuKey: '',
|
||||||
// {
|
},
|
||||||
// name: '创客空间收益',
|
// {
|
||||||
// path: 6,
|
// name: '创客空间收益',
|
||||||
// value: "markerSpaceEarnings",
|
// path: 6,
|
||||||
// menuKey: ''
|
// value: "markerSpaceEarnings",
|
||||||
// },
|
// menuKey: ''
|
||||||
],
|
// },
|
||||||
navIndex: 0,
|
],
|
||||||
page: {
|
navIndex: 0,
|
||||||
pageSize: 50,
|
page: {
|
||||||
pageNum: 1,
|
pageSize: 50,
|
||||||
},
|
pageNum: 1,
|
||||||
monthIncomeTotal: 0,
|
},
|
||||||
}
|
monthIncomeTotal: 0,
|
||||||
},
|
}
|
||||||
components: {
|
},
|
||||||
sgsy,
|
components: {
|
||||||
fgsy,
|
sgsy,
|
||||||
hignfsy,
|
fgsy,
|
||||||
hfsy,
|
hignfsy,
|
||||||
sbydsy,
|
hfsy,
|
||||||
fgqsy,
|
sbydsy,
|
||||||
ckkj
|
fgqsy,
|
||||||
},
|
ckkj,
|
||||||
onLoad() {
|
},
|
||||||
this.getMenuLists()
|
onLoad() {
|
||||||
this.getSum()
|
// this.getMenuLists()
|
||||||
},
|
this.getSum()
|
||||||
methods: {
|
},
|
||||||
getSum() {
|
methods: {
|
||||||
api1.queryBonusTotal({}).then((res) => {
|
getSum() {
|
||||||
console.log(res, '....res====aa')
|
api1.queryBonusTotal({}).then(res => {
|
||||||
this.toSum = res.rows[0].realIncomeTotal
|
console.log(res, '....res====aa')
|
||||||
this.monthIncomeTotal = res.rows[0].monthIncomeTotal
|
this.toSum = res.rows[0].realIncomeTotal
|
||||||
})
|
this.monthIncomeTotal = res.rows[0].monthIncomeTotal
|
||||||
},
|
})
|
||||||
bindPickerChange(e) {
|
},
|
||||||
this.index = e.detail.value
|
bindPickerChange(e) {
|
||||||
},
|
this.index = e.detail.value
|
||||||
clickHref(index) {
|
},
|
||||||
let that = this;
|
clickHref(index) {
|
||||||
this.navIndex = index
|
let that = this
|
||||||
this.page.pageNum = 1
|
this.navIndex = index
|
||||||
},
|
this.page.pageNum = 1
|
||||||
getMenuLists() {
|
},
|
||||||
api.menuList().then((res) => {
|
formatCurrency(value) {
|
||||||
console.log(res, '....resmenu')
|
let num = parseFloat(value)
|
||||||
res.data.forEach((item) => {
|
if (isNaN(num)) {
|
||||||
this.navList.forEach((items) => {
|
num = 0
|
||||||
if (item.menuKey == items.value) {
|
}
|
||||||
items.menuKey = item.menuKey
|
const fixedNum = num.toFixed(2)
|
||||||
}
|
const parts = fixedNum.split('.')
|
||||||
})
|
parts[0] = parts[0].replace(/\\B(?=(\\d{3})+(?!\\d))/g, ',')
|
||||||
if (this.marketList[0].name == item.menuKey) {
|
return parts.join('.')
|
||||||
this.marketList[0].isShow = true
|
},
|
||||||
}
|
// getMenuLists() {
|
||||||
})
|
// api.menuList().then(res => {
|
||||||
})
|
// console.log(res, '....resmenu')
|
||||||
},
|
// res.data.forEach(item => {
|
||||||
// async onReachBottom() {
|
// this.navList.forEach(items => {
|
||||||
// this.page.pageNum+1
|
// if (item.menuKey == items.value) {
|
||||||
// this.$refs.sgsyData.getDataList(this.page.pageNum+=1);
|
// items.menuKey = item.menuKey
|
||||||
// },
|
// }
|
||||||
},
|
// })
|
||||||
}
|
// if (this.marketList[0].name == item.menuKey) {
|
||||||
|
// this.marketList[0].isShow = true
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
// })
|
||||||
|
// },
|
||||||
|
// async onReachBottom() {
|
||||||
|
// this.page.pageNum+1
|
||||||
|
// this.$refs.sgsyData.getDataList(this.page.pageNum+=1);
|
||||||
|
// },
|
||||||
|
},
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.sum-val {
|
.totals-summary-bar {
|
||||||
background-color: #fff;
|
display: flex;
|
||||||
// height: 100rpx;
|
justify-content: space-around;
|
||||||
line-height: 60rpx;
|
align-items: center;
|
||||||
text-align: right;
|
background-color: #ffffff;
|
||||||
margin-top: 10rpx;
|
padding: 24rpx 20rpx;
|
||||||
padding-right: 20rpx;
|
border-radius: 16rpx;
|
||||||
display: flex;
|
box-shadow: 0 6rpx 18rpx rgba(0, 0, 0, 0.06);
|
||||||
flex-direction: column;
|
margin-top: 16rpx;
|
||||||
align-items: flex-end;
|
margin-bottom: 20rpx;
|
||||||
justify-content: flex-end;
|
|
||||||
span {
|
|
||||||
font-size: 34rpx;
|
|
||||||
font-weight: bold;
|
|
||||||
margin-left: 10rpx;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/*左侧分类视图*/
|
.total-item {
|
||||||
.left_scrol_style {
|
display: flex;
|
||||||
white-space: nowrap;
|
flex-direction: column;
|
||||||
width: 100%;
|
align-items: center;
|
||||||
background: #fff;
|
flex: 1;
|
||||||
}
|
|
||||||
|
|
||||||
.texts {
|
.total-label {
|
||||||
color: #333;
|
font-size: 26rpx;
|
||||||
font-size: 26rpx;
|
color: #777777;
|
||||||
overflow: hidden;
|
margin-bottom: 8rpx;
|
||||||
white-space: nowrap;
|
}
|
||||||
text-overflow: ellipsis;
|
|
||||||
/* width:200rpx; */
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
.select-text {
|
.total-amount {
|
||||||
display: flex;
|
font-size: 36rpx;
|
||||||
margin-right: 20rpx;
|
font-weight: 600;
|
||||||
font-size: 26rpx;
|
}
|
||||||
color: #333;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
.selIcon {
|
.primary-amount {
|
||||||
width: 30rpx;
|
color: #005bac; // Theme color
|
||||||
height: 30rpx;
|
}
|
||||||
margin: 5rpx 0 0 20rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
page {
|
.secondary-amount {
|
||||||
background-color: #f2f2f2;
|
color: #333333;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.styles {
|
.total-separator {
|
||||||
border: none !important;
|
width: 1rpx;
|
||||||
color: #fff !important;
|
height: 60rpx; // Adjust as needed
|
||||||
background: #005BAC;
|
background-color: #e0e0e0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
.sum-val {
|
||||||
|
background-color: #fff;
|
||||||
|
// height: 100rpx;
|
||||||
|
line-height: 60rpx;
|
||||||
|
text-align: right;
|
||||||
|
margin-top: 10rpx;
|
||||||
|
padding-right: 20rpx;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-end;
|
||||||
|
justify-content: flex-end;
|
||||||
|
span {
|
||||||
|
font-size: 34rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-left: 10rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.top-lists {
|
/*左侧分类视图*/
|
||||||
width: fit-content;
|
.left_scrol_style {
|
||||||
display: flex;
|
white-space: nowrap;
|
||||||
padding: 30rpx 30rpx 0 0;
|
width: 100%;
|
||||||
background-color: #fff;
|
background: #fff;
|
||||||
height: 80rpx;
|
}
|
||||||
line-height: 80rpx;
|
|
||||||
|
|
||||||
.nav-view {
|
.texts {
|
||||||
width: 200rpx;
|
color: #333;
|
||||||
cursor: pointer;
|
font-size: 26rpx;
|
||||||
padding: 0 26rpx;
|
overflow: hidden;
|
||||||
height: 44rpx;
|
white-space: nowrap;
|
||||||
border-radius: 10rpx;
|
text-overflow: ellipsis;
|
||||||
border: 1rpx solid #999999;
|
/* width:200rpx; */
|
||||||
font-size: 14rpx;
|
text-align: right;
|
||||||
text-align: center;
|
}
|
||||||
line-height: 44rpx;
|
|
||||||
margin-left: 20rpx;
|
.select-text {
|
||||||
color: #999;
|
display: flex;
|
||||||
}
|
margin-right: 20rpx;
|
||||||
}
|
font-size: 26rpx;
|
||||||
|
color: #333;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.selIcon {
|
||||||
|
width: 30rpx;
|
||||||
|
height: 30rpx;
|
||||||
|
margin: 5rpx 0 0 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
page {
|
||||||
|
background-color: #f2f2f2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.styles {
|
||||||
|
border: none !important;
|
||||||
|
color: #fff !important;
|
||||||
|
background: #005bac;
|
||||||
|
}
|
||||||
|
|
||||||
|
.top-lists {
|
||||||
|
width: fit-content;
|
||||||
|
display: flex;
|
||||||
|
padding: 30rpx 30rpx 0 0;
|
||||||
|
background-color: #fff;
|
||||||
|
height: 80rpx;
|
||||||
|
line-height: 80rpx;
|
||||||
|
|
||||||
|
.nav-view {
|
||||||
|
width: 200rpx;
|
||||||
|
cursor: pointer;
|
||||||
|
padding: 0 26rpx;
|
||||||
|
height: 44rpx;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
border: 1rpx solid #999999;
|
||||||
|
font-size: 14rpx;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 44rpx;
|
||||||
|
margin-left: 20rpx;
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
Loading…
Reference in New Issue