Commit bec2466de799135a1a227b88fad94c831f5d0295
1 parent
0b4beb09
Exists in
master
feat:漏洞修复替换接口
Showing
5 changed files
with
6 additions
and
6 deletions
Show diff stats
src/views/Home/Home.vue
| @@ -7,7 +7,7 @@ | @@ -7,7 +7,7 @@ | ||
| 7 | <div class="right"> | 7 | <div class="right"> |
| 8 | <!-- <p class="name">{{nicknameUser}}</p> --> | 8 | <!-- <p class="name">{{nicknameUser}}</p> --> |
| 9 | <div class="name"> | 9 | <div class="name"> |
| 10 | - <span>{{ nicknameUser }}</span> | 10 | + <span>{{ userInfo.travelerName }}</span> |
| 11 | <div class="school" v-show="schoolNamesChoose" @click="changeSchool"> | 11 | <div class="school" v-show="schoolNamesChoose" @click="changeSchool"> |
| 12 | {{ schoolNamesChoose.schoolName }}<img src="@/assets/Travel/change.png" /> | 12 | {{ schoolNamesChoose.schoolName }}<img src="@/assets/Travel/change.png" /> |
| 13 | </div> | 13 | </div> |
| @@ -211,7 +211,7 @@ export default { | @@ -211,7 +211,7 @@ export default { | ||
| 211 | // 获取用户信息 | 211 | // 获取用户信息 |
| 212 | getUserInfo() { | 212 | getUserInfo() { |
| 213 | // alert('getUserInfo:' + this.centerNo) | 213 | // alert('getUserInfo:' + this.centerNo) |
| 214 | - this.yxAxios.get(`${this.proxyUrl}/user/info/getPortalUserByNum?userNum=${this.centerNo}`).then((res) => { | 214 | + this.yxAxios.post(`${this.proxyUrl}/user/info/getPortalUserByNumV2?userNum=${this.centerNo}`).then((res) => { |
| 215 | console.log('getUserInfo', res) | 215 | console.log('getUserInfo', res) |
| 216 | if (res.data.code == 200) { | 216 | if (res.data.code == 200) { |
| 217 | let userInfo = res.data.data.userInfo | 217 | let userInfo = res.data.data.userInfo |
src/views/Home/HomeUserInfo.vue
| @@ -52,7 +52,7 @@ export default { | @@ -52,7 +52,7 @@ export default { | ||
| 52 | duration: 0, | 52 | duration: 0, |
| 53 | forbidClick: true, | 53 | forbidClick: true, |
| 54 | }) | 54 | }) |
| 55 | - this.yxAxios.get(`${this.proxyUrl}/user/info/getPortalUserByNum?userNum=${this.centerNo}`).then((res) => { | 55 | + this.yxAxios.post(`${this.proxyUrl}/user/info/getPortalUserByNumV2?userNum=${this.centerNo}`).then((res) => { |
| 56 | this.$toast.clear() | 56 | this.$toast.clear() |
| 57 | if (res.data.code == 200) { | 57 | if (res.data.code == 200) { |
| 58 | const userInfo = res.data.data.userInfo | 58 | const userInfo = res.data.data.userInfo |
src/views/Home/component/HomeChildList.vue
| @@ -65,7 +65,7 @@ export default { | @@ -65,7 +65,7 @@ export default { | ||
| 65 | duration: 0, | 65 | duration: 0, |
| 66 | forbidClick: true | 66 | forbidClick: true |
| 67 | }) | 67 | }) |
| 68 | - this.yxAxios.get(`${this.proxyUrl}/user/info/getPortalUserByNum?userNum=${localStorage.getItem('centerNo')}`).then((res) => { | 68 | + this.yxAxios.post(`${this.proxyUrl}/user/info/getPortalUserByNumV2?userNum=${localStorage.getItem('centerNo')}`).then((res) => { |
| 69 | console.log('getUserInfo', res) | 69 | console.log('getUserInfo', res) |
| 70 | this.$toast.clear() | 70 | this.$toast.clear() |
| 71 | if (res.data.code == 200) { | 71 | if (res.data.code == 200) { |
src/views/Service/SelectContact.vue
| @@ -53,7 +53,7 @@ export default { | @@ -53,7 +53,7 @@ export default { | ||
| 53 | duration: 0, | 53 | duration: 0, |
| 54 | forbidClick: true, | 54 | forbidClick: true, |
| 55 | }) | 55 | }) |
| 56 | - this.yxAxios.get(`${this.proxyUrl}/user/info/getPortalUserByNum?userNum=${localStorage.getItem('centerNo')}`).then((res) => { | 56 | + this.yxAxios.post(`${this.proxyUrl}/user/info/getPortalUserByNumV2?userNum=${localStorage.getItem('centerNo')}`).then((res) => { |
| 57 | console.log('联系人列表:', res) | 57 | console.log('联系人列表:', res) |
| 58 | this.$toast.clear() | 58 | this.$toast.clear() |
| 59 | if (res.data.code == 200) { | 59 | if (res.data.code == 200) { |
src/views/Service/ServiceKQ.vue
| @@ -144,7 +144,7 @@ export default { | @@ -144,7 +144,7 @@ export default { | ||
| 144 | getUserInfo() { | 144 | getUserInfo() { |
| 145 | this.centerNo = localStorage.getItem('centerNo') | 145 | this.centerNo = localStorage.getItem('centerNo') |
| 146 | // alert('getUserInfo:' + this.centerNo) | 146 | // alert('getUserInfo:' + this.centerNo) |
| 147 | - this.yxAxios.get(`${this.proxyUrl}/user/info/getPortalUserByNum?userNum=${localStorage.getItem('centerNo')}`).then((res) => { | 147 | + this.yxAxios.post(`${this.proxyUrl}/user/info/getPortalUserByNumV2?userNum=${localStorage.getItem('centerNo')}`).then((res) => { |
| 148 | console.log('获取用户信息getPortalUserByNum:', res) | 148 | console.log('获取用户信息getPortalUserByNum:', res) |
| 149 | if (res.data.code == 200) { | 149 | if (res.data.code == 200) { |
| 150 | let userInfo = res.data.data.userInfo | 150 | let userInfo = res.data.data.userInfo |