Commit f3b15d81 by Jianli Ou

个人中心首页购买GLN页面跳转

parent 6cb01877
......@@ -58,6 +58,10 @@ const tycpdmfirmupdateSystem = (params = {}) => {
const tycpdmfirmReturnFile = (params = {}) => {
return `${hostUrl}/office/tycpdmfirm/api/returnFile?status=${params.status}&fileType=${params.fileType}&id=${params.id}`
}
// 个人中心首页 LGN页面跳转
const redirectGLN = () => {
return POST(`${Prefix}/office/tycpdmfirm/authApi/redirectGLN`)
}
//
export default {
memberInfo,
......@@ -72,5 +76,6 @@ export default {
tycpdmfirmAudit,
tycpdmfirmChangeAuditList,
tycpdmfirmupdateSystem,
tycpdmfirmReturnFile
tycpdmfirmReturnFile,
redirectGLN
}
......@@ -34,8 +34,7 @@
>
</p>
<p v-if="loginInfo.isXT === 2" style="padding-left:24px">
您可以——前往<a href="http://gln.gs1cn.org/number.aspx?id=1" target="_blank"
>购买GLN</a
您可以——前往<a @click="redirectGLN">购买GLN</a
>
</p>
</li>
......@@ -154,6 +153,16 @@ export default {
}
}
},
methods: {
async redirectGLN() {
const result = await this.$api.myManage.redirectGLN()
if (result.success) {
window.open(result.data, '_black')
} else {
this.$message.error(result.returnMsg)
}
}
},
mounted() {
this.loginInfo = JSON.parse(localStorage.getItem('loginInfo'))
}
......
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