MrShi
2025-08-21 a223d5e29e9384f720ae98c44cbe10f8fa4f73e7
优化
已修改5个文件
17 ■■■■■ 文件已修改
small-program/App.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
small-program/pages/demand-hall/demand-hall.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
small-program/pages/freight/freight.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
small-program/pages/packaging-worker/packaging-worker.vue 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
small-program/utils/http.interceptor.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
small-program/App.vue
@@ -5,7 +5,6 @@
            ...mapState(['userInfo','openid'])
        },
        onLaunch: function() { 
            console.log(ua)
            var that = this;
            if (!this.openid || this.openid =='') {
                uni.login({
@@ -77,4 +76,9 @@
<style lang="scss">
    @import "uview-ui/index.scss"; 
    .toast-custom {
        width: 500px !important;
        font-size: 14px !important;
    }
</style>
small-program/pages/demand-hall/demand-hall.vue
@@ -75,7 +75,7 @@
                            <image src="/static/icon/ic_qidian@2x.png" mode="widthFix" v-if="i === 0"></image>
                            <image src="/static/icon/ic_jingguo@2x.png" mode="widthFix" v-else-if="i !== 0 && i !== item.wayInfo.length - 1"></image>
                            <image src="/static/icon/ic_zhongdian@2x.png" mode="widthFix" v-else-if="i === item.wayInfo.length - 1"></image>
                            <text>{{item.location}}</text>
                            <text>{{address.location}}</text>
                        </view>
                    </view>
                    <template v-if="[0, 2].includes(item.type)">
@@ -146,7 +146,7 @@
                            <image src="/static/icon/ic_qidian@2x.png" mode="widthFix" v-if="i === 0"></image>
                            <image src="/static/icon/ic_jingguo@2x.png" mode="widthFix" v-else-if="i !== 0 && i !== item.wayInfo.length - 1"></image>
                            <image src="/static/icon/ic_zhongdian@2x.png" mode="widthFix" v-else-if="i === item.wayInfo.length - 1"></image>
                            <text>{{item.location}}</text>
                            <text>{{address.location}}</text>
                        </view>
                    </view>
                    <template v-if="[0, 2].includes(item.type)">
small-program/pages/freight/freight.vue
@@ -126,7 +126,7 @@
                        <text>费用</text>
                    </view>
                    <view class="list-item-cate">
                        <view :class="item.id === form.carType ? 'list-item-cate-item active' : 'list-item-cate-item'" v-for="(item, index) in ff" :key="index" @click="form.carType = item.id">按天付费</view>
                        <view :class="item.id === form.carType ? 'list-item-cate-item active' : 'list-item-cate-item'" v-for="(item, index) in ff" :key="index" @click="form.carType = item.id">{{item.name}}</view>
                    </view>
                    <view class="list-item-row">
                        <view class="list-item-row-label">天数</view>
small-program/pages/packaging-worker/packaging-worker.vue
@@ -313,8 +313,10 @@
                this.form.carType = id
                if (id === 0) {
                    this.form.priceUnit = '元/人/天'
                } else {
                } else if (id === 1) {
                    this.form.priceUnit = '元/人/小时'
                } else {
                    this.form.priceUnit = '元/斤'
                }
            },
            confirmCategary(e) {
small-program/utils/http.interceptor.js
@@ -15,7 +15,6 @@
    // 响应拦截器
    uni.$u.http.interceptors.response.use((response) => {
        uni.hideLoading();
        // console.log(response.data)
        if (response.data.code === 5113) {
            uni.switchTab({
                url: '/pages/index/index'