shopTourCompleted.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <template>
  2. <view class="shopTourCompleted-wrap">
  3. <view class="info-con">
  4. <view class="inspection-info">
  5. <view class="info-main">
  6. <text class="info-tit">门店:</text>
  7. <text class="info-val">常青二路店常青二路店常青二路店常青二路店常青二路店常青二路店常青二路店常青二路店常青二路店常青二路店常青二路店常青二路店常青二路店</text>
  8. </view>
  9. <view class="info-main">
  10. <text class="info-tit">巡店人:</text>
  11. <text class="info-val">常青二路店</text>
  12. </view>
  13. <view class="info-main">
  14. <text class="info-tit">创建时间:</text>
  15. <text class="info-val">2020-9-7 11:12</text>
  16. </view>
  17. <view class="info-main">
  18. <text class="info-tit">完成时间:</text>
  19. <text class="info-val">2020-9-7 16:20</text>
  20. </view>
  21. <view class="info-main">
  22. <text class="info-tit">耗时:</text>
  23. <text class="info-val">5小时8分</text>
  24. </view>
  25. </view>
  26. <view class="inspection-items">
  27. <u-grid :col="4" :hover-class="none">
  28. <u-grid-item>
  29. <text class="grid-num text-blue">18</text>
  30. <text class="grid-text">检查项</text>
  31. </u-grid-item>
  32. <u-grid-item>
  33. <text class="grid-num text-green">13</text>
  34. <text class="grid-text">合格</text>
  35. </u-grid-item>
  36. <u-grid-item>
  37. <text class="grid-num text-red">3</text>
  38. <text class="grid-text">不合格</text>
  39. </u-grid-item>
  40. <u-grid-item>
  41. <text class="grid-num text-yellow">2</text>
  42. <text class="grid-text">不适用</text>
  43. </u-grid-item>
  44. </u-grid>
  45. </view>
  46. </view>
  47. <view class="btn-con">
  48. <u-button type="primary" shape="circle" class="btn">查看明细</u-button>
  49. <u-button shape="circle" class="btn" @click="goMyShopTour">我的巡店记录</u-button>
  50. </view>
  51. </view>
  52. </template>
  53. <script>
  54. export default{
  55. data(){
  56. return{
  57. }
  58. },
  59. methods: {
  60. goMyShopTour(){
  61. uni.navigateTo({
  62. url: '/pages/myShopTour/myShopTour'
  63. })
  64. }
  65. }
  66. }
  67. </script>
  68. <style lang="scss" scoped>
  69. page{
  70. background-color: #f8f8f8;
  71. height: calc(100vh - 44px);
  72. }
  73. .shopTourCompleted-wrap{
  74. height: 100%;
  75. padding: 0 30upx;
  76. .info-con{
  77. .inspection-info{
  78. background-color: #fff;
  79. padding: 20upx 30upx;
  80. margin-top: 20upx;
  81. .info-main{
  82. font-size: 28upx;
  83. line-height: 48upx;
  84. padding: 10upx 0;
  85. position: relative;
  86. .info-tit{
  87. display: inline-block;
  88. position: absolute;
  89. left: 0;
  90. top: 10upx;
  91. }
  92. .info-val{
  93. display: inline-block;
  94. padding-left: 150upx;
  95. }
  96. }
  97. }
  98. .inspection-items{
  99. .text-blue{
  100. color: #2979ff;
  101. }
  102. .text-green{
  103. color: #19be6b;
  104. }
  105. .text-red{
  106. color: #fa3534;
  107. }
  108. .text-yellow{
  109. color: #ff9900;
  110. }
  111. .grid-num{
  112. font-weight: bold;
  113. }
  114. .grid-text{
  115. font-size: 26upx;
  116. padding-top: 10upx;
  117. color: #666;
  118. }
  119. }
  120. }
  121. .btn-con{
  122. margin-top: 90upx;
  123. .btn{
  124. width: 60%;
  125. margin-top: 40upx;
  126. }
  127. }
  128. }
  129. </style>