| | |
| | | <view class="concrete" |
| | | style="background: url('https://mx.jzeg.cn:9095/appimg/image/banner/skin.png') no-repeat;background-size: cover;"> |
| | | 皮</view> |
| | | <view class="num">{{ coalDetailsData.skin }}</view> |
| | | <view class="num">{{ coalDetailsData.skin||"" }}</view> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="concrete" |
| | | style="background: url('https://mx.jzeg.cn:9095/appimg/image/banner/hair.png') no-repeat;background-size: cover;"> |
| | | 毛</view> |
| | | <view class="num">{{ coalDetailsData.hair }}</view> |
| | | <view class="num">{{ coalDetailsData.hair||"" }}</view> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="concrete" |
| | | style="background: url('https://mx.jzeg.cn:9095/appimg/image/banner/clean.png') no-repeat;background-size: cover;"> |
| | | 净</view> |
| | | <view class="num">{{ coalDetailsData.clean }}</view> |
| | | <view class="num">{{ coalDetailsData.clean||"" }}</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | this.getWeightHouseObj.overTmWaixiao = value.overTmWaixiao |
| | | } |
| | | }, |
| | | onShow() { |
| | | this.init(); |
| | | |
| | | }, |
| | | data() { |
| | | return { |
| | | orderPlanId: null, |
| | |
| | | openName: '' |
| | | }, |
| | | coalStatus: ['领取', '预约', '签到', '入场', '称皮', '称毛', '离场', '入磅房', '出磅房', '入煤仓', '出煤仓', '放空', '作废', '入场申请', |
| | | '进入场院' |
| | | '进入场院', '异常审核中' |
| | | ], // 状态 |
| | | weighHouseCode: '', |
| | | // 放空弹窗控制变量 |
| | |
| | | |
| | | }; |
| | | }, |
| | | onShow() { |
| | | this.init(); |
| | | }, |
| | | onHide() { |
| | | clearInterval(this.interval); |
| | | }, |
| | |
| | | return this.coalDetailsData.hair !== 0 || this.coalDetailsData.skin !== 0; |
| | | }, |
| | | isapproach() { |
| | | return this.currentPageCoalStatus <= 3; |
| | | return this.currentPageCoalStatus !== 3; |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | }); |
| | | this.coalDayPage(); //获取日志 |
| | | this.getTakeCoal(); //获取提煤单详情 |
| | | this.getgetService(); //获取客服 |
| | | |
| | | }, |
| | | // 获取客服openid |
| | | getgetService() { |
| | | this.$reqGet('getCallOutList', this.getServiceOpenid).then(res => { |
| | | console.log(res, '客服openid'); |
| | | if (res.code != 0) { |
| | | this.$u.toast('获取客服信息失败'); |
| | | this.$u.toast(res.msg ? res.msg : '获取客服信息失败'); |
| | | } else { |
| | | if (res.data.length > 0) { |
| | | this.serviceInfoObj.openId = res.data[0].openId; |
| | | this.serviceInfoObj.openName = res.data[0].openName; |
| | | uni.setStorageSync('customeropenId', this.serviceInfoObj.openId); |
| | | uni.setStorageSync('customerName', this.serviceInfoObj.openName); |
| | | } |
| | | this.serviceInfoObj.openId = res.data.openId; |
| | | this.serviceInfoObj.openName = res.data.openName; |
| | | uni.setStorageSync('customeropenId', this.serviceInfoObj.openId); |
| | | uni.setStorageSync('customerName', this.serviceInfoObj.openName); |
| | | } |
| | | }); |
| | | }, |
| | |
| | | }) |
| | | } |
| | | } |
| | | }).then(() => { |
| | | this.getgetService(); //获取客服 |
| | | }) |
| | | }, |
| | | // 日志查询 |
| | |
| | | } else { |
| | | wx.join1v1Chat({ |
| | | caller: { |
| | | nickname: uni.getStorageSync('name'), |
| | | nickname: uni.getStorageSync('username'), |
| | | openid: uni.getStorageSync( |
| | | 'openid') |
| | | }, |
| | |
| | | nickname: uni.getStorageSync('customerName'), |
| | | openid: uni.getStorageSync( |
| | | 'customeropenId') |
| | | }, // 这里的openid是fyy的,充当固定的客服openid |
| | | }, |
| | | backgroundType: 2, |
| | | roomType: 'voice', |
| | | success() { |