qingyiay
2023-09-16 d40527c10a2aa2ea481e1bf85ba0ac75ade9b670
增加磅房忙碌提示
4个文件已修改
36 ■■■■■ 已修改文件
pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/login/login.vue 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/tabbar-page/index-tabbar/index-tabbar.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
store/index.js 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue
@@ -154,6 +154,13 @@
                :show="servieceShow"
                cancelText="取消"></u-action-sheet>
        </view>
        <!-- 磅房忙碌提示弹窗 -->
        <view class="">
            <u-modal :show="wsgVisiable"
                title="提示"
                :content="wsgContent"
                @confirm="wsgContentConfirm"></u-modal>
        </view>
    </view>
</template>
@@ -252,7 +259,7 @@
            clearInterval(this.interval);
        },
        computed: {
            ...mapState(['globalweigh', 'globalinfraredStatus']),
            ...mapState(['globalweigh', 'globalinfraredStatus', 'wsgVisiable', 'wsgContent']),
            name() {
                return uni.getStorageSync('name');
            },
@@ -278,6 +285,7 @@
            }
        },
        methods: {
            ...mapMutations(['changewsgVisiable'])
            init() {
                this.$reqGet('coalDayPage', { id: this.orderPlanId }).then(res => {
                    if (res.code == 0) {
@@ -572,6 +580,9 @@
                    }
                })
            },
            wsgContentConfirm() {
                this.changewsgVisiable(false)
            }
        }
    };
</script>
pages/login/login.vue
@@ -141,6 +141,9 @@
                                this.setUserTabbar(res.data.type);
                                uni.setStorageSync('roleType', res.data.type);
                                uni.setStorageSync("userId", res.data.userId)
                                if (res.data.carNo) {
                                    uni.setStorageSync("carNo", res.data.carNo)
                                }
                                setCustomerId(res.data.customerid);
                                uni.hideLoading();
                                //跳转页面
pages/tabbar-page/index-tabbar/index-tabbar.vue
@@ -176,7 +176,13 @@
                    if (uni.getStorageSync('userId') === this.messageList.appUserId) {
                        this.messagePushShow = true;
                    }
                } else {}
                } else if (v.startsWith('wsg')) {
                    let wsgObj = JSON.parse(v.slice(5));
                    if (uni.getStorageInfoSync('carNo') === wsgObj.carNo) {
                        changewsgVisiable(true)
                        changewsgContent(wsgObj.content)
                    }
                }
            }
        },
        onShow() {
@@ -200,7 +206,9 @@
            this.changeisconnect(true)
        },
        methods: {
            ...mapMutations(['pushMessage', 'changeWeigh', 'changeinfraredStatus', 'changeisconnect', 'websocketInit']),
            ...mapMutations(['pushMessage', 'changeWeigh', 'changeinfraredStatus', 'changeisconnect', 'websocketInit',
                'changewsgVisiable', 'changewsgContent'
            ]),
            messagePage() {
                uni.navigateTo({
                    url: '/pages/public-page/message/message'
store/index.js
@@ -143,6 +143,8 @@
            'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj43.jpg',
            'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj44.jpg',
        ],
        wsgVisiable: false, //磅房忙碌弹窗控制
        wsgContent: ''
    },
    mutations: {
        lengthchange(state, payload) {
@@ -217,6 +219,12 @@
        },
        changeablePrintOut(state, payload) {
            state.ablePrintOut = payload
        },
        changewsgVisiable(state, payload) {
            state.wsgVisiable = payload
        },
        changewsgContent(state, payload) {
            state.wsgContent = payload
        }
    },
    actions: {