qingyiay
2023-03-24 09c2ac7911db8993b6b435cb5af23fcf69c0fbe2
增加货代详情
3个文件已修改
91 ■■■■ 已修改文件
api/publicInterface.js 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/customer-page/customer-my/customer-my.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/customer-page/freight-forwarder-details/freight-forwarder-details.vue 77 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
api/publicInterface.js
@@ -2,7 +2,9 @@
// import login from "../pages/login/login";
// const BaseUrl = "http://192.168.3.159:9999/";
import {BaseUrl as wrBaseUrl} from '@/api/request.js'
import {
    BaseUrl as wrBaseUrl
} from '@/api/request.js'
// const BaseUrl = "http://192.168.0.120:9999"
const BaseUrl = "http://192.168.3.109:9999"
@@ -153,8 +155,8 @@
            url: BaseUrl + '/admin/oauth2/token',
            method: "POST",
            data: {
                grant_type:'mobile',
                mobile:`MINI@${code}`,
                grant_type: 'mobile',
                mobile: `MINI@${code}`,
                code
            },
            header: {
pages/customer-page/customer-my/customer-my.vue
@@ -10,7 +10,7 @@
                <u-swipe-action>
                    <u-cell-group :border="false">
                        <u-swipe-action-item :options="options1" v-for="(item, index) in huoDaiData" :index="index" :name="item.userId" :key="index" @click="deleteHuoDaiClick">
                            <u-cell :title="item.name" value="详情" @click="toFreightForwarderDetails(item.id)"></u-cell>
                            <u-cell :title="item.name" value="详情" @click="toFreightForwarderDetails(item.userId)"></u-cell>
                        </u-swipe-action-item>
                    </u-cell-group>
                </u-swipe-action>
@@ -253,9 +253,9 @@
            });
        },
        // 货代详情
        toFreightForwarderDetails(id) {
        toFreightForwarderDetails(userId) {
            uni.navigateTo({
                url: `/pages/customer-page/freight-forwarder-details/freight-forwarder-details`
                url: `/pages/customer-page/freight-forwarder-details/freight-forwarder-details?userId=${userId}`
            });
        },
        // 车队详情
pages/customer-page/freight-forwarder-details/freight-forwarder-details.vue
@@ -6,19 +6,15 @@
                <uni-table border stripe emptyText="暂无更多数据">
                    <uni-tr>
                        <uni-th align="left">姓名</uni-th>
                        <uni-td align="left">测试</uni-td>
                        <uni-td align="left">{{ HuoDaiForm.name }}</uni-td>
                    </uni-tr>
                    <uni-tr>
                        <uni-th align="left">电话</uni-th>
                        <uni-td align="left">18888888888</uni-td>
                        <uni-td align="left">{{ HuoDaiForm.phone }}</uni-td>
                    </uni-tr>
                    <uni-tr>
                        <uni-th align="left">性别</uni-th>
                        <uni-td align="left">男</uni-td>
                    </uni-tr>
                    <uni-tr>
                        <uni-th align="left">公司名称</uni-th>
                        <uni-td align="left">河北旭阳营销</uni-td>
                    <uni-tr v-if="roleType == 2">
                        <uni-th align="left">客户名称</uni-th>
                        <uni-td align="left">{{ HuoDaiForm.customerName }}</uni-td>
                    </uni-tr>
                </uni-table>
            </view>
@@ -29,19 +25,19 @@
                <uni-table border stripe emptyText="暂无更多数据">
                    <uni-tr>
                        <uni-th align="left">注册时间</uni-th>
                        <uni-td align="left">2022/04/09</uni-td>
                        <uni-td align="left">{{ HuoDaiForm.createTime }}</uni-td>
                    </uni-tr>
                    <uni-tr>
                        <uni-th align="left">管理车辆</uni-th>
                        <uni-td align="left">24辆</uni-td>
                        <uni-td align="left">{{ HuoDaiForm.cars }}</uni-td>
                    </uni-tr>
                    <uni-tr>
                        <uni-th align="left">任务总数</uni-th>
                        <uni-td align="left">20</uni-td>
                        <uni-td align="left">{{ HuoDaiForm.sum }}</uni-td>
                    </uni-tr>
                    <uni-tr>
                        <uni-th align="left">执行完成</uni-th>
                        <uni-td align="left">10</uni-td>
                        <uni-td align="left">{{ HuoDaiForm.over }}</uni-td>
                    </uni-tr>
                </uni-table>
            </view>
@@ -53,19 +49,30 @@
export default {
    data() {
        return {
            huoDaiId: null
            huoDaiId: null,
            userId: '',
            // 货代详情信息表单
            HuoDaiForm: {}
        };
    },
    onLoad(v) {
        this.userId = v.userId;
    },
    onShow() {
        this.init();
    },
    computed: {
        roleType() {
            return uni.getStorageSync('roleType');
        }
    },
    methods: {
        init() {
            this.getHuoDaiDetail();
        },
        getHuoDaiDetail() {
            this.$reqGet('getHuoDaiDetail').then(res => {
                console.log(res, '货代详情');
            this.$reqGet('getHuoDaiDetail', { userId: this.userId }).then(res => {
                this.HuoDaiForm = res.data;
            });
        }
    }
@@ -88,29 +95,29 @@
            line-height: vww(40);
            background-color: #f5f5f5;
        }
            .uni-table {
                min-width: 0 !important;
        .uni-table {
            min-width: 0 !important;
                .uni-table-tr {
                    padding: 0;
                    font-size: vww(16);
                    font-weight: 300;
                    .uni-table-th {
                        height: vww(40);
                        line-height: vww(30);
                        padding: vww(5) vww(10);
                        color: #333333;
                        font-weight: 400;
                    }
            .uni-table-tr {
                padding: 0;
                font-size: vww(16);
                font-weight: 300;
                .uni-table-th {
                    height: vww(40);
                    line-height: vww(30);
                    padding: vww(5) vww(10);
                    color: #333333;
                    font-weight: 400;
                }
                    .uni-table-td {
                        height: vww(40);
                        line-height: vww(30);
                        padding: vww(5) vww(10);
                        color: #333333;
                    }
                .uni-table-td {
                    height: vww(40);
                    line-height: vww(30);
                    padding: vww(5) vww(10);
                    color: #333333;
                }
            }
        }
    }
}
</style>