feat: 在 chapterDetailAndorid.vue 中添加用户 ID 和手机号码的计算属性
This commit is contained in:
@@ -3,9 +3,9 @@ let socketUrl = "";
|
|||||||
if (process.env.NODE_ENV === 'development') {
|
if (process.env.NODE_ENV === 'development') {
|
||||||
// 开发环境
|
// 开发环境
|
||||||
// baseUrl = "https://testapi.nuttyreading.com/"; // 线上测试
|
// baseUrl = "https://testapi.nuttyreading.com/"; // 线上测试
|
||||||
// baseUrl = "https://api.nuttyreading.com/"; //线上正式'
|
baseUrl = "https://api.nuttyreading.com/"; //线上正式'
|
||||||
// baseUrl = "http://192.168.110.100:9200/pb/"; //张川川
|
// baseUrl = "http://192.168.110.100:9200/pb/"; //张川川
|
||||||
baseUrl = "http://192.168.110.131:9200/pb/"; // 王亚男
|
// baseUrl = "http://192.168.110.131:9200/pb/"; // 王亚男
|
||||||
} else if (process.env.NODE_ENV === 'production') {
|
} else if (process.env.NODE_ENV === 'production') {
|
||||||
// 生产环境11
|
// 生产环境11
|
||||||
baseUrl = "https://api.nuttyreading.com/"; //线上正式
|
baseUrl = "https://api.nuttyreading.com/"; //线上正式
|
||||||
|
|||||||
@@ -20,6 +20,8 @@
|
|||||||
:course="{courseTitle:options.navTitle, chapterTitle: curriculumData.title, catalogueId: curriculumData.catalogueId || '', courseId: curriculumData.courseId || options.courseId || ''}"
|
:course="{courseTitle:options.navTitle, chapterTitle: curriculumData.title, catalogueId: curriculumData.catalogueId || '', courseId: curriculumData.courseId || options.courseId || ''}"
|
||||||
:cover="options.curriculumImgUrl || ''"
|
:cover="options.curriculumImgUrl || ''"
|
||||||
:http="$http"
|
:http="$http"
|
||||||
|
:user-id="watermarkUserId"
|
||||||
|
:mobile="watermarkMobile"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<view class="" style="border-top: 2px solid #2979ff;">
|
<view class="" style="border-top: 2px solid #2979ff;">
|
||||||
@@ -327,7 +329,6 @@
|
|||||||
this.hideNextVideo()
|
this.hideNextVideo()
|
||||||
},
|
},
|
||||||
onUnload() {
|
onUnload() {
|
||||||
|
|
||||||
},
|
},
|
||||||
onHide() {
|
onHide() {
|
||||||
console.log('回去了 .....................');
|
console.log('回去了 .....................');
|
||||||
@@ -343,6 +344,12 @@
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(["userInfo"]),
|
...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: {
|
methods: {
|
||||||
editorIput(e){
|
editorIput(e){
|
||||||
|
|||||||
@@ -1116,14 +1116,14 @@ export default {
|
|||||||
},
|
},
|
||||||
// 改变班级状态
|
// 改变班级状态
|
||||||
changeClassStatu(statusCode) {
|
changeClassStatu(statusCode) {
|
||||||
if(this.classStatus){
|
if(this.classStatus){
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.classStatus = true;
|
this.classStatus = true;
|
||||||
debounce(async () => {
|
debounce(async () => {
|
||||||
let that = this;
|
let that = this;
|
||||||
that.opClass(statusCode);
|
that.opClass(statusCode);
|
||||||
}, 300);
|
}, 300);
|
||||||
},
|
},
|
||||||
// 未开班和进行中状态下,学员的信息,带买课标识
|
// 未开班和进行中状态下,学员的信息,带买课标识
|
||||||
async getStudentsList() {
|
async getStudentsList() {
|
||||||
|
|||||||
Reference in New Issue
Block a user