diff --git a/components/orderconfirm/orderagreement/orderagreement.js b/components/orderconfirm/orderagreement/orderagreement.js index fdb2c09..018ba6c 100644 --- a/components/orderconfirm/orderagreement/orderagreement.js +++ b/components/orderconfirm/orderagreement/orderagreement.js @@ -11,13 +11,17 @@ Component({ * 组件的初始数据 */ data: { - + s:false }, /** * 组件的方法列表 */ methods: { - + a(){ + this.setData({ + s:!this.data.s + }) + } } }) diff --git a/components/orderconfirm/orderagreement/orderagreement.scss b/components/orderconfirm/orderagreement/orderagreement.scss index d9afcaa..5d4f760 100644 --- a/components/orderconfirm/orderagreement/orderagreement.scss +++ b/components/orderconfirm/orderagreement/orderagreement.scss @@ -16,4 +16,7 @@ margin-right: 25rpx; margin-left: 31rpx; } + .selects{ + background-color: #47C877; + } } \ No newline at end of file diff --git a/components/orderconfirm/orderagreement/orderagreement.wxml b/components/orderconfirm/orderagreement/orderagreement.wxml index 9f0314d..2485e82 100644 --- a/components/orderconfirm/orderagreement/orderagreement.wxml +++ b/components/orderconfirm/orderagreement/orderagreement.wxml @@ -1,4 +1,4 @@ - - + + 同意使用条款和隐私政策 \ No newline at end of file diff --git a/components/orderconfirm/orderagreement/orderagreement.wxss b/components/orderconfirm/orderagreement/orderagreement.wxss index 6f4346f..3f7be99 100644 --- a/components/orderconfirm/orderagreement/orderagreement.wxss +++ b/components/orderconfirm/orderagreement/orderagreement.wxss @@ -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}