Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

78 rindas
2.7 KiB

  1. <style scoped lang="scss">
  2. .agreement-content {
  3. width: 100%;;
  4. display: inline-block;
  5. flex-direction: column;
  6. color: var(--up-main-color, #303133);
  7. .agreement-url {
  8. display: inline-block;
  9. color: var(--up-primary, #2979ff);
  10. // #ifdef H5
  11. cursor: pointer;
  12. // #endif
  13. }
  14. }
  15. </style>
  16. <template>
  17. <view class="up-agreement">
  18. <up-modal v-model:show="show" showCancelButton @confirm="confirm" @cancel="close" confirmText="阅读并同意">
  19. <view class="agreement-content">
  20. <slot>
  21. 我们非常重视您的个人信息和隐私保护。为了更好地保障您的个人权益,在您使用我们的产品前,
  22. 请务必审慎阅读《<text class="agreement-url" @click="urlClick('urlProtocol')">用户协议</text>》
  23. 和《<text class="agreement-url" @click="urlClick('urlPrivacy')">隐私政策</text>》内的所有条款,
  24. 尤其是:1.我们对您的个人信息的收集/保存/使用/对外提供/保护等规则条款,以及您的用户权利等条款;2. 约定我们的限制责任、免责
  25. 条款;3.其他以颜色或加粗进行标识的重要条款。如您对以上协议有任何疑问,请先不要同意,您点击“同意并继续”的行为即表示您已阅读
  26. 完毕并同意以上协议的全部内容。
  27. </slot>
  28. </view>
  29. </up-modal>
  30. </view>
  31. </template>
  32. <script>
  33. export default {
  34. name: 'up-agreement',
  35. props: {
  36. urlProtocol: {
  37. type: String,
  38. default: '/pages/user_agreement/agreement/info?title=用户协议'
  39. },
  40. urlPrivacy: {
  41. type: String,
  42. default: '/pages/user_agreement/agreement/info?title=隐私政策'
  43. },
  44. },
  45. emits: ['confirm'],
  46. data() {
  47. return {
  48. show: false
  49. }
  50. },
  51. methods: {
  52. close() {
  53. // #ifdef H5
  54. window.opener = null;
  55. window.close();
  56. // #endif
  57. // #ifdef APP-PLUS
  58. plus.runtime.quit();
  59. // #endif
  60. },
  61. confirm() {
  62. this.show = false;
  63. this.$emit('confirm', 1);
  64. },
  65. showModal() {
  66. this.show = true;
  67. },
  68. urlClick(type) {
  69. uni.navigateTo({
  70. url: this[type]
  71. });
  72. }
  73. }
  74. }
  75. </script>