From c98990f728e41f8cdd19e80583b07aa66ffdb852 Mon Sep 17 00:00:00 2001 From: "952108534@qq.com" <952108534@qq.com> Date: Fri, 28 Jan 2022 14:04:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rc-busness/pages/index.vue | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/rc-busness/pages/index.vue b/rc-busness/pages/index.vue index 264b56d6..77977c08 100644 --- a/rc-busness/pages/index.vue +++ b/rc-busness/pages/index.vue @@ -1070,6 +1070,7 @@ export default { mobileVideoPlaying: false, usertitle: "明星猫粮", dogtitle: "明星犬粮", + userdata:'999999', processinformation: [], catshi: [], userindex: 0, @@ -1413,7 +1414,6 @@ export default { // console.log("1"); // } if (this.realIndex == 2) { - console.log(vm.userdata.data.id) // setTimeout(() => { // var option = { // customer: { @@ -1496,7 +1496,11 @@ export default { watch: {}, mounted() { this.checkIsLogin(); - this.userdata = this.$store.state.userInfo; + if(this.$store.state.userInfo===undefined){ + this.userdata=' ' + }else{ + this.userdata = this.$store.state.userInfo.data.id; + } console.log(this.userdata); const that = this; @@ -1521,19 +1525,17 @@ export default { }, methods: { diaoqi(){ - console.log('----'); - setTimeout(() => { + var option = { customer: { id: "", name: "", email: "", mobile: "", - memberId: vm.userdata.data.id, + memberId: this.userdata, }, }; dis_livchat(option); - }, 500); }, ...mapMutations(["checkIsLogin"]), playMobileVideo(item) {