123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371 |
- <template>
- <view class="indexpage" style="width: 100%">
- <div class="indextop">
- <image src="../../static/index/banner.png" class="banner"></image>
- <div class="bz">
- <div>
- <img
- src="https://www.idea-co-sf.com/dockPic/1.png"
- class="yyicon"
- alt=""
- />
- <div>预约</div>
- </div>
- <div class="jiantou">---></div>
- <div>
- <img
- src="https://www.idea-co-sf.com/dockPic/2.png"
- class="yyicon"
- alt=""
- />
- <div>签到</div>
- </div>
- <div class="jiantou">---></div>
- <div>
- <img
- src="https://www.idea-co-sf.com/dockPic/3.png"
- class="yyicon"
- alt=""
- />
- <div>装卸</div>
- </div>
- <div class="jiantou">---></div>
- <div>
- <img
- src="https://www.idea-co-sf.com/dockPic/4.png"
- class="yyicon"
- alt=""
- />
- <div>签收</div>
- </div>
- <div class="jiantou">---></div>
- <div>
- <img
- src="https://www.idea-co-sf.com/dockPic/5.png"
- class="yyicon"
- alt=""
- />
- <div>离场</div>
- </div>
- </div>
- </div>
- <div class="report">
- <div class="left">
- <img src="https://www.idea-co-sf.com/dockPic/6.png" alt="" />
- <div class="line"></div>
- </div>
- <div class="right">
- <div>
- <div class="info">
- <div>受暴雨天气影响,2024-07-13 8:00...</div>
- <div class="day">1天前</div>
- </div>
- <div class="info">
- <div>受暴雨天气影响,2024-07-13 8:00...</div>
- <div class="day">1天前</div>
- </div>
- </div>
- </div>
- </div>
- <div class="menu-list" v-if="userType == 'USER'">
- <div
- class="menu-row"
- @click="jumpPage('/pages/subPackages/choosecar/index?zxtype=送货预约')"
- >
- <div class="text">送货预约</div>
- <img
- src="https://www.idea-co-sf.com/dockPic/7.png"
- class="back"
- alt=""
- />
- <img
- src="https://www.idea-co-sf.com/dockPic/7-1.png"
- class="icon"
- alt=""
- />
- </div>
- <div
- class="menu-row"
- @click="jumpPage('/pages/subPackages/choosecar/index?zxtype=取货预约')"
- >
- <div class="text">取货预约</div>
- <img
- src="https://www.idea-co-sf.com/dockPic/8.png"
- class="back"
- alt=""
- />
- <img
- src="https://www.idea-co-sf.com/dockPic/8-1.png"
- class="icon"
- alt=""
- />
- </div>
- <!-- sj_yy/index -->
- <div
- class="menu-row"
- @click="jumpPage('/pages/subPackages/sj_history/index')"
- >
- <div class="text">预约历史</div>
- <img
- src="https://www.idea-co-sf.com/dockPic/9.png"
- class="back"
- alt=""
- />
- <img
- src="https://www.idea-co-sf.com/dockPic/9-1.png"
- class="icon"
- alt=""
- />
- </div>
- </div>
- <div class="menu-list" v-else>
- <div
- class="menu-row"
- @click="jumpPage('/pages/subPackages/choosecar/index?zxtype=取货预约')"
- >
- <div class="text">装货预约</div>
- <img
- src="https://www.idea-co-sf.com/dockPic/7.png"
- class="back"
- alt=""
- />
- <img
- src="https://www.idea-co-sf.com/dockPic/7-1.png"
- class="icon"
- alt=""
- />
- </div>
- <div
- class="menu-row"
- @click="jumpPage('/pages/subPackages/choosecar/index?zxtype=卸货预约')"
- >
- <div class="text">卸货预约</div>
- <img
- src="https://www.idea-co-sf.com/dockPic/8.png"
- class="back"
- alt=""
- />
- <img
- src="https://www.idea-co-sf.com/dockPic/8-1.png"
- class="icon"
- alt=""
- />
- </div>
- <div
- class="menu-row"
- @click="jumpPage('/pages/subPackages/yy_history/index')"
- >
- <div class="text">预约历史</div>
- <img
- src="https://www.idea-co-sf.com/dockPic/9.png"
- class="back"
- alt=""
- />
- <img
- src="https://www.idea-co-sf.com/dockPic/9-1.png"
- class="icon"
- alt=""
- />
- </div>
- <div
- class="menu-row"
- @click="jumpPage('/pages/subPackages/carmange/index')"
- >
- <div class="text">车辆管理</div>
- <img
- src="https://www.idea-co-sf.com/dockPic/10.png"
- class="back"
- alt=""
- />
- <img
- src="https://www.idea-co-sf.com/dockPic/10-1.png"
- class="icon"
- alt=""
- />
- </div>
- </div>
- </view>
- </template>
- <script>
- // import {demo} from "@/js_sdk/http"
- import {
- getUserPower,
- getVenueAppointListAppCount,
- getMeetingAppointListAppCount,
- } from "@/js_sdk/http";
- import { getUserLocalStorageInfo } from "@/js_sdk/localUserInfo.js";
- export default {
- data() {
- return {
- mapList: [],
- MeetingNum: 0,
- VenueNum: 0,
- userType: "",
- };
- },
- onShareAppMessage() {},
- mounted() {
- // demo();
- },
- onLoad() {
- console.log(getUserLocalStorageInfo().userType);
- this.userType = getUserLocalStorageInfo().userType;
- },
- onShow() {},
- methods: {
- jumpPage(path) {
- console.log(path);
- uni.navigateTo({
- url: path,
- fail: (fail) => {},
- });
- },
- },
- };
- </script>
- <style lang="scss">
- .indexpage {
- .menu-list {
- margin-top: 24rpx;
- display: flex;
- flex-wrap: wrap;
- justify-content: space-between;
- background: #ffffff;
- width: 100%;
- padding: 30rpx 32rpx 6rpx 32rpx;
- box-sizing: border-box;
- .menu-row {
- width: 330rpx;
- height: 128rpx;
- position: relative;
- margin-bottom: 24rpx;
- .text {
- position: absolute;
- left: 32rpx;
- top: 38rpx;
- font-weight: bold;
- font-size: 36rpx;
- color: #333333;
- z-index: 2;
- }
- .back {
- width: 330rpx;
- height: 128rpx;
- position: absolute;
- z-index: 1;
- }
- .icon {
- position: absolute;
- left: 230rpx;
- top: 32rpx;
- width: 68rpx;
- height: 68rpx;
- z-index: 2;
- }
- }
- }
- .report {
- margin-top: 24rpx;
- display: flex;
- padding: 24rpx 28rpx;
- background: #ffffff;
- .right {
- display: flex;
- align-items: center;
- margin-left: 16rpx;
- }
- .info {
- display: flex;
- align-items: center;
- margin-top: 12rpx;
- margin-bottom: 12rpx;
- display: flex;
- color: rgba(24, 23, 42, 1);
- }
- .left {
- display: flex;
- align-items: center;
- }
- .line {
- width: 2rpx;
- height: 80rpx;
- background: #e7eaf0;
- }
- image {
- height: 96rpx;
- width: 86rpx;
- margin-right: 16rpx;
- }
- .day {
- font-size: 24rpx;
- color: rgba(102, 102, 102, 1);
- }
- }
- .indextop {
- background: #ffffff;
- border-radius: 0rpx 0rpx 0rpx 0rpx;
- padding-bottom: 24rpx;
- }
- .bz {
- display: flex;
- align-items: center;
- justify-content: center;
- margin-top: 24rpx;
- .yyicon {
- height: 60rpx;
- width: 60rpx;
- }
- .jiantou {
- color: rgb(122, 134, 154);
- margin-left: 12rpx;
- margin-right: 12rpx;
- font-size: 30rpx;
- font-weight: bold;
- }
- }
- .jiaobiao {
- position: absolute;
- top: 10rpx;
- right: 30rpx;
- border-radius: 50%;
- background: red;
- font-size: 24rpx;
- height: 30rpx;
- width: 30rpx;
- text-align: center;
- line-height: 24rpx;
- color: white;
- line-height: 30rpx;
- }
- .banner {
- width: 686rpx;
- height: 300rpx;
- display: block;
- margin: auto;
- z-index: 1;
- }
- }
- page {
- background: rgba(245, 247, 250, 1);
- }
- </style>
|