Commit df564aa1 by 陈英杰

合并分支 'test' 到 'dev'

fix

1. frame 地址跟随域名

查看合并请求 !184
parents 02534418 5678458a
......@@ -4,7 +4,7 @@
<div class="mask" @click="_close"></div>
<div class="box" @click.stop>
<iframe
:src="marketSrc ? `${DEF_SITE}/shop${marketSrc}` : `${DEF_SITE}/shop/showcase?uin=${channelInfo.uin}&caseId=${caseInfo.caseId}`"
:src="marketSrc ? `${origin}/shop${marketSrc}` : `${origin}/shop/showcase?uin=${channelInfo.uin}&caseId=${caseInfo.caseId}`"
width="100%"
height="100%"
/>
......@@ -20,12 +20,13 @@ export default {
value: {},
marketSrc: {
type: String,
default: ''
default: '',
}
},
data() {
return {
show: false
show: false,
origin: process.env.DEF_SITE
};
},
computed: {
......@@ -49,6 +50,9 @@ export default {
return process.env.DEF_SITE
}
},
mounted() {
this.origin = window.location.origin
},
methods: {
_close() {
this.isShow = false;
......@@ -100,7 +104,7 @@ export default {
}
},
goMarket() {
window.location.href = `${this.DEF_SITE}/shop/home?uin=${this.channelInfo.uin}`
window.location.href = `${origin}/shop/home?uin=${this.channelInfo.uin}`
}
},
watch: {
......
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 sign in to comment