qingyiay
2023-03-29 82af85eae92790fc125ca42d1a800046fe0bd916
登录页修改
7个文件已修改
3个文件已删除
157 ■■■■■ 已修改文件
api/publicInterface.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
api/request.js 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages.json 90 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/driver-page/driver-index/driver-index.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/login/userPassword.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/public-page/forward/forward.vue 35 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/tabbar-page/index-tabbar/index-tabbar.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
static/image/coalBackgroud/https___ibaotu.com_sucai_1068915.html.png 补丁 | 查看 | 原始文档 | blame | 历史
static/image/coalBackgroud/https___ibaotu.com_sucai_1080418.html.png 补丁 | 查看 | 原始文档 | blame | 历史
static/image/coalBackgroud/https___ibaotu.com_sucai_19865761.html_clickFrom=recommendation.png 补丁 | 查看 | 原始文档 | blame | 历史
api/publicInterface.js
@@ -5,9 +5,9 @@
import {
    BaseUrl as wrBaseUrl
} from '@/api/request.js'
const BaseUrl = "http://hesuancj.cn:9999"
// const BaseUrl = "http://hesuancj.cn:9999"
// const BaseUrl = "https://hesuancj.cn:9095"
// const BaseUrl = "http://10.101.33.114:9999"
const BaseUrl = "http://192.168.3.119:9999"
// 登录
// function apiLogin({
api/request.js
@@ -79,16 +79,16 @@
}
// const BaseUrl = "http://192.168.0.120:9997"
// const webSocketUrl = "ws://192.168.0.120:9997/wrzs/ws/info"
const webSocketUrl = "ws://192.168.3.119:9997/wrzs/ws/info"
// const BaseUrl = "http://192.168.3.119:9997";
const BaseUrl = "http://192.168.3.119:9997";
// const BaseUrl = "http://192.168.0.144:9997";
const BaseUrl = "http://hesuancj.cn:9997";
// const BaseUrl = "http://hesuancj.cn:9997";
// 线上
// const BaseUrl = "https://hesuancj.cn:9095";
// const webSocketUrl = "ws://hesuancj.cn:9095/wrzs/ws/info"
const webSocketUrl = "ws://hesuancj.cn:9997/wrzs/ws/info"
// const webSocketUrl = "ws://hesuancj.cn:9997/wrzs/ws/info"
// 请求拦截
const fetch = (url, opt) => {
    // 查找对应地址
pages.json
@@ -77,15 +77,14 @@
                "navigationBarTitleText": "我的",
                "enablePullDownRefresh": false
            }
        }, {
            "path": "pages/customer-page/fleet-management/fleet-management",
            "style": {
                "navigationBarTitleText": "车队",
                "enablePullDownRefresh": false
            }
        },
        // {
        //     "path": "pages/customer-page/fleet-management/fleet-management",
        //     "style": {
        //         "navigationBarTitleText": "车队",
        //         "enablePullDownRefresh": false
        //     }
        // },
        {
            "path": "pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details",
            "style": {
@@ -93,21 +92,21 @@
                "enablePullDownRefresh": false
            }
        },
        {
            "path": "pages/customer-page/freight-forwarder-details/freight-forwarder-details",
            "style": {
                "navigationBarTitleText": "",
                "enablePullDownRefresh": false
            }
        // {
        //     "path": "pages/customer-page/freight-forwarder-details/freight-forwarder-details",
        //     "style": {
        //         "navigationBarTitleText": "",
        //         "enablePullDownRefresh": false
        //     }
        }, {
            "path": "pages/customer-page/addTo-freightForwarder-driver/addTo-freightForwarder-driver",
            "style": {
                "navigationBarTitleText": "添加",
                "enablePullDownRefresh": false
            }
        },
        // },
        // {
        //     "path": "pages/customer-page/addTo-freightForwarder-driver/addTo-freightForwarder-driver",
        //     "style": {
        //         "navigationBarTitleText": "添加",
        //         "enablePullDownRefresh": false
        //     }
        // },
        // {
        //     "path": "pages/public-page/forward/forward",
        //     "style": {
