mzsm.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <template>
  2. <view class="">
  3. <view class="mzsm" @click.stop="mzss">
  4. 免责声明
  5. </view>
  6. <uni-popup ref="popupmz" type="center">
  7. <view class="mzsm-wrap">
  8. <view class="mzsm-tit">
  9. AED导航地图免责声明
  10. </view>
  11. <view class="mzsm-content">
  12. 本应用所提供的网点名称、地址信息,仅供查询参考,实际导航结果以用户所选用的第三方地图应用所显示的位置为准,本应用不保证其导航定位准确性。
  13. </view>
  14. <view class="mzsm-content">
  15. 在法律允许的范围内,本应用声明,不承担用户或任何人士就使用或未能使用本应用所提供的信息所导致的任何直接、间接、附带、从属、特殊、惩罚性或惩戒性的损害赔偿。
  16. </view>
  17. <view class="mzsm-close" @click="mzssClose()">
  18. 确定
  19. </view>
  20. </view>
  21. </uni-popup>
  22. </view>
  23. </template>
  24. <script>
  25. export default {
  26. mounted() {
  27. this.$refs.popupmz.open();
  28. // let a = Date.now();
  29. // let b = uni.getStorageSync('hhtime') || 0
  30. // let c = 24*60*60*1000
  31. // if(b == 0) {
  32. // this.$refs.popupmz.open();
  33. // uni.setStorageSync('hhtime',a)
  34. // }else {
  35. // if((a-b) > c) {
  36. // this.$refs.popupmz.open();
  37. // uni.setStorageSync('hhtime',a)
  38. // }
  39. // }
  40. },
  41. methods: {
  42. mzss() {
  43. this.$refs.popupmz.open();
  44. },
  45. mzssClose() {
  46. this.$refs.popupmz.close();
  47. },
  48. }
  49. }
  50. </script>
  51. <style lang="scss">
  52. .mzsm {
  53. position: fixed;
  54. top: 20rpx;
  55. right: 20rpx;
  56. width: 150rpx;
  57. height: 50rpx;
  58. border-radius: 25rpx;
  59. background-color: #000000;
  60. color: #fff;
  61. font-size: 28rpx;
  62. text-align: center;
  63. z-index: 999;
  64. display: flex;
  65. justify-content: center;
  66. align-items: center;
  67. }
  68. .mzsm-wrap {
  69. width: 500rpx;
  70. background-color: #fff;
  71. border-radius: 20rpx;
  72. .mzsm-tit {
  73. text-align: center;
  74. line-height: 150rpx;
  75. color: #000;
  76. font-size: 36rpx;
  77. font-weight: bold;
  78. }
  79. .mzsm-content {
  80. text-indent: 56rpx;
  81. width: 450rpx;
  82. margin: auto;
  83. text-align: justify;
  84. line-height: 100rpx;
  85. color: #888;
  86. font-size: 28rpx;
  87. font-weight: 500;
  88. line-height: 1.5;
  89. }
  90. .mzsm-close {
  91. margin-top: 20rpx;
  92. border-top: 1px solid #eee;
  93. text-align: center;
  94. line-height: 100rpx;
  95. font-size: 32rpx;
  96. font-weight: 500;
  97. color: #000;
  98. }
  99. }
  100. </style>