@@ -12,7 +12,7 @@
- {{infoData .coach_name}}
+ {{infoData.coach_name}}
@@ -30,22 +30,36 @@ export default {
id: '',//作业id
},
- infoData:{},
+ infoData: {},
}
},
onLoad(options) {
- this.filteredData.id = options.id
+ this.filteredData.id = options.id || '1' // 默认ID为1
+ // 使用模拟数据
+ this.mockData()
},
onShow(){
- this.init()//初始化数据
+ // this.init() // 初始化数据 - 已注释
},
methods: {
//初始化
async init(){
- this.getAssignmentsInfo()
+ // this.getAssignmentsInfo() // 已注释
},
- //获取作业详情
+ // 模拟数据
+ mockData() {
+ this.infoData = {
+ student_file: '/static/icon-img/empty.png',
+ student_file_type: 1, // 1-图片,2-视频
+ coach_pic: '/static/icon-img/default_avatar.png',
+ coach_name: '张教练',
+ content_text: '这是一份作业的详细说明,包含了作业的要求和注意事项。
1. 请按照要求完成动作练习
2. 注意动作的标准性和连贯性
3. 完成后请上传视频或图片记录
'
+ }
+ },
+
+ //获取作业详情 - 已注释
+ /*
async getAssignmentsInfo() {
let params = {...this.filteredData}
let res = await memberApi.assignmentsInfo(params)
@@ -59,19 +73,29 @@ export default {
this.infoData = res.data
},
+ */
}
}
diff --git a/pages/market/clue/class_arrangement.vue b/pages/market/clue/class_arrangement.vue
index d152a0e..318baa5 100644
--- a/pages/market/clue/class_arrangement.vue
+++ b/pages/market/clue/class_arrangement.vue
@@ -27,6 +27,7 @@