equipment.vue 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  1. <template>
  2. <view class="equipment">
  3. <commons-header></commons-header>
  4. <view class="search-warp">
  5. <view class="left-select">
  6. <i class="iconfont">&#xe6c4;</i>
  7. <span style="margin:0 10rpx">1号生产线</span>
  8. <i class="iconfont">&#xe6b9;</i>
  9. </view>
  10. <view class="right-select">
  11. <i class="iconfont">&#xe6c3;</i>
  12. <span style="margin: 0 10rpx;">状态</span>
  13. <i class="iconfont">&#xe6b9;</i>
  14. </view>
  15. </view>
  16. <view class="content">
  17. <ul>
  18. <li @click="toDtl">
  19. <view class="list-warp">
  20. <view class="list-main-info">
  21. <view class="img">
  22. <image src="../../static/images/icon_bzj@2x.png" mode=""></image>
  23. </view>
  24. <view class="text">
  25. <view class="list-main-title">
  26. 注塑机
  27. <span>运行中</span>
  28. </view>
  29. <view class="list-main-model">
  30. 产品型号:ZSJ-001
  31. </view>
  32. </view>
  33. <view class="more">
  34. <i class="iconfont">&#xe6bb;</i>
  35. </view>
  36. </view>
  37. <view class="tag">
  38. <view class="tag-box">
  39. 自动模式
  40. </view>
  41. <view class="tag-box">
  42. 检测系统
  43. </view>
  44. </view>
  45. <view class="list-title">
  46. 辅助机器
  47. </view>
  48. <view class="auxiliary-warp">
  49. <view class="auxiliary-list-box">
  50. <view class="auxiliary-img">
  51. <image src="../../static/images/icon_xlj@2x.png" mode=""></image>
  52. </view>
  53. <view class="auxiliary-text">
  54. <view class="auxiliary-text-title">
  55. 下料机
  56. </view>
  57. <view class="model">
  58. 产品型号:ZSJ-001
  59. </view>
  60. </view>
  61. <view class="auxiliary-before commons-normal">
  62. 运行中
  63. </view>
  64. </view>
  65. <view class="auxiliary-list-box">
  66. <view class="auxiliary-img">
  67. <image src="../../static/images/icon_xlj@2x.png" mode=""></image>
  68. </view>
  69. <view class="auxiliary-text">
  70. <view class="auxiliary-text-title">
  71. 下料机
  72. </view>
  73. <view class="model">
  74. 产品型号:ZSJ-001
  75. </view>
  76. </view>
  77. <view class="auxiliary-before commons-close">
  78. 运行中
  79. </view>
  80. </view>
  81. </view>
  82. </view>
  83. <view class="list-warp">
  84. <view class="list-main-info">
  85. <view class="img">
  86. <image src="../../static/images/icon_bzj@2x.png" mode=""></image>
  87. </view>
  88. <view class="text">
  89. <view class="list-main-title">
  90. 注塑机
  91. <span>运行中</span>
  92. </view>
  93. <view class="list-main-model">
  94. 产品型号:ZSJ-001
  95. </view>
  96. </view>
  97. <view class="more">
  98. <i class="iconfont">&#xe6bb;</i>
  99. </view>
  100. </view>
  101. <view class="tag">
  102. <view class="tag-box">
  103. 自动模式
  104. </view>
  105. <view class="tag-box">
  106. 检测系统
  107. </view>
  108. </view>
  109. <view class="list-title">
  110. 辅助机器
  111. </view>
  112. <view class="auxiliary-warp">
  113. <view class="auxiliary-list-box">
  114. <view class="auxiliary-img">
  115. <image src="../../static/images/icon_xlj@2x.png" mode=""></image>
  116. </view>
  117. <view class="auxiliary-text">
  118. <view class="auxiliary-text-title">
  119. 下料机
  120. </view>
  121. <view class="model">
  122. 产品型号:ZSJ-001
  123. </view>
  124. </view>
  125. <view class="auxiliary-before commons-normal">
  126. 运行中
  127. </view>
  128. </view>
  129. <view class="auxiliary-list-box">
  130. <view class="auxiliary-img">
  131. <image src="../../static/images/icon_xlj@2x.png" mode=""></image>
  132. </view>
  133. <view class="auxiliary-text">
  134. <view class="auxiliary-text-title">
  135. 下料机
  136. </view>
  137. <view class="model">
  138. 产品型号:ZSJ-001
  139. </view>
  140. </view>
  141. <view class="auxiliary-before commons-close">
  142. 运行中
  143. </view>
  144. </view>
  145. <view class="auxiliary-list-box">
  146. <view class="auxiliary-img">
  147. <image src="../../static/images/icon_xlj@2x.png" mode=""></image>
  148. </view>
  149. <view class="auxiliary-text">
  150. <view class="auxiliary-text-title">
  151. 下料机
  152. </view>
  153. <view class="model">
  154. 产品型号:ZSJ-001
  155. </view>
  156. </view>
  157. <view class="auxiliary-before commons-close">
  158. 运行中
  159. </view>
  160. </view>
  161. </view>
  162. </view>
  163. </li>
  164. <li>
  165. <view class="list-warp">
  166. <view class="list-main-info">
  167. <view class="img">
  168. <image src="~@/static/images/icon_mjg@2x.png" mode=""></image>
  169. </view>
  170. <view class="text">
  171. <view class="list-main-title">
  172. 灭菌柜
  173. <span>运行中</span>
  174. </view>
  175. <view class="list-main-model">
  176. 产品型号:ZSJ-001
  177. </view>
  178. </view>
  179. <view class="more">
  180. <i class="iconfont">&#xe6bb;</i>
  181. </view>
  182. </view>
  183. </view>
  184. </li>
  185. </ul>
  186. </view>
  187. </view>
  188. </template>
  189. <script>
  190. import {
  191. getInfo
  192. } from "@/util/api.js";
  193. import Vue from 'vue'
  194. import commonsHeader from '../../components/commons-header/index.vue'
  195. export default {
  196. components:{
  197. commonsHeader
  198. },
  199. data() {
  200. return {
  201. userInfoData: [],
  202. notificationData:[],
  203. }
  204. },
  205. onLoad() {
  206. const v = this
  207. // v.$post('/wx/login/getUserInfo').then(res => {
  208. // v.userInfoData = res.data
  209. // Vue.prototype.$userInfo = res.data
  210. // uni.setStorage({
  211. // key: "userInfo",
  212. // data: res.data,
  213. // success(res) {
  214. // },
  215. // fail(res) {}
  216. // })
  217. // })
  218. // v.$post('/wx/message/notification',{}).then(res=>{
  219. // v.notificationData = res.data
  220. // })
  221. },
  222. methods: {
  223. toDtl(){
  224. uni.navigateTo({
  225. url: '/pages/equipment/injectionMolding'
  226. })
  227. },
  228. toRouter(j) {
  229. console.log(j)
  230. uni.navigateTo({
  231. url: '/pages/' + j.menuKey + '/' + j.menuKey
  232. })
  233. },
  234. },
  235. }
  236. </script>
  237. <style lang="less">
  238. .equipment{
  239. background-color: #f0f0f0;
  240. min-height: 100vh;
  241. .search-warp{
  242. height: 90rpx;
  243. line-height: 90rpx;
  244. background-color: #fff;
  245. display: flex;
  246. justify-content: space-between;
  247. padding: 0 24rpx;
  248. margin-bottom: 24rpx;
  249. margin-top: 128rpx;
  250. }
  251. .content{
  252. ul{
  253. li{
  254. box-shadow: 0px 3rpx 20rpx 0px rgba(0,0,0,0.10);
  255. background-color: #ffffff;
  256. margin-bottom:24rpx;
  257. padding: 0rpx 24rpx;
  258. .list-warp{
  259. padding: 24rpx 0;
  260. border-bottom: 14rpx solid #f0f0f0;
  261. }
  262. .list-warp:last-child{
  263. border:none;
  264. }
  265. .auxiliary-warp{
  266. display: flex;
  267. justify-content: space-between;
  268. flex-wrap: wrap;
  269. .auxiliary-list-box{
  270. width: 342rpx;
  271. padding: 24rpx 20rpx;
  272. border-radius: 10rpx;
  273. border: 1rpx solid #ddd;
  274. background-color: #fff;
  275. display: flex;
  276. position: relative;
  277. box-sizing: border-box;
  278. font-size: 24rpx;
  279. margin-top: 24rpx;
  280. .auxiliary-before{
  281. position: absolute;
  282. right: 0;
  283. top: 0;
  284. width: 120rpx;
  285. height: 40rpx;
  286. line-height: 40rpx;
  287. text-align: center;
  288. border-radius: 2px 2px 2px 10px;
  289. }
  290. .auxiliary-img{
  291. width: 60rpx;
  292. height: 60rpx;
  293. margin-right: 10rpx;
  294. image{
  295. width: 100%;
  296. height: 100%;
  297. }
  298. }
  299. }
  300. }
  301. .list-title{
  302. margin-top: 30rpx;
  303. color: #333;
  304. font-size: 28rpx;
  305. }
  306. .tag{
  307. margin-top: 32rpx;
  308. .tag-box{
  309. height: 48rpx;
  310. line-height: 48rpx;
  311. text-align: center;
  312. padding: 0 22rpx;
  313. display: inline-block;
  314. background-color: #F1F1F1;
  315. font-size: 24rpx;
  316. color: #666666;
  317. margin-left: 20rpx;
  318. }
  319. }
  320. .list-main-info{
  321. display: flex;
  322. justify-content: space-between;
  323. .img{
  324. width: 100rpx;
  325. height: 100rpx;
  326. image{
  327. width: 100rpx;
  328. height: 100rpx;
  329. }
  330. }
  331. .text{
  332. width: calc(~ '100% - 140rpx');
  333. margin-top: 10rpx;
  334. padding: 0 24rpx;
  335. .list-main-title{
  336. font-size: 28rpx;
  337. color: #333333;
  338. span{
  339. background: rgba(63,191,49,0.20);
  340. padding: 3rpx 24rpx;
  341. color: #34C724;
  342. border-radius: 40rpx;
  343. margin-left: 24rpx;
  344. }
  345. }
  346. .list-main-model{
  347. margin-top: 10rpx;
  348. font-size: 24rpx;
  349. color: #333333;
  350. }
  351. }
  352. }
  353. }
  354. }
  355. }
  356. }
  357. </style>