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

add

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