Commit 9ed8ee85 by hank

fix bug

parent a447f995
......@@ -39,11 +39,11 @@
}
&-move {
width: 125px;
height: 50px;
background: linear-gradient(270deg, rgba(255, 51, 37, 1) 0%, rgba(255, 145, 16, 1) 100%);
border-radius: 40px;
line-height: 50px;
width: 46px;
height: 46px;
// background: linear-gradient(270deg, rgba(255, 51, 37, 1) 0%, rgba(255, 145, 16, 1) 100%);
// border-radius: 40px;
// line-height: 50px;
border: none;
font-size: 28px;
color: white;
......@@ -95,13 +95,13 @@
.triangle {
position: absolute;
top: 20px;
right: 10px;
top: 15px;
right: -8px;
// margin-top: 10px;
height: 0;
border: 20px solid transparent;
width: 0;
border-top-color: #333;
height: 18px;
// border: 20px solid transparent;
width: 27px;
// border-top-color: #333;
box-sizing: border-box;
}
}
......@@ -151,17 +151,18 @@
.device-tab-item-word {
position: relative;
padding-right: 40px;
display: inline-block;
}
.triangle {
position: absolute;
top: 10px;
right: -20px;
top: 15px;
right: -8px;
// margin-top: 10px;
height: 0;
border: 20px solid transparent;
width: 0;
border-top-color: #333;
height: 18px;
// border: 20px solid transparent;
width: 27px;
// border-top-color: #333;
box-sizing: border-box;
}
}
......
......@@ -317,12 +317,22 @@ class DeviceSelect extends Component {
className={
TabIndex === 1 ? 'device-tab-item' : 'device-tab-item device-tab-item-active'
}
onClick={this.showModalView}
>
<Text className="device-tab-item-word">
{items[activeIndex]}
<Text className="triangle" />
</Text>
<View className="device-tab-item-word">
<Text
onClick={() => {
console.log(123132132132)
this.setState({ TabIndex: 0 })
}}
>
{items[activeIndex]}
</Text>
<Image
src="https://visual-clouds.oss-cn-beijing.aliyuncs.com/miniprogram/list-icon.png"
className="triangle"
onClick={this.showModalView}
/>
</View>
</View>
<View
className={
......@@ -377,12 +387,11 @@ class DeviceSelect extends Component {
<View className="device-bind-item-info">
<DeviceItem {...item} />
</View>
<Button
<Image
src="https://visual-clouds.oss-cn-beijing.aliyuncs.com/miniprogram/yichu.png"
className="device-bind-item-move"
onClick={() => this.changeItem(item)}
>
移除
</Button>
/>
</Label>
</View>
)
......
......@@ -188,7 +188,7 @@ class Schedule extends Component {
</View>
))}
</ListView>
<View className="schedule-list-add-btn">
<View className="schedule-list-add-btn" onClick={this.addSchedule}>
<Image
className="icon"
src="https://visual-clouds.oss-cn-beijing.aliyuncs.com/miniprogram/create.png"
......
......@@ -46,6 +46,7 @@
.activeTagBtn {
background: #ff9110;
color: white;
box-shadow: 0 7px 12px 0 rgba(159, 87, 2, 0.17);
}
}
}
......
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