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

add

上级 3a0a43fe
...@@ -51,7 +51,7 @@ export default { ...@@ -51,7 +51,7 @@ export default {
title:'为您推荐', title:'为您推荐',
isCollected:'', isCollected:'',
allLoaded:true, allLoaded:true,
loading:true,//是否滚动加载 loading:false,//是否滚动加载
isLoading:false,//加载中 isLoading:false,//加载中
noMore:false, noMore:false,
clientHeight:'auto', clientHeight:'auto',
...@@ -69,15 +69,16 @@ export default { ...@@ -69,15 +69,16 @@ export default {
type:Number, type:Number,
default:0 default:0
}, },
userToken:{ parmData:{
type:String, type:Array,
default:'' default:[]
} },
}, },
mounted(){ mounted(){
this.list = this.parmData;
this.menuHeight = this.statusBarHeight + 7 + 40 + "px"; this.menuHeight = this.statusBarHeight + 7 + 40 + "px";
this.ptop = this.statusBarHeight +7 + "px"; this.ptop = this.statusBarHeight +7 + "px";
this.getData(); // this.getData();
}, },
components:{ components:{
...@@ -126,26 +127,8 @@ export default { ...@@ -126,26 +127,8 @@ export default {
}) })
}, },
//换一批
changeFun(){
this.pageBurialPoin({
menuLevel:1,
menuCode:'m_home',
functionCode:'f_recommend',
actionCode:'c_change',
})
// this.clientHeight = document.documentElement.clientHeight+'px';
// document.documentElement.scrollTop = document.documentElement.scrollTop - 100;
// document.body.scrollTop = document.body.scrollTop - 100;
//console.log(document.documentElement.scrollTop);
this.loading = true;
this.noMore = false;
this.list = [];
this.getData("change");
},
//滑动加载更多 //滑动加载更多
loadMore(){ loadMore(){
......
...@@ -37,13 +37,19 @@ export default { ...@@ -37,13 +37,19 @@ export default {
}, },
mounted(){ mounted(){
this.getData(); // this.getData();
this.list = this.parmData;
this.leftObj = this.list[0] || {};
this.rightTop = this.list[1] || {};
this.rightBottom = this.list[2] || {};
this.rightBp = this.list[3] || {};
}, },
props:{ props:{
userToken:{
type:String, parmData:{
default:'' type:Array,
} default:[]
},
}, },
methods: { methods: {
goToPage(itemData){ goToPage(itemData){
......
...@@ -16,12 +16,12 @@ ...@@ -16,12 +16,12 @@
<span class="m-tag">#{{item.categoryName}}</span> <span class="m-tag">#{{item.categoryName}}</span>
<span class="m-play" @click.stop="playFun(item)"> <span class="m-play" @click.stop="playFun(item)">
<div class="play-opt play-start" v-if="item.play =='1'"> <div class="play-opt play-start" v-show="item['play'] =='1'">
<span></span> <span></span>
<span></span> <span></span>
<span></span> <span></span>
</div> </div>
<div class="play-opt play-stop" v-if="item.play == '2'"> <div class="play-opt play-stop" v-show="item.play == '2'">
<span></span> <span></span>
<span></span> <span></span>
<span></span> <span></span>
...@@ -47,9 +47,9 @@ export default { ...@@ -47,9 +47,9 @@ export default {
} }
}, },
props:{ props:{
userToken:{ parmData:{
type:String, type:Array,
default:'' default:[]
} }
}, },
created(){ created(){
...@@ -71,7 +71,7 @@ export default { ...@@ -71,7 +71,7 @@ export default {
} }
}, },
mounted(){ mounted(){
this.getData(); this.list = this.parmData;
}, },
methods: { methods: {
goToPage(item){ goToPage(item){
...@@ -142,40 +142,7 @@ export default { ...@@ -142,40 +142,7 @@ export default {
jsonString: paramList jsonString: paramList
}) })
}, },
//获取数据
getData(){
let _this = this,
parm = {
pageNo: 1,
token: _this.userToken,
pageSize: 3,
data:{
setEntry: 'headers'
}
}
// let res = {"fiveMinutesMedicalContentList":[{"id":109,"title":"1312312","fileType":4,"filePath":"http://test-file.yunqueyi.com/audio/mp3/2018/06/09/2018060917174163-ef5bf97c.mp3","appImageUrl":"https://test-file.yunqueyi.com/image/jpeg/2018/06/09/20180609171335722-06552629.jpg","size":15463892,"totalTime":642,"publishTime":1528534800000,"categoryName":"政策播报"},{"id":109,"title":"1312312","fileType":4,"filePath":"http://test-file.yunqueyi.com/audio/mp3/2018/06/09/2018060917174163-ef5bf97c.mp3","appImageUrl":"https://test-file.yunqueyi.com/image/jpeg/2018/06/09/20180609171335722-06552629.jpg","size":15463892,"totalTime":642,"publishTime":1528534800000,"categoryName":"政策播报"},{"id":109,"title":"1312312","fileType":4,"filePath":"http://test-file.yunqueyi.com/audio/mp3/2018/06/09/2018060917174163-ef5bf97c.mp3","appImageUrl":"https://test-file.yunqueyi.com/image/jpeg/2018/06/09/20180609171335722-06552629.jpg","size":15463892,"totalTime":642,"publishTime":1528534800000,"categoryName":"政策播报"}],"respMsg":"成功","respCode":200}
// _this.list = res.fiveMinutesMedicalContentList || []
this.API_GET('contents/fiveMinutes/contents',parm).then(res => {
if(res.respCode == '200'){
_this.list = _this.handel(res.fiveMinutesMedicalContentList) || []
}
})
},
playMore(){
},
handel(d){
for(let i=0;i<d.length;i++){
d[i].play = '0';
}
return d;
},
changePlay(id,str){ changePlay(id,str){
//play : 1播放 2:暂停 0:初始状态 //play : 1播放 2:暂停 0:初始状态
...@@ -198,6 +165,7 @@ export default { ...@@ -198,6 +165,7 @@ export default {
}, },
playFun(item){ playFun(item){
this.id = item.id;//保存id this.id = item.id;//保存id
this.changePlay(item.id,'1'); this.changePlay(item.id,'1');
this.pageBurialPoin({ this.pageBurialPoin({
...@@ -263,7 +231,7 @@ export default { ...@@ -263,7 +231,7 @@ export default {
width: px2rem(60px); width: px2rem(60px);
height: px2rem(60px); height: px2rem(60px);
border-radius: px2rem(3px); border-radius: px2rem(3px);
box-shadow: 0 px2rem(2px) px2rem(3px) #004E40; box-shadow: 0 px2rem(2px) px2rem(3px) RGBA(0, 78, 64, 0.1);
float: left; float: left;
img{ img{
width:100%; width:100%;
......
...@@ -33,13 +33,18 @@ export default { ...@@ -33,13 +33,18 @@ export default {
}, },
mounted(){ mounted(){
this.getData(); this.list = this.parmData
//this.getData();
}, },
props:{ props:{
userToken:{ parmData:{
type:String, type:Array,
default:'' default:[]
} },
// userToken:{
// type:String,
// default:''
// }
}, },
methods: { methods: {
......
...@@ -23,14 +23,16 @@ export default { ...@@ -23,14 +23,16 @@ export default {
} }
}, },
mounted(){ mounted(){
this.getData();
this.list = this.parmData;
// this.getData();
}, },
props:{ props:{
userToken:{ parmData:{
type:String, type:Array,
default:'' default:[]
} },
}, },
methods: { methods: {
goToPage(itemData){ goToPage(itemData){
...@@ -51,22 +53,7 @@ export default { ...@@ -51,22 +53,7 @@ export default {
} }
}, }
getData(){
let _this = this,
para = {
category: 1,
position:1,
setEntry: 'headers',
token:this.userToken
}
this.GET('contents/HomeColumn/Information', para).then(res => {
if(res.code == '000000'){
//alert("000");
_this.list = res.data && res.data.iconColumnInformationModels || []
}
})
},
}, },
} }
</script> </script>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
</div> --> </div> -->
<div class="header-right" @click="goToPage"> <div class="header-right" @click="goToPage">
<img v-if="searchFix" class="info" src='../../images/msg2.png'> <img v-if="searchFix" class="info" src='../../images/msg2.png'>
<img e-else class="info" src='../../images/msg1.png'> <img v-else class="info" src='../../images/msg1.png'>
<div :class="isMax?'num-max':'num-min'" class="info-count fs10" v-show="isShowMsg">{{count}}</div> <div :class="isMax?'num-max':'num-min'" class="info-count fs10" v-show="isShowMsg">{{count}}</div>
</div> </div>
</div> </div>
......
<template> <template>
<div class="keep-learn"> <div class="keep-learn">
<div v-show="isShow" class="border-bottom keep-learnbox"> <div class="border-bottom keep-learnbox">
<div class="learning-txt"> <div class="learning-txt">
<div class="gray keepon-title">{{parmObj.name || '糖尿病诊疗'}}</div> <div class="gray keepon-title">{{parmData.name || '糖尿病诊疗'}}</div>
<div class="keepon-txt"> <div class="keepon-txt">
<span class="gray fs24 keepon-right">已学习:{{parmObj.day}}</span> <span class="gray fs24 keepon-right">已学习:{{parmData.day}}</span>
<span class="gray fs24 keepon-right">剩余:{{parmObj.remanentCourseNum}}%</span> <span class="gray fs24 keepon-right">剩余:{{parmData.remanentCourseNum}}%</span>
<span class="gray fs24 continue-study" @click="continueStudy(parmObj)">继续学习></span> <span class="gray fs24 continue-study" @click="continueStudy(parmData)">继续学习></span>
</div> </div>
</div> </div>
...@@ -29,23 +29,20 @@ export default { ...@@ -29,23 +29,20 @@ export default {
} }
}, },
props:{ props:{
userMobile:{
default:'', parmData:{
type:String type:Object,
default:{}
}, },
userToken:{
type:String,
default:''
}
}, },
mounted(){ mounted(){
if(this.userMobile != ''){ // if(this.userMobile != ''){
this.getData(); // this.getData();
}else{ // }else{
this.isShow = false; // this.isShow = false;
} // }
}, },
methods: { methods: {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
</span> </span>
<span class="evaluat-persent">您的学习速度战胜了本院内{{setStyle(parmObj.gradePKToHospital)}}%的医生</span> <span class="evaluat-persent">您的学习速度战胜了本院内{{setStyle(parmObj.gradePKToHospital)}}%的医生</span>
</div> </div>
<div class="evaluat-part"> <div class="evaluat-part" @click="goToPage">
<span class="part-throw"><img src='../../images/grey-throw.png'/></span> <span class="part-throw"><img src='../../images/grey-throw.png'/></span>
<div class="part-item part-finish"> <div class="part-item part-finish">
<div class="item-num"> <div class="item-num">
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
</template> </template>
<script> <script>
import { jumpEvaluatPage } from '@/utils/index'
export default { export default {
props: { props: {
isShowEvluat:{ isShowEvluat:{
...@@ -55,6 +56,10 @@ export default { ...@@ -55,6 +56,10 @@ export default {
type:Boolean type:Boolean
}, },
parmData:{
type:Object,
default:{}
},
userToken:{ userToken:{
type:String, type:String,
default:'' default:''
...@@ -68,10 +73,19 @@ export default { ...@@ -68,10 +73,19 @@ export default {
} }
}, },
mounted(){ mounted(){
this.isShow = this.isShowEvluat;
this.getData(); console.log(this.isShowEvluat)
}, },
methods: { methods: {
// 跳转到新的web界面
goToPage: function () {
let url =jumpEvaluatPage();
rocNative.gotoNewWebActivity({
pageUrl: url
})
},
setStyle:function(num){ setStyle:function(num){
var str = ''; var str = '';
if(num == NaN){ if(num == NaN){
...@@ -108,14 +122,6 @@ export default { ...@@ -108,14 +122,6 @@ export default {
let isPullIndex = _this.isShow ? '1' : '2'; let isPullIndex = _this.isShow ? '1' : '2';
_this.$emit('evluatFun',{isPull:isPullIndex}); _this.$emit('evluatFun',{isPull:isPullIndex});
} }
// _this.isShow = _this.parmObj.showFlag;
// let isPullIndex = _this.isShow ? '1' : '2';
// _this.$emit('evluatFun',{isPull:isPullIndex});
}else{
///alert(res.message);
} }
}) })
}, },
......
...@@ -40,14 +40,15 @@ export default { ...@@ -40,14 +40,15 @@ export default {
} }
}, },
mounted(){ mounted(){
this.getData() //this.getData()
this.list = this.parmData;
}, },
props:{ props:{
userToken:{ parmData:{
type:String, type:Array,
default:'' default:[]
} },
}, },
methods: { methods: {
......
...@@ -14,9 +14,13 @@ service.interceptors.request.use(config => { ...@@ -14,9 +14,13 @@ service.interceptors.request.use(config => {
// console.log('config: ', config, config.data.setEntry) // console.log('config: ', config, config.data.setEntry)
if (config.data && config.data.setEntry) { if (config.data && config.data.setEntry) {
config.headers['sysCode'] = config.data.sysCode || 10 config.headers['sysCode'] = config.data.sysCode || 10
config.headers['token'] = config.data.token || '625D128F3DBA486AABE7CBA9BDF90E69' if(config.token){
config.headers['token'] = config.data.token || '63C3FA92AF8A45A48B31EB7FD97B95EB'
}
config.headers['deviceInfo'] = JSON.stringify({ "app_channel": "", "app_mac": "", "app_uuid": "", "app_version": "", "device_brand": "", "device_ip": "", "device_model": "", "device_net": "", "device_ops": "", "resolution_wh": "", "system_level": "", "device_type": '10' }) config.headers['deviceInfo'] = JSON.stringify({ "app_channel": "", "app_mac": "", "app_uuid": "", "app_version": "", "device_brand": "", "device_ip": "", "device_model": "", "device_net": "", "device_ops": "", "resolution_wh": "", "system_level": "", "device_type": '10' })
} }
return config return config
}, error => { }, error => {
logger.debug('service.interceptors.request: ', error) logger.debug('service.interceptors.request: ', error)
......
...@@ -224,6 +224,11 @@ export function pageJumpUrl(){ ...@@ -224,6 +224,11 @@ export function pageJumpUrl(){
return url; return url;
} }
//跳转个人评价页面
export function jumpEvaluatPage(){
return evaluatPageUrl
}
// dev地址 // dev地址
// const baseUrl = 'https://dev-sc.yunqueyi.com/' // const baseUrl = 'https://dev-sc.yunqueyi.com/'
...@@ -232,6 +237,9 @@ export function pageJumpUrl(){ ...@@ -232,6 +237,9 @@ export function pageJumpUrl(){
// test1地址 // test1地址
const baseUrl = 'https://test1-sc.yunqueyi.com/' const baseUrl = 'https://test1-sc.yunqueyi.com/'
const apiUrl = 'https://test1-api.yunqueyi.com/' const apiUrl = 'https://test1-api.yunqueyi.com/'
const evaluatPageUrl = 'https://test1-phome.yunqueyi.com/gpr/#/home'
//const devApiUri = 'https://test1-api.yunqueyi.com/' //const devApiUri = 'https://test1-api.yunqueyi.com/'
// // uat地址 // // uat地址
......
...@@ -119,7 +119,10 @@ module.exports = { ...@@ -119,7 +119,10 @@ module.exports = {
// 通用GET请求 // 通用GET请求
GET(api, para, callback,str) { GET(api, para, callback,str) {
para.token = para.token || this.token || 'EA67293E35C249C1832583F7AD2669EC' //'AF3DFCF2DD4B4115AC47ACA25D5420E9''F90DF48D3EFA49DFAE1267A67DBEFB18'//token if(para.token){
para.token = para.token || this.token || 'EA67293E35C249C1832583F7AD2669EC'
}
let url = api + this.getUrlPara(para) let url = api + this.getUrlPara(para)
return fetch({ return fetch({
url: getBaseUrl(url), url: getBaseUrl(url),
...@@ -130,7 +133,10 @@ module.exports = { ...@@ -130,7 +133,10 @@ module.exports = {
// 通用POST请求 // 通用POST请求
POST(api, para, callback) { POST(api, para, callback) {
para.token = para.token || this.token || 'EA67293E35C249C1832583F7AD2669EC' //'AF3DFCF2DD4B4115AC47ACA25D5420E9''F90DF48D3EFA49DFAE1267A67DBEFB18'//token if(para.token){
para.token = para.token || this.token || 'EA67293E35C249C1832583F7AD2669EC'
}
//para.token = para.token || this.token || 'EA67293E35C249C1832583F7AD2669EC' //'AF3DFCF2DD4B4115AC47ACA25D5420E9''F90DF48D3EFA49DFAE1267A67DBEFB18'//token
return fetch({ return fetch({
url: getBaseUrl(api), url: getBaseUrl(api),
method: 'post', method: 'post',
......
此差异已折叠。
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册