feat: 在 chapterDetailAndorid.vue 中添加用户 ID 和手机号码的计算属性

This commit is contained in:
2026-06-04 17:18:55 +08:00
parent 7eed35542b
commit b78ad9a854
3 changed files with 18 additions and 11 deletions

View File

@@ -20,6 +20,8 @@
:course="{courseTitle:options.navTitle, chapterTitle: curriculumData.title, catalogueId: curriculumData.catalogueId || '', courseId: curriculumData.courseId || options.courseId || ''}"
:cover="options.curriculumImgUrl || ''"
:http="$http"
:user-id="watermarkUserId"
:mobile="watermarkMobile"
/>
<view class="" style="border-top: 2px solid #2979ff;">
@@ -327,7 +329,6 @@
this.hideNextVideo()
},
onUnload() {
},
onHide() {
console.log('回去了 .....................');
@@ -343,6 +344,12 @@
},
computed: {
...mapState(["userInfo"]),
watermarkUserId() {
return this.userInfo.id || this.userInfo.userId || this.userInfo.uid || ''
},
watermarkMobile() {
return this.userInfo.phone || this.userInfo.tel || this.userInfo.mobile || ''
},
},
methods: {
editorIput(e){

View File

@@ -1116,14 +1116,14 @@ export default {
},
// 改变班级状态
changeClassStatu(statusCode) {
if(this.classStatus){
return
}
this.classStatus = true;
debounce(async () => {
let that = this;
that.opClass(statusCode);
}, 300);
if(this.classStatus){
return
}
this.classStatus = true;
debounce(async () => {
let that = this;
that.opClass(statusCode);
}, 300);
},
// 未开班和进行中状态下,学员的信息,带买课标识
async getStudentsList() {