Commit 461fae81 authored by wcmoon's avatar wcmoon

fix: fix two links link to browser

parent 3519748c
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
v-else-if="item.pass_id === 0">发行通证</el-button> v-else-if="item.pass_id === 0">发行通证</el-button>
<div v-else> <div v-else>
<span >已发行</span> <span >已发行</span>
<el-button class="text-btn" type="text">查询</el-button> <el-button @click="checkPass(item)" class="text-btn" type="text">查询</el-button>
</div> </div>
</li> </li>
<li class="content-set"> <li class="content-set">
...@@ -235,6 +235,7 @@ import { downloadQrCode, getQR, openChainBrowser } from "@/utils/app/common"; ...@@ -235,6 +235,7 @@ import { downloadQrCode, getQR, openChainBrowser } from "@/utils/app/common";
import CommonDialog from "@/components/CommonDialog.vue"; import CommonDialog from "@/components/CommonDialog.vue";
import { GO_URLS } from "@/config/URLS"; import { GO_URLS } from "@/config/URLS";
import IssuePass from "@/components/newProductList/IssuePass"; import IssuePass from "@/components/newProductList/IssuePass";
import store from "@/store";
export default { export default {
data() { data() {
return { return {
...@@ -279,6 +280,9 @@ export default { ...@@ -279,6 +280,9 @@ export default {
}, },
}, },
methods: { methods: {
checkPass(item) {
window.open(`${store.getters.get_urlList.chain_browser_url}/trace_token?goods_id=${item.pass_id}`);
},
showIssuePass(item) { showIssuePass(item) {
this.curItem = item; this.curItem = item;
this.passShow = true; this.passShow = true;
......
...@@ -82,7 +82,6 @@ export default { ...@@ -82,7 +82,6 @@ export default {
{proof_id: this.content.id} {proof_id: this.content.id}
) )
params.type = Number(params.type); params.type = Number(params.type);
console.log(params);
const res = await this.$ajax({ const res = await this.$ajax({
type: "post", type: "post",
url: GO_URLS.pass, url: GO_URLS.pass,
......
...@@ -3,7 +3,7 @@ import { Message } from 'element-ui'; ...@@ -3,7 +3,7 @@ import { Message } from 'element-ui';
import store from "@/store"; import store from "@/store";
function getChainBrowserUrl(hash: string): string { function getChainBrowserUrl(hash: string): string {
return `${store.getters.get_urlList.chain_browser_url}product?hash=${hash}`; return `${store.getters.get_urlList.chain_browser_url}/product?hash=${hash}`;
} }
/** /**
......
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