更改首页

This commit is contained in:
952108534@qq.com 2022-01-28 14:04:55 +08:00
parent d0ea3582dd
commit c98990f728

View File

@ -1070,6 +1070,7 @@ export default {
mobileVideoPlaying: false, mobileVideoPlaying: false,
usertitle: "明星猫粮", usertitle: "明星猫粮",
dogtitle: "明星犬粮", dogtitle: "明星犬粮",
userdata:'999999',
processinformation: [], processinformation: [],
catshi: [], catshi: [],
userindex: 0, userindex: 0,
@ -1413,7 +1414,6 @@ export default {
// console.log("1"); // console.log("1");
// } // }
if (this.realIndex == 2) { if (this.realIndex == 2) {
console.log(vm.userdata.data.id)
// setTimeout(() => { // setTimeout(() => {
// var option = { // var option = {
// customer: { // customer: {
@ -1496,7 +1496,11 @@ export default {
watch: {}, watch: {},
mounted() { mounted() {
this.checkIsLogin(); 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); console.log(this.userdata);
const that = this; const that = this;
@ -1521,19 +1525,17 @@ export default {
}, },
methods: { methods: {
diaoqi(){ diaoqi(){
console.log('----');
setTimeout(() => {
var option = { var option = {
customer: { customer: {
id: "", id: "",
name: "", name: "",
email: "", email: "",
mobile: "", mobile: "",
memberId: vm.userdata.data.id, memberId: this.userdata,
}, },
}; };
dis_livchat(option); dis_livchat(option);
}, 500);
}, },
...mapMutations(["checkIsLogin"]), ...mapMutations(["checkIsLogin"]),
playMobileVideo(item) { playMobileVideo(item) {