Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
Harvey
/
ydu-lottery-shop-app
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 4a4201e9
由
Harvey
编写于
2022-04-26 18:16:55 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
zz
1 个父辈
8a368d4f
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
95 行增加
和
26 行删除
src/App.vue
src/pages/index/index.vue
src/pages/tv/info.vue
src/pages/tv/list.vue
src/App.vue
查看文件 @
4a4201e
...
...
@@ -14,10 +14,18 @@
<
style
>
/*每个页面公共css */
uni-page
{
uni-app
{
margin
:
0
auto
;
-webkit-tap-highlight-color
:
transparent
;
box-shadow
:
0
2px
2px
rgb
(
0
0
0
/
30%
);
height
:
auto
;
min-height
:
100%
;
}
}
/* uni-page {
-webkit-tap-highlight-color: transparent;
box-shadow: 0 2px 2px rgb(0 0 0 / 30%);
height: auto;
min-height: 100%;
} */
</
style
>
src/pages/index/index.vue
查看文件 @
4a4201e
<!-- 本示例未包含完整css,获取外链css请参考上文,在hello uni-app项目中查看 -->
<
template
>
<view
class=
"content"
>
<swiper
class=
"swiper
"
:indicator-dots=
"indicatorDots"
:autoplay=
"autoplay"
:interval=
"interval
"
:duration=
"duration"
>
<swiper
class=
"swiper
uni-swiper-height"
:indicator-dots=
"indicatorDots"
:autoplay=
"autoplay
"
:
interval=
"interval"
:
duration=
"duration"
>
<swiper-item
class=
"swiper-item"
>
<image
class=
"banner"
mode=
"
aspectFit
"
src=
"/static/img/banner01.png"
></image>
<image
class=
"banner"
mode=
"
widthFix
"
src=
"/static/img/banner01.png"
></image>
</swiper-item>
<swiper-item
class=
"swiper-item"
>
<image
class=
"banner"
mode=
"
aspectFit
"
src=
"/static/img/banner01.png"
></image>
<image
class=
"banner"
mode=
"
widthFix
"
src=
"/static/img/banner01.png"
></image>
</swiper-item>
<swiper-item
class=
"swiper-item"
>
<image
class=
"banner"
mode=
"
aspectFit
"
src=
"/static/img/banner01.png"
></image>
<image
class=
"banner"
mode=
"
widthFix
"
src=
"/static/img/banner01.png"
></image>
</swiper-item>
</swiper>
<view
class=
"menu-content"
>
...
...
@@ -19,14 +19,14 @@
<view
class=
"menu-name"
>
{{
item
.
name
}}
</view>
</view>
</view>
<view
class=
"seg-line"
>
<view
class=
"seg-name"
>
彩店工具
</view>
</view>
<view
class=
"menu-content"
>
<view
class=
"menu-item"
v-for=
"(item,index) in meun_list2"
:key=
"index"
>
<image
class=
"menu-img"
:src=
"item.src"
:data-nav=
"item.nav"
@
click=
"menuNav"
></image>
<view
class=
"menu-name"
>
{{
item
.
name
}}
</view>
</view>
<view
class=
"seg-line"
>
<view
class=
"seg-name"
>
彩店工具
</view>
</view>
<view
class=
"menu-content"
>
<view
class=
"menu-item"
v-for=
"(item,index) in meun_list2"
:key=
"index"
>
<image
class=
"menu-img"
:src=
"item.src"
:data-nav=
"item.nav"
@
click=
"menuNav"
></image>
<view
class=
"menu-name"
>
{{
item
.
name
}}
</view>
</view>
</view>
</view>
</
template
>
...
...
@@ -104,13 +104,63 @@
</
script
>
<
style
scoped
>
@media
screen
and
(
min-width
:
769px
)
{
.uni-swiper-height
{
height
:
248px
!important
;
}
}
@media
screen
and
(
max-width
:
769px
)
{
.uni-swiper-height
{
height
:
248px
!important
;
}
}
@media
screen
and
(
max-width
:
600px
)
{
.uni-swiper-height
{
height
:
200px
!important
;
}
}
@media
screen
and
(
max-width
:
480px
)
{
.uni-swiper-height
{
height
:
170px
!important
;
}
}
@media
screen
and
(
max-width
:
415px
)
{
.uni-swiper-height
{
height
:
155px
!important
;
}
}
@media
screen
and
(
max-width
:
412px
)
{
.uni-swiper-height
{
height
:
150px
!important
;
}
}
@media
screen
and
(
max-width
:
390px
)
{
.uni-swiper-height
{
height
:
130px
!important
;
}
}
@media
screen
and
(
max-width
:
280px
)
{
.uni-swiper-height
{
height
:
100px
!important
;
}
}
.content
{
padding
:
0
5px
;
font-size
:
12px
;
}
.swiper
{
height
:
130px
;
display
:
block
;
height
:
150px
;
padding
:
10px
5px
0px
5px
;
}
.swiper-item
{}
...
...
src/pages/tv/info.vue
查看文件 @
4a4201e
...
...
@@ -77,9 +77,9 @@
.page-content
image
{
width
:
90%
;
margin
:
10px
5%
;
}
margin
:
10px
5%
50px
;
}
.page-tabbar
{
display
:
flex
;
position
:
fixed
;
...
...
src/pages/tv/list.vue
查看文件 @
4a4201e
<
template
>
<view>
<view
class=
"top-nav"
>
<
button
class=
"top-nav-btn"
:class=
"
{'top-nav-btn-on':sub_module_id == item.value}" v-for="(item,i) in nav"
:data-v="item.value" @click="navChange" :key="i">
{{
item
.
text
}}
</
button
>
<
view
class=
"top-nav-btn"
:class=
"
{'top-nav-btn-on':sub_module_id == item.value}" v-for="(item,i) in nav"
:data-v="item.value" @click="navChange" :key="i">
{{
item
.
text
}}
</
view
>
</view>
<view
class=
"content"
>
<view
class=
'left'
>
...
...
@@ -114,8 +114,16 @@
<
style
lang=
"scss"
scoped
>
.top-nav
{
display
:
flex
;
padding
:
10px
;
flex-wrap
:
wrap
;
padding
:
5px
0px
10px
0px
;
flex-wrap
:
wrap
;
justify-content
:
space-around
;
width
:
100%
;
position
:
fixed
;
top
:
44px
;
z-index
:
999
;
background
:
#ffffff
;
max-width
:
$
sys-max-width
;
}
.top-nav-btn
{
...
...
@@ -127,6 +135,8 @@
background-color
:
rgb
(
241
,
241
,
241
);
font-size
:
14px
;
font-weight
:
normal
;
border-radius
:
5px
;
text-align
:
center
;
}
.top-nav-btn-on
{
...
...
@@ -139,7 +149,7 @@
flex-direction
:
row
;
flex-wrap
:
wrap
;
justify-content
:
space-around
;
padding
:
2
0px
8px
30px
8px
;
padding
:
11
0px
8px
30px
8px
;
}
.left
,
...
...
@@ -162,8 +172,8 @@
.content
.tip
{
position
:
absolute
;
bottom
:
0
;
background
:
#f
6fbfe
;
opacity
:
0.
8
;
background
:
#f
fffff
;
opacity
:
0.
9
;
width
:
100%
;
line-height
:
50px
;
...
...
@@ -175,5 +185,6 @@
overflow
:
hidden
;
font-size
:
16px
;
}
</
style
>
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论