Commit 23b8a74c authored by jyx's avatar jyx

添加协议

parent 961c9861
...@@ -40,11 +40,13 @@ ...@@ -40,11 +40,13 @@
<view class="agreementWrp"> <view class="agreementWrp">
<checkbox-group @change="checkboxChange" style="width: 50rpx;"> <checkbox-group @change="checkboxChange" style="width: 50rpx;">
<checkbox :checked="checked" style="transform:scale(0.6)"> </checkbox> <checkbox :checked="checked" style="transform:scale(0.6)">
</checkbox>
</checkbox-group> </checkbox-group>
<text>您已阅读并同意 <text>您已阅读并同意
<text class="agreementText" @click.stop="goAgreement">《连续订阅服务协议》</text> <text class="agreementText" @click="goAgreement(1)">《连续订阅服务协议》</text>
<text class="agreementText" @click.stop="goAgreement">《支付协议》</text> <text class="agreementText" @click="goAgreement(2)">《支付协议》</text>
<text class="agreementText" @click="goAgreement(3)">《河狸小故事隐私政策》</text>
</text> </text>
</view> </view>
...@@ -179,8 +181,14 @@ ...@@ -179,8 +181,14 @@
this.checked = false this.checked = false
} }
}, },
goAgreement() { goAgreement(type) {
if (type == 1) {
navigateTo(`/pages/brower/brower?url=https://shimo.im/docs/8Nk6e25xxvUgzzqL/`)
} else if (type == 2) {
navigateTo(`/pages/brower/brower?url=https://shimo.im/docs/dPkpdQXbzrFwdNkO/`)
} else if (type == 3) {
navigateTo(`/pages/brower/brower?url=https://shimo.im/docs/0l3NMneJEVCgOBAR/`)
}
} }
} }
} }
...@@ -193,6 +201,7 @@ ...@@ -193,6 +201,7 @@
flex-direction: column; flex-direction: column;
.section { .section {
margin-top: 30rpx;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
...@@ -233,7 +242,7 @@ ...@@ -233,7 +242,7 @@
.row { .row {
display: flex; display: flex;
align-items: center; align-items: center;
margin: 4rpx 15rpx; margin: 6rpx 15rpx;
marign-bottom: 0; marign-bottom: 0;
} }
...@@ -247,7 +256,6 @@ ...@@ -247,7 +256,6 @@
color: #000000; color: #000000;
} }
.price { .price {
font-size: 40rpx; font-size: 40rpx;
color: #000000; color: #000000;
...@@ -339,6 +347,7 @@ ...@@ -339,6 +347,7 @@
align-items: center; align-items: center;
color: darkgray; color: darkgray;
font-size: 26rpx; font-size: 26rpx;
margin-top: 30rpx;
padding-left: 30rpx; padding-left: 30rpx;
.agreementText { .agreementText {
......
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 to comment