提交 1457f765 编写于 作者: guangjun.yang's avatar guangjun.yang

项目文件整理

上级 4e385540
...@@ -158,7 +158,6 @@ export default { ...@@ -158,7 +158,6 @@ export default {
// } // }
// this.gotoCourse(item, contentList, index, trySee); // this.gotoCourse(item, contentList, index, trySee);
let appVersion = getAppVersion(this.userInfo.appVersion); let appVersion = getAppVersion(this.userInfo.appVersion);
if (item.useFlag == 2) return; if (item.useFlag == 2) return;
if (item.type == 1) { if (item.type == 1) {
...@@ -174,6 +173,7 @@ export default { ...@@ -174,6 +173,7 @@ export default {
}, },
// 如果此模块中没有考试,则直接退出;否则 // 如果此模块中没有考试,则直接退出;否则
// 查看课程是否是最后一节课, 如果是,则要查找到相应的考试,并传递给原生端
beforeGotoCourse(item, contentList, index) { beforeGotoCourse(item, contentList, index) {
let extendsParam = []; let extendsParam = [];
let hasExam = false; let hasExam = false;
...@@ -222,7 +222,6 @@ export default { ...@@ -222,7 +222,6 @@ export default {
}, },
// 跳转到课程 // 跳转到课程
// TODO 查看课程是否是最后一节课, 如果是,则要查找到相应的考试,并传递给原生端
gotoCourse: function(item, contentList, index, trySee) { gotoCourse: function(item, contentList, index, trySee) {
let extendsParam = this.beforeGotoCourse(item, contentList, index); let extendsParam = this.beforeGotoCourse(item, contentList, index);
let appVersion = getAppVersion(this.userInfo.appVersion); let appVersion = getAppVersion(this.userInfo.appVersion);
......
...@@ -16,8 +16,8 @@ import clipboard from 'clipboard'; ...@@ -16,8 +16,8 @@ import clipboard from 'clipboard';
//注册到vue原型上 //注册到vue原型上
Vue.prototype.clipboard = clipboard; Vue.prototype.clipboard = clipboard;
if (!(process.env.BUILD_ENV === 'uat' || process.env.BUILD_ENV === 'pro')) { // if (!(process.env.BUILD_ENV === 'uat' || process.env.BUILD_ENV === 'pro')) {
// if(!(process.env.BUILD_ENV === 'pro')) { if(!(process.env.BUILD_ENV === 'pro')) {
let vConsole = new VConsole() // 初始化 let vConsole = new VConsole() // 初始化
} }
......
...@@ -7,6 +7,7 @@ export const envConfig = { ...@@ -7,6 +7,7 @@ export const envConfig = {
// baseUrl: 'https://dev-sc.yunqueyi.com/', // baseUrl: 'https://dev-sc.yunqueyi.com/',
// baseUrl: 'http://10.177.15.180:10202/', // baseUrl: 'http://10.177.15.180:10202/',
// baseUrl: 'http://192.168.140.14:10201/', // baseUrl: 'http://192.168.140.14:10201/',
apiUrl: 'https://dev-api.yunqueyi.com/', apiUrl: 'https://dev-api.yunqueyi.com/',
webPageUrl: 'https://dev-phome.yunqueyi.com/', webPageUrl: 'https://dev-phome.yunqueyi.com/',
baseUrl: 'https://dev-sc.yunqueyi.com/', baseUrl: 'https://dev-sc.yunqueyi.com/',
......
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
...@@ -23,17 +23,8 @@ ...@@ -23,17 +23,8 @@
> >
<span>{{model.title}}</span> <span>{{model.title}}</span>
</li> </li>
</ul>
<ul class="left">
<!-- <li
v-for="(model, mIndex) in titleTestModelList"
:key="mIndex"
:class="{active: currentModelIndex == mIndex}"
@click="selectModel(model, mIndex)"
>
<span>{{model.title}}</span>
</li> -->
</ul> </ul>
<ul class="left"></ul>
<article class="right"> <article class="right">
<ul class="list-wrapper"> <ul class="list-wrapper">
<li class="list" v-for="(item, index) in listData" :key="index"> <li class="list" v-for="(item, index) in listData" :key="index">
...@@ -63,18 +54,6 @@ ...@@ -63,18 +54,6 @@
</ul> </ul>
</article> </article>
</section> </section>
<!-- <section class="body">
<ul class="left-fixed">
<li
v-for="(model, mIndex) in titleTestModelList"
:key="mIndex"
:class="{active: currentModelIndex == mIndex}"
@click="selectModel(model, mIndex)"
>
<span>{{model.title}}</span>
</li>
</ul>
</section> -->
</section> </section>
<transition name="fade"> <transition name="fade">
...@@ -147,7 +126,7 @@ export default { ...@@ -147,7 +126,7 @@ export default {
], ],
isInfresh: false, isInfresh: false,
hasLogin: false, hasLogin: false,
hasResetPosition: false, hasResetPosition: false
}; };
}, },
computed: { computed: {
...@@ -269,9 +248,12 @@ export default { ...@@ -269,9 +248,12 @@ export default {
if (this.existBind && !this.hasResetPosition) { if (this.existBind && !this.hasResetPosition) {
this.hasResetPosition = true; this.hasResetPosition = true;
this.resetPosition(this.titleTestModelList); this.resetPosition(this.titleTestModelList);
// 否则直接使用当前的位置信息 // 否则直接使用当前的位置信息
} else { } else {
this.listData = res.data.titleTestModelList[this.currentModelIndex].firstSubjectModelList; this.listData =
res.data.titleTestModelList[
this.currentModelIndex
].firstSubjectModelList;
} }
} else { } else {
this.message.error(res.message); this.message.error(res.message);
...@@ -302,7 +284,8 @@ export default { ...@@ -302,7 +284,8 @@ export default {
} }
} }
this.currentModelIndex = parentIndex; this.currentModelIndex = parentIndex;
this.listData = this.titleTestModelList[parentIndex].firstSubjectModelList || []; this.listData =
this.titleTestModelList[parentIndex].firstSubjectModelList || [];
this.$forceUpdate(); this.$forceUpdate();
this.resetProjectPosition(fIndex, subIndex); this.resetProjectPosition(fIndex, subIndex);
}, },
...@@ -311,7 +294,9 @@ export default { ...@@ -311,7 +294,9 @@ export default {
resetProjectPosition(fIndex, subIndex) { resetProjectPosition(fIndex, subIndex) {
this.$nextTick(() => { this.$nextTick(() => {
setTimeout(() => { setTimeout(() => {
let scrollTop = document.getElementById(`subject_${fIndex}_${subIndex}`).offsetTop; let scrollTop = document.getElementById(
`subject_${fIndex}_${subIndex}`
).offsetTop;
window.scrollTo(0, scrollTop - 120); window.scrollTo(0, scrollTop - 120);
}, 100); }, 100);
}); });
......
此差异已折叠。
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册