This commit is contained in:
pplokijuhyg 2019-12-24 16:48:20 +08:00
parent f9ef1a34bd
commit 6576aef374
4 changed files with 12 additions and 22 deletions

View File

@ -11,13 +11,17 @@ Component({
* 组件的初始数据
*/
data: {
s:false
},
/**
* 组件的方法列表
*/
methods: {
a(){
this.setData({
s:!this.data.s
})
}
}
})

View File

@ -16,4 +16,7 @@
margin-right: 25rpx;
margin-left: 31rpx;
}
.selects{
background-color: #47C877;
}
}

View File

@ -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>

View File

@ -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}