江西小程序管理端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

104 lines
1.9 KiB

<template>
<view class="pageBgImg">
<topNavbar title="选择学员"></topNavbar>
<view class="pad">
<view class="searchBox">
<searchRow placeholder="搜索学员姓名、学员手机号"></searchRow>
</view>
<view class="ul">
<view class="li" v-for="(item,index) in list" :key="index">
<view class="icon">
<image src="@/static/images/index/radio_cli.png" mode=""></image>
<!-- <image src="@/static/images/index/radio.png" mode=""></image> -->
</view>
<view class="name">{{item.name}}</view>
</view>
</view>
<view class="btn_row">
<view class="btnBorder">已选学员4</view>
<view class="btnBg">确认学员</view>
</view>
</view>
</view>
</template>
<script>
import { studentList } from '@/config/api.js'
export default {
data() {
return {
params: {
pageNo: 1,
pageSize: 40,
schoolId: '',
coachId: '',
status: 0,
},
total: 40,
list: []
}
},
onLoad() {
this.params.schoolId = this.vuex_schoolId
// this.params.coachId = this.vuex_coachId
this.studentListFn()
},
methods: {
async studentListFn() {
const {data: res} = await studentList(this.params)
this.params.pageNo ++
this.total = res.total
this.list.push(...res.list)
}
}
}
</script>
<style lang="scss" scoped>
.btn_row {
position: fixed;
bottom: 0;
left: 0;
padding: 10rpx 28rpx;
z-index: 9;
width: 100%;
}
.searchBox {
padding: 20rpx 0;
}
.ul {
width: 100%;
padding-bottom: 120rpx;
.li {
display: flex;
align-items: center;
height: 108rpx;
background: #FFFFFF;
border-radius: 16rpx;
border: 2rpx solid rgba(25,137,250,0.2);
margin-bottom: 20rpx;
padding: 0 20rpx;
.icon {
width: 32rpx;
height: 32rpx;
}
.name {
padding: 0 20rpx;
}
}
}
.btn_row {
display: flex;
justify-content: space-between;
.btnBorder {
width: 40%;
}
.btnBg {
width: 56%;
}
}
</style>