Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-admin-discuss
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-admin-discuss
提交
7ac39bd4
提交
7ac39bd4
编写于
11月 06, 2018
作者:
chendeli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add
上级
c4b55d1f
变更
16
隐藏空白字符变更
内嵌
并排
正在显示
16 个修改的文件
包含
349 行增加
和
135 行删除
+349
-135
yqy-adjust.vue
src/components/business-new/yqy-adjust.vue
+77
-39
yqy-category-three-1.vue
src/components/business-new/yqy-category-three-1.vue
+5
-6
yqy-home-header.vue
src/components/business-new/yqy-home-header.vue
+33
-20
yqy-home-keepon.vue
src/components/business-new/yqy-home-keepon.vue
+2
-2
yqy-home-learn-evaluation.vue
src/components/business-new/yqy-home-learn-evaluation.vue
+1
-1
yqy-teacher-list.vue
src/components/business-new/yqy-teacher-list.vue
+32
-5
loading-new.vue
src/components/common/loading-new.vue
+43
-0
topNav.vue
src/components/common/topNav.vue
+68
-13
left-icon.png
src/images/left-icon.png
+0
-0
loading-new.png
src/images/loading-new.png
+0
-0
share-icon.png
src/images/share-icon.png
+0
-0
index.js
src/utils/index.js
+1
-1
mixins.js
src/utils/mixins.js
+1
-1
activity.vue
src/views/activity/activity.vue
+74
-11
home-new.vue
src/views/home/home-new.vue
+7
-33
spCooperation.vue
src/views/spCooperation/spCooperation.vue
+5
-3
未找到文件。
src/components/business-new/yqy-adjust.vue
浏览文件 @
7ac39bd4
...
@@ -12,9 +12,9 @@
...
@@ -12,9 +12,9 @@
</div>
</div>
<div>
<div>
<div
class=
"couse-list"
v-infinite-scroll=
"loadMore"
infinite-scroll-disabled=
"loading"
infinite-scroll-distance=
"
50
"
>
<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
.name
)"
>
<div
class=
"course-pic"
@
click=
"goToPage(item)"
>
<img
:src=
"item.appIndexCourseUrl"
class=
"pic-tec"
/>
<img
:src=
"item.appIndexCourseUrl"
class=
"pic-tec"
/>
<span
class=
"course-tag"
>
{{
item
.
disName
}}
</span>
<span
class=
"course-tag"
>
{{
item
.
disName
}}
</span>
</div>
</div>
...
@@ -31,17 +31,20 @@
...
@@ -31,17 +31,20 @@
</div>
</div>
</div>
</div>
<div
class=
"loading-box"
>
<div
class=
"loading-box"
>
<span
class=
"loading-more-txt"
v-if=
"
loading"
>
加载中...
</span>
<span
class=
"loading-more-txt"
v-if=
"
isLoading"
>
努力
加载中...
</span>
<span
class=
"no-more"
v-if=
"noMore"
>
没有更多了~
</span>
<span
class=
"no-more"
v-if=
"noMore"
>
没有更多了~
</span>
</div>
</div>
</div>
</div>
<!--
<LOADING
v-if=
"isShowLoading"
></LOADING>
-->
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
Loadmore
,
Spinner
,
InfiniteScroll
}
from
'mint-ui'
;
import
{
Loadmore
,
Spinner
,
InfiniteScroll
}
from
'mint-ui'
;
import
{
setEventByModuleCode
}
from
'@/utils/index'
// import LOADING from '../../components/common/loading-new';
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -51,9 +54,12 @@ export default {
...
@@ -51,9 +54,12 @@ export default {
title
:
'为您推荐'
,
title
:
'为您推荐'
,
isCollected
:
''
,
isCollected
:
''
,
allLoaded
:
true
,
allLoaded
:
true
,
loading
:
false
,
loading
:
true
,
//是否滚动加载
isLoading
:
false
,
//加载中
noMore
:
false
,
noMore
:
false
,
mockUrl
:
'http://sosoapi.yunqueyi.com/sosoapi-web/pass/mock/39'
clientHeight
:
0
,
isShowLoading
:
true
,
}
}
},
},
props
:
props
:
...
@@ -65,19 +71,51 @@ export default {
...
@@ -65,19 +71,51 @@ export default {
},
},
mounted
(){
mounted
(){
this
.
getData
();
this
.
getData
();
},
components
:{
// LOADING
},
},
methods
:
{
methods
:
{
//跳转
//跳转
goToPage
(
name
){
goToPage
(
item
){
rocNative
.
gotoNewActivityWithParams
({
let
itemData
=
{
"className"
:
"com.picahealth.yunque.activitys.courseplaynew.CourseIntroduc"
,
"title"
:
item
.
name
,
"params"
:
{
"title"
:
name
}
"imageUrl"
:
""
,
"appModuleInfo"
:{
"code"
:
"M200"
,
"type"
:
4
,
"name"
:
"课程介绍页"
,
"paramFlag"
:
1
,
"paramList"
:[
{
"key"
:
"className"
,
"value"
:
"com.picahealth.yunque.activitys.courseplaynew.CourseIntroduceActivity###WeexCourseIntroViewController"
,
"type"
:
4
,
"seqNo"
:
1
},
{
"key"
:
"courseId"
,
"value"
:
`
${
item
.
id
}
`
,
"type"
:
1
,
"seqNo"
:
2
}
]
}
};
let
paramList
=
setEventByModuleCode
(
itemData
);
rocNative
.
dispatchEventByModuleCode
({
modeCode
:
itemData
.
appModuleInfo
.
code
,
jsonString
:
paramList
})
})
},
},
//换一批
//换一批
changeFun
(){
changeFun
(){
this
.
clientHeight
=
document
.
documentElement
.
clientHeight
+
'px'
;
this
.
loading
=
true
;
this
.
noMore
=
false
;
this
.
pageNo
++
;
this
.
pageNo
++
;
this
.
list
=
[];
this
.
list
=
[];
this
.
getData
();
this
.
getData
();
...
@@ -85,34 +123,15 @@ export default {
...
@@ -85,34 +123,15 @@ export default {
//滑动加载更多
//滑动加载更多
loadMore
(){
loadMore
(){
// alert("0000");
let
_this
=
this
,
let
_this
=
this
;
parm
=
{
_this
.
pageNo
+=
1
;
pageNo
:
_this
.
pageNo
,
_this
.
isLoading
=
true
;
pageSize
:
_this
.
pageSize
,
token
:
'EA67293E35C249C1832583F7AD2669EC'
,
setEntry
:
'headers'
}
this
.
loading
=
true
;
this
.
loading
=
true
;
_this
.
GET
(
'contents/courses/recommendCourseList'
,
parm
).
then
(
function
(
res
){
setTimeout
(()
=>
{
_this
.
getData
(
'loadMore'
);
if
(
res
.
code
===
'000000'
){
},
500
)
if
(
res
.
data
.
length
==
0
){
_this
.
loading
=
false
;
_this
.
noMore
=
true
;
}
setTimeout
(()
=>
{
_this
.
list
=
[...
_this
.
list
,...
res
.
data
]
||
[];
_this
.
pageNo
++
;
_this
.
loading
=
false
;
},
2500
)
}
})
},
},
//收藏 取消收藏
//收藏 取消收藏
...
@@ -142,19 +161,38 @@ export default {
...
@@ -142,19 +161,38 @@ export default {
}
}
},
},
getData
(){
//加载数据
getData
(
type
){
let
_this
=
this
,
let
_this
=
this
,
parm
=
{
parm
=
{
pageNo
:
_this
.
pageNo
,
pageNo
:
_this
.
pageNo
,
pageSize
:
_this
.
pageSize
,
pageSize
:
_this
.
pageSize
,
token
:
'EA67293E35C249C1832583F7AD2669EC'
,
token
:
_this
.
token
,
setEntry
:
'headers'
setEntry
:
'headers'
}
}
_this
.
GET
(
'contents/courses/recommendCourseList'
,
parm
).
then
(
function
(
res
){
_this
.
GET
(
'contents/courses/recommendCourseList'
,
parm
).
then
(
function
(
res
){
if
(
res
.
code
===
'000000'
){
if
(
res
.
code
===
'000000'
){
_this
.
list
=
res
.
data
||
[];
if
(
type
==
'loadMore'
){
if
(
res
.
data
==
null
||
res
.
data
.
length
==
0
&&
res
.
data
.
length
<
_this
.
pageSize
){
this
.
isLoading
=
false
;
this
.
noMore
=
true
;
}
if
(
res
.
data
==
null
){
res
.
data
=
[];
}
_this
.
list
=
[...
_this
.
list
,...
res
.
data
]
||
[];
}
else
{
_this
.
list
=
res
.
data
||
[];
}
}
else
{
alert
(
res
.
message
)
}
}
_this
.
clientHeight
=
'auto'
_this
.
isLoading
=
false
;
_this
.
loading
=
false
;
})
})
}
}
}
}
...
...
src/components/business-new/yqy-category-three-1.vue
浏览文件 @
7ac39bd4
...
@@ -41,11 +41,9 @@ export default {
...
@@ -41,11 +41,9 @@ export default {
},
},
methods
:
{
methods
:
{
goToPage
(
itemData
){
goToPage
(
itemData
){
let
paramList
=
setEventByModuleCode
(
itemData
);
console
.
log
(
this
.
leftObj
);
// alert(JSON.stringify({
let
paramList
=
setEventByModuleCode
(
itemData
);
// modeCode: itemData.appModuleInfo.code,
// jsonString: paramList
// }))
rocNative
.
dispatchEventByModuleCode
({
rocNative
.
dispatchEventByModuleCode
({
modeCode
:
itemData
.
appModuleInfo
.
code
,
modeCode
:
itemData
.
appModuleInfo
.
code
,
jsonString
:
paramList
jsonString
:
paramList
...
@@ -60,8 +58,9 @@ export default {
...
@@ -60,8 +58,9 @@ 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'
){
//
console.log(res);
console
.
log
(
res
);
_this
.
list
=
res
.
data
&&
res
.
data
.
iconColumnInformationModels
||
[];
_this
.
list
=
res
.
data
&&
res
.
data
.
iconColumnInformationModels
||
[];
console
.
log
(
_this
.
list
);
_this
.
leftObj
=
_this
.
list
[
0
]
||
{};
_this
.
leftObj
=
_this
.
list
[
0
]
||
{};
_this
.
rightTop
=
_this
.
list
[
1
]
||
{};
_this
.
rightTop
=
_this
.
list
[
1
]
||
{};
_this
.
rightBottom
=
_this
.
list
[
2
]
||
{};
_this
.
rightBottom
=
_this
.
list
[
2
]
||
{};
...
...
src/components/business-new/yqy-home-header.vue
浏览文件 @
7ac39bd4
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
</div>
</div>
<div
class=
"header-right"
>
<div
class=
"header-right"
>
<img
class=
"info"
src=
'../../images/msg1.png'
>
<img
class=
"info"
src=
'../../images/msg1.png'
>
<div
:class=
"is
Transparent?'transparent':'not-transparent
'"
class=
"info-count fs10"
>
{{
count
}}
</div>
<div
:class=
"is
Max?'num-max':'num-min
'"
class=
"info-count fs10"
>
{{
count
}}
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -18,11 +18,16 @@ export default {
...
@@ -18,11 +18,16 @@ export default {
placeholder
:
'即将上线,敬请期待'
,
placeholder
:
'即将上线,敬请期待'
,
disabled
:
'disabled'
,
disabled
:
'disabled'
,
searchVal
:
''
,
searchVal
:
''
,
isTransparent
:
true
,
isTransparent
:
true
,
//更改颜色 背景
count
:
111
isMax
:
false
,
//消息数量是否大于99
count
:
"99"
}
}
},
},
mounted
(){
mounted
(){
if
(
this
.
count
>=
99
){
this
.
count
+=
'+'
;
this
.
isMax
=
true
}
},
},
methods
:
{
methods
:
{
...
@@ -48,15 +53,20 @@ html,body{
...
@@ -48,15 +53,20 @@ html,body{
color
:
#fff
;
color
:
#fff
;
}
}
.
search-transparent
:
:-
webkit-input-placeholder
{
.
search-transparent
:
:-
webkit-input-placeholder
{
color
:
#fff
;
color
:
#fff
;
}
}
.white
{
.white
{
color
:
#fff
;
color
:
#fff
;
}
}
.header-right
{
.header-right
{
width
:
px2rem
(
3
0px
);
width
:
px2rem
(
2
0px
);
height
:
px2rem
(
3
0px
);
height
:
px2rem
(
2
0px
);
position
:
relative
;
position
:
relative
;
img
{
width
:
100%
;
height
:
100%
;
display
:
block
;
}
}
}
.fs30
{
.fs30
{
font-size
:
px2rem
(
15px
);
font-size
:
px2rem
(
15px
);
...
@@ -93,28 +103,31 @@ html,body{
...
@@ -93,28 +103,31 @@ html,body{
margin
:
px2rem
(
6px
)
px2rem
(
15px
)
px2rem
(
9px
)
0
;
margin
:
px2rem
(
6px
)
px2rem
(
15px
)
px2rem
(
9px
)
0
;
float
:
right
;
float
:
right
;
}
}
.info
{
width
:
px2rem
(
20px
);
height
:
px2rem
(
20px
);
}
.info-count
{
.info-count
{
position
:absolute
;
position
:absolute
;
top
:
0
;
top
:
-
(
px2rem
(
5px
));
left
:
px2rem
(
21px
);
left
:
(
px2rem
(
10px
));
/*width: px2rem(15px);*/
/*max-width: px2rem(25px);*/
padding
:
0
px2rem
(
3px
);
padding
:
0
px2rem
(
3px
);
height
:
px2rem
(
15px
);
height
:
px2rem
(
15px
);
border-radius
:
50%
;
text-align
:
center
;
line-height
:
px2rem
(
15px
);
line-height
:
px2rem
(
15px
);
}
border-radius
:
px2rem
(
15px
);
.transparent
{
text-align
:
center
;
font-size
:px2rem
(
12px
)
;
font-weight
:
bold
;
background-color
:
#fff
;
background-color
:
#fff
;
color
:
RGBA
(
53
,
134
,
126
,
1
);
color
:
RGBA
(
53
,
134
,
126
,
1
);
}
}
.not-transparent
{
.num-min
{
background-color
:
RGBA
(
251
,
91
,
82
,
1
);
width
:
px2rem
(
15px
);
color
:
#fff
;
padding
:
0
;
}
.num-max
{
width
:
auto
;
/* background-color: RGBA(251, 91, 82, 1);
color: #fff;*/
}
}
.hot-tag
{
.hot-tag
{
width
:
100%
;
width
:
100%
;
...
...
src/components/business-new/yqy-home-keepon.vue
浏览文件 @
7ac39bd4
...
@@ -32,7 +32,7 @@ export default {
...
@@ -32,7 +32,7 @@ export default {
},
},
methods
:
{
methods
:
{
continueStudy
(){
continueStudy
(){
},
},
cancel
(){
cancel
(){
...
@@ -41,7 +41,7 @@ export default {
...
@@ -41,7 +41,7 @@ export default {
let
_this
=
this
,
let
_this
=
this
,
parm
=
{
parm
=
{
token
:
'EA67293E35C249C1832583F7AD2669EC'
,
token
:
_this
.
token
,
setEntry
:
'headers'
setEntry
:
'headers'
}
}
_this
.
GET
(
'contents/courses/continueLearningCourse'
,
parm
).
then
(
function
(
res
){
_this
.
GET
(
'contents/courses/continueLearningCourse'
,
parm
).
then
(
function
(
res
){
...
...
src/components/business-new/yqy-home-learn-evaluation.vue
浏览文件 @
7ac39bd4
...
@@ -87,7 +87,7 @@ export default {
...
@@ -87,7 +87,7 @@ export default {
getData
:
function
(){
getData
:
function
(){
let
_this
=
this
,
para
=
{
let
_this
=
this
,
para
=
{
sysCode
:
27
,
sysCode
:
27
,
token
:
'ACEEFAE765AA4D9EB68BE80735845BF9'
,
token
:
_this
.
token
,
setEntry
:
'headers'
setEntry
:
'headers'
}
}
this
.
GET
(
'contents/gp/v1/homepage'
,
para
).
then
(
res
=>
{
this
.
GET
(
'contents/gp/v1/homepage'
,
para
).
then
(
res
=>
{
...
...
src/components/business-new/yqy-teacher-list.vue
浏览文件 @
7ac39bd4
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,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 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
.name
)"
>
<div
class=
"course-pic"
@
click=
"goToPage(item)"
>
<img
:src=
"item.appIndexCourseUrl"
class=
"pic-tec"
/>
<img
:src=
"item.appIndexCourseUrl"
class=
"pic-tec"
/>
<span
class=
"course-tag"
>
{{
item
.
disName
}}
</span>
<span
class=
"course-tag"
>
{{
item
.
disName
}}
</span>
</div>
</div>
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
setEventByModuleCode
}
from
'@/utils/index'
export
default
{
export
default
{
name
:
'YqyTeacherList'
,
name
:
'YqyTeacherList'
,
data
()
{
data
()
{
...
@@ -43,11 +44,37 @@ export default {
...
@@ -43,11 +44,37 @@ export default {
},
},
methods
:
{
methods
:
{
//跳转
//跳转
goToPage
(
name
){
goToPage
(
item
){
rocNative
.
gotoNewActivityWithParams
({
let
itemData
=
{
"className"
:
"com.picahealth.yunque.activitys.courseplaynew.CourseIntroduc"
,
"title"
:
item
.
name
,
"params"
:
{
"title"
:
name
}
"imageUrl"
:
""
,
"appModuleInfo"
:{
"code"
:
"M200"
,
"type"
:
4
,
"name"
:
"课程介绍页"
,
"paramFlag"
:
1
,
"paramList"
:[
{
"key"
:
"className"
,
"value"
:
"com.picahealth.yunque.activitys.courseplaynew.CourseIntroduceActivity###WeexCourseIntroViewController"
,
"type"
:
4
,
"seqNo"
:
1
},
{
"key"
:
"courseId"
,
"value"
:
`
${
item
.
id
}
`
,
"type"
:
1
,
"seqNo"
:
2
}
]
}
};
let
paramList
=
setEventByModuleCode
(
itemData
);
rocNative
.
dispatchEventByModuleCode
({
modeCode
:
itemData
.
appModuleInfo
.
code
,
jsonString
:
paramList
})
})
},
},
//收藏 取消收藏
//收藏 取消收藏
...
...
src/components/common/loading-new.vue
0 → 100644
浏览文件 @
7ac39bd4
<
template
>
<div
class=
"up-maps-loading"
v-show=
"lock"
>
<img
src=
"../../images/loading-new.png"
>
正在加载
</div>
</
template
>
<
script
>
export
default
{
data
(){
return
{
positionY
:
0
,
timer
:
null
,
lock
:
true
}
},
mounted
(){
// this.timer = setInterval(() => {
// this.positionY ++;
// }, 600)
},
// beforeDestroy(){
// clearInterval(this.timer);
// }
}
</
script
>
<
style
lang=
"scss"
scoped
>
@import
'../../style/mixin'
;
.up-maps-loading
{
margin
:
10px
0
;
text-align
:
center
;
line-height
:
20px
;
}
.up-maps-loading
>
img
{
display
:
inline-block
;
margin
:
0
auto
;
width
:
20px
;
height
:
auto
;
animation
:
circle
1s
infinite
linear
;
-webkit-animation
:
circle
1s
infinite
linear
;
}
</
style
>
src/components/common/topNav.vue
浏览文件 @
7ac39bd4
<
template
>
<
template
>
<section
class=
"nav-top
"
>
<section
:class=
"isNavFix ? 'nav-top fixed' : 'nav-top'
"
>
<div
class=
"nav-part"
>
<div
class=
"nav-part"
:style=
"'background:'+bgColor"
>
<div
class=
"nav-title"
>
<div
class=
"nav-title"
>
<span
class=
"nav-back"
>
<span
class=
"nav-back"
@
click=
"goBack"
>
<img
src=
"../../images/grey-throw.png"
/>
<img
src=
"../../images/grey-throw.png"
/>
</span>
</span>
{{
title
}}
{{
title
}}
<span
class=
"nav-share"
>
<span
class=
"nav-share"
@
click=
"goShare"
>
<img
src=
"../../images/Shape1@2x.png"
/>
<img
src=
"../../images/Shape1@2x.png"
/>
</span>
</span>
</div>
</div>
...
@@ -21,15 +21,47 @@
...
@@ -21,15 +21,47 @@
export
default
{
export
default
{
data
(){
data
(){
return
{
return
{
title
:
'测试'
// title:'测试',
content
:
''
,
shareImageUrl
:
''
,
}
}
},
},
props
:{
bgColor
:{
//背景色
type
:
String
,
default
:
''
},
title
:{
//标题
type
:
String
,
default
:
''
},
isNavFix
:{
//是否fix定位
type
:
Boolean
,
default
:
true
}
},
mounted
(){
mounted
(){
},
},
methods
:
{
methods
:
{
//返回
goBack
(){
rocNative
.
backPreviousPage
();
},
//分享
goShare
(){
let
url
=
location
.
hef
,
_this
=
this
;
rocNative
.
shareWechat
({
url
:
url
,
title
:
_this
.
title
,
content
:
_this
.
content
,
shareImageUrl
:
_this
.
shareImageUrl
})
}
},
},
}
}
</
script
>
</
script
>
...
@@ -37,10 +69,12 @@
...
@@ -37,10 +69,12 @@
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
@import
'../../style/mixin'
;
@import
'../../style/mixin'
;
.nav-top
{
.nav-top
{
height
:
px2rem
(
5
5px
);
height
:
px2rem
(
6
5px
);
border-bottom
:
1px
solid
#E7E7E7
;
background
:
#fff
;
background
:
#fff
;
color
:
#333
;
color
:
#333
;
position
:
relative
;
z-index
:
109
;
.nav-back
{
.nav-back
{
display
:
inline-block
;
display
:
inline-block
;
position
:
absolute
;
position
:
absolute
;
...
@@ -55,6 +89,15 @@
...
@@ -55,6 +89,15 @@
width
:
100%
;
width
:
100%
;
height
:
100%
height
:
100%
}
}
.nav-icon
{
display
:
inline-block
;
width
:
50px
;
height
:
50px
;
svg
{
stroke
:
#000
;
fill
:
#0000ff
;
}
}
.nav-share
{
.nav-share
{
position
:
absolute
;
position
:
absolute
;
right
:
px2rem
(
8px
);;
right
:
px2rem
(
8px
);;
...
@@ -66,17 +109,29 @@
...
@@ -66,17 +109,29 @@
.nav-title
{
.nav-title
{
display
:
inline-block
;
display
:
inline-block
;
width
:
100%
;
width
:
100%
;
padding
:
0
px2rem
(
33px
);
/* padding:0 px2rem(33px);*/
position
:
relative
;
position
:
relative
;
}
}
.nav-part
{
.nav-part
{
position
:
fixed
;
top
:px2rem
(
20px
)
;
left
:
0
;
width
:
100%
;
width
:
100%
;
font-size
:
px2rem
(
18px
);
font-size
:
px2rem
(
18px
);
text-align
:
center
;
text-align
:
center
;
height
:
px2rem
(
25px
);
padding
:
px2rem
(
30px
)
0
px2rem
(
10px
)
0
;
/* height: px2rem(25px);*/
}
}
.fixed
{
.nav-part
{
position
:
fixed
;
top
:
0
;
left
:
0
;
border-bottom
:
1px
solid
#E7E7E7
;
/* height: px2rem(25px);*/
}
}
}
}
...
...
src/images/left-icon.png
0 → 100644
浏览文件 @
7ac39bd4
766 字节
src/images/loading-new.png
0 → 100644
浏览文件 @
7ac39bd4
1.6 KB
src/images/share-icon.png
0 → 100644
浏览文件 @
7ac39bd4
1.8 KB
src/utils/index.js
浏览文件 @
7ac39bd4
...
@@ -207,7 +207,7 @@ export function setEventByModuleCode(itemData){
...
@@ -207,7 +207,7 @@ export function setEventByModuleCode(itemData){
// test1地址
// test1地址
const
baseUrl
=
'http://
test1-api.yunqueyi.com
/'
||
'http://test1-sc.yunqueyi.com/'
const
baseUrl
=
'http://
10.177.10.238:10201
/'
||
'http://test1-sc.yunqueyi.com/'
const
apiUrl
=
'http://10.177.10.238:10201'
||
'http://test1-api.yunqueyi.com/'
const
apiUrl
=
'http://10.177.10.238:10201'
||
'http://test1-api.yunqueyi.com/'
// // uat地址
// // uat地址
...
...
src/utils/mixins.js
浏览文件 @
7ac39bd4
...
@@ -37,7 +37,7 @@ module.exports = {
...
@@ -37,7 +37,7 @@ module.exports = {
// 通用GET请求
// 通用GET请求
GET
(
api
,
para
,
callback
)
{
GET
(
api
,
para
,
callback
)
{
para
.
token
=
para
.
token
||
this
.
token
||
'
625D128F3DBA486AABE7CBA9BDF90E69
'
//'AF3DFCF2DD4B4115AC47ACA25D5420E9''F90DF48D3EFA49DFAE1267A67DBEFB18'//token
para
.
token
=
para
.
token
||
this
.
token
||
'
EA67293E35C249C1832583F7AD2669EC
'
//'AF3DFCF2DD4B4115AC47ACA25D5420E9''F90DF48D3EFA49DFAE1267A67DBEFB18'//token
let
url
=
api
+
this
.
getUrlPara
(
para
)
let
url
=
api
+
this
.
getUrlPara
(
para
)
return
fetch
({
return
fetch
({
url
:
getBaseUrl
(
url
),
url
:
getBaseUrl
(
url
),
...
...
src/views/activity/activity.vue
浏览文件 @
7ac39bd4
<
template
>
<
template
>
<section
class=
"activity-box"
>
<section>
<div
class=
"activity-count"
>
共4个活动
</div>
<TopNav
:bgColor=
"bgColor"
:title=
"navTitle"
:isNavFix=
"isNavFix"
></TopNav>
<div
class=
"activity-list"
>
<section
class=
"activity-box"
>
<div
class=
"activity-item"
v-for=
"(item,index) in list"
:key=
"index"
>
<div
class=
"activity-count"
>
共
{{
list
.
length
}}
个活动
</div>
<img
src=
"../../images/Shape@2x.png"
class=
"img"
/>
<div
class=
"activity-list"
>
<div
class=
"time"
>
活动时间:9月3日-9月9日
</div>
<div
class=
"activity-item"
v-for=
"(item,index) in list"
:key=
"index"
@
click=
"goToPage(item)"
>
<img
:src=
"item.imageUrl"
class=
"img"
/>
<!--
<div
class=
"time"
>
活动时间:9月3日-9月9日
</div>
-->
</div>
</div>
</div>
</div
>
<BackTop
v-if=
"isShowBackTop"
></BackTop
>
<
BackTop></BackTop
>
<
/section
>
</section>
</section>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
setEventByModuleCode
}
from
'@/utils/index'
import
TopNav
from
'../../components/common/topNav'
;
import
BackTop
from
'../../components/common/backTop'
;
import
BackTop
from
'../../components/common/backTop'
;
export
default
{
export
default
{
data
(){
data
(){
return
{
return
{
tittle
:
'活动掠影'
,
tittle
:
'活动掠影'
,
list
:[{},{},{},{}]
list
:[],
bgColor
:
'#fff'
,
navTitle
:
'活动掠影'
,
isBorder
:
true
,
isNavFix
:
true
,
id
:
'1'
,
tabName
:
'测试'
,
tabList
:[],
isShowBackTop
:
false
,
}
}
},
},
components
:{
components
:{
TopNav
,
BackTop
BackTop
},
},
mounted
(){
mounted
(){
document
.
tittle
=
this
.
tittle
;
this
.
getTabData
()
;
},
},
methods
:{
methods
:{
goToPage
(
itemData
){
let
paramList
=
setEventByModuleCode
(
itemData
);
rocNative
.
dispatchEventByModuleCode
({
modeCode
:
itemData
.
appModuleInfo
.
code
,
jsonString
:
paramList
})
},
//查询tab
getTabData
(){
let
_this
=
this
,
parm
=
{
id
:
_this
.
id
}
_this
.
GET
(
'contents/contentList/tabById'
,
parm
).
then
(
function
(
res
){
if
(
res
.
code
===
'000000'
){
_this
.
tabList
=
res
.
data
.
tabList
||
[];
if
(
_this
.
tabList
.
length
>
0
){
_this
.
tabName
=
_this
.
tabList
[
0
]
}
_this
.
getData
();
}
else
{
//alert(res.message)
}
})
},
//查询内容
getData
(){
let
_this
=
this
,
parm
=
{
id
:
_this
.
id
,
tabName
:
_this
.
tabName
}
_this
.
GET
(
'contents/contentList/contentById'
,
parm
).
then
(
function
(
res
){
if
(
res
.
code
===
'000000'
){
_this
.
list
=
res
.
data
.
contentList
&&
res
.
data
.
contentList
.
contentList
||
[];
let
scrollTop
=
document
.
documentElement
.
scrollTop
;
if
(
scrollTop
>
0
){
_this
.
isShowBackTop
=
true
;
}
}
else
{
//alert(res.message)
}
})
}
},
},
}
}
...
...
src/views/home/home-new.vue
浏览文件 @
7ac39bd4
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
<YqyFiveMinutes/>
<YqyFiveMinutes/>
<!--为你推荐-->
<!--为你推荐-->
<YqyHomeAdjust
:isFixed=
"isFixed"
/>
<YqyHomeAdjust
:isFixed=
"isFixed"
v-on:getAdjust=
"fromAdjust"
/>
<!--返回顶部-->
<!--返回顶部-->
<BackTop
v-if=
"isShowBackTop"
/>
<BackTop
v-if=
"isShowBackTop"
/>
...
@@ -88,7 +88,7 @@ export default {
...
@@ -88,7 +88,7 @@ export default {
isShowBackTop
:
false
,
isShowBackTop
:
false
,
isShowEvluat
:
true
,
//是否显示下拉
isShowEvluat
:
true
,
//是否显示下拉
isBodyPull
:
false
,
isBodyPull
:
false
,
speedSwiper
:
20
0
,
speedSwiper
:
20
,
stopPropagation
:
true
,
stopPropagation
:
true
,
isIntStyle
:
''
,
isIntStyle
:
''
,
listSwiper
:[],
//轮播图数据
listSwiper
:[],
//轮播图数据
...
@@ -119,13 +119,15 @@ export default {
...
@@ -119,13 +119,15 @@ export default {
// this.init()
// this.init()
},
},
computed
:{
},
beforeDestroyed
(){
beforeDestroyed
(){
window
.
removeEventListener
(
'scroll'
,
this
.
scrollFun
)
window
.
removeEventListener
(
'scroll'
,
this
.
scrollFun
)
},
},
methods
:{
methods
:{
fromAdjust
(){
window
.
removeEventListener
(
'scroll'
,
this
.
scrollFun
);
},
scrollFun
(){
scrollFun
(){
var
scrollTop
=
document
.
body
.
scrollTop
||
document
.
documentElement
.
scrollTop
;
var
scrollTop
=
document
.
body
.
scrollTop
||
document
.
documentElement
.
scrollTop
;
if
(
scrollTop
>
0
&&
this
.
isIntStyle
==
'font-style pull-down'
){
if
(
scrollTop
>
0
&&
this
.
isIntStyle
==
'font-style pull-down'
){
...
@@ -237,35 +239,7 @@ export default {
...
@@ -237,35 +239,7 @@ export default {
// })
// })
},
},
pushView
:
function
(
page
){
console
.
log
(
'pushView'
);
rocNative
.
pushView
({
url
:
page
}).
then
(
function
(
res
)
{
console
.
log
(
'pushView then'
+
JSON
.
stringify
(
res
));
}).
catch
(
function
(
res
){
console
.
log
(
'pushView catch'
+
JSON
.
stringify
(
res
));
});
},
goBack
:
function
(
msg
)
{
console
.
log
(
'goBack'
);
rocNative
.
goBack
()
.
then
(
function
(
res
)
{
console
.
log
(
'goBack then'
+
JSON
.
stringify
(
res
));
}).
catch
(
function
(
res
){
console
.
log
(
'goBack catch'
+
JSON
.
stringify
(
res
));
});
},
toast
:
function
(
msg
){
console
.
log
(
'toast'
);
rocNative
.
toast
({
msg
:
msg
}).
then
(
function
(
res
)
{
console
.
log
(
'toast then'
+
JSON
.
stringify
(
res
));
}).
catch
(
function
(
res
){
console
.
log
(
'toast catch'
+
JSON
.
stringify
(
res
));
});
},
},
},
}
}
...
...
src/views/spCooperation/spCooperation.vue
浏览文件 @
7ac39bd4
<
template
>
<
template
>
<section>
<section>
<TopNav></TopNav>
<TopNav
:bgColor=
"bgColor"
:title=
"navTitle"
></TopNav>
<section
class=
"cooper-box"
>
<section
class=
"cooper-box"
>
<div
class=
"cooper-count"
>
共4个活动
</div>
<div
class=
"cooper-count"
>
共4个活动
</div>
...
@@ -27,8 +27,10 @@ import TopNav from '../../components/common/topNav';
...
@@ -27,8 +27,10 @@ import TopNav from '../../components/common/topNav';
export
default
{
export
default
{
data
(){
data
(){
return
{
return
{
tittle
:
'转型合作'
,
//tittle:'转型合作',
list
:[{},{},{},{}]
navTitle
:
'转型合作'
,
bgColor
:
'#fff'
,
list
:[{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}]
}
}
},
},
components
:{
components
:{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录