Commit dd8b6048 authored by xiangzj's avatar xiangzj

嵌入第三方页面

parent 68cd4cf7
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
<script> <script>
import { getClientByApp } from '@/servers/address.js' import { getClientByApp } from '@/servers/address.js'
import { mapState } from 'vuex'
export default { export default {
data() { data() {
return { return {
...@@ -21,6 +22,7 @@ ...@@ -21,6 +22,7 @@
this.getClientByApp() this.getClientByApp()
}, },
computed: { computed: {
...mapState(['userInfo']),
navHeight() { navHeight() {
return { return {
'height': `100px` 'height': `100px`
...@@ -29,7 +31,7 @@ ...@@ -29,7 +31,7 @@
}, },
methods: { methods: {
async getClientByApp(){ async getClientByApp(){
const res = await getClientByApp({code:'0050000215'}) const res = await getClientByApp({code: this.userInfo.code})
this.src = 'https://yingxiao.wuliangye.com.cn/webroot/login/jxsLogin.html?'+res this.src = 'https://yingxiao.wuliangye.com.cn/webroot/login/jxsLogin.html?'+res
}, },
message(event) { message(event) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment