index.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454
  1. <template>
  2. <view class="indexpage" style="width: 100%">
  3. <div class="indextop">
  4. <div class="topbox">
  5. <div class="pagetitle">阿斯利康码头预约</div>
  6. <div
  7. @click="
  8. jumpPage(
  9. userType == 'USER'
  10. ? '/pages/subPackages/noticeList/sj'
  11. : '/pages/subPackages/noticeList/qy'
  12. )
  13. "
  14. >
  15. <div class="sub" v-if="noticeNum != 0">{{ noticeNum }}</div>
  16. <img src="./image.png" style="width: 40rpx; height: 39rpx" alt="" />
  17. </div>
  18. </div>
  19. <image src="../../static/index/banner.png" class="banner"></image>
  20. <div class="bz">
  21. <div>
  22. <img
  23. src="https://www.idea-sf.com/dockPic/image/1.png"
  24. class="yyicon"
  25. alt=""
  26. />
  27. <div>预约</div>
  28. </div>
  29. <div class="jiantou">---></div>
  30. <div>
  31. <img
  32. src="https://www.idea-sf.com/dockPic/image/2.png"
  33. class="yyicon"
  34. alt=""
  35. />
  36. <div>签到</div>
  37. </div>
  38. <div class="jiantou">---></div>
  39. <div>
  40. <img
  41. src="https://www.idea-sf.com/dockPic/image/3.png"
  42. class="yyicon"
  43. alt=""
  44. />
  45. <div>装卸</div>
  46. </div>
  47. <div class="jiantou">---></div>
  48. <div>
  49. <img
  50. src="https://www.idea-sf.com/dockPic/image/4.png"
  51. class="yyicon"
  52. alt=""
  53. />
  54. <div>签收</div>
  55. </div>
  56. <div class="jiantou">---></div>
  57. <div>
  58. <img
  59. src="https://www.idea-sf.com/dockPic/image/5.png"
  60. class="yyicon"
  61. alt=""
  62. />
  63. <div>离场</div>
  64. </div>
  65. </div>
  66. </div>
  67. <div class="report">
  68. <div class="left">
  69. <img src="https://www.idea-sf.com/dockPic/image/6.png" alt="" />
  70. <div class="line"></div>
  71. </div>
  72. <div class="right">
  73. <div>
  74. <div class="info">
  75. <div class="label chaochuyincang">
  76. 受暴雨天气影响,2024-07-13 8:00...
  77. </div>
  78. <div class="day">1天前</div>
  79. </div>
  80. <div class="info">
  81. <div class="label chaochuyincang">
  82. 受暴雨天气影响,2024-07-13 8:00...
  83. </div>
  84. <div class="day">1天前</div>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. <div class="menu-list" v-if="userType == 'USER'">
  90. <div
  91. class="menu-row"
  92. @click="jumpPage('/pages/subPackages/choosecar/index?zxtype=送货预约')"
  93. >
  94. <div class="text">送货预约</div>
  95. <img
  96. src="https://www.idea-sf.com/dockPic/image/7.png"
  97. class="back"
  98. alt=""
  99. />
  100. <img
  101. src="https://www.idea-sf.com/dockPic/image/7-1.png"
  102. class="icon"
  103. alt=""
  104. />
  105. </div>
  106. <div
  107. class="menu-row"
  108. @click="jumpPage('/pages/subPackages/choosecar/index?zxtype=取货预约')"
  109. >
  110. <div class="text">取货预约</div>
  111. <img
  112. src="https://www.idea-sf.com/dockPic/image/8.png"
  113. class="back"
  114. alt=""
  115. />
  116. <img
  117. src="https://www.idea-sf.com/dockPic/image/8-1.png"
  118. class="icon"
  119. alt=""
  120. />
  121. </div>
  122. <!-- sj_yy/index -->
  123. <div
  124. class="menu-row"
  125. @click="jumpPage('/pages/subPackages/sj_history/index')"
  126. >
  127. <div class="text">预约历史</div>
  128. <img
  129. src="https://www.idea-sf.com/dockPic/image/9.png"
  130. class="back"
  131. alt=""
  132. />
  133. <img
  134. src="https://www.idea-sf.com/dockPic/image/9-1.png"
  135. class="icon"
  136. alt=""
  137. />
  138. </div>
  139. </div>
  140. <div class="menu-list" v-else-if="userType == 'FRAME'">
  141. <div
  142. class="menu-row"
  143. @click="jumpPage('/pages/subPackages/scanCode/index')"
  144. >
  145. <div class="text">扫码核验</div>
  146. <img
  147. src="https://www.idea-sf.com/dockPic/image/7.png"
  148. class="back"
  149. alt=""
  150. />
  151. <img
  152. src="https://www.idea-sf.com/dockPic/image/7-1.png"
  153. class="icon"
  154. alt=""
  155. />
  156. </div>
  157. </div>
  158. <div class="menu-list" v-else>
  159. <div
  160. class="menu-row"
  161. @click="jumpPage('/pages/subPackages/choosecar/index?zxtype=取货预约')"
  162. >
  163. <div class="text">取货预约</div>
  164. <img
  165. src="https://www.idea-sf.com/dockPic/image/7.png"
  166. class="back"
  167. alt=""
  168. />
  169. <img
  170. src="https://www.idea-sf.com/dockPic/image/7-1.png"
  171. class="icon"
  172. alt=""
  173. />
  174. </div>
  175. <div
  176. class="menu-row"
  177. @click="jumpPage('/pages/subPackages/choosecar/index?zxtype=送货预约')"
  178. >
  179. <div class="text">送货预约</div>
  180. <img
  181. src="https://www.idea-sf.com/dockPic/image/8.png"
  182. class="back"
  183. alt=""
  184. />
  185. <img
  186. src="https://www.idea-sf.com/dockPic/image/8-1.png"
  187. class="icon"
  188. alt=""
  189. />
  190. </div>
  191. <div
  192. class="menu-row"
  193. @click="jumpPage('/pages/subPackages/yy_history/index')"
  194. >
  195. <div class="text">预约历史</div>
  196. <img
  197. src="https://www.idea-sf.com/dockPic/image/9.png"
  198. class="back"
  199. alt=""
  200. />
  201. <img
  202. src="https://www.idea-sf.com/dockPic/image/9-1.png"
  203. class="icon"
  204. alt=""
  205. />
  206. </div>
  207. <div
  208. class="menu-row"
  209. @click="jumpPage('/pages/subPackages/carmange/index')"
  210. >
  211. <div class="text">车辆管理</div>
  212. <img
  213. src="https://www.idea-sf.com/dockPic/image/10.png"
  214. class="back"
  215. alt=""
  216. />
  217. <img
  218. src="https://www.idea-sf.com/dockPic/image/10-1.png"
  219. class="icon"
  220. alt=""
  221. />
  222. </div>
  223. </div>
  224. </view>
  225. </template>
  226. <script>
  227. // import {demo} from "@/js_sdk/http"
  228. import { driverMessageCount, bizMessageCount } from "@/js_sdk/noticeList.js";
  229. import { getUserLocalStorageInfo } from "@/js_sdk/localUserInfo.js";
  230. export default {
  231. data() {
  232. return {
  233. mapList: [],
  234. MeetingNum: 0,
  235. VenueNum: 0,
  236. userType: "",
  237. noticeNum: 0,
  238. };
  239. },
  240. onShareAppMessage() {},
  241. mounted() {
  242. // demo();
  243. },
  244. onLoad() {
  245. this.userType = getUserLocalStorageInfo().userType;
  246. if (this.userType == "USER") {
  247. this.driverMessageCount();
  248. } else {
  249. this.bizMessageCount();
  250. }
  251. },
  252. onShow() {},
  253. methods: {
  254. // /wx/dock/driverMessageCount
  255. async bizMessageCount() {
  256. let { data } = await bizMessageCount({
  257. bizId: getUserLocalStorageInfo().biz.id,
  258. });
  259. this.noticeNum = data;
  260. console.log(data);
  261. },
  262. async driverMessageCount() {
  263. let { data } = await driverMessageCount({
  264. userId: getUserLocalStorageInfo().user.id,
  265. });
  266. this.noticeNum = data;
  267. console.log(data);
  268. },
  269. jumpPage(path) {
  270. console.log(path);
  271. uni.navigateTo({
  272. url: path,
  273. fail: (fail) => {},
  274. });
  275. },
  276. },
  277. };
  278. </script>
  279. <style lang="scss">
  280. .indexpage {
  281. .pagetitle {
  282. font-weight: 400;
  283. font-size: 32rpx;
  284. color: #333333;
  285. }
  286. .sub {
  287. width: 28rpx;
  288. height: 28rpx;
  289. background: #f21912;
  290. border-radius: 50%;
  291. display: flex;
  292. font-size: 26rpx;
  293. align-items: center;
  294. justify-content: center;
  295. color: white;
  296. position: absolute;
  297. top: 0rpx;
  298. right: 25rpx;
  299. }
  300. .topbox {
  301. display: flex;
  302. padding: 8rpx 32rpx 18rpx 32rpx;
  303. justify-content: space-between;
  304. font-size: 32rpx;
  305. color: #333333;
  306. }
  307. .menu-list {
  308. margin-top: 24rpx;
  309. display: flex;
  310. flex-wrap: wrap;
  311. justify-content: space-between;
  312. background: #ffffff;
  313. width: 100%;
  314. padding: 30rpx 32rpx 6rpx 32rpx;
  315. box-sizing: border-box;
  316. .menu-row {
  317. width: 330rpx;
  318. height: 128rpx;
  319. position: relative;
  320. margin-bottom: 24rpx;
  321. .text {
  322. position: absolute;
  323. left: 32rpx;
  324. top: 38rpx;
  325. font-weight: bold;
  326. font-size: 36rpx;
  327. color: #333333;
  328. z-index: 2;
  329. }
  330. .back {
  331. width: 330rpx;
  332. height: 128rpx;
  333. position: absolute;
  334. z-index: 1;
  335. }
  336. .icon {
  337. position: absolute;
  338. left: 230rpx;
  339. top: 32rpx;
  340. width: 68rpx;
  341. height: 68rpx;
  342. z-index: 2;
  343. }
  344. }
  345. }
  346. .report {
  347. margin-top: 24rpx;
  348. display: flex;
  349. padding: 24rpx 28rpx;
  350. background: #ffffff;
  351. .right {
  352. display: flex;
  353. align-items: center;
  354. margin-left: 16rpx;
  355. }
  356. .info {
  357. display: flex;
  358. align-items: center;
  359. margin-top: 12rpx;
  360. margin-bottom: 12rpx;
  361. display: flex;
  362. color: rgba(24, 23, 42, 1);
  363. .label {
  364. width: 500rpx;
  365. }
  366. }
  367. .left {
  368. display: flex;
  369. align-items: center;
  370. }
  371. .line {
  372. width: 2rpx;
  373. height: 80rpx;
  374. background: #e7eaf0;
  375. }
  376. image {
  377. height: 96rpx;
  378. width: 86rpx;
  379. margin-right: 16rpx;
  380. }
  381. .day {
  382. font-size: 24rpx;
  383. color: rgba(102, 102, 102, 1);
  384. }
  385. }
  386. .indextop {
  387. background: #ffffff;
  388. border-radius: 0rpx 0rpx 0rpx 0rpx;
  389. padding-bottom: 24rpx;
  390. }
  391. .bz {
  392. display: flex;
  393. align-items: center;
  394. justify-content: center;
  395. margin-top: 24rpx;
  396. .yyicon {
  397. height: 60rpx;
  398. width: 60rpx;
  399. }
  400. .jiantou {
  401. color: rgb(122, 134, 154);
  402. margin-left: 12rpx;
  403. margin-right: 12rpx;
  404. font-size: 30rpx;
  405. font-weight: bold;
  406. }
  407. }
  408. .jiaobiao {
  409. position: absolute;
  410. top: 10rpx;
  411. right: 30rpx;
  412. border-radius: 50%;
  413. background: red;
  414. font-size: 24rpx;
  415. height: 30rpx;
  416. width: 30rpx;
  417. text-align: center;
  418. line-height: 24rpx;
  419. color: white;
  420. line-height: 30rpx;
  421. }
  422. .banner {
  423. width: 686rpx;
  424. height: 300rpx;
  425. display: block;
  426. margin: auto;
  427. z-index: 1;
  428. }
  429. }
  430. page {
  431. background: rgba(245, 247, 250, 1);
  432. }
  433. </style>