search.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. <template>
  2. <view class="content">
  3. <image src="../../static/img/bz-bg.png" mode="widthFix" class="bz-bg"></image>
  4. <view class="bz-tit flex">
  5. <view class="hx"></view>
  6. <view class="">
  7. 申请进度查询
  8. </view>
  9. <view class="hx"></view>
  10. </view>
  11. <view class="tab ">
  12. <view class="bd-wrap flex">
  13. <!-- -->
  14. <view class="bg-val">
  15. <input type="text" value="" placeholder="请输入您的身份证号" class="val-ipt" v-model="cid" />
  16. </view>
  17. <view class="btn" @click="search">
  18. 查询
  19. </view>
  20. </view>
  21. </view>
  22. <view class="tab" v-if="loaded">
  23. <view class="search-tit">
  24. 查询结果:
  25. </view>
  26. <view class="search-result" v-show="msg">
  27. <view class="">
  28. 进度:{{msg}}
  29. </view>
  30. <view class="flex" style="padding-top: 20rpx;" v-show="resoon">
  31. <text style="flex-shrink: 0;">拒绝理由:</text><text>{{resoon}}</text>
  32. </view>
  33. </view>
  34. <view class="" v-show="msg == ''" style="padding: 20rpx;background-color: #fff;">
  35. 您提交的身份证号码未查到提交记录
  36. </view>
  37. </view>
  38. </view>
  39. </template>
  40. <script>
  41. //孕期检查信息(母子健康中心小程序上将带有孕妇姓名 的检查页进行截屏上传)
  42. import {
  43. mapState,
  44. mapMutations
  45. } from 'vuex';
  46. import {
  47. saveUrl,
  48. interceptor
  49. } from '@/utils/loginUtils.js';
  50. import {
  51. upload,
  52. addrescuer,
  53. verify,
  54. sub_list,
  55. search
  56. } from '@/api/ask.js';
  57. export default {
  58. data() {
  59. return {
  60. cid: '',
  61. msg: '',
  62. resoon: '',
  63. loaded: false
  64. }
  65. },
  66. filters: {
  67. },
  68. watch: {
  69. },
  70. computed: {
  71. },
  72. onShow() {
  73. },
  74. methods: {
  75. search() {
  76. let obj = this
  77. if (obj.cid == '') {
  78. return obj.$api.msg('请输入身份证号码')
  79. }
  80. search({
  81. cid: obj.cid
  82. }).then(res => {
  83. obj.loaded = true
  84. // if (res.msg != 'ok') {
  85. // obj.msg = ''
  86. // } else {
  87. // console.log(res)
  88. // obj.msg = res.data.msg
  89. // if (res.data.refuse) {
  90. // obj.resoon = res.data.refuse
  91. // }
  92. // }
  93. if (res.msg == 'ok') {
  94. obj.msg = res.data.msg
  95. if (res.data.refuse) {
  96. obj.resoon = res.data.refuse
  97. }
  98. } else if (res.msg == '未发起申请') {
  99. obj.msg = ''
  100. } else {
  101. obj.msg = res.msg
  102. }
  103. })
  104. }
  105. }
  106. }
  107. </script>
  108. <style lang="scss" scoped>
  109. .search-tit {
  110. padding: 20rpx;
  111. background-color: #fff;
  112. color: #f74342;
  113. font-size: 28rpx;
  114. }
  115. .search-result {
  116. padding: 20rpx 20rpx 20rpx 60rpx;
  117. background-color: #fff;
  118. font-size: 26rpx;
  119. }
  120. .bz-bg {
  121. width: 750rpx;
  122. }
  123. .bz-tit {
  124. align-items: center;
  125. justify-content: center;
  126. margin-top: 40rpx;
  127. font-size: 36rpx;
  128. font-weight: bold;
  129. color: #f3392c;
  130. .hx {
  131. width: 70rpx;
  132. height: 2rpx;
  133. background-color: #f99a93;
  134. margin: 0 25rpx;
  135. }
  136. }
  137. .tab {
  138. width: 690rpx;
  139. border-radius: 20rpx;
  140. overflow: hidden;
  141. margin: 36rpx auto 0;
  142. box-shadow: 0rpx 0rpx 10rpx rgba(0, 0, 0, 0.2);
  143. }
  144. .bd-wrap {
  145. width: 690rpx;
  146. height: 100rpx;
  147. background-color: #fff;
  148. border-bottom: 1px solid #f2f2f2;
  149. line-height: 100rpx;
  150. font-size: 32rpx;
  151. position: relative;
  152. .code {
  153. position: absolute;
  154. width: 100rpx;
  155. height: 100rpx;
  156. right: 10rpx;
  157. color: #f64342;
  158. font-size: 23rpx;
  159. }
  160. .bg-name {
  161. width: 260rpx;
  162. height: 100%;
  163. padding-left: 20rpx;
  164. }
  165. .bg-val {
  166. width: 540rpx;
  167. height: 100%;
  168. .val-ipt {
  169. display: inline-block;
  170. width: 100%;
  171. height: 100%;
  172. // background-color: #009100;
  173. padding-left: 10rpx;
  174. }
  175. }
  176. .btn {
  177. width: 150rpx;
  178. height: 100rpx;
  179. background-color: #f74342;
  180. color: #fff;
  181. text-align: center;
  182. }
  183. }
  184. .sub {
  185. margin-top: 100rpx;
  186. text-align: center;
  187. font-size: 40rpx;
  188. color: #fff;
  189. font-weight: bold;
  190. line-height: 100rpx;
  191. width: 750rpx;
  192. background-color: #f3392c;
  193. }
  194. .sm-wrap {
  195. background-color: #fff;
  196. padding-bottom: 28rpx;
  197. border-bottom: 1px solid #f2f2f2;
  198. position: relative;
  199. .sm-tit {
  200. // line-height: 87rpx;
  201. padding: 20rpx;
  202. font-size: 32rpx;
  203. line-height: 1.5;
  204. // padding-left: 20rpx;
  205. }
  206. .text-area {
  207. height: 156rpx;
  208. width: 634rpx;
  209. border-radius: 20rpx;
  210. border: 1px solid #e8e8e8;
  211. margin: auto;
  212. padding: 10rpx;
  213. }
  214. .pic-num {
  215. position: absolute;
  216. width: 75rpx;
  217. line-height: 34rpx;
  218. border-radius: 17rpx;
  219. background-color: #f3392c;
  220. color: #fff;
  221. font-size: 28rpx;
  222. text-align: center;
  223. right: 10rpx;
  224. top: 22rpx;
  225. }
  226. .img-list {
  227. padding-left: 28rpx;
  228. .img-item {
  229. width: 160rpx;
  230. height: 160rpx;
  231. position: relative;
  232. margin-right: 20rpx;
  233. .upimg {
  234. width: 160rpx;
  235. height: 160rpx;
  236. }
  237. .delimg {
  238. width: 39rpx;
  239. height: 38rpx;
  240. position: absolute;
  241. top: 0;
  242. right: 0;
  243. }
  244. }
  245. }
  246. }
  247. </style>