policy.ux 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <template>
  2. <div class="label">
  3. <div class="container">
  4. <text
  5. style="font-weight: 400;margin-top: 40px;text-indent:60px;margin-left: 20px;margin-right: 20px"
  6. >欢迎使用阅乐~你需要阅读并同意<a
  7. style="color: #fddc00;"
  8. @click="gotoPrivacy"
  9. >《隐私政策》</a
  10. >和<a style="color: #fddc00;" @click="gotoRouter">《用户协议》</a
  11. >方可使用阅乐提供的阅读服务,是否同意?</text
  12. >
  13. <div style="margin-top:50px">
  14. <text class="cancel" @click="cancel">取消</text>
  15. <text class="agree" @click="agree">同意</text>
  16. </div>
  17. </div>
  18. </div>
  19. </template>
  20. <script>
  21. import router from '@system.router'
  22. import webview from '@system.webview'
  23. export default {
  24. data() {
  25. return {
  26. display: false
  27. }
  28. },
  29. props: ['display', 'isagree'],
  30. onInit() {},
  31. onShow(options) {},
  32. agree() {
  33. this.$emit('change', {
  34. display: false
  35. })
  36. },
  37. cancel() {
  38. this.$app.exit()
  39. },
  40. gotoRouter() {
  41. router.push({
  42. uri: `/views/Agreement`
  43. })
  44. },
  45. gotoPrivacy() {
  46. webview.loadUrl({
  47. url:
  48. 'https://zhuishuyun.oss-cn-hangzhou.aliyuncs.com/qapp/privacy/yuele-privacy.htm',
  49. showloadingdialog: true
  50. })
  51. }
  52. }
  53. </script>
  54. <style>
  55. .label {
  56. justify-content: center;
  57. align-items: center;
  58. width: 750px;
  59. height: 100%;
  60. background-color: rgba(0,0,0,.5);
  61. }
  62. .container {
  63. width: 510px;
  64. border-radius: 30px;
  65. flex-direction: column;
  66. justify-content: center;
  67. align-items: center;
  68. background-color: white;
  69. }
  70. .agree {
  71. width: 50%;
  72. height: 80px;
  73. text-align: center;
  74. border-bottom-right-radius: 30px;
  75. background-color: #fddc00;
  76. color: white;
  77. }
  78. .cancel {
  79. width: 50%;
  80. height: 80px;
  81. text-align: center;
  82. border-bottom-left-radius: 30px;
  83. background-color: #f5f5f5;
  84. }
  85. </style>