Nav apraksta

myTask.vue 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. <template>
  2. <view>
  3. <view class="uni-margin-wrap">
  4. <swiper class="swiper" circular :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval"
  5. :duration="duration">
  6. <swiper-item v-for="item in bannnerData" :key="item.id">
  7. <image :src="item.imgPath" mode=""></image>
  8. </swiper-item>
  9. </swiper>
  10. </view>
  11. <view class="orderManage">
  12. <view class="orderTit">
  13. <image src="../../static/orderManage.png"></image>
  14. <text>工单进度</text>
  15. </view>
  16. <view class="orderCon" >
  17. <view class="orderList" v-for="item in orderListData" :key="item.id" @click="workOrderListClick(item)">
  18. <image :style="{ background:item.imageBg}" :src="item.imagePath" mode=""></image>
  19. <text>{{item.text}}</text>
  20. </view>
  21. </view>
  22. <view class="orderTit" @click="changeStore" v-if="noticState">
  23. <image style="background:#ff9600;" src="../../static/icon_noticefi.png"></image>
  24. <text>公告通知</text>
  25. </view>
  26. <view class="notification">
  27. <view class="notifiList" v-for="item in noticListData" :key="item.id">
  28. <image :style="{background:item.imageBg}" :src="item.imagePath" mode=""></image>
  29. <view class="">
  30. <text>{{item.textTit}}</text>
  31. <text>{{item.textCon}}</text>
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. </template>
  38. <script>
  39. import {mapGetters} from 'vuex'
  40. export default {
  41. data() {
  42. return {
  43. indicatorDots: true,
  44. autoplay: true,
  45. interval: 2000,
  46. noticState:false,
  47. duration: 500,
  48. bannnerData:[
  49. ],
  50. orderListData:[],
  51. noticListData:[]
  52. }
  53. },
  54. computed: {
  55. ...mapGetters([
  56. 'State'
  57. ])
  58. },
  59. onLoad() {
  60. //banner数据
  61. this.bannnerData = this.$mConstDataConfig.bannnerData
  62. //工单列表数据 auditorList
  63. this.orderListData = this.$mConstDataConfig.roleListData.acceptList
  64. // 公告数据
  65. //this.noticListData = this.$mConstDataConfig.noticListData
  66. },
  67. methods: {
  68. changeStore() {
  69. this.$mStore.dispatch('STATE', 3)
  70. console.log(this.State)
  71. },
  72. workOrderListClick(item) {
  73. console.log(123, item)
  74. uni.navigateTo({
  75. url: item.navigateToUrl
  76. })
  77. }
  78. }
  79. }
  80. </script>
  81. <style lang="scss">
  82. .uni-margin-wrap {
  83. width: 690rpx;
  84. width: 100%;
  85. }
  86. .swiper {
  87. height: 225px;
  88. image{
  89. width: 100%;
  90. height: 100%;
  91. }
  92. }
  93. .orderManage{
  94. .orderTit{
  95. margin-top: 15rpx;
  96. width: 100%;
  97. height: 80rpx;
  98. line-height: 80rpx;
  99. background: #FFFFFF;
  100. display: flex;
  101. border-bottom: 1rpx solid #eeeeee ;
  102. text{
  103. font-size: 32rpx;
  104. }
  105. image{
  106. width: 24rpx;
  107. height: 24rpx;
  108. padding: 8rpx;
  109. border-radius: 12px;
  110. background: #1972c2;
  111. margin: 20rpx 10rpx 20rpx 26rpx;
  112. }
  113. }
  114. .orderCon{
  115. background: #FFFFFF;
  116. display: flex;
  117. flex-wrap: wrap;
  118. .orderList{
  119. width: 186rpx;
  120. height: 206rpx;
  121. text-align: center;
  122. border-right: 2rpx solid #eeeeee;
  123. border-bottom: 2rpx solid #eeeeee;
  124. image{
  125. width: 40rpx;
  126. height: 40rpx;
  127. margin: 0 auto;
  128. display: block;
  129. border-radius: 35rpx;
  130. padding: 15rpx;
  131. margin-top: 45rpx;
  132. }
  133. text{
  134. font-size: 24rpx;
  135. line-height: 60rpx;
  136. }
  137. }
  138. .orderList:nth-child(4n+4){
  139. border-right: none;
  140. }
  141. .orderList:last-child{
  142. border-right: none;
  143. }
  144. }
  145. .notification{
  146. background: #FFFFFF;
  147. margin-bottom: 100rpx;
  148. display: flex;
  149. flex-wrap: wrap;
  150. border-bottom: 1rpx solid #eeeeee ;
  151. .notifiList{
  152. width: 375rpx;
  153. height: 172rpx;
  154. padding: 46rpx 30rpx 46rpx 30rpx;
  155. text-align: left;
  156. border-right: 1rpx solid #eeeeee;
  157. border-bottom: 1rpx solid #eeeeee;
  158. box-sizing: border-box;
  159. display: flex;
  160. image{
  161. width: 48rpx;
  162. height: 48rpx;
  163. box-sizing:border-box;
  164. border-radius: 24rpx;
  165. padding: 10rpx;
  166. margin: 19rpx;
  167. }
  168. text{
  169. font-size: 24rpx;
  170. line-height: 30rpx;
  171. }
  172. }
  173. .notifiList:nth-child(2n+2){
  174. border-right: none;
  175. }
  176. }
  177. }
  178. </style>