Merge branch 'bd-dev' of gitee.com:cabbage_qd/web-base-h5 into bd-test
This commit is contained in:
commit
06750ee854
|
@ -1,176 +0,0 @@
|
||||||
<template>
|
|
||||||
<div class="width-auto">
|
|
||||||
<view class="title">
|
|
||||||
{{'真实业绩分布'}}
|
|
||||||
</view>
|
|
||||||
<div class="flex-s">
|
|
||||||
<div id="main22" style="width: 690rpx;height: 600rpx;" :style="myChartStyle"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import * as echarts from "echarts";
|
|
||||||
import { realPerformancePic } from "@/config/distribute.js";
|
|
||||||
export default {
|
|
||||||
name: "recommendTime",
|
|
||||||
data(){
|
|
||||||
return{
|
|
||||||
texts:'',
|
|
||||||
pieData: [
|
|
||||||
{
|
|
||||||
value: 0,
|
|
||||||
age: 0,
|
|
||||||
name: '左区',
|
|
||||||
itemStyle: {color:'#EE5858'},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: 0,
|
|
||||||
age: 0,
|
|
||||||
name: '右区',
|
|
||||||
itemStyle: {color:'#FBB046'},
|
|
||||||
},
|
|
||||||
|
|
||||||
],
|
|
||||||
myChartStyle: {
|
|
||||||
float: "center",
|
|
||||||
width: "690rpx",
|
|
||||||
height: "750rpx",
|
|
||||||
paddingTop: "0",
|
|
||||||
// margin: "20px",
|
|
||||||
}, //图表样式
|
|
||||||
}
|
|
||||||
},
|
|
||||||
created() {
|
|
||||||
this.getData()
|
|
||||||
},
|
|
||||||
methods:{
|
|
||||||
getData() {
|
|
||||||
realPerformancePic().then((res)=>{
|
|
||||||
this.pieData[1].value = res.data.rightAchievement
|
|
||||||
this.pieData[0].value = res.data.leftAchievement
|
|
||||||
this.pieData[1].age = res.data.rightNumber
|
|
||||||
this.pieData[0].age = res.data.leftNumber
|
|
||||||
setTimeout(()=>{
|
|
||||||
this.ageChart(res.data);
|
|
||||||
},50)
|
|
||||||
})
|
|
||||||
},
|
|
||||||
ageChart(datas) {
|
|
||||||
let that =this
|
|
||||||
var myChart = echarts.init(document.getElementById('main22'));
|
|
||||||
var option = {
|
|
||||||
legend: {
|
|
||||||
// 图例
|
|
||||||
// right: "0%",
|
|
||||||
left: '33%',
|
|
||||||
bottom: '0',
|
|
||||||
color: '#999',
|
|
||||||
// orient: "vertical",
|
|
||||||
},
|
|
||||||
series: [
|
|
||||||
{
|
|
||||||
type: "pie",
|
|
||||||
label: {
|
|
||||||
show: true,
|
|
||||||
lineHeight:16,// 行高
|
|
||||||
|
|
||||||
normal: {
|
|
||||||
borderWidth:2,
|
|
||||||
formatter: function (data) {
|
|
||||||
return (
|
|
||||||
data.data.name +
|
|
||||||
":" +
|
|
||||||
data.data.age +
|
|
||||||
that.$t('w_0337') +
|
|
||||||
"\n" +
|
|
||||||
"\n" +
|
|
||||||
that.$t('ENU_TOTAL_V_1') + ':' +
|
|
||||||
data.data.value +
|
|
||||||
that.$t('S_C_58')
|
|
||||||
);
|
|
||||||
},
|
|
||||||
color: "#fff",
|
|
||||||
position:'inside' //默认自适应,水平布局为'top',垂直布局为'right',可选为 'inside'|'left'|'right'|'top'|'bottom'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
radius: "70%", //饼图半径
|
|
||||||
data: that.pieData
|
|
||||||
},
|
|
||||||
]
|
|
||||||
}
|
|
||||||
myChart.setOption(option);
|
|
||||||
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped lang="scss">
|
|
||||||
.width-auto{
|
|
||||||
width: 100%;
|
|
||||||
position: relative;
|
|
||||||
height:950rpx;
|
|
||||||
background-color: #fff;
|
|
||||||
width: 690rpx;
|
|
||||||
|
|
||||||
border-radius: 20rpx;
|
|
||||||
margin: 20rpx auto;
|
|
||||||
}
|
|
||||||
.title{
|
|
||||||
padding: 20rpx 30rpx ;
|
|
||||||
height: 80rpx;
|
|
||||||
line-height: 80rpx;
|
|
||||||
border-bottom: 10rpx solid #f3f3f3;
|
|
||||||
margin-top: 10rpx;
|
|
||||||
}
|
|
||||||
::v-deep .el-select .el-input .el-select__caret{
|
|
||||||
color: #333;
|
|
||||||
}
|
|
||||||
.lines{
|
|
||||||
width: 2px;
|
|
||||||
height: 470px;
|
|
||||||
opacity: 1;
|
|
||||||
background: #979797;
|
|
||||||
position: absolute;
|
|
||||||
bottom: 50px;
|
|
||||||
left: 50%;
|
|
||||||
margin-left: -110px;
|
|
||||||
}
|
|
||||||
.right-lines{
|
|
||||||
position: absolute;
|
|
||||||
right: 80px;
|
|
||||||
top: 140px;
|
|
||||||
color: #999;
|
|
||||||
font-size: 12px;
|
|
||||||
}
|
|
||||||
.item-s{
|
|
||||||
padding-bottom: 10px;
|
|
||||||
display: flex;
|
|
||||||
line-height: 24px;
|
|
||||||
}
|
|
||||||
.bg-color{
|
|
||||||
width: 40px;
|
|
||||||
height: 22px;
|
|
||||||
border-radius: 2px;
|
|
||||||
margin-left: 5px;
|
|
||||||
}
|
|
||||||
.flex-s{
|
|
||||||
// display: flex;
|
|
||||||
// justify-content: center;
|
|
||||||
// align-items: center;
|
|
||||||
// width: 700px;
|
|
||||||
}
|
|
||||||
.styles{
|
|
||||||
position: absolute;
|
|
||||||
right: -30px;
|
|
||||||
z-index: 111;
|
|
||||||
top: 60px;
|
|
||||||
/*background: rgba(0,0,0,0.05);*/
|
|
||||||
/*border-radius: 4px 4px 4px 4px;*/
|
|
||||||
}
|
|
||||||
::v-deep .el-select .el-input__inner{
|
|
||||||
border: none;
|
|
||||||
background: rgba(0,0,0,0.05);
|
|
||||||
}
|
|
||||||
</style>
|
|
|
@ -1,50 +1,57 @@
|
||||||
|
|
||||||
const http = uni.$u.http
|
const http = uni.$u.http
|
||||||
|
|
||||||
//安置图
|
//安置图
|
||||||
export const getPlaceMent = (params) => http.get('/member/api/achieve/query-place-tree', {params})
|
export const getPlaceMent = params =>
|
||||||
|
http.get('/member/api/achieve/query-place-tree', { params })
|
||||||
|
|
||||||
//安置图详情
|
//安置图详情
|
||||||
export const getTreeDetail = (data) => http.post('/member/api/achieve/query-place-tree-detail', data)
|
export const getTreeDetail = data =>
|
||||||
|
http.post('/member/api/achieve/query-place-tree-detail', data)
|
||||||
|
|
||||||
//安置图上方等级
|
//安置图上方等级
|
||||||
export const getAvatarInfo = (params) => http.get('/member/api/member-structure/get-avatar-info', {params})
|
export const getAvatarInfo = params =>
|
||||||
|
http.get('/member/api/member-structure/get-avatar-info', { params })
|
||||||
|
|
||||||
//安置图
|
//安置图
|
||||||
export const getDayType = (params) => http.get('/system/pub/enums/get-day-type', {params})
|
export const getDayType = params =>
|
||||||
|
http.get('/system/pub/enums/get-day-type', { params })
|
||||||
|
|
||||||
//获取安置业绩分布
|
//获取安置业绩分布
|
||||||
export const azAchievement = (params) => http.get('/report/api/achieve/az-achievement', {params})
|
export const azAchievement = params =>
|
||||||
|
http.get('/report/api/achieve/az-achievement', { params })
|
||||||
|
|
||||||
//获取安置业绩分布
|
//获取安置业绩分布
|
||||||
export const getPerformance = (params) => http.get('/member/api/achieve/query-real-performance', {params})
|
export const getPerformance = params =>
|
||||||
|
http.get('/member/api/achieve/query-real-performance', { params })
|
||||||
//获取真实业绩分布
|
|
||||||
export const realPerformancePic = (params) => http.get('/member/api/achieve/query-real-performance-pic', {params})
|
|
||||||
|
|
||||||
|
|
||||||
//获取推荐列表
|
//获取推荐列表
|
||||||
export const parentList = (params) => http.get('/member/api/member/parent-list', {params})
|
export const parentList = params =>
|
||||||
|
http.get('/member/api/member/parent-list', { params })
|
||||||
|
|
||||||
//获取平均时长
|
//获取平均时长
|
||||||
export const getMemberRecommend = (params) => http.get('/member/api/census/get-member-recommend-time', {params})
|
export const getMemberRecommend = params =>
|
||||||
|
http.get('/member/api/census/get-member-recommend-time', { params })
|
||||||
|
|
||||||
//获取直推业绩左侧
|
//获取直推业绩左侧
|
||||||
export const parentAchieveLeft = (data) => http.post('/member/api/achieve/parent-achieve-left', data)
|
export const parentAchieveLeft = data =>
|
||||||
|
http.post('/member/api/achieve/parent-achieve-left', data)
|
||||||
|
|
||||||
//获取直推业绩右侧
|
//获取直推业绩右侧
|
||||||
export const parentAchieveRight = (data) => http.post('/member/api/achieve/parent-achieve-right',data)
|
export const parentAchieveRight = data =>
|
||||||
|
http.post('/member/api/achieve/parent-achieve-right', data)
|
||||||
|
|
||||||
//获取等级
|
//获取等级
|
||||||
export const systemGrandeRange = (params) => http.get('/system/manage/grade/gradeRanglist', {params})
|
export const systemGrandeRange = params =>
|
||||||
|
http.get('/system/manage/grade/gradeRanglist', { params })
|
||||||
|
|
||||||
//新增业绩统计
|
//新增业绩统计
|
||||||
export const getPlaceNewAddAchieve = (params) => http.get('/member/api/achieve/place-new-add-achieve-stat', {params})
|
export const getPlaceNewAddAchieve = params =>
|
||||||
|
http.get('/member/api/achieve/place-new-add-achieve-stat', { params })
|
||||||
|
|
||||||
//获取业绩类型
|
//获取业绩类型
|
||||||
export const getYjList = (params) => http.get('/system/pub/enums/achievement-type-member', {params})
|
export const getYjList = params =>
|
||||||
|
http.get('/system/pub/enums/achievement-type-member', { params })
|
||||||
|
|
||||||
//月度业绩左右区业绩详情
|
//月度业绩左右区业绩详情
|
||||||
export const getAchieveDetails = (params) => http.get('/member/api/achieve/place-new-add-achieve-details', {params})
|
export const getAchieveDetails = params =>
|
||||||
|
http.get('/member/api/achieve/place-new-add-achieve-details', { params })
|
||||||
|
|
|
@ -506,17 +506,15 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div v-show="[14, 3, 2, 26, 28].includes(specialArea)">
|
||||||
v-show="specialArea == 3 || specialArea == 26 || specialArea == 28"
|
<div class="tit4">{{ '购买人信息' }}</div>
|
||||||
>
|
|
||||||
<div class="tit4">{{ '复购会员信息' }}</div>
|
|
||||||
<div class="quan">
|
<div class="quan">
|
||||||
<div class="kuang_i">
|
<div class="kuang_i">
|
||||||
<div>{{ '复购编号' }}</div>
|
<div>{{ '会员编号' }}</div>
|
||||||
<div>{{ orderData.memberCode }}</div>
|
<div>{{ orderData.memberCode }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="kuang_i">
|
<div class="kuang_i">
|
||||||
<div>{{ '复购姓名' }}</div>
|
<div>{{ '会员姓名' }}</div>
|
||||||
<div>{{ orderData.memberName }}</div>
|
<div>{{ orderData.memberName }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="kuang_i">
|
<div class="kuang_i">
|
||||||
|
|
|
@ -1,19 +1,22 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="main">
|
<view class="main">
|
||||||
|
|
||||||
<view class="top-lists">
|
<view class="top-lists">
|
||||||
<view v-for="(item, index) in navList" v-show="item.menuKey!=''" :key="index"
|
<view
|
||||||
:class="navIndex == index ? 'styles' : ''" class="nav-view" @click="clickHref(index)">
|
v-for="(item, index) in navList"
|
||||||
|
v-show="item.menuKey != ''"
|
||||||
|
:key="index"
|
||||||
|
:class="navIndex == index ? 'styles' : ''"
|
||||||
|
class="nav-view"
|
||||||
|
@click="clickHref(index)"
|
||||||
|
>
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view> </view>
|
||||||
|
|
||||||
</view>
|
|
||||||
<!-- 业绩分布 !-->
|
<!-- 业绩分布 !-->
|
||||||
<template>
|
<template>
|
||||||
<view v-if="navIndex==0 && navList[0].menuKey!=''">
|
<view v-if="navIndex == 0 && navList[0].menuKey != ''">
|
||||||
<view v-if='ifDetail==0'>
|
<view v-if="ifDetail == 0">
|
||||||
<view>
|
<view>
|
||||||
<performanceDistribution />
|
<performanceDistribution />
|
||||||
</view>
|
</view>
|
||||||
|
@ -25,9 +28,8 @@
|
||||||
<view v-else>
|
<view v-else>
|
||||||
<!-- 月度业绩详情 -->
|
<!-- 月度业绩详情 -->
|
||||||
<view>
|
<view>
|
||||||
<monthPvDetail :placeDept='ifDetail' />
|
<monthPvDetail :placeDept="ifDetail" />
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
@ -46,7 +48,7 @@
|
||||||
</template>
|
</template>
|
||||||
<!-- 月度新增业绩 / 数据查询 !-->
|
<!-- 月度新增业绩 / 数据查询 !-->
|
||||||
<template>
|
<template>
|
||||||
<view v-if="navIndex==1" style="padding-bottom: 20rpx;">
|
<view v-if="navIndex == 1" style="padding-bottom: 20rpx">
|
||||||
<!-- 首购新增业绩 !-->
|
<!-- 首购新增业绩 !-->
|
||||||
<view>
|
<view>
|
||||||
<fistAddPv />
|
<fistAddPv />
|
||||||
|
@ -80,31 +82,35 @@
|
||||||
<activeMembers></activeMembers>
|
<activeMembers></activeMembers>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
<!-- 推荐小区分布 !-->
|
<!-- 推荐小区分布 !-->
|
||||||
<!-- <view>
|
<!-- <view>
|
||||||
<recommendedCommunity />
|
<recommendedCommunity />
|
||||||
</view> -->
|
</view> -->
|
||||||
|
|
||||||
|
|
||||||
<!-- 推荐平均用时 -->
|
<!-- 推荐平均用时 -->
|
||||||
<!-- <view>
|
<!-- <view>
|
||||||
<recommendTime />
|
<recommendTime />
|
||||||
</view> -->
|
</view> -->
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<!-- 直推业绩 !-->
|
<!-- 直推业绩 !-->
|
||||||
<template>
|
<template>
|
||||||
<view v-if="navIndex==2">
|
<view v-if="navIndex == 2">
|
||||||
<view class="height-auto-s">
|
<view class="height-auto-s">
|
||||||
<view style="font-size: 28rpx;">{{'直推业绩'}}</view>
|
<view style="font-size: 28rpx">{{ '直推业绩' }}</view>
|
||||||
<view class="flex-ss">
|
<view class="flex-ss">
|
||||||
<view class="time1">
|
<view class="time1">
|
||||||
<picker :value="query.startDate" fields='month' mode="date" @change="bindDateChange">
|
<picker
|
||||||
<view v-if="query.startDate!=''" class="uni-inputs">{{query.startDate}}</view>
|
:value="query.startDate"
|
||||||
<view v-else class="uni-input">{{'开始日期'}}</view>
|
fields="month"
|
||||||
|
mode="date"
|
||||||
|
@change="bindDateChange"
|
||||||
|
>
|
||||||
|
<view v-if="query.startDate != ''" class="uni-inputs">{{
|
||||||
|
query.startDate
|
||||||
|
}}</view>
|
||||||
|
<view v-else class="uni-input">{{ '开始日期' }}</view>
|
||||||
</picker>
|
</picker>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="text_s">{{'至'}}</view>
|
<!-- <view class="text_s">{{'至'}}</view>
|
||||||
|
@ -128,45 +134,41 @@
|
||||||
</template>
|
</template>
|
||||||
<!-- 推荐列表 !-->
|
<!-- 推荐列表 !-->
|
||||||
<template>
|
<template>
|
||||||
<view v-if="navIndex==3">
|
<view v-if="navIndex == 3">
|
||||||
<directList ref="sgsyData" />
|
<directList ref="sgsyData" />
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
</view>
|
</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 {
|
import { setToken } from '@/config/auth.js'
|
||||||
setToken
|
import store from '@/store'
|
||||||
} from '@/config/auth.js'
|
import placement from '@/components/distribution/placement.vue'
|
||||||
import store from '@/store'
|
import placementPerformance from '@/components/distribution/placementPerformance.vue'
|
||||||
import placement from '@/components/distribution/placement.vue'
|
import fistAddPv from '@/components/distribution/fistAddPv.vue'
|
||||||
import placementPerformance from '@/components/distribution/placementPerformance.vue'
|
import mounthPvCompare from '@/components/distribution/mounthPvCompare.vue'
|
||||||
import fistAddPv from '@/components/distribution/fistAddPv.vue'
|
import activeMembers from '@/components/distribution/activeMembers.vue'
|
||||||
import mounthPvCompare from '@/components/distribution/mounthPvCompare.vue'
|
import repAddPv from '@/components/distribution/repAddPv.vue'
|
||||||
import activeMembers from '@/components/distribution/activeMembers.vue'
|
import recommendedCommunity from '@/components/distribution/recommendedCommunity.vue'
|
||||||
import repAddPv from '@/components/distribution/repAddPv.vue'
|
import firstPv from '@/components/distribution/firstPv.vue'
|
||||||
import recommendedCommunity from '@/components/distribution/recommendedCommunity.vue'
|
import secondPv from '@/components/distribution/secondPv.vue'
|
||||||
import firstPv from '@/components/distribution/firstPv.vue'
|
import realPerformances from '@/components/distribution/realPerformances.vue'
|
||||||
import secondPv from '@/components/distribution/secondPv.vue'
|
// import realPerformance from '@/components/distribution/realPerformance.vue'
|
||||||
import realPerformances from '@/components/distribution/realPerformances.vue'
|
import directList from '@/components/distribution/directList.vue'
|
||||||
import realPerformance from '@/components/distribution/realPerformance.vue'
|
import recommendTime from '@/components/distribution/recommendTime.vue'
|
||||||
import directList from '@/components/distribution/directList.vue'
|
import gradePerformance from '@/components/distribution/gradePerformance.vue'
|
||||||
import recommendTime from '@/components/distribution/recommendTime.vue'
|
import recommendPerformance from '@/components/distribution/recommendPerformance.vue'
|
||||||
import gradePerformance from '@/components/distribution/gradePerformance.vue'
|
import performanceDistribution from '@/components/distribution/performanceDistribution.vue'
|
||||||
import recommendPerformance from '@/components/distribution/recommendPerformance.vue'
|
import monthPvDetail from '@/components/distribution/monthPvDetail.vue'
|
||||||
import performanceDistribution from '@/components/distribution/performanceDistribution.vue'
|
export default {
|
||||||
import monthPvDetail from '@/components/distribution/monthPvDetail.vue'
|
|
||||||
export default {
|
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
placement,
|
placement,
|
||||||
realPerformances,
|
realPerformances,
|
||||||
placementPerformance,
|
placementPerformance,
|
||||||
realPerformance,
|
// realPerformance,
|
||||||
directList,
|
directList,
|
||||||
recommendTime,
|
recommendTime,
|
||||||
gradePerformance,
|
gradePerformance,
|
||||||
|
@ -179,7 +181,7 @@
|
||||||
secondPv,
|
secondPv,
|
||||||
mounthPvCompare,
|
mounthPvCompare,
|
||||||
activeMembers,
|
activeMembers,
|
||||||
monthPvDetail
|
monthPvDetail,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -188,32 +190,35 @@
|
||||||
query: {
|
query: {
|
||||||
startDate: '',
|
startDate: '',
|
||||||
},
|
},
|
||||||
marketList: [{
|
marketList: [
|
||||||
|
{
|
||||||
text: '奖金来源',
|
text: '奖金来源',
|
||||||
id: 3,
|
id: 3,
|
||||||
path: "/marketDynamics",
|
path: '/marketDynamics',
|
||||||
name: 'bonusSource',
|
name: 'bonusSource',
|
||||||
isShow: false,
|
isShow: false,
|
||||||
}, ],
|
},
|
||||||
navList: [{
|
],
|
||||||
|
navList: [
|
||||||
|
{
|
||||||
name: '月度业绩',
|
name: '月度业绩',
|
||||||
menuKey: "",
|
menuKey: '',
|
||||||
value: "ConsanguinityCheck"
|
value: 'ConsanguinityCheck',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '数据查询',
|
name: '数据查询',
|
||||||
menuKey: "",
|
menuKey: '',
|
||||||
value: "monthlyPerformance"
|
value: 'monthlyPerformance',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '直推业绩',
|
name: '直推业绩',
|
||||||
menuKey: "",
|
menuKey: '',
|
||||||
value: "recommendPerformance"
|
value: 'recommendPerformance',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '推荐列表',
|
name: '推荐列表',
|
||||||
menuKey: "",
|
menuKey: '',
|
||||||
value: "recommendList"
|
value: 'recommendList',
|
||||||
},
|
},
|
||||||
|
|
||||||
// {
|
// {
|
||||||
|
@ -232,20 +237,18 @@
|
||||||
// menuKey: "",
|
// menuKey: "",
|
||||||
// value: "recommendTime"
|
// value: "recommendTime"
|
||||||
// },
|
// },
|
||||||
|
|
||||||
],
|
],
|
||||||
navIndex: 0,
|
navIndex: 0,
|
||||||
page: {
|
page: {
|
||||||
pageSize: 50,
|
pageSize: 50,
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
},
|
},
|
||||||
ifDetail: "0"
|
ifDetail: '0',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(val) {
|
onLoad(val) {
|
||||||
|
|
||||||
this.query.startDate = this.getStartTime()
|
this.query.startDate = this.getStartTime()
|
||||||
this.ifDetail = val.ifDetail || "0"
|
this.ifDetail = val.ifDetail || '0'
|
||||||
// this.query.endDate = this.getEndTime()
|
// this.query.endDate = this.getEndTime()
|
||||||
this.getMenuLists()
|
this.getMenuLists()
|
||||||
},
|
},
|
||||||
|
@ -257,7 +260,7 @@
|
||||||
let month = date.getMonth() + 1 // 得到当前月份(0-11月份,+1是当前月份)
|
let month = date.getMonth() + 1 // 得到当前月份(0-11月份,+1是当前月份)
|
||||||
month = month > 9 ? month : '0' + month // 补零
|
month = month > 9 ? month : '0' + month // 补零
|
||||||
// return year + '-' + month + '-' + day
|
// return year + '-' + month + '-' + day
|
||||||
return year + "-" + month
|
return year + '-' + month
|
||||||
},
|
},
|
||||||
// getEndTime() {
|
// getEndTime() {
|
||||||
// var date = new Date();
|
// var date = new Date();
|
||||||
|
@ -295,7 +298,7 @@
|
||||||
async onReachBottom() {
|
async onReachBottom() {
|
||||||
if (this.navIndex == 6) {
|
if (this.navIndex == 6) {
|
||||||
this.page.pageNum + 1
|
this.page.pageNum + 1
|
||||||
this.$refs.sgsyData.getDataList(this.page.pageNum += 1);
|
this.$refs.sgsyData.getDataList((this.page.pageNum += 1))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
bindPickerChange(e) {
|
bindPickerChange(e) {
|
||||||
|
@ -304,12 +307,12 @@
|
||||||
clickHref(index) {
|
clickHref(index) {
|
||||||
// let that= this;
|
// let that= this;
|
||||||
this.navIndex = index
|
this.navIndex = index
|
||||||
this.ifDetail = "0"
|
this.ifDetail = '0'
|
||||||
},
|
},
|
||||||
getMenuLists() {
|
getMenuLists() {
|
||||||
api.menuList().then((res) => {
|
api.menuList().then(res => {
|
||||||
res.data.forEach((item) => {
|
res.data.forEach(item => {
|
||||||
this.navList.forEach((items) => {
|
this.navList.forEach(items => {
|
||||||
if (item.menuKey == items.value) {
|
if (item.menuKey == items.value) {
|
||||||
items.menuKey = item.menuKey
|
items.menuKey = item.menuKey
|
||||||
}
|
}
|
||||||
|
@ -321,32 +324,32 @@
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.uni-inputs {
|
.uni-inputs {
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text_s {
|
.text_s {
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
|
|
||||||
.height-auto-s {
|
.height-auto-s {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
margin-top: 20rpx;
|
margin-top: 20rpx;
|
||||||
padding: 25rpx 60rpx 0 60rpx;
|
padding: 25rpx 60rpx 0 60rpx;
|
||||||
// line-height: 75rpx;
|
// line-height: 75rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flex-ss {
|
.flex-ss {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
.time1 {
|
.time1 {
|
||||||
width: 158rpx;
|
width: 158rpx;
|
||||||
// height: 75rpx;
|
// height: 75rpx;
|
||||||
// border-bottom: 1rpx solid #eee;
|
// border-bottom: 1rpx solid #eee;
|
||||||
|
@ -355,11 +358,9 @@
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
/* margin-bottom: 30rpx; */
|
/* margin-bottom: 30rpx; */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.texts {
|
||||||
|
|
||||||
.texts {
|
|
||||||
color: #333;
|
color: #333;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
@ -367,33 +368,33 @@
|
||||||
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: 30rpx;
|
width: 30rpx;
|
||||||
height: 30rpx;
|
height: 30rpx;
|
||||||
margin: 5rpx 0 0 20rpx;
|
margin: 5rpx 0 0 20rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
page {
|
page {
|
||||||
background-color: #f2f2f2;
|
background-color: #f2f2f2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.styles {
|
.styles {
|
||||||
border: none !important;
|
border: none !important;
|
||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
background: #d61820;
|
background: #d61820;
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-lists {
|
.top-lists {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
|
@ -411,5 +412,5 @@
|
||||||
margin: 0 10rpx;
|
margin: 0 10rpx;
|
||||||
color: #999;
|
color: #999;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue