新首页

parent 9cddd888
...@@ -3,4 +3,4 @@ ...@@ -3,4 +3,4 @@
} }
*{ *{
-webkit-overflow-scrolling: touch -webkit-overflow-scrolling: touch
}</style><link href=static/css/app.36f1a827a9c97142b68b591948be53f1.css rel=stylesheet></head><body><div id=app></div><script src=https://res.wx.qq.com/open/js/jweixin-1.3.2.js></script><script type=text/javascript src=static/js/manifest.a061de7016dfad66bb19.js></script><script type=text/javascript src=static/js/vendor.05c910a446ce196f2037.js></script><script type=text/javascript src=static/js/app.cb45748b496ae4c6958c.js></script></body></html> }</style><link href=static/css/app.36f1a827a9c97142b68b591948be53f1.css rel=stylesheet></head><body><div id=app></div><script src=https://res.wx.qq.com/open/js/jweixin-1.3.2.js></script><script type=text/javascript src=static/js/manifest.58bd549700284132c382.js></script><script type=text/javascript src=static/js/vendor.05c910a446ce196f2037.js></script><script type=text/javascript src=static/js/app.cb45748b496ae4c6958c.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,t,o){for(var f,d,b,i=0,u=[];i<c.length;i++)d=c[i],n[d]&&u.push(n[d][0]),n[d]=0;for(f in t)Object.prototype.hasOwnProperty.call(t,f)&&(e[f]=t[f]);for(a&&a(c,t,o);u.length;)u.shift()();if(o)for(i=0;i<o.length;i++)b=r(r.s=o[i]);return b};var c={},n={34:0};function r(a){if(c[a])return c[a].exports;var n=c[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.e=function(e){var a=n[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,r){a=n[e]=[c,r]});a[2]=c;var t=document.getElementsByTagName("head")[0],o=document.createElement("script");o.type="text/javascript",o.charset="utf-8",o.async=!0,o.timeout=12e4,r.nc&&o.setAttribute("nonce",r.nc),o.src=r.p+"static/js/"+e+"."+{0:"adcf199e5da2c2270a01",1:"6dffa05763f0439bbbe1",2:"ae57d591a1c6e5092b19",3:"8dfb98444be7be3da1f8",4:"74a5ca2992fb50fce87c",5:"aaf704a2afdad27e785d",6:"d06f71d5a38bc070499d",7:"42ceb1447d562377bb4e",8:"4746f0b53b1c9bc0e8c2",9:"fe6ce3b3bfae6e85d519",10:"e4900390e294708e603c",11:"08b648925597ca923e39",12:"eb00a8159328d7a369a4",13:"9ff02b5cebcc1ae3d6f5",14:"ef5cd199e94939fa86a2",15:"f189e15d1708d33abfe7",16:"021e3bdb029874a18545",17:"c85de1b79a8bdc7112a8",18:"d68cc621b7ed95b4d916",19:"e153c799e2206a28f112",20:"8691ce7d9ad71a68970c",21:"ea5d8d1c1cfd97150e35",22:"ba0c4cfa52ca7d31188f",23:"f21d549e98a6b20ff131",24:"ce4367d37dd0c05798de",25:"4ad52026d3abc86ce351",26:"310d2245ec3a99f8810c",27:"f40c1598e3a90b930fbf",28:"1aa81ad798ab50457890",29:"6347e6e542a660b172b6",30:"640aaa7e7b99b3485ec9",31:"c7a087b475e48dc06a1b"}[e]+".js";var f=setTimeout(d,12e4);function d(){o.onerror=o.onload=null,clearTimeout(f);var a=n[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),n[e]=void 0)}return o.onerror=o.onload=d,t.appendChild(o),c},r.m=e,r.c=c,r.d=function(e,a,c){r.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},r.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(a,"a",a),a},r.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},r.p="",r.oe=function(e){throw console.error(e),e}}([]); !function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,t,d){for(var f,o,b,i=0,u=[];i<c.length;i++)o=c[i],n[o]&&u.push(n[o][0]),n[o]=0;for(f in t)Object.prototype.hasOwnProperty.call(t,f)&&(e[f]=t[f]);for(a&&a(c,t,d);u.length;)u.shift()();if(d)for(i=0;i<d.length;i++)b=r(r.s=d[i]);return b};var c={},n={34:0};function r(a){if(c[a])return c[a].exports;var n=c[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.e=function(e){var a=n[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,r){a=n[e]=[c,r]});a[2]=c;var t=document.getElementsByTagName("head")[0],d=document.createElement("script");d.type="text/javascript",d.charset="utf-8",d.async=!0,d.timeout=12e4,r.nc&&d.setAttribute("nonce",r.nc),d.src=r.p+"static/js/"+e+"."+{0:"0dc5aac20a42efd05339",1:"6dffa05763f0439bbbe1",2:"ae57d591a1c6e5092b19",3:"8dfb98444be7be3da1f8",4:"74a5ca2992fb50fce87c",5:"aaf704a2afdad27e785d",6:"1893d4e9348d036a5f64",7:"f5f44aa603ebad64325a",8:"4746f0b53b1c9bc0e8c2",9:"fe6ce3b3bfae6e85d519",10:"e4900390e294708e603c",11:"08b648925597ca923e39",12:"eb00a8159328d7a369a4",13:"9ff02b5cebcc1ae3d6f5",14:"63dd06736295a7405b75",15:"f189e15d1708d33abfe7",16:"021e3bdb029874a18545",17:"c85de1b79a8bdc7112a8",18:"d68cc621b7ed95b4d916",19:"07b553dc61841e537338",20:"8691ce7d9ad71a68970c",21:"ea5d8d1c1cfd97150e35",22:"ba0c4cfa52ca7d31188f",23:"f21d549e98a6b20ff131",24:"ce4367d37dd0c05798de",25:"4ad52026d3abc86ce351",26:"310d2245ec3a99f8810c",27:"f40c1598e3a90b930fbf",28:"1aa81ad798ab50457890",29:"b8b460ff17d92f45db7d",30:"640aaa7e7b99b3485ec9",31:"c7a087b475e48dc06a1b"}[e]+".js";var f=setTimeout(o,12e4);function o(){d.onerror=d.onload=null,clearTimeout(f);var a=n[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),n[e]=void 0)}return d.onerror=d.onload=o,t.appendChild(d),c},r.m=e,r.c=c,r.d=function(e,a,c){r.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},r.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(a,"a",a),a},r.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},r.p="",r.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file \ No newline at end of file
...@@ -105,6 +105,7 @@ ...@@ -105,6 +105,7 @@
}, },
mounted(){ mounted(){
this.checkCollect(); this.checkCollect();
this.onPlay();
}, },
methods:{ methods:{
// 改变收藏状态 // 改变收藏状态
......
<template> <template>
<div class="index"> <div class="index">
<div class="banner-block"> <div class="banner-block">
<div class="unBanner" v-if="userCourse.start_periods_id<0"> <div class="unBanner" v-if="!userCourse.start_periods_id">
<img class="bgimg" :src="imgUrl.indexBanener1" alt=""> <img class="bgimg" :src="imgUrl.indexBanener1" alt="">
<div class="content"> <div class="content">
<div class="title"> <div class="title">
......
...@@ -71,10 +71,6 @@ import { DatetimePicker,Popup,RadioGroup, Radio, Toast } from 'vant'; ...@@ -71,10 +71,6 @@ import { DatetimePicker,Popup,RadioGroup, Radio, Toast } from 'vant';
this.baby_name = this.userDesc.baby_name this.baby_name = this.userDesc.baby_name
} }
this.userDesc.sex? this.sex = this.userDesc.sex.toString():this.sex='1' this.userDesc.sex? this.sex = this.userDesc.sex.toString():this.sex='1'
console.log(this.sex)
// if(){
// }
// this.getBannerListApi(); // this.getBannerListApi();
}, },
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
</div> </div>
<p class="tip">* 如已购买课程,手机号必须填下单时填写的收件人手机号</p> <p class="tip">* 如已购买课程,手机号必须填下单时填写的收件人手机号</p>
<div class="input-block"> <div class="input-block">
<input placeholder="请输入图片验证码" v-model="imgCode"/> <input placeholder="请输入图片验证码" maxlength="4" v-model="imgCode"/>
<img src="/api/public/img/verify" class="img" ref="imgCode" @click="refImgCode"/> <img src="/api/public/img/verify" class="img" ref="imgCode" @click="refImgCode"/>
</div> </div>
<div class="input-block"> <div class="input-block">
......
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
mounted(){ mounted(){
getCourseStatusApi().then(res => { getCourseStatusApi().then(res => {
if(res.status==1||res.status==2){ if(res.status==1||res.status==2){
// this.$router.push({ name: "index" }); this.$router.push({ name: "index" });
}else if(res.status==3){ }else if(res.status==3){
this.msg = res.msg this.msg = res.msg
} }
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<div class="unit-block"> <div class="unit-block">
<div class="course_title" @click="actionsheetShow=true">{{secActions.name}} <i class="iconfont icon-below-s"></i> </div> <div class="course_title" @click="actionsheetShow=true">{{secActions.name}} <i class="iconfont icon-below-s"></i> </div>
<!--竖屏 主题栏--> <!--竖屏 主题栏-->
<swiper :options="swiperOption" class="banner" v-if="$route.query.course_type==0" ref="mySwiper"> <swiper :options="swiperOption" class="banner" v-if="shopType==0" ref="mySwiper">
<swiper-slide v-for="(data,index) in unitList" :key="index"> <swiper-slide v-for="(data,index) in unitList" :key="index">
<div class="line"></div> <div class="line"></div>
<div :class="{'unit-li':true,active:data.category_id == parent_category_id}" @click="changeCateGory(data,data.category_id == parent_category_id)"> <div :class="{'unit-li':true,active:data.category_id == parent_category_id}" @click="changeCateGory(data,data.category_id == parent_category_id)">
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<div class="btn-conntent banner-right"> <div class="btn-conntent banner-right">
<img :src="nextToURL" class=""> <img :src="nextToURL" class="">
</div> </div>
<swiper :options="swiperOption2" class="banner2" v-if="$route.query.course_type==0" ref="mySwiper2"> <swiper :options="swiperOption2" class="banner2" v-if="shopType==0" ref="mySwiper2">
<swiper-slide v-for="(data,index) in unitList" :key="index"> <swiper-slide v-for="(data,index) in unitList" :key="index">
<div class="line"></div> <div class="line"></div>
<div :class="{'unit-li':true,active:data.category_id == parent_category_id}" @click="changeCateGory(data,data.category_id == parent_category_id)"> <div :class="{'unit-li':true,active:data.category_id == parent_category_id}" @click="changeCateGory(data,data.category_id == parent_category_id)">
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
:class="{ :class="{
map:true, map:true,
right:index !== item.length-1 && item.push_time !== '0000-00-00', right:index !== item.length-1 && item.push_time !== '0000-00-00',
money:item.push_time !== '0000-00-00' && ((data[x+1] && data[x+1].push_time === '0000-00-00' || ( x === data.length-1 && lessonList[index+1] && lessonList[index+1][0].push_time === '0000-00-00'))|| ($route.query.course_type == 0 && findUnit(parent_category_id) && findUnit(parent_category_id).status === 2 || $route.query.course_type ==1 ) && x===data.length-1 && index == lessonList.length-1), money:item.push_time !== '0000-00-00' && ((data[x+1] && data[x+1].push_time === '0000-00-00' || ( x === data.length-1 && lessonList[index+1] && lessonList[index+1][0].push_time === '0000-00-00'))|| (shopType == 0 && findUnit(parent_category_id) && findUnit(parent_category_id).status === 2 || shopType ==1 ) && x===data.length-1 && index == lessonList.length-1),
clock:item.push_time === '0000-00-00' clock:item.push_time === '0000-00-00'
}"></i> }"></i>
</div> </div>
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
<img class="star-img" :src="star_act" v-for="s in item.star_num"> <img class="star-img" :src="star_act" v-for="s in item.star_num">
<img class="star-img" :src="star_def" v-for="s in 3-item.star_num"> <img class="star-img" :src="star_def" v-for="s in 3-item.star_num">
</div> </div>
<i class="map money" v-if="item.push_time !== '0000-00-00' && ((hpLessonList[x+1] && hpLessonList[x+1].push_time === '0000-00-00' || ($route.query.course_type == 0 && findUnit(parent_category_id) && findUnit(parent_category_id).status === 2 || $route.query.course_type ==1 ) && x===hpLessonList.length-1 ))"></i> <i class="map money" v-if="item.push_time !== '0000-00-00' && ((hpLessonList[x+1] && hpLessonList[x+1].push_time === '0000-00-00' || (shopType == 0 && findUnit(parent_category_id) && findUnit(parent_category_id).status === 2 || shopType ==1 ) && x===hpLessonList.length-1 ))"></i>
</div> </div>
</swiper-slide> </swiper-slide>
</swiper> </swiper>
...@@ -264,14 +264,14 @@ ...@@ -264,14 +264,14 @@
}, },
computed: { computed: {
swiper() { swiper() {
if(this.$route.query.course_type == 0){ if(this.shopType == 0){
return this.$refs.mySwiper.swiper return this.$refs.mySwiper.swiper
}else { }else {
return '' return ''
} }
}, },
swiper2() { swiper2() {
if(this.$route.query.course_type == 0){ if(this.shopType == 0){
return this.$refs.mySwiper2.swiper return this.$refs.mySwiper2.swiper
}else { }else {
return '' return ''
...@@ -305,8 +305,8 @@ ...@@ -305,8 +305,8 @@
} }
}) })
// this.periods_id = this.secActions.id // this.periods_id = this.secActions.id
console.log(this.$route.query.course_type) console.log(this.shopType)
if (this.$route.query.course_type == 0){ if (this.shopType == 0){
this.getUnitList() this.getUnitList()
}else{ }else{
this.getLessonList(); this.getLessonList();
...@@ -315,6 +315,9 @@ ...@@ -315,6 +315,9 @@
onSelect(item){ onSelect(item){
this.actionsheetShow = false this.actionsheetShow = false
this.secActions = item this.secActions = item
console.log(item)
// debugger
this.shopType=item.course_type
this.actions.forEach(el=>{ this.actions.forEach(el=>{
el.className="" el.className=""
if(el.id==this.secActions.id){ if(el.id==this.secActions.id){
...@@ -370,7 +373,7 @@ ...@@ -370,7 +373,7 @@
periods_id:this.secActions.id, periods_id:this.secActions.id,
category_id:this.thisLesson.categoryId, category_id:this.thisLesson.categoryId,
elementId:this.thisLesson.id, elementId:this.thisLesson.id,
course_type:this.$route.query.course_type, course_type:this.shopType,
parent_category_id:this.parent_category_id, parent_category_id:this.parent_category_id,
}; };
let lessonData = JSON.parse(JSON.stringify(this.thisLesson)); let lessonData = JSON.parse(JSON.stringify(this.thisLesson));
...@@ -388,7 +391,7 @@ ...@@ -388,7 +391,7 @@
category_id:this.thisLesson.categoryId, category_id:this.thisLesson.categoryId,
parent_category_id:this.parent_category_id, parent_category_id:this.parent_category_id,
element_id:this.thisLesson.id, element_id:this.thisLesson.id,
course_type:this.$route.query.course_type, course_type:this.shopType,
type:'1' type:'1'
}; };
this.$router.push({name:'lesson',query:query}) this.$router.push({name:'lesson',query:query})
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
</div> </div>
首页 首页
</div> </div>
<div :class="{actived:$route.name === 'map'}" @click="toUrl('map')"> <div v-if="!userCourse.start_periods_id" :class="{actived:$route.name === 'map'}" @click="toUrl('map')">
<div class="map img"> <div class="map img">
<img :src="imgurl.indexBottom" alt> <img :src="imgurl.indexBottom" alt>
</div> </div>
...@@ -27,7 +27,8 @@ export default { ...@@ -27,7 +27,8 @@ export default {
name: "bottomTab", name: "bottomTab",
data() { data() {
return { return {
imgurl: IndexImage imgurl: IndexImage,
userCourse:{}
}; };
}, },
methods: { methods: {
...@@ -42,6 +43,7 @@ export default { ...@@ -42,6 +43,7 @@ export default {
}); });
if (data == "map") { if (data == "map") {
let userCourse = JSON.parse(localStorage.getItem("userCourse")); let userCourse = JSON.parse(localStorage.getItem("userCourse"));
this.userCourse = userCourse
this.$router.push({ this.$router.push({
name: "map", name: "map",
query: { query: {
......
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