| | |
| | | :show="servieceShow" |
| | | cancelText="取消"></u-action-sheet> |
| | | </view> |
| | | <!-- 磅房忙碌提示弹窗 --> |
| | | <view class=""> |
| | | <u-modal :show="wsgVisiable" |
| | | title="提示" |
| | | :content="wsgContent" |
| | | @confirm="wsgContentConfirm"></u-modal> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | clearInterval(this.interval); |
| | | }, |
| | | computed: { |
| | | ...mapState(['globalweigh', 'globalinfraredStatus']), |
| | | ...mapState(['globalweigh', 'globalinfraredStatus', 'wsgVisiable', 'wsgContent']), |
| | | name() { |
| | | return uni.getStorageSync('name'); |
| | | }, |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | ...mapMutations(['changewsgVisiable']) |
| | | init() { |
| | | this.$reqGet('coalDayPage', { id: this.orderPlanId }).then(res => { |
| | | if (res.code == 0) { |
| | |
| | | } |
| | | }) |
| | | }, |
| | | wsgContentConfirm() { |
| | | this.changewsgVisiable(false) |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | |
| | | 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(); |
| | | //跳转页面 |
| | |
| | | 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() { |
| | |
| | | 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' |
| | |
| | | '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) { |
| | |
| | | }, |
| | | changeablePrintOut(state, payload) { |
| | | state.ablePrintOut = payload |
| | | }, |
| | | changewsgVisiable(state, payload) { |
| | | state.wsgVisiable = payload |
| | | }, |
| | | changewsgContent(state, payload) { |
| | | state.wsgContent = payload |
| | | } |
| | | }, |
| | | actions: { |