You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
940 B

4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
  1. <template>
  2. <view class="radioWrap">
  3. <u-checkbox-group>
  4. <u-checkbox :checked="isCheck" shape="circle" label="已阅读并同意" activeColor="#DE3A26" :labelSize="12"
  5. @change="changeRadio">已阅读并同意</u-checkbox>
  6. </u-checkbox-group>
  7. <view class="privacyText">
  8. <text @click="goPage(2)">用户协议</text> <text @click="goPage(1)">隐私协议</text>
  9. </view>
  10. </view>
  11. </template>
  12. <script setup>
  13. defineProps({
  14. isCheck: {
  15. type: Boolean,
  16. default: false
  17. }
  18. })
  19. let emit = defineEmits()
  20. function changeRadio(val) {
  21. console.log(val)
  22. emit('changeRadio', val)
  23. }
  24. function goPage(type) {
  25. uni.navigateTo({
  26. url: '/pages/subPage/privacyAgreement/privacyAgreement?type=' + type
  27. })
  28. }
  29. </script>
  30. <style lang="scss" scoped>
  31. .radioWrap {
  32. display: flex;
  33. align-items: center;
  34. .privacyText {
  35. font-size: 24rpx;
  36. color: #888E94;
  37. text {
  38. color: $themC;
  39. }
  40. }
  41. }
  42. </style>