2024-08-28 11:51:49 +08:00
|
|
|
|
<template>
|
|
|
|
|
<view class="content">
|
|
|
|
|
<view class="top-">
|
2024-08-28 17:55:41 +08:00
|
|
|
|
<u-search @change="changeInput()" placeholder="请输入搜索内容" v-model="param.name"></u-search>
|
2024-08-28 11:51:49 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<view class="g_">
|
2024-08-28 17:55:41 +08:00
|
|
|
|
共{{param.total}}人
|
2024-08-28 11:51:49 +08:00
|
|
|
|
</view>
|
|
|
|
|
<u-empty mode="list" v-if="cadetList.total == 0">
|
|
|
|
|
</u-empty>
|
2024-08-28 17:55:41 +08:00
|
|
|
|
<view class="box_" v-for="(item,index) in cadetList" :key="index ">
|
2024-08-28 11:51:49 +08:00
|
|
|
|
<view style="display: flex;align-items: center;
|
|
|
|
|
justify-content: space-between;width: 100%;">
|
2024-08-28 16:17:17 +08:00
|
|
|
|
<view class="d-s" @click="goDetails(item.identity)">
|
2024-08-28 11:51:49 +08:00
|
|
|
|
<view class="touxiang">
|
|
|
|
|
<image :src="imagesUrl + item.vactor" mode=""></image>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="">
|
|
|
|
|
<view class="name_">{{item.name}}</view>
|
|
|
|
|
<view class="tel_">{{item.phone}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<u-icon name="phone-fill" color="#2979ff" size="28" @click="gettel(item.phone)"></u-icon>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<view class="b-s">
|
|
|
|
|
<view class="w-d-s">
|
|
|
|
|
<view class="hui_">教学教练:</view>
|
|
|
|
|
|
|
|
|
|
<view class="hei_">{{item.jlName}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<view class="w-d-s">
|
|
|
|
|
<view class="hui_">入学时间:</view>
|
|
|
|
|
|
|
|
|
|
<view class="hei_">{{item.createTime}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import request from "@/utils/request.js"
|
|
|
|
|
import {
|
|
|
|
|
imagesUrl
|
|
|
|
|
} from "@/config.js"
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
keyword: '',
|
2024-08-28 17:55:41 +08:00
|
|
|
|
cadetList: [],
|
|
|
|
|
param:{
|
|
|
|
|
pageNum:1,
|
|
|
|
|
pageSize:10,
|
|
|
|
|
total:0
|
|
|
|
|
}
|
2024-08-28 11:51:49 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onShow() {
|
|
|
|
|
this.findCadetList()
|
|
|
|
|
},
|
|
|
|
|
onPullDownRefresh() {
|
|
|
|
|
console.log("刷新");
|
|
|
|
|
uni.stopPullDownRefresh()
|
|
|
|
|
},
|
|
|
|
|
onReachBottom() {
|
2024-08-28 17:55:41 +08:00
|
|
|
|
|
|
|
|
|
// 触底加载
|
|
|
|
|
if (this.cadetList.length < this.param.total) {
|
|
|
|
|
this.param.pageNum++
|
|
|
|
|
this.findCadetList()
|
|
|
|
|
|
|
|
|
|
}
|
2024-08-28 11:51:49 +08:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
|
async changeInput() {
|
2024-08-28 17:55:41 +08:00
|
|
|
|
this.cadetLis =[]
|
|
|
|
|
this.findCadetList()
|
2024-08-28 11:51:49 +08:00
|
|
|
|
},
|
|
|
|
|
async findCadetList() {
|
|
|
|
|
let res = await request({
|
|
|
|
|
url: `/system/pay/stuList`,
|
2024-08-28 17:55:41 +08:00
|
|
|
|
method: 'get',
|
|
|
|
|
params:this.param
|
2024-08-28 11:51:49 +08:00
|
|
|
|
})
|
2024-08-28 17:55:41 +08:00
|
|
|
|
if (res.code == 0) {
|
|
|
|
|
if (this.param.pageNum != 1) {
|
|
|
|
|
this.cadetList = this.cadetList.concat(res.data.records)
|
|
|
|
|
} else {
|
|
|
|
|
this.cadetList = res.data.records
|
|
|
|
|
}
|
|
|
|
|
this.param.total = res.data.total
|
|
|
|
|
} else {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: "网络不佳请稍后再试",
|
|
|
|
|
icon: 'error'
|
|
|
|
|
})
|
|
|
|
|
}
|
2024-08-28 11:51:49 +08:00
|
|
|
|
},
|
|
|
|
|
gettel(tel) {
|
|
|
|
|
uni.makePhoneCall({
|
|
|
|
|
phoneNumber: tel //仅为示例
|
|
|
|
|
});
|
|
|
|
|
},
|
2024-08-28 16:17:17 +08:00
|
|
|
|
goDetails(identity) {
|
2024-08-28 11:51:49 +08:00
|
|
|
|
uni.navigateTo({
|
2024-08-28 16:17:17 +08:00
|
|
|
|
url: `/pages/index/cadetDetails?userId=${identity}`
|
2024-08-28 11:51:49 +08:00
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
goback() {
|
|
|
|
|
uni.navigateBack()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
.content {
|
|
|
|
|
width: 100%;
|
|
|
|
|
background: #f4f5f6;
|
|
|
|
|
height: 100vh;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.container {
|
|
|
|
|
width: 100%;
|
|
|
|
|
background: #f4f5f6;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
padding-top: 88px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.top- {
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
|
|
height: 50px;
|
|
|
|
|
background: #FFFFFF;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
padding: 10px 15px;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.box_ {
|
|
|
|
|
width: 95%;
|
|
|
|
|
margin: 15px auto;
|
|
|
|
|
background: #FFFFFF;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
padding: 15px;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.d-s {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.touxiang {
|
|
|
|
|
width: 46px;
|
|
|
|
|
height: 46px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
margin-right: 10px;
|
|
|
|
|
|
|
|
|
|
image {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.name_ {
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
color: #333333;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.tel_ {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
color: #999999;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.g_ {
|
|
|
|
|
width: 95%;
|
|
|
|
|
margin: 10px auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.b-s {
|
|
|
|
|
width: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.w-d-s {
|
|
|
|
|
width: 50%;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
margin-top: 15px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.hui_ {
|
|
|
|
|
width: 40%;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
color: #999999;
|
|
|
|
|
margin-right: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.hei_ {
|
|
|
|
|
width: 60%;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
color: #333333;
|
|
|
|
|
}
|
2024-08-28 16:17:17 +08:00
|
|
|
|
</style>
|