完成
This commit is contained in:
parent
f9ef1a34bd
commit
6576aef374
@ -11,13 +11,17 @@ Component({
|
||||
* 组件的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
s:false
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
|
||||
a(){
|
||||
this.setData({
|
||||
s:!this.data.s
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
|
@ -16,4 +16,7 @@
|
||||
margin-right: 25rpx;
|
||||
margin-left: 31rpx;
|
||||
}
|
||||
.selects{
|
||||
background-color: #47C877;
|
||||
}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
<view class="agree">
|
||||
<view class="select"></view>
|
||||
<view class="agree" bind:tap="a">
|
||||
<view class="select {{s?'selects':''}}"></view>
|
||||
<text>同意使用条款和隐私政策</text>
|
||||
</view>
|
@ -1,18 +1 @@
|
||||
.agree {
|
||||
width: 690rpx;
|
||||
line-height: 96rpx;
|
||||
display: flex;
|
||||
margin: 0 auto;
|
||||
color: #999999;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
|
||||
.agree .select {
|
||||
width: 26rpx;
|
||||
height: 26rpx;
|
||||
margin: auto 0;
|
||||
border-radius: 50%;
|
||||
background-color: #EAEAEA;
|
||||
margin-right: 25rpx;
|
||||
margin-left: 31rpx;
|
||||
}
|
||||
.agree{width:690rpx;line-height:96rpx;display:flex;margin:0 auto;color:#999999;font-size:26rpx}.agree .select{width:26rpx;height:26rpx;margin:auto 0;border-radius:50%;background-color:#EAEAEA;margin-right:25rpx;margin-left:31rpx}.agree .selects{background-color:#47C877}
|
||||
|
Loading…
Reference in New Issue
Block a user