首页待开课

parent 876378a3
...@@ -596,14 +596,6 @@ export default { ...@@ -596,14 +596,6 @@ export default {
} }
this.userCourse = res; this.userCourse = res;
localStorage.setItem("userCourse", JSON.stringify(this.userCourse)); localStorage.setItem("userCourse", JSON.stringify(this.userCourse));
let is_view_course = "没有课程";
if (res.start_periods_course_type) {
if (res.start_periods_course_type == 0) {
is_view_course = "正式课";
} else {
is_view_course = "体验课";
}
}
this.$sa.track("viewHomepage", {}); this.$sa.track("viewHomepage", {});
this.getBannerListApi(); this.getBannerListApi();
let course = res; let course = res;
...@@ -664,10 +656,7 @@ export default { ...@@ -664,10 +656,7 @@ export default {
this.$refs.bottomTab.setBtn(); this.$refs.bottomTab.setBtn();
let ownDetail = JSON.parse(localStorage.getItem("userDesc")); let ownDetail = JSON.parse(localStorage.getItem("userDesc"));
if (ownDetail.family_user != 1) { if (ownDetail.family_user != 1) {
if ( if (!sessionStorage.getItem("frist") &&this.bannerData.start_periods_id) {
!sessionStorage.getItem("frist") &&
this.bannerData.start_periods_id
) {
sessionStorage.setItem("frist", true); sessionStorage.setItem("frist", true);
this.$router.push({ this.$router.push({
name: "map", name: "map",
......
...@@ -10,9 +10,7 @@ ...@@ -10,9 +10,7 @@
<div v-else-if="list.length && list[0] != 0"> <div v-else-if="list.length && list[0] != 0">
<h1 class="logistics-title">我的快递</h1> <h1 class="logistics-title">我的快递</h1>
<ol class="logistics-list"> <ol class="logistics-list">
<li class="item" v-for="item in list"> <li class="item" v-for="item in list">
<div class="item-header"> <div class="item-header">
<h2>{{item.goods_title}}</h2> <h2>{{item.goods_title}}</h2>
......
...@@ -337,7 +337,7 @@ ...@@ -337,7 +337,7 @@
this.userCourse = Object.assign({},res) this.userCourse = Object.assign({},res)
localStorage.setItem('userCourse',JSON.stringify(this.userCourse)); localStorage.setItem('userCourse',JSON.stringify(this.userCourse));
this.setCourse() this.setCourse()
}) })
} }
} }
if(this.userCourse.teacher_alias&&this.userCourse.teacher_alias.substr(0, 1) == 1){ if(this.userCourse.teacher_alias&&this.userCourse.teacher_alias.substr(0, 1) == 1){
......
...@@ -11,11 +11,6 @@ import sa from 'sa-sdk-javascript'; ...@@ -11,11 +11,6 @@ import sa from 'sa-sdk-javascript';
import 'mint-ui/lib/style.css' import 'mint-ui/lib/style.css'
import scroll from "./base/scroll/scroll" import scroll from "./base/scroll/scroll"
import { Popup, Lazyload, Button, Dialog, Toast } from 'vant'; import { Popup, Lazyload, Button, Dialog, Toast } from 'vant';
// www.fundebug.com
import * as fundebug from 'fundebug-javascript';
import fundebugVue from 'fundebug-vue';
fundebug.apikey = '4d414770c72b034dfa896048206a72258ede4e4ad5f9c6c4320d19b7f91a567e';
fundebugVue(fundebug, Vue);
Vue.config.productionTip = false; Vue.config.productionTip = false;
//神策埋点 //神策埋点
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment