Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
visualcloud
/
Vmatrix-client-taro
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f8af7173
authored
Nov 26, 2019
by
hank
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
0aa598ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
6 deletions
+28
-6
src/pages/home/film/schedule_add/components/device/index.scss
+12
-0
src/pages/home/film/schedule_add/components/device/index.tsx
+16
-6
No files found.
src/pages/home/film/schedule_add/components/device/index.scss
View file @
f8af7173
...
...
@@ -32,6 +32,12 @@
flex
:
1
;
}
&
-state
{
width
:
28px
;
height
:
28px
;
margin-right
:
39px
;
}
&
-move
{
width
:
125px
;
height
:
50px
;
...
...
@@ -45,6 +51,12 @@
}
}
.all-btn
{
padding-left
:
36px
;
font-size
:
36px
;
color
:
rgba
(
88
,
88
,
88
,
1
);
}
&
-bottom-bar
{
padding
:
24px
0
;
background
:
$bgColor
;
...
...
src/pages/home/film/schedule_add/components/device/index.tsx
View file @
f8af7173
...
...
@@ -3,7 +3,7 @@ import { ComponentClass } from 'react'
import
{
showMyToast
}
from
'@/common/utils'
import
DeviceItem
from
'@/conpoments/device_item'
import
Taro
,
{
Component
,
Config
}
from
'@tarojs/taro'
import
{
View
,
Text
,
ScrollView
,
Button
,
Checkbox
,
Label
,
Input
}
from
'@tarojs/components'
import
{
View
,
Text
,
ScrollView
,
Button
,
Checkbox
,
Label
,
Input
,
Image
}
from
'@tarojs/components'
import
{
AtDrawer
}
from
'taro-ui'
import
'./index.scss'
...
...
@@ -343,17 +343,30 @@ class DeviceSelect extends Component {
{
list
.
map
(
item
=>
(
<
View
key=
{
item
.
equipmentId
}
>
<
Label
className=
"device-bind-item"
onClick=
{
()
=>
this
.
changeItem
(
item
)
}
>
<
Checkbox
{
/*
<Checkbox
value=""
className="device-bind-item-checkbox"
checked={checked.has(item.equipmentId)}
/>
/>
*/
}
<
View
className=
"device-bind-item-info"
>
<
DeviceItem
{
...
item
}
/>
</
View
>
<
Image
className=
"device-bind-item-state"
src=
{
checked
.
has
(
item
.
equipmentId
)
?
'https://visual-clouds.oss-cn-beijing.aliyuncs.com/miniprogram/checkbox-select.png'
:
'https://visual-clouds.oss-cn-beijing.aliyuncs.com/miniprogram/checkbox.png'
}
/>
</
Label
>
</
View
>
))
}
<
View
className=
"all-btn"
>
<
Text
className=
"all"
onClick=
{
this
.
changeAllCheck
}
>
全选
</
Text
>
</
View
>
</
ScrollView
>
)
:
(
<
ScrollView
className=
"device-bind-scroll-view"
>
...
...
@@ -378,9 +391,6 @@ class DeviceSelect extends Component {
)
}
</
View
>
<
View
className=
"device-bind-bottom-bar"
>
<
Text
className=
"all"
onClick=
{
this
.
changeAllCheck
}
>
全选
</
Text
>
<
Button
className=
"enter"
onClick=
{
this
.
updateBind
}
>
完成
</
Button
>
...
...
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