推拿小程序前端代码仓库
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.

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