Commit e898585e by hank

fix filmSelect

parent 559039a0
......@@ -7,9 +7,23 @@
background-color: $bgColor;
position: relative;
padding-bottom: 100px;
box-sizing: border-box;
overflow: hidden;
.films-bind-item {
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 {
position: absolute;
......
import api from '@/api/index'
import { ComponentClass } from 'react'
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 ListView from '@/conpoments/list_view'
import Taro, { Component, Config } from '@tarojs/taro'
......@@ -258,16 +258,24 @@ class Films extends Component {
>
{list.map(item => (
<View key={item.filmId}>
<Label className="films-bind-item" onClick={() => this.changeItem(item)}>
<Checkbox
<View className="films-bind-item" onClick={() => this.changeItem(item)}>
{/* <Checkbox
value=""
className="films-bind-item-checkbox"
checked={checked.has(item.filmId)}
/>
/> */}
<View className="films-bind-item-info">
<FilmListItem isChoose={true} key={item.filmId} {...item} />
</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>
))}
</ListView>
......
......@@ -178,7 +178,7 @@ class WifiList extends Component {
async getWifiInlineState(state: string) {
let { wifiList, recordList, recordObj } = this.state
if (state === 'PWDFAILED') {
if (state === 'PWDFAILED' || state === 'FAILED') {
await api.common.deleteMyequipmentWifi(this.activeWLAN.ssid)
wifiList.unshift(this.activeWLAN)
recordList.splice(recordList.indexOf(this.activeWLAN), 1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment