Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sedu-mobile-v2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
liuzhanxin
sedu-mobile-v2
Commits
e7ac4ff2
Commit
e7ac4ff2
authored
Feb 21, 2020
by
zhanxin liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
d0363ad7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
137 additions
and
11 deletions
+137
-11
pages.json
cloudTrain/pages.json
+6
-0
security-checkitem.vue
cloudTrain/pages/Security-Check/security-checkitem.vue
+117
-0
select-checkobject.vue
cloudTrain/pages/Security-Check/select-checkobject.vue
+14
-11
No files found.
cloudTrain/pages.json
View file @
e7ac4ff2
...
...
@@ -30,6 +30,12 @@
}
},
{
"path"
:
"pages/Security-Check/security-checkitem"
,
"style"
:
{
"navigationBarTitleText"
:
"检查对象"
}
},
{
"path"
:
"pages/Switch-School/index"
,
"style"
:
{
"navigationBarTitleText"
:
""
...
...
cloudTrain/pages/Security-Check/security-checkitem.vue
0 → 100644
View file @
e7ac4ff2
<
template
>
<mescroll-body
ref=
"mescrollRef"
@
init=
"mescrollInit"
:down=
"downOption"
:up=
"upOption"
@
down=
"downCallback"
@
up=
"upCallback"
>
<view
class=
"news-li"
v-for=
"(item,index) in dataList"
:key=
"index"
>
<view>
<text>
{{
index
}}
.
{{
item
.
text
}}
</text>
</view>
<view
style=
"display: flex;flex-direction: row; width: 100%;justify-content: space-between;"
>
<view
style=
"display: flex;flex-direction: row;"
>
<view
class=
"item-container"
@
click=
"itemClick(index,1)"
>
<view
:class=
"item.status==1? 'selected' :'unselected' "
></view>
<text>
符合
</text>
</view>
<view
class=
"item-container"
@
click=
"itemClick(index,2)"
>
<view
:class=
"item.status==2? 'selected' :'unselected' "
></view>
<text>
不符合
</text>
</view>
<view
class=
"item-container"
@
click=
"itemClick(index,3)"
>
<view
:class=
"item.status==3? 'selected' :'unselected' "
></view>
<text>
不适用
</text>
</view>
</view>
<view
><image
@
click=
"checkItem(item)"
class=
"icon"
src=
"../../static/security-check/safeEdit.png"
></view>
</view>
</view>
</mescroll-body>
</
template
>
<
script
>
import
MescrollMixin
from
"@/components/mescroll-uni/mescroll-mixins.js"
;
export
default
{
mixins
:
[
MescrollMixin
],
data
()
{
return
{
downOption
:
{
auto
:
false
//是否在初始化后,自动执行downCallback; 默认true
},
dataList
:
[{
text
:
"问题"
,
status
:
1
},{
text
:
"问题"
,
status
:
1
},{
text
:
"问题"
,
status
:
1
},{
text
:
"问题"
,
status
:
1
}],
upOption
:
{
use
:
false
,
// 是否启用上拉加载; 默认true
},
}
},
methods
:
{
/*下拉刷新的回调 */
downCallback
()
{
this
.
mescroll
.
endSuccess
();
},
/*上拉加载的回调 */
upCallback
(
page
)
{
},
goDetail
(){
uni
.
navigateTo
({
url
:
"./select-checkobject"
})
},
itemClick
(
index
,
status
){
this
.
dataList
[
index
].
status
=
status
},
checkItem
(){
uni
.
navigateTo
({
url
:
"./index"
})
}
}
}
</
script
>
<
style
>
/*说明*/
.notice
{
font-size
:
30
upx
;
padding
:
40
upx
0
;
border-bottom
:
1
upx
solid
#eee
;
text-align
:
center
;
}
/*展示上拉加载的数据列表*/
.news-li
{
font-size
:
32
upx
;
padding
:
32
upx
;
border-bottom
:
1
upx
solid
#eee
;
}
.news-li
.new-content
{
font-size
:
28
upx
;
margin-top
:
10
upx
;
margin-left
:
20
upx
;
color
:
#666
;
}
.icon
{
width
:
30
rpx
;
height
:
30
rpx
;
}
.top-container
{
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
}
.hover
{
opacity
:
0.7
;
}
.item-container
{
display
:
flex
;
flex-direction
:
row
;
margin-right
:
30
rpx
;
}
.selected
{
width
:
40
rpx
;
height
:
40
rpx
;
background-color
:
#00CE47
;
}
,
.unselected
{
width
:
40
rpx
;
height
:
40
rpx
;
background-color
:
#FFFFFF
;
border
:
1
rpx
solid
#00CE47
;
}
</
style
>
cloudTrain/pages/Security-Check/select-checkobject.vue
View file @
e7ac4ff2
<
template
>
<view
class=
"content"
>
<text
class=
"title"
>
实验室名称:
{{
title
}}
</text>
<text
class=
"title"
>
位置
</text>
<view
class=
"location-container"
>
<text
class=
"title"
>
检查对象
</text>
<view
class=
"location-container"
@
click=
"showPicker"
>
<text
class=
"title"
>
{{
location
}}
</text>
<image
class=
"arrow-right"
src=
"../../static/common/arrow_right_gray.png"
>
</view>
<text
class=
"title"
>
检查项类型
</text>
<view
class=
"location-container"
@
click=
"showPicker"
>
<text
class=
"title"
>
{{
location
}}
</text>
<image
class=
"arrow-right"
src=
"../../static/common/arrow_right_gray.png"
>
</view>
<textarea
class=
"detail"
/>
<button
@
click=
"onclick"
class=
"camera-button"
>
<image
class=
"camera"
src=
"../../static/common/camera.png"
>
</button>
<button
hover-class=
"submithover"
@
click=
"onSubmitClick"
class=
"submit-button"
>
<text
class=
"submittext"
>
提交
</text>
<text
class=
"submittext"
>
开始检查
</text>
</button>
<Picker
mode=
"linkage"
...
...
@@ -25,14 +25,12 @@
</
template
>
<
script
>
import
ActionSheet
from
"@/components/actionsheet/actionsheet.vue"
import
AddressSelect
from
"@/components/multi-select/cityChiden.vue"
import
Picker
from
"@/components/w-picker/w-picker.vue"
;
export
default
{
data
()
{
return
{
title
:
'虚拟仿真实验室'
,
location
:
"
某个地址可能很长
"
,
location
:
""
,
showActionSheet
:
false
,
maskClosable
:
true
,
tips
:
"确认清空搜索历史吗?"
,
...
...
@@ -59,6 +57,11 @@ import Picker from "@/components/w-picker/w-picker.vue";
console
.
log
(
data
)
},
onSubmitClick
(){
uni
.
navigateTo
({
url
:
"security-checkitem"
})
},
showPicker
(){
this
.
$refs
.
picker
.
show
()
}
...
...
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