Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
Sign in / Register
Toggle navigation
S
site-uniapp
概览
Overview
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
王柯
site-uniapp
Commits
dfc04e75
提交
dfc04e75
authored
2月 03, 2023
作者:
wk
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
首页适配
父级
61a90863
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
16 行增加
和
10 行删除
+16
-10
components/ls-swiper/ls-swiper.vue
+1
-1
components/navbar/navbar.vue
+2
-2
pages/gallery/gallery.vue
+8
-2
pages/index/index.vue
+5
-5
没有找到文件。
components/ls-swiper/ls-swiper.vue
View file @
dfc04e75
...
@@ -132,7 +132,7 @@
...
@@ -132,7 +132,7 @@
.wrap
{
.wrap
{
position
:
relative
;
position
:
relative
;
border-radius
:
30
rpx
;
border-radius
:
30
rpx
;
margin
:
-60
r
px
30
rpx
0
30
rpx
;
margin
:
62
px
30
rpx
0
30
rpx
;
background-color
:
#3B73FE
;
background-color
:
#3B73FE
;
.swiper
{
.swiper
{
...
...
components/navbar/navbar.vue
View file @
dfc04e75
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
</view>
</view>
</view>
</view>
</view>
</view>
<
view
:style=
"
{height:statusBarHeight + titlebarHeight +'px'}">
</view
>
<
!--
<view
:style=
"
{height:statusBarHeight + titlebarHeight +'px'}">
</view>
--
>
</view>
</view>
</
template
>
</
template
>
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
console
.
log
(
menu
.
bottom
);
console
.
log
(
menu
.
bottom
);
this
.
screenWidth
=
menu
.
left
this
.
screenWidth
=
menu
.
left
//#endif
//#endif
console
.
log
(
this
.
titlebarHeight
);
console
.
log
(
"标题高度"
,
this
.
titlebarHeight
);
},
},
methods
:
{
methods
:
{
// 返回app列表页
// 返回app列表页
...
...
pages/gallery/gallery.vue
View file @
dfc04e75
...
@@ -36,7 +36,9 @@
...
@@ -36,7 +36,9 @@
</view>
</view>
</view>
</view>
<view
class=
"app-content"
:style=
"
{'top':statusBarHeight+250+'px'}">
<view
class=
"app-content"
:style=
"
{'top':statusBarHeight+250+'px'}">
<v-tabs
:tabs=
"tabs"
:scroll=
"true"
:value=
"current"
@
change=
"tabChange"
></v-tabs>
<view
class=
"menu-content"
>
<v-tabs
:tabs=
"tabs"
:scroll=
"true"
:value=
"current"
@
change=
"tabChange"
></v-tabs>
</view>
<view
class=
"app-group-content"
>
<view
class=
"app-group-content"
>
<view
class=
"app-group-item"
v-for=
"(item,index) in getMenuApps()"
:key=
"index"
>
<view
class=
"app-group-item"
v-for=
"(item,index) in getMenuApps()"
:key=
"index"
>
<view
class=
"title"
>
{{
item
.
group_name
||
"其他"
}}
</view>
<view
class=
"title"
>
{{
item
.
group_name
||
"其他"
}}
</view>
...
@@ -430,7 +432,7 @@
...
@@ -430,7 +432,7 @@
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.content
{
.content
{
display
:
flex
;
display
:
flex
;
padding
-bottom
:
130
rpx
;
margin
-bottom
:
130
rpx
;
flex-direction
:
column
;
flex-direction
:
column
;
.header-content
{
.header-content
{
...
@@ -593,6 +595,10 @@
...
@@ -593,6 +595,10 @@
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
.menu-content
{
display
:
flex
;
}
.app-group-content
{
.app-group-content
{
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
...
...
pages/index/index.vue
View file @
dfc04e75
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<image
src=
"../../static/home-head.png"
class=
"header-image"
></image>
<image
src=
"../../static/home-head.png"
class=
"header-image"
></image>
<navbar
:title=
"title"
:showBack=
"false"
></navbar>
<navbar
:title=
"title"
:showBack=
"false"
></navbar>
<!-- 天气 -->
<!-- 天气 -->
<view
class=
"weather-content"
:style=
"
{top:statusBarHeight+36+'px'}"
<view
class=
"weather-content"
:style=
"
{top:statusBarHeight+36
*heightScale
+'px'}"
v-if="isCompShow('onepoint-weather','ydt-tq')">
v-if="isCompShow('onepoint-weather','ydt-tq')">
<view
class=
"temp-content"
@
click=
"toLinkOther"
>
<view
class=
"temp-content"
@
click=
"toLinkOther"
>
<view
class=
"temp"
>
{{
weather
.
temp
}}
℃
</view>
<view
class=
"temp"
>
{{
weather
.
temp
}}
℃
</view>
...
@@ -20,10 +20,8 @@
...
@@ -20,10 +20,8 @@
</view>
</view>
</view>
</view>
</view>
</view>
<!--
<view
class=
"banner-content"
:style=
"
{top:statusBarHeight+116+'px'}"> -->
<ls-swiper
:list=
"banners"
imgKey=
"coverImg"
:loop=
"true"
:dots=
'true'
:autoplay=
'true'
height=
'142'
<ls-swiper
:list=
"banners"
imgKey=
"coverImg"
:loop=
"true"
:dots=
'true'
:autoplay=
'true'
height=
'142'
@
clickItem=
"clickItem()"
v-if=
"isCompShow('OnePointBanner','ydt-lbt')"
/>
@
clickItem=
"clickItem()"
v-if=
"isCompShow('OnePointBanner','ydt-lbt')"
/>
<!--
</view>
-->
</view>
</view>
<!-- 工地头条 -->
<!-- 工地头条 -->
<view
class=
" top-new-content"
@
click=
"toLinkNew"
v-if=
"isCompShow('OnePointNews','ydt-gdtt')&&role!='VISITOR'"
>
<view
class=
" top-new-content"
@
click=
"toLinkNew"
v-if=
"isCompShow('OnePointNews','ydt-gdtt')&&role!='VISITOR'"
>
...
@@ -157,7 +155,8 @@
...
@@ -157,7 +155,8 @@
project
:
{},
project
:
{},
project_id
:
""
,
project_id
:
""
,
changeRecords
:
[],
changeRecords
:
[],
menus
:
[]
menus
:
[],
heightScale
:
1
}
}
},
},
onLoad
()
{
onLoad
()
{
...
@@ -168,6 +167,7 @@
...
@@ -168,6 +167,7 @@
}
else
{
}
else
{
this
.
statusBarHeight
=
info
.
statusBarHeight
this
.
statusBarHeight
=
info
.
statusBarHeight
}
}
this
.
heightScale
=
info
.
windowHeight
/
730
let
nowDate
=
new
Date
()
let
nowDate
=
new
Date
()
this
.
nowTime
=
this
.
nowTime
=
`
${
nowDate
.
getFullYear
()}
/
${
this
.
add0
(
nowDate
.
getMonth
()
+
1
)}
/
${
this
.
add0
(
nowDate
.
getDate
())}
`
`
${
nowDate
.
getFullYear
()}
/
${
this
.
add0
(
nowDate
.
getMonth
()
+
1
)}
/
${
this
.
add0
(
nowDate
.
getDate
())}
`
...
@@ -848,7 +848,7 @@
...
@@ -848,7 +848,7 @@
display
:
flex
;
display
:
flex
;
top
:
120
rpx
;
top
:
120
rpx
;
align-items
:
center
;
align-items
:
center
;
padding
:
32
rpx
32
rpx
;
padding
:
32
rpx
32
rpx
0
32
rpx
;
left
:
0
;
left
:
0
;
flex-direction
:
row
;
flex-direction
:
row
;
...
...
Write
Preview
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
Please
register
or
sign in
to comment