policy.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <template>
  2. <view class="policy-v">
  3. <view class="reminder-content">
  4. <image :src="loginlogo" class="logo" mode="widthFix"></image>
  5. <view class="u-font-36 u-m-t-20 u-m-b-30">引迈开发平台</view>
  6. <view class="policy-tips u-m-t-20">
  7. <view>欢迎使用引迈开发平台,依据政策要求,为了您能使用所有功能,在使用中需要连接网络、定位、调用麦克风等服务,请仔细阅读
  8. <text class="u-type-primary" @click="userAgreement">《用户协议》</text>和<text class="u-type-primary"
  9. @click="privacyPolicy">《隐私政策》</text>,选择下方“同意并继续”表示您同意以上协议内容。
  10. </view>
  11. </view>
  12. <view class="operation-btn u-flex u-row-between">
  13. <u-button @click="exitApp" :custom-style="customStyle">不同意</u-button>
  14. <u-button type="primary" @click="agree" :custom-style="customStyle">同意并继续</u-button>
  15. </view>
  16. </view>
  17. </view>
  18. </template>
  19. <script>
  20. import resources from '@/libs/resources.js'
  21. // #ifdef APP-HARMONY
  22. import {
  23. exitApp
  24. } from "@/uni_modules/jnpf-exitApp"
  25. // #endif
  26. export default {
  27. data() {
  28. return {
  29. loginlogo: resources.login.logo,
  30. agreement: resources.userAgreement,
  31. policy: resources.privacyPolicy,
  32. customStyle: {
  33. width: '40%'
  34. }
  35. }
  36. },
  37. methods: {
  38. exitApp() {
  39. // #ifdef APP-HARMONY
  40. exitApp().then(res => {})
  41. // #endif
  42. // #ifndef APP-HARMONY
  43. plus.os.name == "Android" ? plus.runtime.quit() : plus.ios.import("UIApplication").sharedApplication()
  44. .performSelector("exit");
  45. // #endif
  46. },
  47. openAppProductBtn() {
  48. ExitApp({
  49. success: (res) => {
  50. console.log('success: ', JSON.stringify(res));
  51. },
  52. fail: (err) => {
  53. console.error('fail: ', JSON.stringify(err));
  54. },
  55. complete: (res) => {
  56. console.log('complete: ', JSON.stringify(res));
  57. }
  58. });
  59. },
  60. userAgreement() {
  61. plus.runtime.openURL(this.agreement);
  62. },
  63. privacyPolicy() {
  64. plus.runtime.openURL(this.policy);
  65. },
  66. agree() {
  67. uni.redirectTo({
  68. url: '/pages/launch/guide'
  69. })
  70. },
  71. }
  72. }
  73. </script>
  74. <style lang="scss">
  75. .policy-v {
  76. padding-top: 300rpx;
  77. .logo {
  78. width: 164rpx;
  79. }
  80. .reminder-content {
  81. display: flex;
  82. flex-direction: column;
  83. align-items: center;
  84. margin: 0 54rpx;
  85. }
  86. .policy-tips {
  87. color: #9A9A9A;
  88. }
  89. .operation-btn {
  90. position: fixed;
  91. left: 0;
  92. right: 0;
  93. bottom: 100rpx;
  94. }
  95. }
  96. </style>