This commit is contained in:
杨航
2025-09-08 10:07:20 +08:00
parent 97e0923947
commit d2e3de1df9
2 changed files with 13 additions and 20 deletions
+5 -14
View File
@@ -166,6 +166,7 @@ const pageTopPadding = computed(() => statusBarHeight + 'px')
const isContinue = ref('N')
// 初始化数据
const getData = async flag => {
isContinue.value = "N"
try {
const { body } = await getCourseStudyInfoApi({
crsId: crsId.value
@@ -188,7 +189,8 @@ const getData = async flag => {
body: {
crsId: crsId.value,
teacherNo: choiceTeacher.value,
studyType: isPreview.value ? 'P' : 'S'
studyType: isPreview.value ? 'P' : 'S',
isContinue: isContinue.value
}
})
return
@@ -334,7 +336,8 @@ const nextStep = () => {
body: {
crsId: crsId.value,
teacherNo: choiceTeacher.value,
studyType: isPreview.value ? 'P' : 'S'
studyType: isPreview.value ? 'P' : 'S',
isContinue: isContinue.value
}
})
step.value = 2
@@ -649,18 +652,6 @@ const logId = ref('')
// ws 初始化逻辑
const initsocketTask = () => {
socketStore.creatSocket()
// unref(SocketObj).on('open', (res)=>{
// if(startPgrphId.value){
// sendMessage({
// "commond" : 'STDY',
// "body" : {
// crsId: crsId.value,
// teacherNo: choiceTeacher.value
// }
// })
// step.value = 2
// }
// })
unref(SocketObj).on('message', res => {
const { rtnCode, body, commond } = JSON.parse(res.data)
if (rtnCode === '0000') {
+8 -6
View File
@@ -49,16 +49,18 @@ export default {
wv.setStyle({
top: 80
})
// uni.onKeyboardHeightChange(setHeight)
uni.onKeyboardHeightChange(setHeight)
}, 1000)
// #endif
},
methods: {
// setHeight(res){
// wv.setStyle({
// top: res.height + 20
// })
// },
setHeight(res){
//#ifdef APP-PLUS
wv.setStyle({
top: res.height + 20
})
// #endif
},
backRouter() {
common.navigateBack()
},