eslint
This commit is contained in:
@@ -8,14 +8,14 @@
|
||||
<div class="select-content">
|
||||
<div class="area-content">
|
||||
<AiAreaPicker :areaId="user.areaId" v-model="areaId" @select="areaSelect" :name.sync="areaName">
|
||||
<img src="./img/local-icon.png" alt="">
|
||||
<img src="./img/local-icon.png" alt="" />
|
||||
<span class="label" v-if="areaName">{{ areaName }}</span>
|
||||
<span v-else>请选择</span>
|
||||
<u-icon name="arrow-down" color="#666" size="24" />
|
||||
</AiAreaPicker>
|
||||
</div>
|
||||
<div class="search-input" v-if="tabIndex">
|
||||
<img src="./img/search-icon.png" alt="">
|
||||
<img src="./img/search-icon.png" alt="" />
|
||||
<u-input type="text" placeholder="请输入姓名" placeholder-style="color:#999;font-size:13px;" height="18" v-model="name" @confirm="getUserList" :clearable="false" maxlength="6" />
|
||||
</div>
|
||||
</div>
|
||||
@@ -47,12 +47,12 @@
|
||||
<div class="item-content" v-for="(item, index) in userList" :key="index">
|
||||
<div class="title" @click="showUserType(index)">
|
||||
<h2>{{ item.label }}</h2>
|
||||
<img src="./img/down-icon.png" alt="" :class="item.check ? 'img-active' : ''">
|
||||
<img src="./img/down-icon.png" alt="" :class="item.check ? 'img-active' : ''" />
|
||||
</div>
|
||||
<div class="user-list" v-if="item.check">
|
||||
<div class="user-item" v-for="(e, indexs) in item.value" :key="indexs" v-if="item.value && item.value.length">
|
||||
<div class="user-img">
|
||||
<img src="./img/user-img.png" alt="">
|
||||
<img src="./img/user-img.png" alt="" />
|
||||
</div>
|
||||
<div class="user-info">
|
||||
<p class="name">{{ e.name }}</p>
|
||||
@@ -75,7 +75,6 @@
|
||||
<script>
|
||||
import { mapState } from 'vuex'
|
||||
export default {
|
||||
|
||||
data() {
|
||||
return {
|
||||
areaId: '',
|
||||
@@ -86,16 +85,19 @@ export default {
|
||||
statisticsList: [],
|
||||
statisticsListMon: [],
|
||||
userList: [],
|
||||
name: ''
|
||||
name: '',
|
||||
}
|
||||
},
|
||||
computed: { ...mapState(['user']) },
|
||||
created() {
|
||||
this.$dict.load('appSpecialTypeFive').then(() => {
|
||||
this.areaId = this.user.areaId
|
||||
this.areaName = this.user.areaName
|
||||
this.getStatistic()
|
||||
this.getStatisticMon()
|
||||
this.getUserList()
|
||||
})
|
||||
|
||||
uni.$on('specialPeopleList', () => {
|
||||
this.getStatistic()
|
||||
this.getStatisticMon()
|
||||
@@ -104,6 +106,7 @@ export default {
|
||||
},
|
||||
onShow() {
|
||||
document.title = '特殊人群管理'
|
||||
console.log(this.$dict.getDict('appSpecialTypeFive'))
|
||||
},
|
||||
|
||||
methods: {
|
||||
@@ -123,7 +126,7 @@ export default {
|
||||
for (let i in res.data) {
|
||||
var obj = {
|
||||
label: i,
|
||||
value: res.data[i]
|
||||
value: res.data[i],
|
||||
}
|
||||
this.statisticsList.push(obj)
|
||||
}
|
||||
@@ -137,7 +140,7 @@ export default {
|
||||
for (let i in res.data) {
|
||||
var obj = {
|
||||
label: i,
|
||||
value: res.data[i]
|
||||
value: res.data[i],
|
||||
}
|
||||
this.statisticsListMon.push(obj)
|
||||
}
|
||||
@@ -152,7 +155,7 @@ export default {
|
||||
var obj = {
|
||||
label: i,
|
||||
value: res.data[i],
|
||||
check: false
|
||||
check: false,
|
||||
}
|
||||
this.userList.push(obj)
|
||||
}
|
||||
@@ -182,9 +185,8 @@ export default {
|
||||
})
|
||||
this.userList[index].check = true
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -194,14 +196,14 @@ export default {
|
||||
width: 100%;
|
||||
height: 96px;
|
||||
line-height: 96px;
|
||||
background: #3975C6;
|
||||
background: #3975c6;
|
||||
display: flex;
|
||||
.item {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
font-size: 28px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
color: #CDDCF0;
|
||||
color: #cddcf0;
|
||||
}
|
||||
.active {
|
||||
font-family: PingFangSC-Medium, PingFang SC;
|
||||
@@ -211,7 +213,7 @@ export default {
|
||||
span {
|
||||
width: 48px;
|
||||
height: 4px;
|
||||
background: #FFF;
|
||||
background: #fff;
|
||||
position: absolute;
|
||||
bottom: 14px;
|
||||
left: 50%;
|
||||
@@ -221,13 +223,13 @@ export default {
|
||||
}
|
||||
.area-select {
|
||||
width: 100%;
|
||||
background: #FFF;
|
||||
background: #fff;
|
||||
padding-left: 32px;
|
||||
box-sizing: border-box;
|
||||
.select-content {
|
||||
width: 100%;
|
||||
padding: 24px 32px 24px 0;
|
||||
border-bottom: 1px solid #D8DDE6;
|
||||
border-bottom: 1px solid #d8dde6;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
@@ -250,7 +252,7 @@ export default {
|
||||
.search-input {
|
||||
width: 402px;
|
||||
height: 64px;
|
||||
background: #F5F5F5;
|
||||
background: #f5f5f5;
|
||||
border-radius: 32px;
|
||||
padding: 14px 32px 14px 64px;
|
||||
box-sizing: border-box;
|
||||
@@ -273,7 +275,7 @@ export default {
|
||||
}
|
||||
.info-content {
|
||||
width: calc(100% - 64px);
|
||||
background: #FFF;
|
||||
background: #fff;
|
||||
border-radius: 8px;
|
||||
margin: 24px 32px 0;
|
||||
.title {
|
||||
@@ -296,7 +298,7 @@ export default {
|
||||
font-size: 64px;
|
||||
font-family: DINAlternate-Bold, DINAlternate;
|
||||
font-weight: bold;
|
||||
color: #3192F4;
|
||||
color: #3192f4;
|
||||
line-height: 74px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
@@ -312,7 +314,7 @@ export default {
|
||||
.color-org {
|
||||
.num-item {
|
||||
h3 {
|
||||
color: #FF8700;
|
||||
color: #ff8700;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -323,7 +325,7 @@ export default {
|
||||
width: 100%;
|
||||
height: 108px;
|
||||
line-height: 108px;
|
||||
background: #FFF;
|
||||
background: #fff;
|
||||
padding: 0 32px;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
@@ -338,7 +340,7 @@ export default {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
margin-top: 38px;
|
||||
transition: all .3s ease-in-out;
|
||||
transition: all 0.3s ease-in-out;
|
||||
}
|
||||
.img-active {
|
||||
transform: rotate(180deg);
|
||||
@@ -397,11 +399,11 @@ export default {
|
||||
height: 112px;
|
||||
line-height: 112px;
|
||||
text-align: center;
|
||||
background: #1365DD;
|
||||
background: #1365dd;
|
||||
font-size: 32px;
|
||||
font-family: PingFangSC-Medium, PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #FFF;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user