工单小程序2024-11-20
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

192 lines
3.5 KiB

3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
  1. <template>
  2. <view class="page">
  3. <navbar />
  4. <view class="Carousel-image">
  5. <view class="imgs">
  6. <uv-swiper
  7. :list="bannerList"
  8. indicator indicatorMode="dot"
  9. keyName="image"
  10. circular height="420">
  11. </uv-swiper>
  12. </view>
  13. <view class="search">
  14. <view class="center-area">
  15. <image style="margin-right: 20rpx;" src="@/static/image/home/search-icon.png"></image>
  16. <input v-model="queryParams.title" placeholder="输入单号进行搜索" />
  17. </view>
  18. </view>
  19. </view>
  20. <view class="festival">
  21. <view class="indus">
  22. <view class="horn">
  23. <uv-icon name="volume" size=""></uv-icon>
  24. </view>
  25. <view class="words">
  26. 中秋节放假及工作安排通知
  27. </view>
  28. </view>
  29. <view class="arrow">
  30. <uv-icon name="arrow-right"></uv-icon>
  31. </view>
  32. </view>
  33. <uv-divider text="" textColor="#2979ff" lineColor="grey" textSize="1"></uv-divider>
  34. <view class="task">
  35. <view class="backimg" @click="$utils.navigateTo('/pages_order/order/WorkOrderListitem')" >
  36. <view class="Work-Order">
  37. 所有工单
  38. </view>
  39. </view>
  40. </view>
  41. <uv-divider text="" textColor="#2979ff" lineColor="grey" textSize="1"></uv-divider>
  42. <view class="Urgent-Work-Order">
  43. <view class="Urgent-Work">
  44. 紧急工单
  45. </view>
  46. <WorkOrderitem
  47. v-for="(item,index) in list"
  48. :obj="item"
  49. />
  50. </view>
  51. <PrivacyAgreementPoup/>
  52. <tabber select="0"/>
  53. </view>
  54. </template>
  55. <script>
  56. import PrivacyAgreementPoup from '@/components/config/PrivacyAgreementPoup.vue'
  57. import Position from '@/utils/position.js'
  58. import tabber from '@/components/base/tabbar.vue'
  59. import productList from '@/components/user/productList.vue'
  60. import WorkOrderitem from '@/components/work/WorkOrderitem.vue'
  61. import mixinsList from '@/mixins/list.js'
  62. import {
  63. mapGetters
  64. } from 'vuex'
  65. // import selectArea from '../../components/selectArea.vue';
  66. export default {
  67. mixins: [mixinsList],
  68. components: {
  69. tabber,
  70. productList,
  71. PrivacyAgreementPoup,
  72. WorkOrderitem,
  73. },
  74. data() {
  75. return {
  76. bannerList: [],
  77. mixinsListApi : 'queryTemplateList',
  78. }
  79. },
  80. computed: {
  81. },
  82. onLoad() {
  83. this.queryBannerList()
  84. },
  85. methods: {
  86. queryBannerList(){
  87. this.$api('queryBannerList', res =>{
  88. if(res.code == 200){
  89. console.log(res.result.records[0].image);
  90. this.bannerList = res.result.records
  91. }
  92. })
  93. }
  94. }
  95. }
  96. </script>
  97. <style scoped lang="scss">
  98. .Carousel-image {
  99. position: relative;
  100. display: inline-block;
  101. width: 100%;
  102. .search {
  103. height: 82rpx;
  104. width: 710rpx;
  105. background: #FFFFFF;
  106. margin: 20rpx auto;
  107. border-radius: 41rpx;
  108. box-sizing: border-box;
  109. padding: 0 15rpx;
  110. display: flex;
  111. align-items: center;
  112. position: absolute;
  113. top: 10px;
  114. left: 10px;
  115. //搜素框
  116. .center-area {
  117. display: flex;
  118. flex-wrap: nowrap;
  119. align-items: center;
  120. width: calc(100% - 290rpx);
  121. margin-left: 30rpx;
  122. image {
  123. width: 26rpx;
  124. height: 26rpx;
  125. }
  126. }
  127. }
  128. }
  129. .festival {
  130. margin-top: 20rpx;
  131. display: flex;
  132. justify-content: space-between;
  133. .indus {
  134. display: flex;
  135. .words {
  136. margin: 0rpx 5rpx;
  137. font-size: 27rpx;
  138. opacity: 0.8;
  139. }
  140. .horn {
  141. margin: 5rpx 10rpx;
  142. }
  143. }
  144. .arrow {
  145. padding: 8rpx;
  146. }
  147. }
  148. .task {
  149. .backimg {
  150. width: 100%;
  151. height: 320rpx;
  152. background-color: greenyellow;
  153. .Work-Order {
  154. margin: 20rpx;
  155. }
  156. }
  157. }
  158. .page {
  159. & /deep/ .uv-icon__icon {
  160. font-size: 30rpx !important;
  161. }
  162. }
  163. </style>