|
@@ -22,7 +22,7 @@
|
|
:style="{
|
|
:style="{
|
|
backgroundImage: `url(${$tools.splitImgHost(
|
|
backgroundImage: `url(${$tools.splitImgHost(
|
|
goodsData.coverUrl,
|
|
goodsData.coverUrl,
|
|
- true
|
|
|
|
|
|
+ false
|
|
)})`,
|
|
)})`,
|
|
}"
|
|
}"
|
|
>
|
|
>
|
|
@@ -2225,6 +2225,40 @@
|
|
</span>
|
|
</span>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
|
|
+ <el-dialog
|
|
|
|
+ width="996px"
|
|
|
|
+ height="600px"
|
|
|
|
+ class="info"
|
|
|
|
+ :visible.sync="showAgreementModal"
|
|
|
|
+ :close-on-click-modal="false"
|
|
|
|
+ :close-on-press-escape="false"
|
|
|
|
+ :show-close="false"
|
|
|
|
+ title="提示"
|
|
|
|
+ >
|
|
|
|
+ <div class="">
|
|
|
|
+ <div>
|
|
|
|
+ 本产品(或服务)提供【{{
|
|
|
|
+ goodsData.goodsName
|
|
|
|
+ }}】课程的在线学习功能,为使用这些功能,我们需要使用您设备上的摄像头,并收集以下个人信息:
|
|
|
|
+ <span v-for="(item, listIndex) in listData" :key="listIndex"
|
|
|
|
+ >{{ item.fieldName }}、</span
|
|
|
|
+ >
|
|
|
|
+ <!-- 姓名、性别、身份证号码、移动电话号码、身份证照片、一寸照、证书名称/岗位、证书编号、有效期、人脸照片(每节课随机拍摄三张)、 -->
|
|
|
|
+ 学习详细记录。
|
|
|
|
+ </div>
|
|
|
|
+ <div>
|
|
|
|
+ 我们会将上述信息提供至广东省建设执业注册管理中心等第三方组织使用,用于继续教育备案等。如果您拒绝,将导致这些功能无法实现,但不影响您使用本产品(或服务)的其他业务功能。
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
|
+ <el-button @click="$router.back(-1)">取 消</el-button>
|
|
|
|
+ <el-button type="primary" @click="showInfoDetailModal = true"
|
|
|
|
+ >同意并继续</el-button
|
|
|
|
+ >
|
|
|
|
+ </span>
|
|
|
|
+ </el-dialog>
|
|
|
|
+
|
|
<div id="printTable"></div>
|
|
<div id="printTable"></div>
|
|
<!-- <ToolBar></ToolBar> -->
|
|
<!-- <ToolBar></ToolBar> -->
|
|
<Footer></Footer>
|
|
<Footer></Footer>
|
|
@@ -2272,6 +2306,7 @@ export default {
|
|
bgColor: "#ccc",
|
|
bgColor: "#ccc",
|
|
answerTimer: null,
|
|
answerTimer: null,
|
|
recordObj: {},
|
|
recordObj: {},
|
|
|
|
+ showAgreementModal: false,
|
|
showInfoDetailModal: false,
|
|
showInfoDetailModal: false,
|
|
showStampDetailModail: false,
|
|
showStampDetailModail: false,
|
|
isTaking: true, //是否正在拍照
|
|
isTaking: true, //是否正在拍照
|
|
@@ -2594,7 +2629,7 @@ export default {
|
|
};
|
|
};
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- mounted() {
|
|
|
|
|
|
+ async mounted() {
|
|
this.courseId = +this.$route.query.courseId || "";
|
|
this.courseId = +this.$route.query.courseId || "";
|
|
this.nowTime = Number(new Date().getTime() / 1000).toFixed(0);
|
|
this.nowTime = Number(new Date().getTime() / 1000).toFixed(0);
|
|
this.goodsId = this.$route.params.goodsId;
|
|
this.goodsId = this.$route.params.goodsId;
|
|
@@ -2602,10 +2637,44 @@ export default {
|
|
this.gradeId = this.$route.query.gradeId;
|
|
this.gradeId = this.$route.query.gradeId;
|
|
this.sectionItem = this.$route.query;
|
|
this.sectionItem = this.$route.query;
|
|
|
|
|
|
|
|
+ let isOther = this.$route.query.isOther || "";
|
|
|
|
+
|
|
|
|
+ if (isOther) {
|
|
|
|
+ const confirmText = [
|
|
|
|
+ "您的学习账号已经开通,请按照步骤操作,进行学习。",
|
|
|
|
+ "1.点击【跳转学习网址】按钮",
|
|
|
|
+ "2.打开学习网址后,选择【个人用户】进行登录",
|
|
|
|
+ "(1)账号:您个人的身份证号码",
|
|
|
|
+ "(2)密码:身份证号码,再加111111",
|
|
|
|
+ ];
|
|
|
|
+ const newDatas = [];
|
|
|
|
+ const h = this.$createElement;
|
|
|
|
+ for (const i in confirmText) {
|
|
|
|
+ newDatas.push(h("p", null, confirmText[i]));
|
|
|
|
+ }
|
|
|
|
+ this.$confirm(h("div", null, newDatas), "温馨提示", {
|
|
|
|
+ beforeClose: (type) => {
|
|
|
|
+ if (type == "confirm") {
|
|
|
|
+ window.open("http://admin.zhujianpeixun.com/", "_blank");
|
|
|
|
+ } else if (type == "cancel") {
|
|
|
|
+ this.$router.back(-1);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ confirmButtonText: "跳转学习网址",
|
|
|
|
+ cancelButtonText: "关闭",
|
|
|
|
+ closeOnClickModal: false,
|
|
|
|
+ closeOnPressEscape: false,
|
|
|
|
+ distinguishCancelAndClose: false,
|
|
|
|
+ showClose: false,
|
|
|
|
+ });
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
if (this.$route.query.rebuild) {
|
|
if (this.$route.query.rebuild) {
|
|
this.courseTabIndex = "2";
|
|
this.courseTabIndex = "2";
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ await this.getGoodsDetail(); //商品详情
|
|
this.dictList();
|
|
this.dictList();
|
|
|
|
|
|
// this.userConfirmInfoDetail().then((res) => {
|
|
// this.userConfirmInfoDetail().then((res) => {
|
|
@@ -3696,7 +3765,7 @@ export default {
|
|
showClose: false,
|
|
showClose: false,
|
|
})
|
|
})
|
|
.then((_) => {
|
|
.then((_) => {
|
|
- this.showInfoDetailModal = true;
|
|
|
|
|
|
+ this.showAgreementModal = true;
|
|
this.getInfo();
|
|
this.getInfo();
|
|
})
|
|
})
|
|
.catch((_) => {
|
|
.catch((_) => {
|
|
@@ -4333,7 +4402,6 @@ export default {
|
|
this.historyChatMsgList = [];
|
|
this.historyChatMsgList = [];
|
|
this.nowTime = Number(new Date().getTime() / 1000).toFixed(0);
|
|
this.nowTime = Number(new Date().getTime() / 1000).toFixed(0);
|
|
this.courseDetail(); //课程详情
|
|
this.courseDetail(); //课程详情
|
|
- this.getGoodsDetail(); //商品详情
|
|
|
|
this.getAnswerList(); //答疑列表
|
|
this.getAnswerList(); //答疑列表
|
|
this.answerTimer = setInterval(() => {
|
|
this.answerTimer = setInterval(() => {
|
|
this.getAnswerList();
|
|
this.getAnswerList();
|
|
@@ -4520,56 +4588,60 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
getGoodsDetail() {
|
|
getGoodsDetail() {
|
|
- let self = this;
|
|
|
|
- this.$request.goodsDetail(this.goodsId).then((res) => {
|
|
|
|
- self.goodsData = res.data;
|
|
|
|
- self.gradeId = self.goodsData.gradeId;
|
|
|
|
- if (this.goodsData.categoryName) {
|
|
|
|
- this.infoForm.apply_post = this.goodsData.categoryName;
|
|
|
|
|
|
+ return new Promise((resolve) => {
|
|
|
|
+ let self = this;
|
|
|
|
+ this.$request.goodsDetail(this.goodsId).then((res) => {
|
|
|
|
+ self.goodsData = res.data;
|
|
|
|
+ self.gradeId = self.goodsData.gradeId;
|
|
if (this.goodsData.categoryName) {
|
|
if (this.goodsData.categoryName) {
|
|
- this.apply_post_disabled = true;
|
|
|
|
- }
|
|
|
|
|
|
+ this.infoForm.apply_post = this.goodsData.categoryName;
|
|
|
|
+ if (this.goodsData.categoryName) {
|
|
|
|
+ this.apply_post_disabled = true;
|
|
|
|
+ }
|
|
|
|
|
|
- if (this.userInfo.companyName) {
|
|
|
|
- this.infoForm.work_unit = this.userInfo.companyName;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- if (this.goodsData.buyNote) {
|
|
|
|
- this.tabList = [
|
|
|
|
- { name: "1", label: "学员须知" },
|
|
|
|
- { name: "2", label: "课程答疑" },
|
|
|
|
- { name: "3", label: "笔记讲义" },
|
|
|
|
- ];
|
|
|
|
- console.log(res, "res111");
|
|
|
|
- this.getRecommend();
|
|
|
|
- } else {
|
|
|
|
- this.tabList = [
|
|
|
|
- { name: "1", label: "课程答疑" },
|
|
|
|
- { name: "2", label: "笔记讲义" },
|
|
|
|
- ];
|
|
|
|
- }
|
|
|
|
- this.courseBusiness();
|
|
|
|
- this.courseHandouts();
|
|
|
|
- if (self.goodsData.goodsPlayConfig) {
|
|
|
|
- self.goodsPlayConfig = JSON.parse(self.goodsData.goodsPlayConfig);
|
|
|
|
- if (self.goodsPlayConfig.autoPlay > 0) {
|
|
|
|
- self.autoplay = true;
|
|
|
|
|
|
+ if (this.userInfo.companyName) {
|
|
|
|
+ this.infoForm.work_unit = this.userInfo.companyName;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- if (self.goodsPlayConfig.drag > 0) {
|
|
|
|
- self.isAllowSeek = "off";
|
|
|
|
|
|
+ if (this.goodsData.buyNote) {
|
|
|
|
+ this.tabList = [
|
|
|
|
+ { name: "1", label: "学员须知" },
|
|
|
|
+ { name: "2", label: "课程答疑" },
|
|
|
|
+ { name: "3", label: "笔记讲义" },
|
|
|
|
+ ];
|
|
|
|
+ console.log(res, "res111");
|
|
|
|
+ this.getRecommend();
|
|
|
|
+ } else {
|
|
|
|
+ this.tabList = [
|
|
|
|
+ { name: "1", label: "课程答疑" },
|
|
|
|
+ { name: "2", label: "笔记讲义" },
|
|
|
|
+ ];
|
|
}
|
|
}
|
|
- if (self.goodsPlayConfig.speed > 0) {
|
|
|
|
- self.playbackRate = true;
|
|
|
|
|
|
+ this.courseBusiness();
|
|
|
|
+ this.courseHandouts();
|
|
|
|
+ if (self.goodsData.goodsPlayConfig) {
|
|
|
|
+ self.goodsPlayConfig = JSON.parse(self.goodsData.goodsPlayConfig);
|
|
|
|
+ if (self.goodsPlayConfig.autoPlay > 0) {
|
|
|
|
+ self.autoplay = true;
|
|
|
|
+ }
|
|
|
|
+ if (self.goodsPlayConfig.drag > 0) {
|
|
|
|
+ self.isAllowSeek = "off";
|
|
|
|
+ }
|
|
|
|
+ if (self.goodsPlayConfig.speed > 0) {
|
|
|
|
+ self.playbackRate = true;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- }
|
|
|
|
- if (self.goodsData.goodsPhotographConfig) {
|
|
|
|
- self.goodsPhotographConfig = JSON.parse(
|
|
|
|
- self.goodsData.goodsPhotographConfig
|
|
|
|
- );
|
|
|
|
- if (self.goodsPhotographConfig.photoNum > 0) {
|
|
|
|
- self.photoNum = self.goodsPhotographConfig.photoNum;
|
|
|
|
|
|
+ if (self.goodsData.goodsPhotographConfig) {
|
|
|
|
+ self.goodsPhotographConfig = JSON.parse(
|
|
|
|
+ self.goodsData.goodsPhotographConfig
|
|
|
|
+ );
|
|
|
|
+ if (self.goodsPhotographConfig.photoNum > 0) {
|
|
|
|
+ self.photoNum = self.goodsPhotographConfig.photoNum;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ resolve();
|
|
});
|
|
});
|
|
},
|
|
},
|
|
/**
|
|
/**
|