hint.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <template>
  2. <uni-popup ref="hintRef" :isMaskClick='true' type="center" border-radius="10px 10px 0 0"
  3. maskBackgroundColor='rgba(0, 0, 0, 0.1)'>
  4. <view class="hint-box">
  5. <view class="hint-title">温馨提示</view>
  6. <view class="hint-val">
  7. <scroll-view scroll-y="true" class="hint-content">
  8. <view class="paragraph-item">
  9. 尊敬的市民朋友,您好!当前我市迎来居民身份证办理高峰期,为方便错峰办证,特提示如下:
  10. </view>
  11. <view class="paragraph-item">
  12. 一、到期换领居民身份证业务可“全市通办”,在“政务地图”上定位后搜索“身份证”即可查看附近可办点位,<text
  13. class="item-sing">就近办理</text>。五年内丢失补领居民身份证的还可通过湖北公安政务服务平台(PC端、移动端)网上<text
  14. class="item-sing">在线办理</text>。
  15. </view>
  16. <view class="paragraph-item">
  17. 二、每日上午9:30至10:30,以及下午14:30至16:00,是各点位人流量集中时段。为避免高峰时段排队等候,请尽量<text
  18. class="item-sing">错峰</text>前往办理。
  19. </view>
  20. <view class="paragraph-item">
  21. 三、近期全市户政服务窗口人流量较大的有:武汉市民之家公安政务服务专区,江岸公安分局户政服务中心,硚口区政务服务中心公安大厅,青山区政务服务中心公安大厅,东湖新技术开发区政务服务中心公安大厅,武汉经济技术开发区政务服务中心公安大厅,江夏区纸坊街纸坊派出所,蔡甸区蔡甸街派出所,洪山区张家湾街派出所,江汉区政务服务中心公安大厅。
  22. </view>
  23. </scroll-view>
  24. </view>
  25. <view class="hint-btns" @click.stop="onClose()">
  26. <view class="hint-btn">关闭</view>
  27. </view>
  28. </view>
  29. </uni-popup>
  30. </template>
  31. <script>
  32. import { PhoneCall } from "@/utils/tool.js";
  33. export default {
  34. data() {
  35. return {
  36. hintList: []
  37. }
  38. },
  39. created() {
  40. },
  41. mounted() {
  42. this.cheackShow();
  43. },
  44. methods: {
  45. cheackShow() {
  46. try {
  47. const a = uni.getStorageSync('showHint');
  48. if (!a) {
  49. this.open()
  50. }
  51. } catch (e) {
  52. this.open()
  53. }
  54. },
  55. open() {
  56. this.$refs.hintRef.open()
  57. try {
  58. uni.setStorageSync('showHint', true);
  59. } catch (e) {
  60. // error
  61. }
  62. },
  63. onPhoneCall(phone) {
  64. PhoneCall(phone).then(res => {
  65. this.onClose()
  66. })
  67. },
  68. onClose() {
  69. this.$refs.hintRef.close()
  70. this.hintList = [];
  71. }
  72. }
  73. }
  74. </script>
  75. <style lang="scss" scoped>
  76. .uni-popup {
  77. z-index: 1002;
  78. .hint-box {
  79. width: 80vw;
  80. background-color: #fff;
  81. border-radius: 20rpx;
  82. // display: flex;
  83. // flex-direction: column;
  84. // justify-content: center;
  85. // align-items: center;
  86. // justify-content: space-between;
  87. .hint-title {
  88. text-align: center;
  89. font-size: 36rpx;
  90. height: 80rpx;
  91. line-height: 80rpx;
  92. }
  93. .hint-val {
  94. // height: calc(100% - 76rpx - 130rpx);
  95. padding: 20rpx 30rpx;
  96. color: #6F6F6F;
  97. .hint-content {
  98. height: auto;
  99. min-height: 30vh;
  100. max-height: 65vh;
  101. }
  102. .paragraph-item {
  103. text-indent: 2em;
  104. .item-sing {
  105. font-weight: bold;
  106. }
  107. }
  108. }
  109. .hint-btns {
  110. padding: 20rpx 0;
  111. .hint-btn {
  112. margin: 0 auto;
  113. width: 260rpx;
  114. height: 80rpx;
  115. display: flex;
  116. justify-content: center;
  117. align-items: center;
  118. color: #fff;
  119. border-radius: 10rpx;
  120. background-color: #3291F8;
  121. }
  122. }
  123. }
  124. }
  125. </style>