Commit 25be7af3 authored by zenglun's avatar zenglun

提交部分代码

parent 659aed30
......@@ -7,7 +7,6 @@
<li class="list-name">存证名称</li>
<li class="list-time">操作日期</li>
<li class="list-chain">上链</li>
<!-- <li class="list-qrcode">二维码</li> -->
<li class="list-search">区块链查询</li>
<li class="list-set">操作</li>
</ul>
......@@ -51,31 +50,6 @@
@click="$emit('privacy-settings', item)"
>隐藏失败</div>
</li>
<!-- <li class="content-qrcode">
<div class="content-code-box">
<div class="icon-box">
<i
@click.stop="openQRcode(item, index)"
class="iconfont iconerweima1"
:class="[
item.status === 2
? 'iconerweima--check'
: 'iconerweima--no-check',
]"
></i>
<div class="show-box" v-if="checkQR === index" @mousedown.stop>
<div class="imgbox" v-if="item.hash">
<img :src="QRcode" />
</div>
<div class="imgbox" v-else>
<img src="https://f10.baidu.com/it/u=557133877,2120362237&fm=72" />
</div>
<p @click="QRdownload(item)">下载二维码</p>
<p class="copy-address" @click="CopyAddress(item)">复制地址</p>
</div>
</div>
</div>
</li> -->
<li class="content-search">
<div class="block">
<div class="icon-box">
......@@ -175,11 +149,9 @@ import { GO_URLS } from "@/config/URLS";
export default {
data() {
return {
checkQR: -1, // 二维码弹窗
checkBlock: -1,
checkSet: -1,
expandTheListIndex: -1,
QRcode: "" // 二维码路劲
};
},
watch: {
......@@ -273,16 +245,10 @@ export default {
type: "success"
});
},
// 二维码下载
QRdownload(item) {
downloadQrCode(item.hash);
},
// 隐藏条件选中
onHindMenu() {
this.checkQR = -1;
this.checkBlock = -1;
this.checkSet = -1;
this.QRcode = "";
document.removeEventListener("mousedown", this.onHindMenu);
},
// 进入详情页
......@@ -311,13 +277,6 @@ export default {
this.checkBlock = index;
document.addEventListener("mousedown", this.onHindMenu);
},
// 控制二维码显示
async openQRcode(item, index) {
if (item.status != 2) return;
this.checkQR = index;
this.QRcode = await getQR(item.hash);
document.addEventListener("mousedown", this.onHindMenu);
}
}
};
</script>
......@@ -355,10 +314,6 @@ export default {
width: 80px;
text-align: center;
}
.list-qrcode {
width: 80px;
text-align: center;
}
.list-search {
width: 66px;
text-align: center;
......@@ -448,10 +403,6 @@ export default {
height: 20px;
padding-left: 16px;
}
.content-qrcode {
width: 80px;
text-align: center;
}
.content-time {
width: 156px;
text-align: center;
......@@ -471,40 +422,6 @@ export default {
.content-number {
padding-left: 18px;
}
.content-code-box {
text-align: center;
.show-box {
position: absolute;
width: 135px;
background: rgba(255, 255, 255, 1);
box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.13);
overflow: hidden;
font-size: 12px;
color: rgba(155, 155, 155, 1);
line-height: 17px;
p {
padding: 0;
margin: 0;
cursor: pointer;
}
.copy-address {
padding-top: 6px;
padding-bottom: 12px;
}
.imgbox {
margin-left: 15px;
margin-top: 12px;
margin-bottom: 6px;
width: 106px;
height: 106px;
padding: 0;
img {
width: 100%;
height: 100%;
}
}
}
}
.set-menu {
z-index: 1;
position: absolute;
......
src/entry/gs/images/SigIn/logo.png

18.6 KB | W: | H:

src/entry/gs/images/SigIn/logo.png

26.9 KB | W: | H:

src/entry/gs/images/SigIn/logo.png
src/entry/gs/images/SigIn/logo.png
src/entry/gs/images/SigIn/logo.png
src/entry/gs/images/SigIn/logo.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -34,7 +34,7 @@ export default {
position: absolute;
left: 26px;
top: 14px;
width: 98px;
width: 229px;
height: 36px;
background: url("../images/SigIn/logo.png") no-repeat center;
background-size: 100% 100%;
......
......@@ -6,58 +6,37 @@
<div class="icon_box">
<i class="iconfont iconxingzhuang1"></i>
</div>
<span
class="title"
:class="{ title__check: this.$store.state.selectedStatus === 1 }"
>存证记录</span
>
<span class="title" :class="{ title__check: this.$store.state.selectedStatus === 1 }">存证记录</span>
<span class="num">{{ getGoods }}</span>
</li>
<li @click="checkTwo">
<div class="icon_box icon_box__green">
<i class="iconfont iconjilu-"></i>
</div>
<span
class="title"
:class="{ title__check: this.$store.state.selectedStatus === 2 }"
>模板管理</span
>
<span class="title" :class="{ title__check: this.$store.state.selectedStatus === 2 }">模板管理</span>
<span class="num">{{ getTemplate }}</span>
</li>
<li @click="checkThree">
<div class="icon_box icon_box__orange">
<i class="iconfont iconshanchu2"></i>
</div>
<span
class="title"
:class="{ title__check: this.$store.state.selectedStatus === 3 }"
>已删除</span
>
<span class="title" :class="{ title__check: this.$store.state.selectedStatus === 3 }">已删除</span>
<span class="num">{{ deleteds }}</span>
</li>
</ul>
</div>
<!-- 左侧列 -->
<div
class="col_right"
:class="{ 'col_right--show': this.$store.state.selectedStatus === 1 }"
>
<product-list @update="update"></product-list>
<div class="col_right" :class="{ 'col_right--show': this.$store.state.selectedStatus === 1 }">
<product-list @update="update" ref="child"></product-list>
</div>
<!-- 右侧列 -->
<div
class="col_right"
:class="{ 'col_right--show': this.$store.state.selectedStatus === 2 }"
>
<div class="col_right" :class="{ 'col_right--show': this.$store.state.selectedStatus === 2 }">
<!-- 模板 -->
<template-manage></template-manage>
</div>
<div
class="col_right"
:class="{ 'col_right--show': this.$store.state.selectedStatus === 3 }"
>
<div class="col_right" :class="{ 'col_right--show': this.$store.state.selectedStatus === 3 }">
<!-- 已删除 -->
<deleted :ToUpdate="ToUpdate"></deleted>
</div>
......@@ -79,8 +58,8 @@ import CommonDialog from "@/components/CommonDialog.vue";
productList,
TemplateManage,
deleted,
CommonDialog,
},
CommonDialog
}
})
export default class Template extends Vue {
[x: string]: any;
......@@ -111,6 +90,8 @@ export default class Template extends Vue {
// 显示存证
checkOne() {
this.$store.commit("setSelectedStatus", 1);
let child: any = this.$refs.child;
child.getList();
this.trigger = !this.trigger;
}
// 显示模板管理
......@@ -152,7 +133,7 @@ export default class Template extends Vue {
color: rgba(53, 53, 53, 1);
}
.title__check {
color: #0CC399;
color: #0cc399;
}
.num {
font-size: 12px;
......
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