agreeDialog.vue 921 B

12345678910111213141516171819202122232425262728293031323334
  1. <template>
  2. <uni-popup ref="agreePopup" :animation="false" :is-mask-click="false"
  3. mask-background-color="rgba(255, 255, 255, 0.6);">
  4. <view class="agree-sections-dialog">
  5. <view class="sections-content-box">
  6. <view class="agree-title">用户协议及隐私保护</view>
  7. <view class="agree-tip">我已阅读并同意《用户协议》和《隐私政策》</view>
  8. <view class="confirm-btn" @click="confirmBtn"></view>
  9. <text class="not-confirm-btn" @click="handleClose">不同意</text>
  10. </view>
  11. </view>
  12. </uni-popup>
  13. </template>
  14. <script setup>
  15. import { ref } from 'vue';
  16. const agreePopup = ref(null); // 索引
  17. // 打开弹窗
  18. function handleShow() {
  19. agreePopup.value.open();
  20. }
  21. // 关闭弹窗
  22. function handleClose() {
  23. agreePopup.value.close();
  24. }
  25. // 同意并登录按钮
  26. function confirmBtn(){}
  27. defineExpose({
  28. handleShow
  29. })
  30. </script>
  31. <style>
  32. </style>