Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
project-online-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
project-online-pc
Commits
68ff2cad
提交
68ff2cad
authored
6月 22, 2021
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
pc,h5合并
上级
fabe72b6
显示空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
273 行增加
和
11 行删除
+273
-11
appFrame.vue
components/appFrame.vue
+3
-2
support.vue
pages/apply/support.vue
+5
-0
bg.vue
pages/project-intro/bg.vue
+111
-2
certificate.vue
pages/project-intro/certificate.vue
+24
-6
charac.vue
pages/project-intro/charac.vue
+50
-1
TabContent.vue
pages/project-intro/components/TabContent.vue
+58
-0
TabNav.vue
pages/project-intro/components/TabNav.vue
+22
-0
没有找到文件。
components/appFrame.vue
浏览文件 @
68ff2cad
...
...
@@ -91,8 +91,9 @@ export default {
}
.main-page-banner
{
display
:
block
;
height
:
1
.2rem
;
object-fit
:
cover
;
width
:
100%
;
// height: 1.2rem;
// object-fit: cover;
}
.main-page-content
{
background-color
:
#fff
;
...
...
pages/apply/support.vue
浏览文件 @
68ff2cad
...
...
@@ -42,6 +42,11 @@ export default {
]
}
}
},
computed
:
{
isMobile
()
{
return
this
.
$store
.
state
.
isMobile
}
}
}
</
script
>
...
...
pages/project-intro/bg.vue
浏览文件 @
68ff2cad
<
template
>
<div
:class=
"isMobile ? 'is-h5' : 'is-pc'"
>
<app-frame
:data=
"frameParams"
>
<div
class=
"project-bg-main"
>
<div
class=
"content-mian"
v-if=
"isMobile"
>
<tab-content
@
tabChange=
"tabChange"
></tab-content>
<div
class=
"content-mod1"
v-if=
"showIndex === 0"
>
<img
src=
"https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/kelley-h5/project-mod1-banner.png"
class=
"main-banner"
>
<div
class=
"content-txt"
>
<div
class=
"tit"
>
{{
$t
(
'bg.brief'
)
}}
</div>
<div
class=
"text"
>
<div
class=
"p"
v-html=
"$t('bg.con1Txt')"
></div>
</div>
<img
src=
"https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/kelley-h5/project-mod1-img.png"
alt=
""
>
</div>
</div>
<div
class=
"content-mod2"
v-if=
"showIndex === 1"
>
<img
src=
"https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/kelley-h5/project-mod2-banner.png"
class=
"main-banner"
>
<div
class=
"content-txt"
>
<div
class=
"p"
v-html=
"$t('bg.con2Txt')"
></div>
</div>
</div>
<div
class=
"content-mod2"
v-if=
"showIndex === 2"
>
<img
src=
"https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/kelley-h5/project-mod3-banner.png"
class=
"main-banner"
>
<div
class=
"content-txt"
>
<div
class=
"p"
v-html=
"$t('bg.con3Txt')"
></div>
</div>
</div>
</div>
<div
class=
"project-bg-main"
v-else
>
<ul
class=
"tabs"
>
<li
v-for=
"item in list"
...
...
@@ -43,12 +69,20 @@
</div>
</div>
</app-frame>
</div>
</
template
>
<
script
>
import
TabNav
from
'./components/TabNav'
import
TabContent
from
'./components/TabContent'
export
default
{
components
:
{
TabNav
,
TabContent
},
layout
:
'normal'
,
data
()
{
return
{
showIndex
:
0
,
tabActive
:
'zjjy'
,
list
:
[
{
name
:
'zjjy'
,
label
:
this
.
$t
(
'bg.tabBtn1'
)
},
...
...
@@ -83,11 +117,22 @@ export default {
]
}
}
},
methods
:
{
tabChange
(
n
)
{
this
.
showIndex
=
n
}
},
computed
:
{
isMobile
()
{
return
this
.
$store
.
state
.
isMobile
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.project-bg-main
{
.is-pc
{
.project-bg-main
{
padding
:
42px
64px
50px
;
.tabs
{
margin-top
:
42px
;
...
...
@@ -165,5 +210,69 @@ export default {
width
:
240px
;
}
}
}
}
::v-deep
{
// .is-h5{
.main-page-content
{
background-color
:
#eee
!
important
;
// }
}
}
.is-h5
{
.content-mian
{
padding
:
0
.16rem
;
.content-mod1
{
padding-top
:
.18rem
;
img
{
width
:
100%
;
display
:
block
;
}
.content-txt
{
background
:
#fff
;
padding
:
0
.16rem
.42rem
;
margin-bottom
:
.36rem
;
.tit
{
font-size
:
0
.14rem
;
font-weight
:
bold
;
line-height
:
100%
;
color
:
#333333
;
padding-top
:
.23rem
;
padding-bottom
:
.1rem
;
}
.text
{
.p
{
font-size
:
0
.12rem
;
line-height
:
0
.24rem
;
color
:
#424242
;
}
}
img
{
width
:
2
.59rem
;
margin-left
:
.08rem
;
margin-top
:
.27rem
;
display
:
block
;
}
}
}
.content-mod2
{
margin-top
:
.18rem
;
background
:
#fff
;
img
{
width
:
100%
;
}
.content-txt
{
background
:
#fff
;
padding
:
0
.16rem
.42rem
;
margin-bottom
:
.36rem
;
.p
{
font-size
:
0
.12rem
;
line-height
:
0
.24rem
;
color
:
#424242
;
margin-top
:
.35rem
;
}
}
}
}
}
</
style
>
pages/project-intro/certificate.vue
浏览文件 @
68ff2cad
<
template
>
<div
:class=
"isMobile ? 'is-h5' : 'is-pc'"
>
<div
class=
"certificate"
>
<app-frame
:data=
"frameParams"
>
<div
class=
"certificate-main"
>
<img
class=
"cert-img"
src=
"https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/marywood/marywood-cert-new2.png"
/>
</div>
</app-frame>
</div>
</div>
</
template
>
<
script
>
export
default
{
...
...
@@ -32,10 +35,31 @@ export default {
]
}
}
},
computed
:
{
isMobile
()
{
return
this
.
$store
.
state
.
isMobile
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.is-pc
{
.cert-img
{
display
:
block
;
width
:
600px
;
// height: 291px;
margin
:
40px
auto
;
}
}
.is-h5
{
.cert-img
{
display
:
block
;
width
:
100%
;
// height: 291px;
margin
:
40px
auto
;
}
}
.certificate-main
{
padding
:
40px
;
text-align
:
center
;
...
...
@@ -71,12 +95,6 @@ export default {
color
:
#424242
;
margin-top
:
40px
;
}
img
{
display
:
block
;
width
:
600px
;
// height: 291px;
margin
:
40px
auto
;
}
.certificate-title
{
font-size
:
16px
;
font-family
:
Source
Han
Sans
CN
;
...
...
pages/project-intro/charac.vue
浏览文件 @
68ff2cad
<
template
>
<div
:class=
"isMobile ? 'is-h5' : 'is-pc'"
>
<app-frame
:data=
"frameParams"
>
<ul
class=
"card"
>
<li
v-for=
"item in list"
:key=
"item.title"
>
...
...
@@ -12,6 +13,7 @@
</li>
</ul>
</app-frame>
</div>
</
template
>
<
script
>
export
default
{
...
...
@@ -53,11 +55,17 @@ export default {
]
}
}
},
computed
:
{
isMobile
()
{
return
this
.
$store
.
state
.
isMobile
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.card
{
.is-pc
{
.card
{
width
:
763px
;
margin
:
0
auto
0
;
padding
:
80px
0
30px
;
...
...
@@ -94,5 +102,45 @@ export default {
}
}
}
}
}
.is-h5
{
.card
{
background
:
#fff
;
padding
:
.24rem
.15rem
.56rem
;
li
{
background
:
#f9f8f8
;
box-shadow
:
0
0
0
rgb
(
0
0
0
/
9%
);
margin-bottom
:
.16rem
;
display
:
flex
;
align-items
:
center
;
box-sizing
:
border-box
;
padding
:
.16rem
.14rem
.1rem
;
.left
{
img
{
width
:
.72rem
;
height
:
.72rem
;
display
:
block
;
}
}
.right
{
margin-left
:
.23rem
;
h5
{
font-size
:
.12rem
;
font-weight
:
700
;
line-height
:
100%
;
color
:
#333
;
margin-bottom
:
.16rem
;
}
p
{
font-size
:
.1rem
;
font-family
:
Source
Han
Sans
CN
;
line-height
:
100%
;
color
:
#424242
;
margin-bottom
:
.1rem
;
}
}
}
}
}
</
style
>
\ No newline at end of file
pages/project-intro/components/TabContent.vue
0 → 100644
浏览文件 @
68ff2cad
<
template
>
<ul
class=
"tab-content"
>
<li
v-for=
"(item, index) in items"
:key=
"index"
:class=
"activeIndex === index && 'active'"
@
click=
"tabChange(index)"
>
{{
item
}}
</li>
</ul>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
items
:
[
this
.
$t
(
'bg.tabBtn1'
),
this
.
$t
(
'bg.tabBtn2'
),
this
.
$t
(
'bg.tabBtn3'
)],
activeIndex
:
0
}
},
methods
:
{
tabChange
(
n
)
{
this
.
activeIndex
=
n
this
.
$emit
(
'tabChange'
,
n
)
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.tab-content
{
padding-top
:
.2rem
;
display
:
flex
;
justify-content
:
space-between
;
li
{
width
:
1
.1rem
;
height
:
0
.75rem
;
line-height
:
.75rem
;
background
:
#FFFFFF
;
text-align
:
center
;
font-size
:
0
.13rem
;
font-weight
:
bold
;
color
:
#333333
;
position
:
relative
;
&
.active
{
color
:
#AA1941
;
&
:
:
after
{
content
:
''
;
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
0
.04rem
;
background
:
#AA1941
}
}
}
}
</
style
>
pages/project-intro/components/TabNav.vue
0 → 100644
浏览文件 @
68ff2cad
<
template
>
<tab-nav
:list=
"list"
v-bind=
"$attrs"
></tab-nav>
</
template
>
<
script
>
import
TabNav
from
'@/components/base/h5/TabNav'
export
default
{
components
:
{
TabNav
},
data
()
{
return
{
list
:
[
{
name
:
this
.
$t
(
'menu.projectChild.bg'
),
path
:
'/project/bg'
,
value
:
'1'
},
{
name
:
this
.
$t
(
'menu.projectChild.feature'
),
path
:
'/project/charac'
,
value
:
'2'
},
{
name
:
this
.
$t
(
'menu.projectChild.cert'
),
path
:
'/project/certificate'
,
value
:
'3'
}
]
}
}
}
</
script
>
<
style
>
</
style
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论