Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
提交
议题看板
打开侧边栏
jingqi.liu
pica.cloud.web-education-admin
提交
270a5177
提交
270a5177
编写于
11月 17, 2018
作者:
chendeli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add
上级
bf257396
变更
7
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
100 行增加
和
58 行删除
+100
-58
yqy-adjust.vue
src/components/business-new/yqy-adjust.vue
+7
-0
yqy-home-adv.vue
src/components/business-new/yqy-home-adv.vue
+2
-2
yqy-home-banner.vue
src/components/business-new/yqy-home-banner.vue
+13
-9
yqy-home-header.vue
src/components/business-new/yqy-home-header.vue
+37
-16
index.js
src/utils/index.js
+8
-8
yqyServerRegister.js
src/utils/yqyServerRegister.js
+4
-0
home-new.vue
src/views/home/home-new.vue
+29
-23
未找到文件。
src/components/business-new/yqy-adjust.vue
浏览文件 @
270a5177
...
...
@@ -82,6 +82,7 @@ export default {
mounted
(){
this
.
list
=
this
.
parmData
;
if
(
window
.
__isAndroid
){
this
.
popHeight
=
this
.
statusBarHeight
/
2
}
else
{
...
...
@@ -96,6 +97,12 @@ export default {
// LOADING
},
methods
:
{
getStatusHight
(){
rocNative
.
getStatusBarHeight
({
__funcName
:
'__getStatusBarHeight'
})
},
//跳转
goToPage
(
item
){
...
...
src/components/business-new/yqy-home-adv.vue
浏览文件 @
270a5177
...
...
@@ -55,7 +55,7 @@ export default {
goToPage
(
item
,
parm
){
let
_this
=
this
,
url
=
''
,
action_code
=
''
,
label_id
=
''
;
//alert(_this.userToken);
if
(
parm
==
'list'
){
url
=
jumpWebPageUrl
+
'teachers?userToken='
+
_this
.
userToken
;
action_code
=
'c_more'
...
...
@@ -102,7 +102,7 @@ export default {
}
};
//
alert(JSON.stringify(itemData))
alert
(
JSON
.
stringify
(
itemData
))
rocNative
.
dispatchEventByModuleCode
({
modeCode
:
itemData
.
appModuleInfo
.
code
,
...
...
src/components/business-new/yqy-home-banner.vue
浏览文件 @
270a5177
...
...
@@ -41,26 +41,28 @@ export default {
methods
:
{
goToPage
(
itemData
){
let
paramList
=
this
.
setEventByModuleCode
(
itemData
);
let
code
=
''
;
//alert(JSON.stringify(itemData))
let
code
=
''
,
categoryId
=
''
,
item
=
{}
;
if
(
itemData
.
appModuleInfo
&&
itemData
.
appModuleInfo
.
code
==
'M500'
){
//let url = jumpWebPageUrl+'activity?categoryId=1';
code
=
'M300'
;
let
url
=
''
;
if
(
itemData
.
appModuleInfo
.
paramList
.
length
>
0
){
if
(
itemData
.
appModuleInfo
.
paramList
[
0
].
value
.
indexOf
(
'activity'
)
>
-
1
){
url
=
itemData
.
appModuleInfo
.
paramList
[
0
].
value
+
'?categoryId=
1
&userToken='
+
this
.
userToken
;
url
=
itemData
.
appModuleInfo
.
paramList
[
0
].
value
+
'?categoryId=
'
+
itemData
.
appModuleInfo
.
paramList
[
1
].
value
+
'
&userToken='
+
this
.
userToken
;
}
if
(
itemData
.
appModuleInfo
.
paramList
[
0
].
value
.
indexOf
(
'teachers'
)
>
-
1
){
url
=
itemData
.
appModuleInfo
.
paramList
[
0
].
value
+
'?userToken='
+
this
.
userToken
;
}
//
alert(url);
alert
(
url
);
}
///itemData.appModuleInfo.code = 'M300';
let
item
=
{
item
=
{
"name"
:
itemData
.
name
,
"id"
:
itemData
.
id
,
"title"
:
""
,
"imageUrl"
:
""
,
"appModuleInfo"
:{
...
...
@@ -88,15 +90,17 @@ export default {
]
}
};
itemData
.
appModuleInfo
=
item
.
appModuleInfo
;
//itemData.appModuleInfo = item.appModuleInfo;
}
else
{
item
=
itemData
;
}
// alert(JSON.stringify(itemData))
rocNative
.
dispatchEventByModuleCode
({
modeCode
:
item
Data
.
appModuleInfo
.
code
,
jsonString
:
item
Data
.
appModuleInfo
.
paramList
modeCode
:
item
.
appModuleInfo
.
code
,
jsonString
:
item
.
appModuleInfo
.
paramList
})
//console.log(itemData.name
);
console
.
log
(
itemData
);
this
.
pageBurialPoin
({
menuLevel
:
1
,
...
...
src/components/business-new/yqy-home-header.vue
浏览文件 @
270a5177
...
...
@@ -45,28 +45,49 @@ export default {
default
:
false
,
}
},
created
(){
let
_this
=
this
;
window
.
__getStatusBarHeight
=
function
(
parm
){
if
(
window
.
__isAndroid
){
_this
.
popHeight
=
parm
.
statusBarHeight
/
2
}
else
{
_this
.
popHeight
=
parm
.
statusBarHeight
}
_this
.
ptop
=
_this
.
popHeight
+
7
+
'px'
;
_this
.
menuptop
=
_this
.
popHeight
+
7
+
'px'
// alert(parm.statusBarHeight);
}
},
mounted
(){
if
(
window
.
__isAndroid
){
this
.
popHeight
=
this
.
statusBarHeight
/
2
}
else
{
this
.
popHeight
=
this
.
statusBarHeight
}
this
.
count
=
this
.
msgCount
;
this
.
ptop
=
this
.
popHeight
+
7
+
'px'
;
this
.
menuptop
=
this
.
popHeight
+
7
+
'px'
// this.getStatusHight();
//
if(window.__isAndroid){
//
this.popHeight = this.statusBarHeight/2
//
}else{
//
this.popHeight = this.statusBarHeight
//
}
//
this.count = this.msgCount;
//
this.ptop = this.popHeight+7+'px';
//
this.menuptop = this.popHeight+7+'px'
// console.log(this.statusBarHeight);
if
(
this
.
msgCount
==
''
){
this
.
isShowMsg
=
false
}
if
(
this
.
count
>=
99
){
this
.
count
+=
'+'
;
this
.
isMax
=
true
}
//
if(this.msgCount == ''){
//
this.isShowMsg = false
//
}
//
if(this.count>=99){
//
this.count += '+';
//
this.isMax = true
//
}
},
methods
:
{
getStatusHight
(){
rocNative
.
getStatusBarHeight
({
__funcName
:
'__getStatusBarHeight'
})
},
goToPage
(){
// alert("000");
...
...
src/utils/index.js
浏览文件 @
270a5177
...
...
@@ -237,17 +237,17 @@ export function jumpEvaluatPage(){
// const apiUrl = 'https://dev-api.yunqueyi.com/'
// test1地址
//
const baseUrl = 'https://test1-sc.yunqueyi.com/'
//
const apiUrl = 'https://test1-api.yunqueyi.com/'
//
const evaluatPageUrl = 'https://test1-phome.yunqueyi.com/gpr/#/home'
//
export const jumpWebPageUrl = 'https://test1-phome.yunqueyi.com/appl/#/'
const
baseUrl
=
'https://test1-sc.yunqueyi.com/'
const
apiUrl
=
'https://test1-api.yunqueyi.com/'
const
evaluatPageUrl
=
'https://test1-phome.yunqueyi.com/gpr/#/home'
export
const
jumpWebPageUrl
=
'https://test1-phome.yunqueyi.com/appl/#/'
const
baseUrl
=
'https://uat-sc.yunqueyi.com/'
const
apiUrl
=
'https://uat-api.yunqueyi.com/'
const
evaluatPageUrl
=
'https://uat-phome.yunqueyi.com/gpr/#/home'
export
const
jumpWebPageUrl
=
'https://uat-phome.yunqueyi.com/appl/#/'
//
const baseUrl = 'https://uat-sc.yunqueyi.com/'
//
const apiUrl = 'https://uat-api.yunqueyi.com/'
//
const evaluatPageUrl = 'https://uat-phome.yunqueyi.com/gpr/#/home'
//
export const jumpWebPageUrl = 'https://uat-phome.yunqueyi.com/appl/#/'
// pro地址
// const baseUrl = 'https://sc.yunqueyi.com/'
...
...
src/utils/yqyServerRegister.js
浏览文件 @
270a5177
...
...
@@ -32,6 +32,10 @@
if
(
t
==
'closeAudioView'
){
__closeAudioView
(
n
);
}
if
(
t
==
'getToken'
){
__getToken
(
n
);
}
},
...
...
src/views/home/home-new.vue
浏览文件 @
270a5177
...
...
@@ -8,7 +8,7 @@
<section
class=
"home-header"
>
<div
class=
"home-topMenu"
>
<YqyHomeHeader
:msgCount=
"msgCount"
:searchFix=
"searchFix"
:statusBarHeight=
"statusBarHeight"
v-on:setAppMsg=
"goAppMsg"
/>
<YqyHomeHeader
:msgCount=
"msgCount"
:searchFix=
"searchFix"
v-on:setAppMsg=
"goAppMsg"
/>
</div>
<div
class=
"banner-container swiper-container"
>
<div
class=
"swiper-wrapper"
>
...
...
@@ -164,15 +164,18 @@ export default {
_this
.
msgCount
=
params
.
msgNum
||
''
;
//alert(_this.msgCount);
}
window
.
__getToken
=
function
(
params
){
//alert(params.userToken);
// _this.userToken = params.userToken
// _this.getUserInfo();
// _this.initByToken(params.userToken);
}
window
.
__refresh
=
function
(
params
){
// alert(_this.isRefrshMsg);
//点击消息
if
(
_this
.
isRefrshMsg
){
window
.
__nativeCallMsg
=
function
(
params
){
_this
.
msgCount
=
params
.
msgNum
||
''
;
///alert(_this.msgCount);
}
}
//__getToken()
//返回
if
(
_this
.
isRefreshFromBack
){
...
...
@@ -181,14 +184,11 @@ export default {
// _this.newsDatalist = [];
_this
.
getAdjustData
(
_this
.
userToken
);
_this
.
getNewsData
(
_this
.
userToken
);
}
//alert(_this.isShowEvluat);
//第一次进来及时
if
(
_this
.
isShowEvluat
&&
!
_this
.
isRefreshFromBack
){
}
else
if
(
_this
.
isShowEvluat
&&
!
_this
.
isRefreshFromBack
){
_this
.
isIntStyle
=
'font-style pull-down'
;
_this
.
fiveTimePull
();
}
else
{
_this
.
getUserInfo
();
}
}
...
...
@@ -197,10 +197,11 @@ export default {
_this
.
statusBarHeight
=
parm
.
statusBarHeight
;
_this
.
isHeightFromApp
=
true
;
// alert(_this
.statusBarHeight);
// alert(parm
.statusBarHeight);
}
// alert("token之前");
window
.
__getUserInfo
=
function
(
parm
){
// alert("token:"+parm.userToken);
...
...
@@ -221,12 +222,12 @@ export default {
_this
.
initAll
()
//
_this.token = 'BE1D60CAE8F24649B4F72D47E964A58B';
//
_this.token = 'BE1D60CAE8F24649B4F72D47E964A58B';
// _this.msgCount = '2'
// _this.isShowKeep = true;
// _this.isHeightFromApp = true;
// _this.getKeepData(_this.userToken);
//
_this.initByToken(_this.token);
//
_this.initByToken(_this.token);
// _this.getIconData(_this.token);
// _this.isIntStyle = 'font-style pull-down';
// _this.fiveTimePull();
...
...
@@ -280,7 +281,7 @@ export default {
swiperFun
(){
var
swiper
=
new
Swiper
(
'.swiper-container'
,
{
speed
:
5
00
,
speed
:
6
00
,
loop
:
true
,
observer
:
true
,
observeParents
:
true
,
...
...
@@ -324,6 +325,11 @@ export default {
})
},
getToken
(){
rocNative
.
getToken
({
__funcName
:
'__getToken'
})
},
//获取版本号
getUserInfo
(){
...
...
@@ -392,9 +398,9 @@ export default {
}
else
{
// alert(res.message);
rocNative
.
showNativeToast
({
message
:
res
.
message
})
//
rocNative.showNativeToast({
//
message: res.message
//
})
}
if
(
!
_this
.
isShowEvluat
){
...
...
@@ -694,7 +700,7 @@ export default {
_this
.
isIntStyle
=
'font-style pull-up'
;
_this
.
isShowEvluat
=
false
;
clearInterval
(
setTimer
)
},
60
000
);
},
5
000
);
},
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录