index.vue 11 KB

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