提交 f3ae885d 编写于 作者: chendeli's avatar chendeli

add

上级 f6d76630
...@@ -21,7 +21,7 @@ module.exports = { ...@@ -21,7 +21,7 @@ module.exports = {
env: { env: {
NODE_ENV: '"development"' NODE_ENV: '"development"'
}, },
port: 9002, port: 8000,
assetsSubDirectory: 'static', assetsSubDirectory: 'static',
assetsPublicPath: '/', assetsPublicPath: '/',
// proxyTable: { // proxyTable: {
......
...@@ -139,7 +139,7 @@ export default { ...@@ -139,7 +139,7 @@ export default {
.holder-img{ .holder-img{
margin-top:px2rem(15px); margin-top:px2rem(15px);
width: 100%; width: 100%;
height: px2rem(65px); height: px2rem(252px);
border-radius: px2rem(3px); border-radius: px2rem(3px);
img{ img{
border-radius: px2rem(3px); border-radius: px2rem(3px);
......
...@@ -128,11 +128,12 @@ export default { ...@@ -128,11 +128,12 @@ export default {
} }
}, },
getData(){ getData(){
//alert("最新课程");
let _this = this, let _this = this,
parm = { parm = {
pageNo:_this.pageNo, pageNo:_this.pageNo,
pageSize:_this.pageSize, pageSize:_this.pageSize,
token:'EA67293E35C249C1832583F7AD2669EC', token:_this.userToken,
setEntry: 'headers' setEntry: 'headers'
} }
_this.GET('/contents/HomeNewCourse/NewCourseInformation',parm).then(function(res){ _this.GET('/contents/HomeNewCourse/NewCourseInformation',parm).then(function(res){
......
...@@ -102,7 +102,8 @@ export default { ...@@ -102,7 +102,8 @@ export default {
userToken:'', userToken:'',
searchFix:false, searchFix:false,
statusBarHeight:20, statusBarHeight:20,
userMobile:'' userMobile:'',
userToken:''
} }
}, },
components:{ components:{
...@@ -128,13 +129,17 @@ export default { ...@@ -128,13 +129,17 @@ export default {
} }
window.__getUserInfo = function(parm){ window.__getUserInfo = function(parm){
_this.systemType = parm.systemType; _this.systemType = parm.systemType;
_this.appVersion = parm.appVersion; _this.appVersion = parm.appVersion;
_this.token = parm.userToken; _this.token = parm.userToken;
_this.userToken = parm.userToken;
_this.userMobile = parm.userMobile; _this.userMobile = parm.userMobile;
_this.getSwiper(_this.appVersion,_this.systemType);
} }
// _this.token = 'AF22B142535B440883135309BBF3F3B0' //_this.token = 'AF22B142535B440883135309BBF3F3B0'
this.getUserInfo(); this.getUserInfo();
window.__getStatusBarHeight = function(parm){ window.__getStatusBarHeight = function(parm){
...@@ -143,23 +148,31 @@ export default { ...@@ -143,23 +148,31 @@ export default {
},
watch:{
userToken:function(n){
if(n != ''){
alert("000");
}
}
}, },
mounted(){ mounted(){
//alert(this.token);
if(this.token != null ){ if(this.token != null ){
this.getStatusHight(); this.getStatusHight();
this.getUpdateData(); this.getUpdateData();
this.getMiddel(); this.getMiddel();
if(!!this.systemType && !!this.appVersion){ // if(!!this.systemType && !!this.appVersion){
this.getSwiper(); // this.getSwiper();
} // }
window.addEventListener('scroll', this.scrollFun); window.addEventListener('scroll', this.scrollFun);
} }
// this.getSwiper(); //this.getSwiper();
}, },
beforeDestroyed(){ beforeDestroyed(){
...@@ -174,7 +187,7 @@ export default { ...@@ -174,7 +187,7 @@ export default {
rocNative.setTabMiniIcon({ rocNative.setTabMiniIcon({
tabIndex:3, tabIndex:3,
iconTitle:'学习评价', iconTitle:'学习评价',
iconColor:'#6c6c6c', iconColor:'',
isSet:true isSet:true
}) })
...@@ -359,14 +372,14 @@ export default { ...@@ -359,14 +372,14 @@ export default {
}, },
//获取轮播图数据 //获取轮播图数据
getSwiper(){ getSwiper(appVersion,systemType){
// let version = '3.7.3', // let version = '3.7.3',
// systemType = 3, // systemType = 3;
// token = '364ED1F1C8064CEBABF745CFFFDE18CF' // token = '364ED1F1C8064CEBABF745CFFFDE18CF'
let _this = this, let _this = this,
para = { para = {
version:_this.appVersion, version:appVersion,
systemType:_this.systemType, systemType:systemType,
token:_this.token, token:_this.token,
data:{ data:{
setEntry: 'headers' setEntry: 'headers'
...@@ -375,7 +388,7 @@ export default { ...@@ -375,7 +388,7 @@ export default {
// para = { // para = {
// version:version, // version:version,
// systemType:systemType, // systemType:systemType,
// token:token, // token:_this.token,
// //setEntry: 'headers', // //setEntry: 'headers',
// data:{ // data:{
// setEntry: 'headers' // setEntry: 'headers'
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
</div> </div>
<p class="detail-name">{{doctorParm.doctor.name}}</p> <p class="detail-name">{{doctorParm.doctor.name}}</p>
<p class="detail-intr"> <p class="detail-intr">
{{doctorParm.doctor.title}} {{doctorParm.doctor.hospital}} {{doctorParm.doctor.title}}
</p> </p>
<div class="detail-info"> <div class="detail-info">
<div class="info-item"> <div class="info-item">
...@@ -267,8 +267,8 @@ body{background: #fff} ...@@ -267,8 +267,8 @@ body{background: #fff}
text-align: center; text-align: center;
img{ img{
width: px2rem(35px); width: px2rem(35px);
height: px2rem(38px); height: px2rem(35px);
margin-top:px2rem(5px); margin-top:px2rem(9px);
border-radius: 50%; border-radius: 50%;
} }
} }
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
<div class="teach-title">讲师名录</div> <div class="teach-title">讲师名录</div>
<div class="opt-span"> <div class="opt-span">
<span class="" @click="sortFun">人气 <span class="" @click="sortFun">人气
<img src="../../images/sort-d.png" v-if="dir == 1"> <img src="../../images/sort-u.png" v-if="dir == 1">
<img src="../../images/sort-u.png" v-if="dir == 2"> <img src="../../images/sort-d.png" v-if="dir == 2">
</span> </span>
</div> </div>
<div class="teach-list"> <div class="teach-list">
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册