success.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <template>
  2. <view class="content">
  3. <!-- 自定义导航 -->
  4. <view class="zdyNavBox">
  5. <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
  6. <view class="zdyNav">
  7. <view class="zdyNavLeft">
  8. <image src="../../static/img/nav_icon_back.png" mode="aspectFit" class="backImg" @click="goback">
  9. </image>
  10. </view>
  11. <view class="zdyNavTitle">网约车优享</view>
  12. <view style="width: 50px;"></view>
  13. </view>
  14. </view>
  15. <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
  16. <view style="height: 44px;"></view>
  17. <view class="duihaoImgBox">
  18. <img src="../../static/img/icon_suc@2x.png" alt="" class="duihaoImg"/>
  19. </view>
  20. <view class="title1">提交成功</view>
  21. <view class="title2">请耐心等待审核结果</view>
  22. </view>
  23. </template>
  24. <script>
  25. export default {
  26. data() {
  27. return {
  28. }
  29. },
  30. onLoad() {
  31. },
  32. created() {
  33. },
  34. methods: {
  35. goback(){
  36. //app交互
  37. var standalone = window.navigator.standalone
  38. var userAgent = window.navigator.userAgent.toLowerCase()
  39. var safari = /safari/.test(userAgent)
  40. var ios = /iphone|ipod|ipad|mac/.test(userAgent)
  41. var android = /android/.test(userAgent)
  42. if (ios) {
  43. if ( true) {//!standalone&& !safari
  44. window.webkit.messageHandlers.goMyNav.postMessage(null)
  45. }
  46. } else if (android) {
  47. window.android.postMessage()
  48. }
  49. },
  50. }
  51. }
  52. </script>
  53. <style scoped>
  54. .duihaoImg{
  55. width: 108rpx;height: 108rpx;
  56. display: block;
  57. margin: 0 auto;
  58. }
  59. .duihaoImgBox{
  60. text-align: center;
  61. padding-top: 60rpx;
  62. }
  63. .title1{
  64. font-weight: 500;padding-top: 20rpx;text-align: center;
  65. color: #3C3C3C;font-size: 32rpx;font-weight: 600;
  66. line-height: 45rpx;
  67. }
  68. .title2{
  69. font-weight: 400;font-size: 28rpx;
  70. color: #666666;padding-top: 8rpx;
  71. text-align: center;
  72. }
  73. .zdyNavBox {
  74. width: 100vw;
  75. background: #FFFFFF;
  76. position: fixed;
  77. top: 0;
  78. left: 0;
  79. z-index: 99;
  80. }
  81. .zdyNav {
  82. height: 44px;
  83. display: flex;
  84. justify-content: space-between;
  85. align-items: center;
  86. }
  87. .backImg {
  88. width: 44rpx;
  89. height: 44rpx;
  90. margin-left: 10rpx;
  91. margin-right: 20rpx;
  92. }
  93. .homeImg {
  94. width: 44rpx;
  95. height: 44rpx;
  96. }
  97. .zdyNavLeft {
  98. display: flex;
  99. align-items: center;
  100. }
  101. .zdyNavTitle {
  102. height: 44px;
  103. background: #FFFFFF;
  104. text-align: center;
  105. font-size: 34rpx;
  106. line-height: 44px;
  107. }
  108. </style>