Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
240cffee
提交
240cffee
编写于
11月 21, 2018
作者:
chendeli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add
上级
517aaa24
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
32 行增加
和
23 行删除
+32
-23
index.js
src/utils/index.js
+8
-8
home-new.vue
src/views/home/home-new.vue
+24
-15
未找到文件。
src/utils/index.js
浏览文件 @
240cffee
...
@@ -237,17 +237,17 @@ export function jumpEvaluatPage(){
...
@@ -237,17 +237,17 @@ export function jumpEvaluatPage(){
// 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 = 'http://10.177.10.225:9001/#/home' ||
'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/#/'
//
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/'
...
...
src/views/home/home-new.vue
浏览文件 @
240cffee
...
@@ -145,6 +145,7 @@ export default {
...
@@ -145,6 +145,7 @@ export default {
isFailTeaches
:
false
,
isFailTeaches
:
false
,
isFailFive
:
false
,
isFailFive
:
false
,
adjustPageNo
:
1
,
adjustPageNo
:
1
,
setTimer
:
null
,
}
}
},
},
components
:{
components
:{
...
@@ -170,7 +171,7 @@ export default {
...
@@ -170,7 +171,7 @@ export default {
window
.
__nativeCallMsg
=
function
(
params
){
window
.
__nativeCallMsg
=
function
(
params
){
_this
.
msgCount
=
params
.
msgNum
||
''
;
_this
.
msgCount
=
params
.
msgNum
||
''
;
//
alert(_this.msgCount);
//
alert(_this.msgCount);
}
}
...
@@ -182,9 +183,15 @@ export default {
...
@@ -182,9 +183,15 @@ export default {
}
}
window
.
__refresh
=
function
(
params
){
window
.
__refresh
=
function
(
params
){
_this
.
isShowEvluat
=
false
;
_this
.
isIntStyle
=
''
;
_this
.
adjustPageNo
=
1
;
_this
.
adjustPageNo
=
1
;
if
(
_this
.
setTimer
!=
null
){
clearInterval
(
_this
.
setTimer
);
_this
.
isShowEvluat
=
false
;
_this
.
isIntStyle
=
''
;
}
//alert(_this.isShowEvluat);
//返回
//返回
if
(
_this
.
isRefreshFromBack
){
if
(
_this
.
isRefreshFromBack
){
...
@@ -225,23 +232,20 @@ export default {
...
@@ -225,23 +232,20 @@ export default {
if
(
parm
.
userMobile
&&
parm
.
userMobile
!=
''
){
if
(
parm
.
userMobile
&&
parm
.
userMobile
!=
''
){
_this
.
getKeepData
(
parm
.
userToken
);
_this
.
getKeepData
(
parm
.
userToken
);
}
}
_this
.
initByToken
(
parm
.
userToken
);
_this
.
initByToken
(
parm
.
userToken
);
}
}
//_this.getStatusHight();
//_this.getStatusHight();
// _this.token = '3315E74ABBEC49E98B9FC8FF18A7F838';
//
// _this.token = '593F679F62964076AF1C7489DA3343ED';
// _this.msgCount = '2'
// _this.msgCount = '2'
// _this.isShowKeep = true;
// _this.isShowKeep = true;
// _this.isHeightFromApp = true;
// _this.isHeightFromApp = true;
// _this.getKeepData(_this.token);
// _this.getKeepData(_this.token);
// _this.initByToken(_this.token
);
//_this.initByToken('593F679F62964076AF1C7489DA3343ED'
);
// _this.getIconData(_this.token);
// _this.getIconData(_this.token);
// _this.isIntStyle = 'font-style pull-down';
// _this.isIntStyle = 'font-style pull-down';
// _this.fiveTimePull();
// _this.fiveTimePull();
...
@@ -265,7 +269,6 @@ export default {
...
@@ -265,7 +269,6 @@ export default {
isShowEvluat
:
function
(
n
){
isShowEvluat
:
function
(
n
){
///alert(n);
///alert(n);
if
(
!
n
&&
this
.
isIntStyle
==
'font-style pull-up'
){
if
(
!
n
&&
this
.
isIntStyle
==
'font-style pull-up'
){
///alert("000");
rocNative
.
setTabMiniIcon
({
rocNative
.
setTabMiniIcon
({
tabIndex
:
3
,
tabIndex
:
3
,
iconTitle
:
'学习评价'
,
iconTitle
:
'学习评价'
,
...
@@ -409,8 +412,12 @@ export default {
...
@@ -409,8 +412,12 @@ export default {
token
:
userToken
,
token
:
userToken
,
}
}
}
}
clearInterval
(
_this
.
setTimer
);
_this
.
isShowEvluat
=
false
;
_this
.
isIntStyle
=
''
_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",
...
@@ -429,7 +436,8 @@ export default {
...
@@ -429,7 +436,8 @@ export default {
}
else
{
}
else
{
_this
.
isShowEvluat
=
_this
.
evaluctObj
.
showFlag
;
_this
.
isShowEvluat
=
res
.
data
.
showFlag
;
if
(
!
_this
.
isShowEvluat
){
if
(
!
_this
.
isShowEvluat
){
_this
.
isIntStyle
=
''
_this
.
isIntStyle
=
''
}
else
{
}
else
{
...
@@ -593,7 +601,7 @@ export default {
...
@@ -593,7 +601,7 @@ export default {
//为您推荐
//为您推荐
getAdjustData
(
userToken
){
getAdjustData
(
userToken
){
//alert(userToken);
this
.
adjustList
=
[]
this
.
adjustList
=
[]
let
_this
=
this
,
let
_this
=
this
,
parm
=
{
parm
=
{
...
@@ -701,6 +709,7 @@ export default {
...
@@ -701,6 +709,7 @@ export default {
if
(
this
.
isIntStyle
==
'font-style pull-down'
){
if
(
this
.
isIntStyle
==
'font-style pull-down'
){
this
.
isIntStyle
=
'font-style pull-up'
;
this
.
isIntStyle
=
'font-style pull-up'
;
clearInterval
(
this
.
setTimer
)
this
.
isShowEvluat
=
false
;
this
.
isShowEvluat
=
false
;
}
}
var
adjustTop
=
0
;
var
adjustTop
=
0
;
...
@@ -742,11 +751,11 @@ export default {
...
@@ -742,11 +751,11 @@ export default {
//五秒之后收起
//五秒之后收起
fiveTimePull
(){
fiveTimePull
(){
let
_this
=
this
;
let
_this
=
this
;
let
setTimer
=
setInterval
(
function
(){
_this
.
setTimer
=
setInterval
(
function
(){
_this
.
isIntStyle
=
'font-style pull-up'
;
_this
.
isIntStyle
=
'font-style pull-up'
;
_this
.
isShowEvluat
=
false
;
_this
.
isShowEvluat
=
false
;
///alert("0")
///alert("0")
clearInterval
(
setTimer
)
clearInterval
(
_this
.
setTimer
)
},
5000
);
},
5000
);
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录