裂变星小程序-25.03.04
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.

110 lines
2.7 KiB

  1. <template>
  2. <view>
  3. <uv-modal ref="modal" :showConfirmButton="false">
  4. <view class="modal__view">
  5. <view class="header">
  6. <image class="icon" src="../static/auth/caution.png" mode=""></image>
  7. <view>
  8. 服务协议和隐私权政策
  9. </view>
  10. </view>
  11. <view class="content">
  12. <!-- todo: 替换成接口获取 -->
  13. 请您务必审慎阅读充分理解用户协议和隐私政策各条款包括但不限于用户注意事项用户行为规范以及为了向你提供服务而收集使用存储你个人信息的情况等你可阅读
  14. <text class="highlight" @click="$refs.popup.open('getUserAgreement')">裂变星小程序用户服务协议</text>
  15. <text class="highlight" @click="$refs.popup.open('getPrivacyPolicy')">裂变星小程序平台隐私权政策</text>
  16. 了解详细信息如你同意请点击下方按钮开始接受我们的服务
  17. </view>
  18. <view class="footer flex">
  19. <button class="btn" @click="onConfirm(false)">不同意</button>
  20. <button class="btn btn-confirm" @click="onConfirm(true)">同意</button>
  21. </view>
  22. </view>
  23. </uv-modal>
  24. <configPopup ref="popup"></configPopup>
  25. </view>
  26. </template>
  27. <script>
  28. export default {
  29. name: 'agreementModal',
  30. data() {
  31. return {
  32. }
  33. },
  34. methods: {
  35. open() {
  36. this.$refs.modal.open()
  37. },
  38. onConfirm(confirm) {
  39. this.$emit('confirm', confirm)
  40. this.$refs.modal.close()
  41. },
  42. },
  43. }
  44. </script>
  45. <style lang="scss" scoped>
  46. .modal__view {
  47. display: flex;
  48. flex-direction: column;
  49. padding: 12rpx 0 0 0;
  50. }
  51. .header {
  52. display: flex;
  53. flex-direction: column;
  54. align-items: center;
  55. text-align: center;
  56. font-size: 32rpx;
  57. font-family: PingFang SC, PingFang SC-Regular;
  58. font-weight: 400;
  59. color: #000000;
  60. .icon {
  61. width: 90rpx;
  62. height: 90rpx;
  63. margin-bottom: 26rpx;
  64. }
  65. }
  66. .content {
  67. margin-top: 30rpx;
  68. font-size: 30rpx;
  69. font-family: PingFang SC, PingFang SC-Regular;
  70. font-weight: 500;
  71. text-align: left;
  72. color: #A2A2A2;
  73. .highlight {
  74. color: #474747;
  75. font-weight: 700;
  76. }
  77. }
  78. .footer {
  79. margin-top: 60rpx;
  80. text-align: center;
  81. justify-content: space-between;
  82. .btn {
  83. display: inline-flex;
  84. align-items: center;
  85. justify-content: center;
  86. border-radius: 10rpx;
  87. width: 258rpx;
  88. height: 92rpx;
  89. font-size: 36rpx;
  90. font-family: PingFang SC, PingFang SC-Regular;
  91. font-weight: 400;
  92. box-sizing: border-box;
  93. margin: 0;
  94. padding: 0;
  95. background: #F2F2F2;
  96. color: #C3C3C3;
  97. &-confirm {
  98. background: #07C160;
  99. color: #ffffff;
  100. }
  101. }
  102. }
  103. </style>