index.vue 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. <template>
  2. <view>
  3. <view class="banner"><image src="../../static/my2.png" mode="widthFix"></image></view>
  4. <view class="ccn" style="margin-top: -150px;">
  5. <view class="cn">
  6. <view class="rows">
  7. <view class="row" @click="go('/pages/index/index')">
  8. <view class="out">
  9. <view class="ioc" style="background-color: #2196F3;"><text class="icon">&#xe6f3;</text></view>
  10. <view class="tit omit">委托单列表</view>
  11. </view>
  12. </view>
  13. <view class="row" @click="go('/pages/model/index')">
  14. <view class="out">
  15. <view class="ioc" style="background-color: #2196F3;"><text class="icon">&#xe6f3;</text></view>
  16. <view class="tit omit">设备借还记录</view>
  17. </view>
  18. </view>
  19. <!--
  20. <view class="row" @click="go('/pages/test/index')">
  21. <view class="out">
  22. <view class="ioc" style="background-color: #2196F3;"><text class="icon">&#xe6f3;</text></view>
  23. <view class="tit omit">设备借还记录</view>
  24. </view>
  25. </view>
  26. <view class="row" @click="go('/pages/test/index')">
  27. <view class="out">
  28. <view class="ioc" style="background-color: #2196F3;"><text class="icon">&#xe6f3;</text></view>
  29. <view class="tit omit">设备借还记录</view>
  30. </view>
  31. </view>
  32. <view class="row" @click="go('/pages/model/index')">
  33. <view class="out">
  34. <view class="ioc" style="background-color: #2196F3;"><text class="icon">&#xe6f3;</text></view>
  35. <view class="tit omit">设备台账</view>
  36. </view>
  37. </view>
  38. <view class="row" @click="go('/pages/test/index')">
  39. <view class="out">
  40. <view class="ioc" style="background-color: #2196F3;"><text class="icon">&#xe6f3;</text></view>
  41. <view class="tit omit">设备借还记录</view>
  42. </view>
  43. </view>
  44. <view class="row" @click="go('/pages/test/index')">
  45. <view class="out">
  46. <view class="ioc" style="background-color: #2196F3;"><text class="icon">&#xe6f3;</text></view>
  47. <view class="tit omit">设备借还记录</view>
  48. </view>
  49. </view>-->
  50. <view class="clear"></view>
  51. </view>
  52. </view>
  53. </view>
  54. <view class="ccn">
  55. <view class="cn">
  56. <view class="lable">
  57. <text>审批中心</text>
  58. <text class="more">更多></text>
  59. </view>
  60. <view class="list">
  61. <view class="tab"><u-tabs :list="tab" :current="current" @click="click"></u-tabs></view>
  62. <view class="item" v-for="(item, index) in list" :key="index" @click="detail(item.id)">
  63. <view class="title">
  64. <text class="icon">&#xe602;</text>
  65. <text>报告流程</text>
  66. </view>
  67. <view class="desc">
  68. <view class="name">杨军</view>
  69. <view class="bm omit">电器技术研究所</view>
  70. <view class="date">2022-09-14 10:51:12</view>
  71. </view>
  72. <view class="clear"></view>
  73. </view>
  74. </view>
  75. </view>
  76. </view>
  77. </view>
  78. </template>
  79. <script>
  80. export default {
  81. data() {
  82. return {
  83. user: {},
  84. current: 0,
  85. tab: [{ name: '待审批', badge: { value: 5 } }, { name: '已审批' }],
  86. list: [{}, {}, {}, {}, {}]
  87. };
  88. },
  89. onShow() {
  90. this.getData();
  91. },
  92. methods: {
  93. getData() {},
  94. //跳转
  95. go(url) {
  96. uni.navigateTo({ url: url });
  97. },
  98. click(e) {},
  99. //退出登录
  100. exit() {
  101. uni.showModal({
  102. title: '提示',
  103. content: '确定退出登录?',
  104. success: res => {
  105. if (res.confirm) {
  106. uni.removeStorageSync('user');
  107. this.user = {};
  108. }
  109. }
  110. });
  111. }
  112. },
  113. //下拉刷新
  114. onPullDownRefresh() {
  115. setTimeout(() => {
  116. this.getData();
  117. uni.stopPullDownRefresh();
  118. }, 1000);
  119. }
  120. };
  121. </script>
  122. <style lang="scss">
  123. page {
  124. background-color: #f1f0f1;
  125. }
  126. .banner {
  127. image {
  128. width: 100%;
  129. }
  130. }
  131. .ccn {
  132. padding: 13px;
  133. overflow: hidden;
  134. position: relative;
  135. margin-top: -15px;
  136. .cn {
  137. background-color: white;
  138. border-radius: 8px;
  139. padding: 10px;
  140. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  141. .rows {
  142. margin-top: 3%;
  143. .row {
  144. float: left;
  145. width: 33.33%;
  146. text-align: center;
  147. .out {
  148. padding: 5px;
  149. .ioc {
  150. width: 40px;
  151. height: 40px;
  152. background-color: red;
  153. border-radius: 40%;
  154. text-align: center;
  155. margin: 0 auto;
  156. line-height: 40px;
  157. .icon {
  158. font-size: 19px;
  159. color: white;
  160. }
  161. }
  162. .tit {
  163. font-size: 14px;
  164. margin-top: 5px;
  165. color: #848484;
  166. }
  167. }
  168. }
  169. }
  170. .lable {
  171. font-size: 17px;
  172. color: $font-c;
  173. font-weight: bold;
  174. .more {
  175. float: right;
  176. font-size: 14px;
  177. font-weight: normal;
  178. color: #848484;
  179. }
  180. }
  181. .list {
  182. .tab {
  183. background-color: aliceblue;
  184. border-radius: 3px;
  185. margin-top: 7px;
  186. }
  187. .item {
  188. margin-top: 10px;
  189. padding: 10px 5px 15px 5px;
  190. border-bottom: 1px solid #f0f2f7;
  191. &:last-child {
  192. border: 0px;
  193. }
  194. .title {
  195. font-size: 17px;
  196. color: $font-c;
  197. .icon {
  198. padding-right: 5px;
  199. }
  200. }
  201. .desc {
  202. font-size: 14px;
  203. color: #848484;
  204. padding-top: 5px;
  205. .name {
  206. float: left;
  207. padding-right: 10px;
  208. }
  209. .bm {
  210. float: left;
  211. width: 40%;
  212. }
  213. .date {
  214. float: right;
  215. }
  216. }
  217. }
  218. }
  219. }
  220. }
  221. </style>