index.vue 7.9 KB

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