@@ -129,7 +128,6 @@
                "navigationBarTitleText": "发运计划详情",
                "enablePullDownRefresh": false
            }
        },
        {
            "path": "pages/driver-page/driver-index/bill-of-lading-details/coal-pick-up-bill/coal-pick-up-bill",
@@ -198,7 +196,38 @@
                "enablePullDownRefresh": false
            }
        }]
    }],
        },
        {
            "root": "pages/customer-page/fleet-management",
            "pages": [{
                "path": "fleet-management",
                "style": {
                    "navigationBarTitleText": "车队",
                    "enablePullDownRefresh": false
                }
            }]
        },
        {
            "root": "pages/customer-page/addTo-freightForwarder-driver",
            "pages": [{
                "path": "addTo-freightForwarder-driver",
                "style": {
                    "navigationBarTitleText": "添加",
                    "enablePullDownRefresh": false
                }
            }]
        },
        {
            "root": "pages/customer-page/freight-forwarder-details",
            "pages": [{
                "path": "freight-forwarder-details",
                "style": {
                    "navigationBarTitleText": "",
                    "enablePullDownRefresh": false
                }
            }]
        }
    ],
    "preloadRule": {
        "pages/login/login": {
            "network": "all",
@@ -206,12 +235,19 @@
        },
        "pages/tabbar-page/index-tabbar/index-tabbar": {
            "network": "all",
            "packages": ["pages/public-page"]
            "packages": ["pages/public-page", "pages/driver-page/appointment",
                "pages/customer-page/freight-forwarder-details"
            ]
        },
        "pages/tabbar-page/index-tabbar/index-tabbar": {
        "pages/tabbar-page/myPage-tabbar/myPage-tabbar": {
            "network": "all",
            "packages": ["pages/driver-page/appointment"]
            "packages": ["pages/customer-page/fleet-management"]
        }
        // "pages/tabbar-page/index-tabbar/index-tabbar": {
        //     "network": "all",
        //     "packages": []
        // }
    },
    "tabBar": {
        // "color": "#999794",
pages/driver-page/driver-index/driver-index.vue
@@ -132,13 +132,14 @@
export default {
    props: {
        indexdriverBillOfLoadingData: {
            type: Array,
            default: []
            type: Object,
            default: {}
        }
    },
    watch: {
        indexdriverBillOfLoadingData: {
            handler(v) {
                console.log(v, '刷新之后的司机首页');
                this.driverBillOfLoadingData = v;
            },
            deep: true,
@@ -147,7 +148,7 @@
    },
    data() {
        return {
            driverBillOfLoadingData: [],
            driverBillOfLoadingData: {},
            // 抢单模态框
            qiangDanShow: false,
            qiangDanTitle: '抢单提示',
@@ -169,6 +170,7 @@
                title: '加载中...'
            });
            this.$reqGet('qiangDanList').then(res => {
                console.log(res, '司机首页');
                uni.hideLoading();
                this.driverBillOfLoadingData = res.data;
            });
pages/login/userPassword.vue
@@ -43,10 +43,10 @@
    },
    data() {
        return {
            username: '12222222222', // 客户
            username: '', // 客户
            // username:'13333333331',//货代
            // username: '13333333332',// 司机
            password: '123456',
            password: '',
            remember: true,
            baseUrl: ''
        };
pages/public-page/forward/forward.vue
@@ -69,12 +69,24 @@
        }
        this.orderPlanId = params.orderPlanId;
        this.$reqGet('forwardList', { OrderPlanId: params.orderPlanId }).then(res => {
            if (res.data.length !== 0) {
            if (res.data.length !== 0 && this.roleType == 1) {
                this.jhOrderPlanForwardList = res.data.map(item => {
                    return {
                        id: item.id,
                        orderPlanId: item.orderPlanId,
                        name: item.xsUserName === null ? item.fleetName : item.xsUserName,
                        carNum: item.carNum,
                        xsUserId: item.xsUserId === null ? 0 : item.xsUserId,
                        fleetId: item.fleetId === null ? 0 : item.fleetId,
                        checkboxValue1: ''
                    };
                });
            } else if (res.data.length !== 0 && this.roleType == 2) {
                this.jhOrderPlanForwardList = res.data.map(item => {
                    return {
                        id: item.id,
                        orderPlanId: item.orderPlanId,
                        name: item.fleetName,
                        carNum: item.carNum,
                        xsUserId: item.xsUserId === null ? 0 : item.xsUserId,
                        fleetId: item.fleetId === null ? 0 : item.fleetId,
@@ -226,15 +238,19 @@
        },
        // 删除一组表单
        deleteGroup(index, v) {
            if (v.id) {
            let tempcarNum = v.carNum;
            if (v.id && this.jhOrderPlanForwardList[index].carNum !== tempcarNum) {
                this.$reqPost('deleteForward', { id: v.id }, 'params').then(res => {
                    if (res.code === 0) {
                        this.jhOrderPlanForwardList.splice(index, 1);
                        this.$u.toast('删除成功');
                    } else if (res.code === 1) {
                        this.$u.toast(res.msg);
                    }
                });
            } else {
                this.jhOrderPlanForwardList.splice(index, 1);
                this.$u.toast('删除成功');
            }
        },
        // 提交
@@ -245,22 +261,27 @@
                    this.$u.toast('请输入合法数字');
                    isPass = false;
                    return isPass;
                } else if (Number(v.carNum) > Number(this.forwardSurplus)) {
                    this.$u.toast('超过最大订单剩余量');
                    isPass = false;
                    return isPass;
                } else {
                }
                // else if (Number(v.carNum) > Number(this.forwardSurplus)) {
                //     this.$u.toast('超过最大订单剩余量');
                //     isPass = false;
                //     return isPass;
                // }
                else {
                    isPass = true;
                    return isPass;
                }
            });
            if (isPass) {
                this.$reqPost('forward', this.jhOrderPlanForwardList, 'json').then(res => {
                    console.log(res, 'zh');
                    if (res.code == 0) {
                        this.$u.toast('提交成功');
                        setTimeout(() => {
                            uni.navigateBack({ delta: 1 });
                        }, 1000);
                    } else {
                        this.$u.toast(res.msg);
                    }
                });
            }
pages/tabbar-page/index-tabbar/index-tabbar.vue
@@ -40,16 +40,18 @@
        } else if (this.roleType == 2) {
            this.$reqGet('huoDaiList').then(res => {
                this.indexHuoDaiOrderPlanData = res.data;
                uni.hideLoading();
                uni.stopPullDownRefresh();
            });
            // 获取历史提煤单
            this.$reqGet('getJhOrderPlanDataPage', { current: 1, size: 10 }).then(res => {
                if (res.data.records) {
                    this.indexHistoryCoalData = [...this.historyCoalData, ...res.data.records];
                    this.indexHistoryCoalData = res.data.records;
                    uni.hideLoading();
                    uni.stopPullDownRefresh();
                }
            });
        } else {
        } else if (this.roleType == 3) {
            this.$reqGet('qiangDanList').then(res => {
                this.indexdriverBillOfLoadingData = res.data;
                uni.hideLoading();
@@ -80,7 +82,7 @@
            orderPlanDataStore: [],
            indexHuoDaiOrderPlanData: [],
            indexHistoryCoalData: [],
            indexdriverBillOfLoadingData: []
            indexdriverBillOfLoadingData: {}
        };
    },
    onShow() {
static/image/coalBackgroud/https___ibaotu.com_sucai_1068915.html.png
Binary files differ
static/image/coalBackgroud/https___ibaotu.com_sucai_1080418.html.png
Binary files differ
static/image/coalBackgroud/https___ibaotu.com_sucai_19865761.html_clickFrom=recommendation.png
Binary files differ