| | |
| | | return this.coalDetailsData.hair !== 0 || this.coalDetailsData.skin !== 0; |
| | | }, |
| | | isapproach() { |
| | | return this.currentPageCoalStatus <= 3; |
| | | return this.currentPageCoalStatus !== 3; |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | 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; |
| | | this.serviceInfoObj.openId = res.data.openId; |
| | | this.serviceInfoObj.openName = res.data.openName; |
| | | uni.setStorageSync('customeropenId', this.serviceInfoObj.openId); |
| | | uni.setStorageSync('customerName', this.serviceInfoObj.openName); |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | |
| | | nickname: uni.getStorageSync('customerName'), |
| | | openid: uni.getStorageSync( |
| | | 'customeropenId') |
| | | }, // 这里的openid是fyy的,充当固定的客服openid |
| | | }, |
| | | backgroundType: 2, |
| | | roomType: 'voice', |
| | | success() { |