|
@ -5,13 +5,13 @@ |
|
|
<view class="rightPad"></view> |
|
|
<view class="rightPad"></view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="pad learnStatus"> |
|
|
<view class="pad learnStatus"> |
|
|
<view class="card"> |
|
|
|
|
|
|
|
|
<!-- <view class="card"> |
|
|
<view class="flex-b top_row"> |
|
|
<view class="flex-b top_row"> |
|
|
<view class="lab">科目一阶段</view> |
|
|
<view class="lab">科目一阶段</view> |
|
|
<view class="btn status">已完成</view> |
|
|
<view class="btn status">已完成</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="date-row">2023-08-09 22:52:12</view> |
|
|
<view class="date-row">2023-08-09 22:52:12</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
</view> --> |
|
|
<!-- <view class="card"> |
|
|
<!-- <view class="card"> |
|
|
<view class="flex-b top_row"> |
|
|
<view class="flex-b top_row"> |
|
|
<view class="lab">科目一考试</view> |
|
|
<view class="lab">科目一考试</view> |
|
@ -25,41 +25,43 @@ |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> --> |
|
|
</view> --> |
|
|
<view class="card"> |
|
|
|
|
|
|
|
|
<view class="card" v-for="(item,index) in list" :key="index"> |
|
|
<view class="flex-b top_row"> |
|
|
<view class="flex-b top_row"> |
|
|
<view class="lab">科目二考试</view> |
|
|
|
|
|
<view class="btn">已预约</view> |
|
|
|
|
|
|
|
|
<view class="lab">{{item.dynamicsName}}</view> |
|
|
|
|
|
<!-- <view class="btn">已预约</view> --> |
|
|
</view> |
|
|
</view> |
|
|
<view class="date-row">2023-08-09 22:52:12</view> |
|
|
|
|
|
<view class="bg"> |
|
|
|
|
|
<view class="row"> |
|
|
|
|
|
<view class="text">考试场地:某某科目二考场</view> |
|
|
|
|
|
|
|
|
<view class="date-row">{{item.dynamicsTime}}</view> |
|
|
|
|
|
<view class="bg" v-if="item.examSite||item.examTime"> |
|
|
|
|
|
<view class="row" v-if="item.examSite"> |
|
|
|
|
|
<view class="text">地点:{{item.examSite}}</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="row"> |
|
|
|
|
|
<view class="text">考试时间:2023-08-23 10:00:00</view> |
|
|
|
|
|
|
|
|
<view class="row" v-if="item.examTime"> |
|
|
|
|
|
<view class="text">时间:{{item.examTime}}</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="card"> |
|
|
|
|
|
|
|
|
<!-- <view class="card"> |
|
|
<view class="flex-b top_row"> |
|
|
<view class="flex-b top_row"> |
|
|
<view class="lab">科目一考试</view> |
|
|
<view class="lab">科目一考试</view> |
|
|
<view class="btn red status">未通过</view> |
|
|
<view class="btn red status">未通过</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="date-row">2023-08-09 22:52:12</view> |
|
|
<view class="date-row">2023-08-09 22:52:12</view> |
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
</view> --> |
|
|
|
|
|
<nodata v-if="!list.length"></nodata> |
|
|
|
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
|
|
|
import { getStudentDynamics } from '@/config/api.js' |
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
tabData: [{ |
|
|
tabData: [{ |
|
|
text: '全部', |
|
|
text: '全部', |
|
|
id: 10 |
|
|
|
|
|
|
|
|
id: 0 |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
text: '科目一', |
|
|
text: '科目一', |
|
@ -78,21 +80,42 @@ |
|
|
id: 4 |
|
|
id: 4 |
|
|
}, |
|
|
}, |
|
|
], |
|
|
], |
|
|
currentTab: 10, |
|
|
|
|
|
|
|
|
currentTab: 1, |
|
|
|
|
|
list: [] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
onShow() { |
|
|
|
|
|
this.getStudentDynamicsFn() |
|
|
|
|
|
}, |
|
|
|
|
|
onPullDownRefresh() { |
|
|
|
|
|
this.getStudentDynamicsFn() |
|
|
|
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
scroll(e) { |
|
|
scroll(e) { |
|
|
console.log(e) |
|
|
console.log(e) |
|
|
}, |
|
|
}, |
|
|
changeTab(val) { |
|
|
changeTab(val) { |
|
|
|
|
|
if(this.currentTab == val.id) return |
|
|
this.currentTab = val.id |
|
|
this.currentTab = val.id |
|
|
|
|
|
this.getStudentDynamicsFn() |
|
|
|
|
|
}, |
|
|
|
|
|
async getStudentDynamicsFn() { |
|
|
|
|
|
let obj = { |
|
|
|
|
|
"studentId": this.studentId, |
|
|
|
|
|
"subject": this.currentTab, |
|
|
|
|
|
} |
|
|
|
|
|
if(obj.subject==0) delete obj.subject |
|
|
|
|
|
const {data: res} = await getStudentDynamics(obj) |
|
|
|
|
|
this.list = res |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
<style lang="scss" scoped> |
|
|
|
|
|
.pageBg { |
|
|
|
|
|
padding-bottom: 40rpx; |
|
|
|
|
|
} |
|
|
@import '../../tabbar/learnCar/comp/comp.scss'; |
|
|
@import '../../tabbar/learnCar/comp/comp.scss'; |
|
|
.date-row { |
|
|
.date-row { |
|
|
line-height: 88rpx; |
|
|
line-height: 88rpx; |
|
|