Commit 461fae81 authored by wcmoon's avatar wcmoon

fix: fix two links link to browser

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