提交 68ad37ba 编写于 作者: gjyang's avatar gjyang

Merge branch 'dev-app-home-1029'

...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<div class="couse-list" v-infinite-scroll="loadMore" infinite-scroll-disabled="loading" infinite-scroll-distance="10" :style="'height:'+clientHeight"> <div class="couse-list" v-infinite-scroll="loadMore" infinite-scroll-disabled="loading" infinite-scroll-distance="10" :style="'height:'+clientHeight">
<div :class="index%2==1 ? 'course-item end-left' : 'course-item'" :key="index" v-for="(item,index) in list"> <div :class="index%2==1 ? 'course-item end-left' : 'course-item'" :key="index" v-for="(item,index) in list">
<div class="course-pic" @click="goToPage(item)"> <div class="course-pic" @click="goToPage(item)">
<img :src="item.appIndexCourseUrl" class="pic-tec" /> <img :src="item.courseInfoUrl" class="pic-tec" />
<span class="course-tag">{{item.disName}}</span> <span class="course-tag">{{item.disName}}</span>
</div> </div>
<p class="course-txt"> <p class="course-txt">
...@@ -73,6 +73,10 @@ export default { ...@@ -73,6 +73,10 @@ export default {
type:Number, type:Number,
default:0 default:0
}, },
adjustPageNo:{
type:Number,
default:1
},
userToken:{ userToken:{
type:String, type:String,
default:'' default:''
...@@ -85,6 +89,7 @@ export default { ...@@ -85,6 +89,7 @@ export default {
mounted(){ mounted(){
this.list = this.parmData; this.list = this.parmData;
this.pageNo = this.adjustPageNo;
// if(window.__isAndroid){ // if(window.__isAndroid){
// this.popHeight = this.statusBarHeight/2 // this.popHeight = this.statusBarHeight/2
...@@ -138,7 +143,7 @@ export default { ...@@ -138,7 +143,7 @@ export default {
labelId:item.id, labelId:item.id,
labelValue :item.name, labelValue :item.name,
}) })
this.pageNo = 1;
this.$emit("setRefrshParm",{isclick:true}) this.$emit("setRefrshParm",{isclick:true})
let itemData={ let itemData={
"title":item.name, "title":item.name,
...@@ -177,10 +182,11 @@ export default { ...@@ -177,10 +182,11 @@ export default {
loadMore(){ loadMore(){
let _this = this; let _this = this;
// alert(_this.pageNo);
if(!_this.noMore){ if(!_this.noMore){
_this.pageNo += 1; _this.pageNo += 1;
_this.isLoading = true; _this.isLoading = true;
this.loading = true; _this.loading = true;
//埋点 //埋点
this.pageBurialPoin({ this.pageBurialPoin({
menuLevel:1, menuLevel:1,
...@@ -213,8 +219,6 @@ export default { ...@@ -213,8 +219,6 @@ export default {
type:status, type:status,
courseId:id, courseId:id,
setEntry: 'headers', setEntry: 'headers',
token:_this.userToken,
setEntry: 'headers',
data:{ data:{
token:_this.userToken, token:_this.userToken,
} }
...@@ -228,7 +232,7 @@ export default { ...@@ -228,7 +232,7 @@ export default {
}else{ }else{
//alert(res.message); //alert(res.message);
rocNative.showNativeToast({ rocNative.showNativeToast({
message: res.message message: '注册登陆后才能收藏哦'
}) })
} }
}) })
...@@ -249,7 +253,7 @@ export default { ...@@ -249,7 +253,7 @@ export default {
parm = { parm = {
pageNo:_this.pageNo, pageNo:_this.pageNo,
pageSize:_this.pageSize, pageSize:_this.pageSize,
token:_this.token, token:_this.userToken,
setEntry: 'headers' setEntry: 'headers'
} }
...@@ -263,17 +267,19 @@ export default { ...@@ -263,17 +267,19 @@ export default {
_this.noMore = true; _this.noMore = true;
_this.loading = true; _this.loading = true;
}else{ }else{
_this.list = [..._this.list ,...res.data];
_this.isLoading = true; _this.isLoading = true;
_this.noMore = false; _this.noMore = false;
_this.loading = false; _this.loading = false;
} }
if(type == 'loadMore'){ // if(type == 'loadMore'){
_this.list = [..._this.list ,...res.data]; // _this.list = [..._this.list ,...res.data];
}else{ // }
_this.list = res.data || []; // else{
} // _this.list = res.data || [];
// }
} }
///_this.clientHeight = 'auto' ///_this.clientHeight = 'auto'
...@@ -448,6 +454,7 @@ export default { ...@@ -448,6 +454,7 @@ export default {
.font-title{ .font-title{
font-size: px2rem(18px); font-size: px2rem(18px);
font-weight: bold; font-weight: bold;
color: #28344C
} }
.title{ .title{
......
...@@ -211,9 +211,11 @@ export default { ...@@ -211,9 +211,11 @@ export default {
} }
.tea-itemname{ .tea-itemname{
color: RGBA(102, 102, 102, 1); color: RGBA(102, 102, 102, 1);
padding-top: px2rem(5px); margin-top: px2rem(4px);
font-size: px2rem(13px); font-size: px2rem(13px);
line-height: px2rem(19px); line-height: px2rem(19px);
height: px2rem(19px);
display: inline-block;
} }
} }
} }
......
...@@ -81,9 +81,42 @@ export default { ...@@ -81,9 +81,42 @@ export default {
// 跳转到新的web界面 // 跳转到新的web界面
goToPage: function () { goToPage: function () {
let url =jumpEvaluatPage(); let url = jumpEvaluatPage();
rocNative.gotoNewWebActivity({ // rocNative.gotoNewWebActivity({
pageUrl: url // pageUrl: url
// })
let itemData={
"title":"",
"imageUrl":"",
"appModuleInfo":{
"code":"M300",
"type":4,
"name":"wwww",
"paramFlag":1,
"paramList":[
{
"key":"pageUrl",
"value": url,
"type":4,
"seqNo":1
},{
"key":"showTitle",
"value": false,
"type":1,
"seqNo":2
},{
"key":"title",
"value": '',
"type":1,
"seqNo":3
}
]
}
};
rocNative.dispatchEventByModuleCode({
modeCode: itemData.appModuleInfo.code,
jsonString: itemData.appModuleInfo.paramList
}) })
this.pageBurialPoin({ this.pageBurialPoin({
menuLevel:1, menuLevel:1,
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<div class="couse-list"> <div class="couse-list">
<div :class="index%2==1 ? 'course-item end-left' : 'course-item'" :key="index" v-for="(item,index) in parmData"> <div :class="index%2==1 ? 'course-item end-left' : 'course-item'" :key="index" v-for="(item,index) in parmData">
<div class="course-pic" @click="goToPage(item)"> <div class="course-pic" @click="goToPage(item)">
<img :src="item.appIndexCourseUrl" class="pic-tec" /> <img :src="item.courseInfoUrl" class="pic-tec" />
<span class="course-tag">{{item.disName}}</span> <span class="course-tag">{{item.disName}}</span>
</div> </div>
<p class="course-txt"> <p class="course-txt">
...@@ -129,7 +129,7 @@ export default { ...@@ -129,7 +129,7 @@ export default {
}else{ }else{
//alert(res.message); //alert(res.message);
rocNative.showNativeToast({ rocNative.showNativeToast({
message: res.message message: '注册登陆后才能收藏哦'
}) })
} }
}) })
...@@ -266,6 +266,7 @@ export default { ...@@ -266,6 +266,7 @@ export default {
height: px2rem(18px); height: px2rem(18px);
margin: 0 0 px2rem(21px) 0; margin: 0 0 px2rem(21px) 0;
font-weight: bold; font-weight: bold;
color:#28344C
} }
......
...@@ -236,19 +236,20 @@ export function jumpEvaluatPage(){ ...@@ -236,19 +236,20 @@ export function jumpEvaluatPage(){
// const baseUrl = 'https://dev-sc.yunqueyi.com/' // const baseUrl = 'https://dev-sc.yunqueyi.com/'
// const apiUrl = 'https://dev-api.yunqueyi.com/' // const apiUrl = 'https://dev-api.yunqueyi.com/'
// // 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 evaluatPageUrl = 'https://test1-phome.yunqueyi.com/gpr/#/home'
// export const jumpWebPageUrl = 'https://test1-phome.yunqueyi.com/appl/#/' // export const jumpWebPageUrl = 'https://test1-phome.yunqueyi.com/appl/#/'
// uat地址
const baseUrl = 'https://uat-sc.yunqueyi.com/' const baseUrl = 'https://uat-sc.yunqueyi.com/'
const apiUrl = 'https://uat-api.yunqueyi.com/' const apiUrl = 'https://uat-api.yunqueyi.com/'
const evaluatPageUrl = 'https://uat-phome.yunqueyi.com/gpr/#/home' const evaluatPageUrl = 'https://uat-phome.yunqueyi.com/gpr/#/home'
export const jumpWebPageUrl = 'https://uat-phome.yunqueyi.com/appl/#/' export const jumpWebPageUrl = 'https://uat-phome.yunqueyi.com/appl/#/'
// // pro地址 // pro地址
// const baseUrl = 'https://sc.yunqueyi.com/' // const baseUrl = 'https://sc.yunqueyi.com/'
// const apiUrl = 'https://api.yunqueyi.com/' // const apiUrl = 'https://api.yunqueyi.com/'
// const evaluatPageUrl = 'https://phome.yunqueyi.com/gpr/#/home' // const evaluatPageUrl = 'https://phome.yunqueyi.com/gpr/#/home'
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
<YqyFiveMinutes :parmData="fiveList" v-if="fiveList.length>0"/> <YqyFiveMinutes :parmData="fiveList" v-if="fiveList.length>0"/>
<!--为你推荐--> <!--为你推荐-->
<YqyHomeAdjust :isFixed="isFixed" :statusBarHeight="statusBarHeight" :parmData="adjustList" v-if="adjustList.length>0" :userToken="userToken" v-on:setRefrshParm="getRefrshParm"/> <YqyHomeAdjust :isFixed="isFixed" :statusBarHeight="statusBarHeight" :parmData="adjustList" v-if="adjustList.length>0" :userToken="userToken" v-on:setRefrshParm="getRefrshParm" :adjustPageNo="adjustPageNo"/>
<!--返回顶部--> <!--返回顶部-->
<BackTop v-if="isShowBackTop"/> <BackTop v-if="isShowBackTop"/>
...@@ -144,7 +144,7 @@ export default { ...@@ -144,7 +144,7 @@ export default {
isFailCatagory3:false, isFailCatagory3:false,
isFailTeaches:false, isFailTeaches:false,
isFailFive:false, isFailFive:false,
adjustPageNo:1,
} }
}, },
components:{ components:{
...@@ -184,6 +184,7 @@ export default { ...@@ -184,6 +184,7 @@ export default {
window.__refresh = function(params){ window.__refresh = function(params){
_this.isShowEvluat = false; _this.isShowEvluat = false;
_this.isIntStyle = ''; _this.isIntStyle = '';
_this.adjustPageNo = 1;
//返回 //返回
if(_this.isRefreshFromBack){ if(_this.isRefreshFromBack){
...@@ -213,8 +214,8 @@ export default { ...@@ -213,8 +214,8 @@ export default {
// alert("token之前"); // alert("token之前");
window.__getUserInfo = function(parm){ window.__getUserInfo = function(parm){
// alert("__getUserInfo");
// alert(JSON.stringify(parm)) // alert(JSON.stringify(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;
...@@ -224,8 +225,10 @@ export default { ...@@ -224,8 +225,10 @@ export default {
if(parm.userMobile != ''){ if(parm.userMobile != ''){
_this.getKeepData(parm.userToken); _this.getKeepData(parm.userToken);
} }
_this.initByToken(parm.userToken); _this.initByToken(parm.userToken);
} }
...@@ -233,12 +236,12 @@ export default { ...@@ -233,12 +236,12 @@ export default {
// _this.token = 'BE1D60CAE8F24649B4F72D47E964A58B'; // _this.token = '2AAB78CDCD664925969B296FCB2F01CF';
// _this.msgCount = '2' // _this.msgCount = '2'
// _this.isShowKeep = true; // _this.isShowKeep = true;
// _this.isHeightFromApp = true; // _this.isHeightFromApp = true;
// _this.getKeepData(_this.userToken); // _this.getKeepData(_this.userToken);
// _this.initByToken(_this.token); // _this.initByToken(_this.token);
// _this.getIconData(_this.token); // _this.getIconData(_this.token);
// _this.isIntStyle = 'font-style pull-down'; // _this.isIntStyle = 'font-style pull-down';
// _this.fiveTimePull(); // _this.fiveTimePull();
...@@ -250,7 +253,7 @@ export default { ...@@ -250,7 +253,7 @@ export default {
mounted(){ mounted(){
this.wrapperHeight =document.documentElement.clientHeight - this.$refs.wrapper.getBoundingClientRect().top; // this.wrapperHeight =document.documentElement.clientHeight - this.$refs.wrapper.getBoundingClientRect().top;
window.addEventListener('scroll', this.scrollFun); window.addEventListener('scroll', this.scrollFun);
}, },
...@@ -318,7 +321,7 @@ export default { ...@@ -318,7 +321,7 @@ export default {
var swiper = new Swiper('.swiper-container', { var swiper = new Swiper('.swiper-container', {
speed: 600, speed: 600,
            loop: true,             //loop: true,
            observer:true,             observer:true,
            observeParents:true,             observeParents:true,
            autoplayDisableOnInteraction : false,             autoplayDisableOnInteraction : false,
...@@ -407,7 +410,7 @@ export default { ...@@ -407,7 +410,7 @@ export default {
} }
} }
this.GET('contents/gp/v1/homepage', para).then(res => { _this.GET('contents/gp/v1/homepage', para).then(res => {
if(res.code == '000000'){ if(res.code == '000000'){
// res.data = { // res.data = {
// avatarImageUrl: "https://test-file.yunqueyi.com/File/doctor_default.png", // avatarImageUrl: "https://test-file.yunqueyi.com/File/doctor_default.png",
...@@ -609,6 +612,7 @@ export default { ...@@ -609,6 +612,7 @@ export default {
if(res.code === '000000'){ if(res.code === '000000'){
_this.adjustList = res.data || []; _this.adjustList = res.data || [];
_this.adjustPageNo = 1;
if(_this.adjustList.length>0){ if(_this.adjustList.length>0){
_this.userToken = userToken _this.userToken = userToken
...@@ -743,7 +747,7 @@ export default { ...@@ -743,7 +747,7 @@ export default {
_this.isShowEvluat = false; _this.isShowEvluat = false;
///alert("0") ///alert("0")
clearInterval(setTimer) clearInterval(setTimer)
},5000); },30000);
}, },
...@@ -773,7 +777,7 @@ export default { ...@@ -773,7 +777,7 @@ export default {
} }
} }
this.GET('/contents/HomeColumn/Information', para).then(res => { this.GET('contents/HomeColumn/Information', para).then(res => {
if(res.code == '000000'){ if(res.code == '000000'){
_this.listSwiper = res.data.iconColumnInformationModels || []; _this.listSwiper = res.data.iconColumnInformationModels || [];
...@@ -796,7 +800,7 @@ export default { ...@@ -796,7 +800,7 @@ export default {
category: 1, category: 1,
position:2, position:2,
setEntry: 'headers', setEntry: 'headers',
token:_this.token // token:_this.token
} }
this.GET('contents/HomeColumn/Information', para).then(res => { this.GET('contents/HomeColumn/Information', para).then(res => {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册