Commit 615ef80b authored by 黄奎's avatar 黄奎

页面修改

parent 83611174
...@@ -644,4 +644,16 @@ export function GetCourseRebateSetList(data) { ...@@ -644,4 +644,16 @@ export function GetCourseRebateSetList(data) {
method: 'post', method: 'post',
data data
}) })
}
/**
* 首页人数统计
* @param {JSON对象} data
*/
export function queryPersonnelStatic(data) {
return request({
url: '/UserCenter/PersonnelStatic',
method: 'post',
data
})
} }
\ No newline at end of file
...@@ -32,14 +32,15 @@ ...@@ -32,14 +32,15 @@
</q-btn> </q-btn>
</div> </div>
<div class="sell-num"> <div class="sell-num">
0<span class="unit"></span> {{PersionData.todayAdd}}<span class="unit"></span>
</div> </div>
<div class="flex no-wrap justify-between items-center"> <div class="flex no-wrap justify-between items-center">
<div class="sell-name">今日新名单</div> <div class="sell-name">今日新名单</div>
<img src="../../assets/images/newindex/sell8.png" alt="" style="width:10px;"> <img src="../../assets/images/newindex/sell8.png" alt="" style="width:10px;">
</div> </div>
</div> </div>
<div class="sell-block" :class="{'active-sell':sellBlock==2}" style="background-color:#FFF5F8" @click="ckeckSell(2)"> <div class="sell-block" :class="{'active-sell':sellBlock==2}" style="background-color:#FFF5F8"
@click="ckeckSell(2)">
<div class="flex no-wrap justify-between items-center"> <div class="flex no-wrap justify-between items-center">
<img src="../../assets/images/newindex/sell2.png" style="width:26px;height:26px"> <img src="../../assets/images/newindex/sell2.png" style="width:26px;height:26px">
<q-btn size="sm" dense flat round icon="more_horiz"> <q-btn size="sm" dense flat round icon="more_horiz">
...@@ -60,14 +61,15 @@ ...@@ -60,14 +61,15 @@
</q-btn> </q-btn>
</div> </div>
<div class="sell-num"> <div class="sell-num">
0<span class="unit"></span> {{PersionData.notCommunicateCount}}<span class="unit"></span>
</div> </div>
<div class="flex no-wrap justify-between items-center"> <div class="flex no-wrap justify-between items-center">
<div class="sell-name">待跟进</div> <div class="sell-name">待跟进</div>
<img src="../../assets/images/newindex/sell8.png" alt="" style="width:10px;"> <img src="../../assets/images/newindex/sell8.png" alt="" style="width:10px;">
</div> </div>
</div> </div>
<div class="sell-block" :class="{'active-sell':sellBlock==3}" style="background-color:#E8FFF3" @click="ckeckSell(3)"> <div class="sell-block" :class="{'active-sell':sellBlock==3}" style="background-color:#E8FFF3"
@click="ckeckSell(3)">
<div class="flex no-wrap justify-between items-center"> <div class="flex no-wrap justify-between items-center">
<img src="../../assets/images/newindex/sell3.png" style="width:26px;height:26px"> <img src="../../assets/images/newindex/sell3.png" style="width:26px;height:26px">
<q-btn size="sm" dense flat round icon="more_horiz"> <q-btn size="sm" dense flat round icon="more_horiz">
...@@ -88,14 +90,15 @@ ...@@ -88,14 +90,15 @@
</q-btn> </q-btn>
</div> </div>
<div class="sell-num"> <div class="sell-num">
0<span class="unit"></span> {{PersionData.todayVisit}}<span class="unit"></span>
</div> </div>
<div class="flex no-wrap justify-between items-center"> <div class="flex no-wrap justify-between items-center">
<div class="sell-name">今日到访</div> <div class="sell-name">今日到访</div>
<img src="../../assets/images/newindex/sell8.png" alt="" style="width:10px;"> <img src="../../assets/images/newindex/sell8.png" alt="" style="width:10px;">
</div> </div>
</div> </div>
<div class="sell-block" :class="{'active-sell':sellBlock==4}" style="background-color:#F2FAFF;" @click="ckeckSell(4)"> <div class="sell-block" :class="{'active-sell':sellBlock==4}" style="background-color:#F2FAFF;"
@click="ckeckSell(4)">
<div class="flex no-wrap justify-between items-center"> <div class="flex no-wrap justify-between items-center">
<img src="../../assets/images/newindex/sell4.png" style="width:26px;height:26px"> <img src="../../assets/images/newindex/sell4.png" style="width:26px;height:26px">
<q-btn size="sm" dense flat round icon="more_horiz"> <q-btn size="sm" dense flat round icon="more_horiz">
...@@ -116,14 +119,15 @@ ...@@ -116,14 +119,15 @@
</q-btn> </q-btn>
</div> </div>
<div class="sell-num"> <div class="sell-num">
0<span class="unit"></span> {{PersionData.appointmentCount}}<span class="unit"></span>
</div> </div>
<div class="flex no-wrap justify-between items-center"> <div class="flex no-wrap justify-between items-center">
<div class="sell-name">今日拜访</div> <div class="sell-name">今日拜访</div>
<img src="../../assets/images/newindex/sell8.png" alt="" style="width:10px;"> <img src="../../assets/images/newindex/sell8.png" alt="" style="width:10px;">
</div> </div>
</div> </div>
<div class="sell-block" :class="{'active-sell':sellBlock==5}" style="background-color:#FFFAF5" @click="ckeckSell(5)"> <div class="sell-block" :class="{'active-sell':sellBlock==5}" style="background-color:#FFFAF5"
@click="ckeckSell(5)">
<div class="flex no-wrap justify-between items-center"> <div class="flex no-wrap justify-between items-center">
<img src="../../assets/images/newindex/sell5.png" style="width:26px;height:26px"> <img src="../../assets/images/newindex/sell5.png" style="width:26px;height:26px">
<q-btn size="sm" dense flat round icon="more_horiz"> <q-btn size="sm" dense flat round icon="more_horiz">
...@@ -144,14 +148,15 @@ ...@@ -144,14 +148,15 @@
</q-btn> </q-btn>
</div> </div>
<div class="sell-num"> <div class="sell-num">
0<span class="unit"></span> {{PersionData.customerCount}}<span class="unit"></span>
</div> </div>
<div class="flex no-wrap justify-between items-center"> <div class="flex no-wrap justify-between items-center">
<div class="sell-name">今日新同行</div> <div class="sell-name">今日新同行</div>
<img src="../../assets/images/newindex/sell7.png" alt="" style="width:10px;"> <img src="../../assets/images/newindex/sell7.png" alt="" style="width:10px;">
</div> </div>
</div> </div>
<div class="sell-block" :class="{'active-sell':sellBlock==6}" style="background-color:#FEF4FE" @click="ckeckSell(6)"> <div class="sell-block" :class="{'active-sell':sellBlock==6}" style="background-color:#FEF4FE"
@click="ckeckSell(6)">
<div class="flex no-wrap justify-between items-center"> <div class="flex no-wrap justify-between items-center">
<img src="../../assets/images/newindex/sell6.png" style="width:26px;height:26px"> <img src="../../assets/images/newindex/sell6.png" style="width:26px;height:26px">
<q-btn size="sm" dense flat round icon="more_horiz"> <q-btn size="sm" dense flat round icon="more_horiz">
...@@ -172,7 +177,7 @@ ...@@ -172,7 +177,7 @@
</q-btn> </q-btn>
</div> </div>
<div class="sell-num"> <div class="sell-num">
0<span class="unit"></span> {{PersionData.trialLessonCount}}<span class="unit"></span>
</div> </div>
<div class="flex no-wrap justify-between items-center"> <div class="flex no-wrap justify-between items-center">
<div class="sell-name">今日试听</div> <div class="sell-name">今日试听</div>
...@@ -184,6 +189,9 @@ ...@@ -184,6 +189,9 @@
</div> </div>
</template> </template>
<script> <script>
import {
queryPersonnelStatic
} from '../../api/course/index'
import VueApexCharts from "vue-apexcharts"; import VueApexCharts from "vue-apexcharts";
export default { export default {
components: { components: {
...@@ -343,10 +351,27 @@ ...@@ -343,10 +351,27 @@
} }
} }
}, },
sellBlock:1, sellBlock: 1,
//人员统计
PersionData: {},
}; };
}, },
created() {
},
mounted() {
this.getPersionNumData();
},
methods: { methods: {
//人数统计
getPersionNumData() {
queryPersonnelStatic({}).then(res => {
if (res.Code == 1) {
this.PersionData = res.Data;
}
console.log("res", res);
});
},
checkTab(type) { checkTab(type) {
if (type == 1) { if (type == 1) {
this.tab = 1 this.tab = 1
...@@ -360,12 +385,11 @@ ...@@ -360,12 +385,11 @@
this.date = "" this.date = ""
} }
}, },
ckeckSell(n){ ckeckSell(n) {
this.sellBlock=n this.sellBlock = n
} }
} }
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.sell { .sell {
...@@ -385,7 +409,7 @@ ...@@ -385,7 +409,7 @@
} }
.top { .top {
// width: 660px; // width: 660px;
height: 185px; height: 185px;
border-radius: 8px 8px 0 0; border-radius: 8px 8px 0 0;
background-color: #009EF7; background-color: #009EF7;
...@@ -393,7 +417,7 @@ ...@@ -393,7 +417,7 @@
.bottom { .bottom {
width: 31.25vw; width: 31.25vw;
height:320px; height: 320px;
position: absolute; position: absolute;
top: 160px; top: 160px;
left: 50%; left: 50%;
...@@ -408,31 +432,34 @@ ...@@ -408,31 +432,34 @@
padding: 16px; padding: 16px;
.sell-num { .sell-num {
height:60px; height: 60px;
font-size: 36px; font-size: 36px;
font-family: Source Han Sans CN; font-family: Source Han Sans CN;
font-weight: 800; font-weight: 800;
color: #404040; color: #404040;
line-height:30px; line-height: 30px;
padding-top:20px; padding-top: 20px;
.unit{
font-size: 14px; .unit {
font-family: PingFang SC;
font-weight: 400;
color: #404040;
}
}
.sell-name{
font-size: 14px; font-size: 14px;
font-family: PingFang SC; font-family: PingFang SC;
font-weight: 400; font-weight: 400;
color: #404040; color: #404040;
white-space:nowrap; }
}
.sell-name {
font-size: 14px;
font-family: PingFang SC;
font-weight: 400;
color: #404040;
white-space: nowrap;
} }
} }
} }
} }
.active-sell{
.active-sell {
box-shadow: 1px 3px 49px 0px rgba(0, 158, 247, 0.28); box-shadow: 1px 3px 49px 0px rgba(0, 158, 247, 0.28);
} }
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment