摘要: 在assets下新建metamask.js import { ethers } from "ethers"; //版本号为 "ethers": "^4.0.47", import { buildLoginNonce } from '@/api/register' //请求接口后台返回随机验证码 /* 阅读全文
posted @ 2023-04-27 11:57 龙卷风吹毁停车场 阅读(282) 评论(0) 推荐(0)
摘要: 在assets下新建web3.js文件 import { Message } from 'element-ui'; import { ethers } from "ethers"; //版本号为 "ethers": "^4.0.47", import Tabi from './Tabi.json'; 阅读全文
posted @ 2023-04-27 11:13 龙卷风吹毁停车场 阅读(1119) 评论(0) 推荐(0)
摘要: 在components中新建文件 iconSvg新建index.vue <template> <svg aria-hidden="true" class="svg-icon" v-bind="$attrs" @click="svgChong"> <use :xlink:href="icon" /> 阅读全文
posted @ 2023-04-27 11:08 龙卷风吹毁停车场 阅读(278) 评论(0) 推荐(0)
摘要: 在assets下新建tool.js文件 function countDownFun(time) { time--; let nowTime = new Date().getTime(); // 获取当前时间 if (time >= nowTime) { var secondTime = 0 //秒 阅读全文
posted @ 2023-04-27 10:30 龙卷风吹毁停车场 阅读(490) 评论(0) 推荐(0)