Browse Source

修改冲突

master
aBin 5 years ago
parent
commit
55138a0ac0
  1. 15
      src/components/Introduce/IntentionModel.vue
  2. 15
      src/views/NewPlatform/components/NewModel.vue

15
src/components/Introduce/IntentionModel.vue

@ -102,11 +102,24 @@ export default {
}; };
}, },
computed: mapState('user', ['picCode']), computed: mapState('user', ['picCode']),
created() { async created() {
this.sendPicCode(); this.sendPicCode();
await this.getUserSer();
if (this.userSer) {
if (this.userSer.name) {
this.platform.manName = this.userSer.name;
}
if (this.userSer.phone) {
this.platform.tel = this.userSer.phone;
}
if (this.userSer.companyName) {
this.platform.companyName = this.userSer.companyName;
}
}
}, },
methods: { methods: {
...mapActions('user', ['sendCode', 'sendPicCode']), ...mapActions('user', ['sendCode', 'sendPicCode']),
...mapActions('home', ['getUserSer']),
// //
showModal() { showModal() {
this.visible = true; this.visible = true;

15
src/views/NewPlatform/components/NewModel.vue

@ -83,11 +83,24 @@ export default {
}; };
}, },
computed: mapState('user', ['picCode']), computed: mapState('user', ['picCode']),
created() { async created() {
this.sendPicCode(); this.sendPicCode();
await this.getUserSer();
if (this.userSer) {
if (this.userSer.name) {
this.platform.manName = this.userSer.name;
}
if (this.userSer.phone) {
this.platform.tel = this.userSer.phone;
}
if (this.userSer.companyName) {
this.platform.companyName = this.userSer.companyName;
}
}
}, },
methods: { methods: {
...mapActions('user', ['sendCode', 'sendPicCode']), ...mapActions('user', ['sendCode', 'sendPicCode']),
...mapActions('home', ['getUserSer']),
// //
showModal() { showModal() {
this.visible = true; this.visible = true;

Loading…
Cancel
Save