Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
X
xzf_uniapp-wechat-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李智书
xzf_uniapp-wechat-web
Commits
726fb1f3
Commit
726fb1f3
authored
May 20, 2022
by
李智书
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.新增404空白页面;
parent
fc2bcf89
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
139 additions
and
11 deletions
+139
-11
src/App.vue
src/App.vue
+5
-0
src/pages.json
src/pages.json
+16
-7
src/pages/NotFound/NotFound.vue
src/pages/NotFound/NotFound.vue
+114
-0
src/pages/TemperatureRecords/HighTemperature/HighTemperature.vue
...es/TemperatureRecords/HighTemperature/HighTemperature.vue
+1
-1
src/pages/TemperatureRecords/LowTemperature/LowTemperature.vue
...ages/TemperatureRecords/LowTemperature/LowTemperature.vue
+1
-1
src/pages/TemperatureRecords/NormalTemperatrue/NormalTemperatrue.vue
...emperatureRecords/NormalTemperatrue/NormalTemperatrue.vue
+1
-1
src/pages/TemperatureRecords/Undetected/Undetected.vue
src/pages/TemperatureRecords/Undetected/Undetected.vue
+1
-1
src/static/images/noNetWork.png
src/static/images/noNetWork.png
+0
-0
src/static/images/notFound.png
src/static/images/notFound.png
+0
-0
No files found.
src/App.vue
View file @
726fb1f3
...
@@ -8,6 +8,11 @@
...
@@ -8,6 +8,11 @@
},
},
onHide
:
function
()
{
onHide
:
function
()
{
console
.
log
(
'
App Hide
'
)
console
.
log
(
'
App Hide
'
)
},
onPageNotFound
:
function
(
res
)
{
uni
.
redirectTo
({
url
:
"
/pages/NotFound/NotFound
"
})
}
}
}
}
</
script
>
</
script
>
...
...
src/pages.json
View file @
726fb1f3
...
@@ -374,7 +374,7 @@
...
@@ -374,7 +374,7 @@
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
},{
},
{
"path"
:
"pages/TemperatureRecords/TemperatureStatistics/TemperatureStatistics"
,
"path"
:
"pages/TemperatureRecords/TemperatureStatistics/TemperatureStatistics"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"体温记录"
,
"navigationBarTitleText"
:
"体温记录"
,
...
@@ -382,7 +382,7 @@
...
@@ -382,7 +382,7 @@
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
},{
},
{
"path"
:
"pages/TemperatureRecords/HighTemperature/HighTemperature"
,
"path"
:
"pages/TemperatureRecords/HighTemperature/HighTemperature"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"高温"
,
"navigationBarTitleText"
:
"高温"
,
...
@@ -390,7 +390,7 @@
...
@@ -390,7 +390,7 @@
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
},{
},
{
"path"
:
"pages/TemperatureRecords/LowTemperature/LowTemperature"
,
"path"
:
"pages/TemperatureRecords/LowTemperature/LowTemperature"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"低温"
,
"navigationBarTitleText"
:
"低温"
,
...
@@ -398,7 +398,7 @@
...
@@ -398,7 +398,7 @@
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
},{
},
{
"path"
:
"pages/TemperatureRecords/NormalTemperatrue/NormalTemperatrue"
,
"path"
:
"pages/TemperatureRecords/NormalTemperatrue/NormalTemperatrue"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"正常"
,
"navigationBarTitleText"
:
"正常"
,
...
@@ -406,7 +406,7 @@
...
@@ -406,7 +406,7 @@
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
},{
},
{
"path"
:
"pages/TemperatureRecords/Undetected/Undetected"
,
"path"
:
"pages/TemperatureRecords/Undetected/Undetected"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"未测量"
,
"navigationBarTitleText"
:
"未测量"
,
...
@@ -414,7 +414,7 @@
...
@@ -414,7 +414,7 @@
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
},{
},
{
"path"
:
"pages/SchoolReport/SchoolReport"
,
"path"
:
"pages/SchoolReport/SchoolReport"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"校园报告"
,
"navigationBarTitleText"
:
"校园报告"
,
...
@@ -423,7 +423,16 @@
...
@@ -423,7 +423,16 @@
}
}
}
}
,
{
"path"
:
"pages/NotFound/NotFound"
,
"style"
:
{
"navigationBarTitleText"
:
"抱歉!没有找到您想要的资源"
,
"navigationStyle"
:
"custom"
,
"enablePullDownRefresh"
:
false
}
}
],
],
"globalStyle"
:
{
"globalStyle"
:
{
"navigationBarTextStyle"
:
"black"
,
"navigationBarTextStyle"
:
"black"
,
...
...
src/pages/NotFound/NotFound.vue
0 → 100644
View file @
726fb1f3
<
template
>
<view
class=
"noData hideToShow"
:style=
"
{ backgroundColor: bgColor }">
<view
class=
"image"
>
<image
:src=
"noDataImg"
></image>
</view>
<!-- 网络连接失败默认显示内容 -->
<view
class=
"content"
>
<text
class=
"title"
:style=
"
{ color: mainColor }">不存在的内容
</text>
<text
class=
"desc"
:style=
"
{ color: viceColor }">没有找到您想要的东西
</text>
</view>
<!-- 自定义内容 -->
<slot
/>
</view>
</
template
>
<
script
>
export
default
{
name
:
"
NotFound
"
,
props
:
{
isShow
:
{
type
:
Boolean
,
default
:
false
},
/* 背景颜色自定义 */
bgColor
:
{
type
:
String
,
default
:
'
#ffffff
'
},
/* 标题颜色自定义 */
mainColor
:
{
type
:
String
,
default
:
'
#373a40
'
},
/* 描述颜色自定义 */
viceColor
:
{
type
:
String
,
default
:
'
#8b8b8b
'
},
// 是否开启自定义
custom
:
{
type
:
false
,
default
:
false
}
},
data
()
{
return
{
type
:
''
,
netType
:
""
,
mainText
:
'
网络居然崩溃了
'
,
viceText
:
'
别紧张,去检测一下网络设置
'
,
netWorkImg
:
'
/static/images/noNetWork.png
'
,
noDataImg
:
'
/static/images/notFound.png
'
}
},
methods
:
{
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.noData
{
width
:
100%
;
height
:
100%
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
flex-direction
:
column
;
padding-top
:
400rpx
;
.image
{
width
:
187upx
;
height
:
144upx
;
image
{
width
:
100%
;
height
:
100%
;
}
}
.content
{
width
:
100%
;
display
:
flex
;
align-items
:
center
;
flex-direction
:
column
;
justify-content
:
center
;
letter-spacing
:
1upx
;
.title
{
font-size
:
36upx
;
}
.desc
{
font-size
:
28upx
;
margin-top
:
6upx
;
}
.btn
{
width
:
160upx
;
height
:
65upx
;
color
:
#868d91
;
font-size
:
24upx
;
margin-top
:
34upx
;
border-radius
:
36upx
;
border
:
1upx
solid
#d4d4d4
;
}
.
btn
:
:
after
{
border
:
none
;
}
}
}
</
style
>
src/pages/TemperatureRecords/HighTemperature/HighTemperature.vue
View file @
726fb1f3
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
</view>
</view>
<view
class=
"cardBox"
>
<view
class=
"cardBox"
>
<view
v-if=
"ifShow"
>
<view
v-if=
"ifShow"
>
<view
class=
"card"
v-for=
"
item of detailsList
"
>
<view
class=
"card"
v-for=
"
(item,index) of detailsList"
:key=
"index
"
>
<view
class=
"temperatureResult"
>
<view
class=
"temperatureResult"
>
<view
class=
"studentInfo"
>
<view
class=
"studentInfo"
>
<view
class=
"studentName"
>
<view
class=
"studentName"
>
...
...
src/pages/TemperatureRecords/LowTemperature/LowTemperature.vue
View file @
726fb1f3
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
</view>
</view>
<view
class=
"cardBox"
>
<view
class=
"cardBox"
>
<view
v-if=
"ifShow"
>
<view
v-if=
"ifShow"
>
<view
class=
"card"
v-for=
"
item of detailsList
"
>
<view
class=
"card"
v-for=
"
(item,index) of detailsList"
:key=
"index
"
>
<view
class=
"temperatureResult"
>
<view
class=
"temperatureResult"
>
<view
class=
"studentInfo"
>
<view
class=
"studentInfo"
>
<view
class=
"studentName"
>
<view
class=
"studentName"
>
...
...
src/pages/TemperatureRecords/NormalTemperatrue/NormalTemperatrue.vue
View file @
726fb1f3
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
</view>
</view>
<view
class=
"cardBox"
>
<view
class=
"cardBox"
>
<view
v-if=
"ifShow"
>
<view
v-if=
"ifShow"
>
<view
class=
"card"
v-for=
"
item of detailsList
"
>
<view
class=
"card"
v-for=
"
(item,index) of detailsList"
:key=
"index
"
>
<view
class=
"temperatureResult"
>
<view
class=
"temperatureResult"
>
<view
class=
"studentInfo"
>
<view
class=
"studentInfo"
>
<view
class=
"studentName"
>
<view
class=
"studentName"
>
...
...
src/pages/TemperatureRecords/Undetected/Undetected.vue
View file @
726fb1f3
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
</view>
</view>
<view
class=
"cardBox"
>
<view
class=
"cardBox"
>
<view
v-if=
"ifShow"
>
<view
v-if=
"ifShow"
>
<view
class=
"card"
v-for=
"
item of detailsList
"
>
<view
class=
"card"
v-for=
"
(item,index) of detailsList"
:key=
"index
"
>
<view
class=
"temperatureResult"
>
<view
class=
"temperatureResult"
>
<view
class=
"studentInfo"
>
<view
class=
"studentInfo"
>
<view
class=
"studentName"
>
<view
class=
"studentName"
>
...
...
src/static/images/noNetWork.png
0 → 100644
View file @
726fb1f3
20.7 KB
src/static/images/notFound.png
0 → 100644
View file @
726fb1f3
24.5 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment