shopTourCompleted.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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" @click="goShopTourDetails">查看明细</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. // 我的巡店记录
  61. goMyShopTour(){
  62. uni.navigateTo({
  63. url: '/pages/myShopTour/myShopTour'
  64. })
  65. },
  66. // 查看明细
  67. goShopTourDetails(){
  68. uni.navigateTo({
  69. url: '/pages/shopTourDetails/shopTourDetails'
  70. })
  71. }
  72. }
  73. }
  74. </script>
  75. <style lang="scss" scoped>
  76. page{
  77. background-color: #f8f8f8;
  78. height: calc(100vh - 44px);
  79. }
  80. .shopTourCompleted-wrap{
  81. height: 100%;
  82. padding: 20upx 30upx 0;
  83. box-sizing: border-box;
  84. .info-con{
  85. .inspection-info{
  86. background-color: #fff;
  87. padding: 20upx 30upx;
  88. .info-main{
  89. font-size: 28upx;
  90. line-height: 48upx;
  91. padding: 10upx 0;
  92. position: relative;
  93. .info-tit{
  94. display: inline-block;
  95. position: absolute;
  96. left: 0;
  97. top: 10upx;
  98. }
  99. .info-val{
  100. display: inline-block;
  101. padding-left: 150upx;
  102. }
  103. }
  104. }
  105. .inspection-items{
  106. .text-blue{
  107. color: #2979ff;
  108. }
  109. .text-green{
  110. color: #19be6b;
  111. }
  112. .text-red{
  113. color: #fa3534;
  114. }
  115. .text-yellow{
  116. color: #ff9900;
  117. }
  118. .grid-num{
  119. font-weight: bold;
  120. }
  121. .grid-text{
  122. font-size: 26upx;
  123. padding-top: 10upx;
  124. color: #666;
  125. }
  126. }
  127. }
  128. .btn-con{
  129. margin-top: 90upx;
  130. .btn{
  131. width: 60%;
  132. margin-top: 40upx;
  133. }
  134. }
  135. }
  136. </style>