|
|
@ -6,7 +6,7 @@ |
|
|
<view class="head"> |
|
|
<view class="head"> |
|
|
<view class="head-img"> |
|
|
<view class="head-img"> |
|
|
<!-- <fui-avatar width="136" :src="$util.img(member_info.headimg)"></fui-avatar> --> |
|
|
<!-- <fui-avatar width="136" :src="$util.img(member_info.headimg)"></fui-avatar> --> |
|
|
<image class="pic" :src="$util.img(member_info.headimg)"></image> |
|
|
<image class="pic" :src="member_info.memberHasOne ? member_info.memberHasOne.headimg : ''"></image> |
|
|
<view class="head-text">{{member_info.name}}</view> |
|
|
<view class="head-text">{{member_info.name}}</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
@ -123,6 +123,8 @@ |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import {Api_url} from "@/common/config"; |
|
|
import {Api_url} from "@/common/config"; |
|
|
|
|
|
import apiRoute from '@/api/apiRoute.js'; |
|
|
|
|
|
|
|
|
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" |
|
|
export default { |
|
|
export default { |
|
|
@ -136,7 +138,8 @@ |
|
|
uploadImageApiUrl: `${Api_url}/file/image`, |
|
|
uploadImageApiUrl: `${Api_url}/file/image`, |
|
|
uploadVideoApiUrl: `${Api_url}/file/video`, |
|
|
uploadVideoApiUrl: `${Api_url}/file/video`, |
|
|
|
|
|
|
|
|
member_info: [], |
|
|
member_info: {},//学生信息 |
|
|
|
|
|
|
|
|
assignmentsList: [],//作业列表 |
|
|
assignmentsList: [],//作业列表 |
|
|
jobAssignmentsInfo: [],//待完成的作业 |
|
|
jobAssignmentsInfo: [],//待完成的作业 |
|
|
|
|
|
|
|
|
@ -172,9 +175,9 @@ |
|
|
}, |
|
|
}, |
|
|
onShow(){}, |
|
|
onShow(){}, |
|
|
methods: { |
|
|
methods: { |
|
|
//初始化 |
|
|
//学生页面初始化 |
|
|
async init(){ |
|
|
async init(){ |
|
|
this.member_init() |
|
|
await this.member_init() |
|
|
this.getMemberIndex() |
|
|
this.getMemberIndex() |
|
|
this.getList() |
|
|
this.getList() |
|
|
this.getJobAssignmentsInfo() |
|
|
this.getJobAssignmentsInfo() |
|
|
@ -199,7 +202,7 @@ |
|
|
url: this.openPath |
|
|
url: this.openPath |
|
|
}) |
|
|
}) |
|
|
}else{ |
|
|
}else{ |
|
|
//页面正确的情况下 |
|
|
//页面正确的情况下->执行学生页面初始化 |
|
|
this.init() |
|
|
this.init() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -267,15 +270,20 @@ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//获取学员信息 |
|
|
//获取学员信息 |
|
|
member_init() { |
|
|
async member_init() { |
|
|
memberApi.member().then(res => { |
|
|
let res = await apiRoute.xy_memberInfo({}) |
|
|
if(res.code == 1){ |
|
|
if(res.code != 1){ |
|
|
this.member_info = res.data |
|
|
uni.showToast({ |
|
|
}else{ |
|
|
title: res.msg, |
|
|
this.member_info = [] |
|
|
icon: 'none' |
|
|
} |
|
|
|
|
|
}) |
|
|
}) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
this.member_info = res.data |
|
|
|
|
|
console.log('xxxx',this.member_info) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
//跳转页面-作业详情 |
|
|
details() { |
|
|
details() { |
|
|
uni.navigateTo({ |
|
|
uni.navigateTo({ |
|
|
url: '/pages/student/index/work_details' |
|
|
url: '/pages/student/index/work_details' |
|
|
|