Compare commits

...

2 Commits

Author SHA1 Message Date
李双庆 2572d9b740 接口 10 months ago
李双庆 54ccb7fded 接口 10 months ago
  1. 43
      api/apiRoute.js
  2. 4
      pages/coach/class/list.vue
  3. 1043
      pages/coach/course/info_list.vue
  4. 1248
      pages/coach/course/list.vue
  5. 14
      pages/coach/my/index.vue

43
api/apiRoute.js

@ -135,9 +135,46 @@ export default {
//获取添加学员列表
addStudentList(data = {}) {
let url = '/course/addStudentList'
return http.get(url, data).then(res => {
return res;
})
},
addStudent(data = {}) {
let url = '/course/addStudent'
return http.post(url, data).then(res => {
return res;
})
},
delStudentCourse(data = {}) {
let url = '/course/delStudentCourse'
return http.get(url, data).then(res => {
return res;
})
},
//获取班级列表
jlClassList(data = {}) {
let url = '/class/jlClassList'
return http.get(url, data).then(res => {
return res;
})
},
//获取课程列表
courseList(data = {}) {
let url = '/course/courseList'
return http.get(url, data).then(res => {
return res;
})
},
//获取课程详情
courseInfo(data = {}) {
let url = '/course/courseInfo'
return http.get(url, data).then(res => {
return res;
})
},
//教研管理文章列表 //教研管理文章列表
teachingResearchList(data = {}) { teachingResearchList(data = {}) {
let url = '/teachingResearch/list' let url = '/teachingResearch/list'

4
pages/coach/class/list.vue

@ -59,7 +59,7 @@
<script> <script>
import memberApi from '@/api/member.js'; import memberApi from '@/api/member.js';
import AQTabber from "@/components/AQ/AQTabber.vue" import AQTabber from "@/components/AQ/AQTabber.vue"
import apiRoute from '@/api/apiRoute.js';
export default { export default {
components: { components: {
@ -129,7 +129,7 @@ export default {
this.tableList = [] this.tableList = []
} }
let res = await memberApi.jlClassList(data) let res = await apiRoute.jlClassList(data)
this.loading = false this.loading = false
this.isReachedBottom = false; this.isReachedBottom = false;
if (res.code != 1){ if (res.code != 1){

1043
pages/coach/course/info_list.vue

File diff suppressed because it is too large

1248
pages/coach/course/list.vue

File diff suppressed because it is too large

14
pages/coach/my/index.vue

@ -11,7 +11,7 @@
<view class="user_section"> <view class="user_section">
<view class="box"> <view class="box">
<view class="left" @click="openViewMyInfo()"> <view class="left" @click="openViewMyInfo()">
<image class="pic" :src="$util.img(memberInfo.headimg)"></image> <image class="pic" :src="$util.img(memberInfo.head_img)"></image>
<view class="name">{{memberInfo.name}}</view> <view class="name">{{memberInfo.name}}</view>
</view> </view>
<view class="right"> <view class="right">
@ -96,10 +96,10 @@
</view> </view>
<view class="section_box"> <view class="section_box">
<view class="item" @click="openViewFeedback()"> <!-- <view class="item" @click="openViewFeedback()">
<view>意见反馈</view> <view>意见反馈</view>
<view></view> <view></view>
</view> </view> -->
<view class="item" @click="openViewSetUp()"> <view class="item" @click="openViewSetUp()">
<view>设置</view> <view>设置</view>
@ -114,9 +114,9 @@
</template> </template>
<script> <script>
import memberApi from '@/api/member.js'; // import memberApi from '@/api/member.js';
import AQTabber from "@/components/AQ/AQTabber.vue" import AQTabber from "@/components/AQ/AQTabber.vue"
import apiRoute from '@/api/apiRoute.js';
export default { export default {
components: { components: {
@ -130,7 +130,7 @@ export default {
onLoad() { onLoad() {
}, },
onShow() { onShow() {
// this.init(); this.init();
}, },
methods: { methods: {
async init(){ async init(){
@ -139,7 +139,7 @@ export default {
//() //()
async getMemberInfo(){ async getMemberInfo(){
let res = await memberApi.member({}) let res = await apiRoute.getPersonnelInfo({})
if (res.code != 1) { if (res.code != 1) {
uni.showToast({ uni.showToast({
title: res.msg, title: res.msg,

Loading…
Cancel
Save