bindLockStatus.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <template>
  2. <view class="jpmain ">
  3. <view class="body">
  4. <u-steps :list="numList" mode="number" :current="current" un-active-color="#999999"></u-steps>
  5. </view>
  6. <view class="data">
  7. <!-- <u-icon name="clock-fill" color="#1677FF" size="128"></u-icon>-->
  8. <u-icon name="checkmark-circle-fill" color="#00B962" size="128"></u-icon>
  9. <view class="t1">等待审核中</view>
  10. <view class="t2">绑定申请已提交,等待后台审核完成建站</view>
  11. </view>
  12. <view class="floating-button" @click="goBack()">
  13. <view class="button button2">
  14. 返回
  15. </view>
  16. </view>
  17. </view>
  18. </view>
  19. </template>
  20. <script >
  21. import * as API from '@/apis/pagejs/index.js'
  22. export default {
  23. data() {
  24. return {
  25. bindInfo:{},
  26. current: 1,
  27. numList: [{
  28. name: '绑定地锁'
  29. }, {
  30. name: '等待审核'
  31. }, {
  32. name: '完成绑定'
  33. }],
  34. };
  35. },
  36. onLoad(op) {
  37. this.id=op.id
  38. this.getInfo()
  39. },
  40. methods:{
  41. goBack(){
  42. uni.navigateBack()
  43. },
  44. getInfo(){
  45. uni.showLoading({
  46. title: "加载中",
  47. mask: true,
  48. })
  49. API.details( {
  50. id:this.id
  51. } ).then((res) => {
  52. this.bindInfo=res.data.applicationRecord;
  53. if(this.bindInfo.status==0){
  54. this.current= 1
  55. }
  56. if(this.bindInfo.status==1){
  57. this.current= 2
  58. }
  59. uni.hideLoading();
  60. }).catch(error => {
  61. uni.showToast({
  62. title: error,
  63. icon: "none"
  64. })
  65. })
  66. }
  67. }
  68. }
  69. </script>
  70. <style lang="scss" scoped>
  71. .body {
  72. padding: 32rpx;
  73. background-color: rgba(242, 244, 246, 1);
  74. }
  75. .data{
  76. text-align: center;
  77. padding-top:120rpx;
  78. .t1{
  79. color: #101010;
  80. font-weight: bold;
  81. margin-top: 40rpx;
  82. font-size: 40rpx;
  83. }
  84. .t2{
  85. margin-top: 8rpx;
  86. color: rgba(119,119,119,1);
  87. font-size: 24rpx;
  88. }
  89. }
  90. .floating-button {
  91. padding-top:120rpx;
  92. text-align: center;
  93. .button {
  94. margin: 0 auto;
  95. border-radius: 50px;
  96. height: 80rpx;
  97. width: 80%;
  98. display: flex;
  99. align-items: center;
  100. justify-content: center;
  101. padding: 12rpx;
  102. background-color: rgba(22, 119, 255, 1);
  103. color: rgba(255, 255, 255, 1);
  104. font-size: 36rpx;
  105. }
  106. .button2{
  107. background-color: #00B962
  108. }
  109. }
  110. </style>