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
e898585e
authored
Dec 09, 2019
by
hank
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix filmSelect
parent
559039a0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
6 deletions
+28
-6
src/pages/home/film/schedule_add/components/films/index.scss
+14
-0
src/pages/home/film/schedule_add/components/films/index.tsx
+13
-5
src/pages/system/wifi_list/index.tsx
+1
-1
No files found.
src/pages/home/film/schedule_add/components/films/index.scss
View file @
e898585e
...
@@ -7,9 +7,23 @@
...
@@ -7,9 +7,23 @@
background-color
:
$bgColor
;
background-color
:
$bgColor
;
position
:
relative
;
position
:
relative
;
padding-bottom
:
100px
;
padding-bottom
:
100px
;
box-sizing
:
border-box
;
overflow
:
hidden
;
.films-bind-item
{
.films-bind-item
{
position
:
relative
;
position
:
relative
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
background
:
#fff
;
&
-state
{
// flex: 1;
min-width
:
28px
;
width
:
28px
;
height
:
28px
;
margin-right
:
39px
;
}
&
-checkbox
{
&
-checkbox
{
position
:
absolute
;
position
:
absolute
;
...
...
src/pages/home/film/schedule_add/components/films/index.tsx
View file @
e898585e
import
api
from
'@/api/index'
import
api
from
'@/api/index'
import
{
ComponentClass
}
from
'react'
import
{
ComponentClass
}
from
'react'
import
{
connect
}
from
'@tarojs/redux'
import
{
connect
}
from
'@tarojs/redux'
import
{
View
,
Label
,
Checkbox
,
Text
,
Button
}
from
'@tarojs/components'
import
{
View
,
Label
,
Checkbox
,
Image
,
Text
,
Button
}
from
'@tarojs/components'
import
{
showMyToast
}
from
'@/common/utils'
import
{
showMyToast
}
from
'@/common/utils'
import
ListView
from
'@/conpoments/list_view'
import
ListView
from
'@/conpoments/list_view'
import
Taro
,
{
Component
,
Config
}
from
'@tarojs/taro'
import
Taro
,
{
Component
,
Config
}
from
'@tarojs/taro'
...
@@ -258,16 +258,24 @@ class Films extends Component {
...
@@ -258,16 +258,24 @@ class Films extends Component {
>
>
{
list
.
map
(
item
=>
(
{
list
.
map
(
item
=>
(
<
View
key=
{
item
.
filmId
}
>
<
View
key=
{
item
.
filmId
}
>
<
Label
className=
"films-bind-item"
onClick=
{
()
=>
this
.
changeItem
(
item
)
}
>
<
View
className=
"films-bind-item"
onClick=
{
()
=>
this
.
changeItem
(
item
)
}
>
<
Checkbox
{
/*
<Checkbox
value=""
value=""
className="films-bind-item-checkbox"
className="films-bind-item-checkbox"
checked={checked.has(item.filmId)}
checked={checked.has(item.filmId)}
/>
/>
*/
}
<
View
className=
"films-bind-item-info"
>
<
View
className=
"films-bind-item-info"
>
<
FilmListItem
isChoose=
{
true
}
key=
{
item
.
filmId
}
{
...
item
}
/>
<
FilmListItem
isChoose=
{
true
}
key=
{
item
.
filmId
}
{
...
item
}
/>
</
View
>
</
View
>
</
Label
>
<
Image
className=
"films-bind-item-state"
src=
{
checked
.
has
(
item
.
filmId
)
?
'https://visual-clouds.oss-cn-beijing.aliyuncs.com/miniprogram/checkbox-select.png'
:
'https://visual-clouds.oss-cn-beijing.aliyuncs.com/miniprogram/checkbox.png'
}
/>
</
View
>
</
View
>
</
View
>
))
}
))
}
</
ListView
>
</
ListView
>
...
...
src/pages/system/wifi_list/index.tsx
View file @
e898585e
...
@@ -178,7 +178,7 @@ class WifiList extends Component {
...
@@ -178,7 +178,7 @@ class WifiList extends Component {
async
getWifiInlineState
(
state
:
string
)
{
async
getWifiInlineState
(
state
:
string
)
{
let
{
wifiList
,
recordList
,
recordObj
}
=
this
.
state
let
{
wifiList
,
recordList
,
recordObj
}
=
this
.
state
if
(
state
===
'PWDFAILED'
)
{
if
(
state
===
'PWDFAILED'
||
state
===
'FAILED'
)
{
await
api
.
common
.
deleteMyequipmentWifi
(
this
.
activeWLAN
.
ssid
)
await
api
.
common
.
deleteMyequipmentWifi
(
this
.
activeWLAN
.
ssid
)
wifiList
.
unshift
(
this
.
activeWLAN
)
wifiList
.
unshift
(
this
.
activeWLAN
)
recordList
.
splice
(
recordList
.
indexOf
(
this
.
activeWLAN
),
1
)
recordList
.
splice
(
recordList
.
indexOf
(
this
.
activeWLAN
),
1
)
...
...
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