request.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. <template>
  2. <view>
  3. <u-navbar title="请求进场"back-icon-name="close" back-icon-size="30" :is-back="false" ></u-navbar>
  4. <view class="success">
  5. <u-icon name="chenggong" custom-prefix="custom-icon" size="180" color="#00B962"></u-icon>
  6. <view class="title" >进场成功</view>
  7. </view>
  8. <view class="infos">
  9. <view class="info-item">
  10. <view class="title">
  11. 临牌
  12. </view>
  13. <view class="content">
  14. {{detail.carNum}}
  15. </view>
  16. </view>
  17. <view class="info-item">
  18. <view class="title">
  19. 注意事项
  20. </view>
  21. <view class="content attention">
  22. 此车牌为无车牌进场系统随机分配
  23. </view>
  24. </view>
  25. <view class="info-item">
  26. <view class="title">
  27. 入场大门
  28. </view>
  29. <view class="content">
  30. {{detail.inChannel}}
  31. </view>
  32. </view>
  33. <view class="info-item">
  34. <view class="title">
  35. 停车场组
  36. </view>
  37. <view class="content">
  38. {{detail.parkName}}
  39. </view>
  40. </view>
  41. <view class="info-item">
  42. <view class="title">
  43. 入门时间
  44. </view>
  45. <view class="content">
  46. {{detail.inParkingTime}}
  47. </view>
  48. </view>
  49. <view class="info-item">
  50. <view class="title">
  51. 注意事项
  52. </view>
  53. <view class="content attention">
  54. 进出门请用相同微信号扫码
  55. </view>
  56. </view>
  57. </view>
  58. <view class="service" @click="openModal">
  59. 联系停车场客服
  60. </view>
  61. <u-modal v-model="show" @confirm="confirmPhone" :confirm-text="confirmText" confirm-color="#606266" :show-cancel-button="true" ref="uModal"
  62. :asyncClose="true" :title="title" :content="content" :content-style="{fontSize: '24px',color: '#101010'}"></u-modal>
  63. </view>
  64. </template>
  65. <script>
  66. import * as API from '@/apis/parking.js'
  67. import * as newsApi from '@/apis/news.js'
  68. export default {
  69. data() {
  70. return {
  71. id:'',
  72. detail:{},
  73. content:'',
  74. confirmText:"拨打电话",
  75. title:"客服电话",
  76. show:false,
  77. }
  78. },onLoad(op) {
  79. this.detail=this.carhelp.get("parkingregistration_submit")
  80. this.getPhone()
  81. }, methods: {
  82. getPhone(){
  83. newsApi.findConfigureByKey({
  84. key:'consumerPhone'
  85. }).then((res) => {
  86. this.content = res.data.value;
  87. }).catch(error => {
  88. uni.showToast({
  89. title: error,
  90. icon: "none"
  91. })
  92. })
  93. },
  94. openModal() {
  95. this.show = true;
  96. },
  97. confirmPhone(){
  98. this.show = false;
  99. uni.makePhoneCall({
  100. phoneNumber:this.content //仅为示例
  101. });
  102. }
  103. }
  104. }
  105. </script>
  106. <style lang="scss" scoped>
  107. page{
  108. background-color: #fff;
  109. }
  110. .success {
  111. text-align: center;
  112. padding: 36px 0;
  113. .title {
  114. font-size: 20px;
  115. margin-top: 20px;
  116. }
  117. }
  118. .infos{
  119. padding: 0 20px;
  120. .info-item{
  121. display: flex;
  122. justify-content: space-between;
  123. margin-bottom: 12px;
  124. .title{
  125. width: 25vw;
  126. color: #9C8689;
  127. font-size: 16px;
  128. }
  129. .content{
  130. width: 64vw;
  131. color: rgba(51, 51, 51, 100);
  132. font-size: 16px;
  133. text-align: right;
  134. }
  135. .attention{
  136. color: #ff4a2d;
  137. }
  138. }
  139. }
  140. .service{
  141. color: rgba(0, 90, 217, 100);
  142. font-size: 16px;
  143. text-align: center;
  144. bottom: 0px;
  145. left: 0;
  146. right: 0;
  147. height: 40px;
  148. background-color: #fff;
  149. position: fixed;
  150. }
  151. </style>