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

98 lines
2.3 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. </view>
  15. <view class="footer">
  16. <button class="btn" @click="onConfirm(false)">不同意</button>
  17. <button class="btn btn-confirm" @click="onConfirm(true)">同意</button>
  18. </view>
  19. </view>
  20. </uv-modal>
  21. </view>
  22. </template>
  23. <script>
  24. export default {
  25. name: 'agreementModal',
  26. data() {
  27. return {
  28. }
  29. },
  30. methods: {
  31. open() {
  32. this.$refs.modal.open()
  33. },
  34. onConfirm(confirm) {
  35. this.$emit('confirm', confirm)
  36. this.$refs.modal.close()
  37. },
  38. },
  39. }
  40. </script>
  41. <style lang="scss" scoped>
  42. .modal__view {
  43. display: flex;
  44. flex-direction: column;
  45. padding: 12rpx 0 0 0;
  46. }
  47. .header {
  48. display: flex;
  49. flex-direction: column;
  50. align-items: center;
  51. text-align: center;
  52. font-size: 32rpx;
  53. font-family: PingFang SC, PingFang SC-Regular;
  54. font-weight: 400;
  55. color: #000000;
  56. .icon {
  57. width: 90rpx;
  58. height: 90rpx;
  59. margin-bottom: 26rpx;
  60. }
  61. }
  62. .content {
  63. margin-top: 24rpx;
  64. font-size: 28rpx;
  65. font-family: PingFang SC, PingFang SC-Regular;
  66. font-weight: 400;
  67. text-align: left;
  68. color: #707070;
  69. }
  70. .footer {
  71. margin-top: 60rpx;
  72. text-align: center;
  73. .btn {
  74. display: inline-flex;
  75. align-items: center;
  76. justify-content: center;
  77. border-radius: 9rpx;
  78. width: 223rpx;
  79. height: 85rpx;
  80. font-size: 28rpx;
  81. font-family: PingFang SC, PingFang SC-Regular;
  82. font-weight: 400;
  83. background: #f2f2f2;
  84. color: #707070;
  85. &-confirm {
  86. background: #B3997E;
  87. color: #ffffff;
  88. }
  89. }
  90. .btn + .btn {
  91. margin-left: 52rpx;
  92. }
  93. }
  94. </style>