摘要: import axios from "axios"; import Cookies from "js-cookie"; import { Toast } from "vant"; const NODE_ENV = process.env.NODE_ENV; const BASEURL = NODE_ 阅读全文
posted @ 2021-04-07 11:38 海里的鱼-L 阅读(43) 评论(0) 推荐(0) 编辑
摘要: import axios from "axios"; import { Message } from "element-ui"; import router from "../router/index"; const NODE_ENV = process.env.NODE_ENV; let http 阅读全文
posted @ 2020-12-28 14:46 海里的鱼-L 阅读(57) 评论(0) 推荐(0) 编辑
摘要: HTML部分 <input @change="uploadPhoto($event)" type="file" class="kyc-passin"> <span style="color: #777A7D">只能上传jpg/png文件,且不超过2MB</span> <div v-show="for 阅读全文
posted @ 2020-12-28 14:27 海里的鱼-L 阅读(648) 评论(0) 推荐(0) 编辑
摘要: let fileName = '****'; downExcel(fileName).then(res => { // 请求下载接口 // 处理返回的文件流 const content = res; const blob = new Blob([content]); const fileName = 阅读全文
posted @ 2020-12-28 14:04 海里的鱼-L 阅读(970) 评论(0) 推荐(0) 编辑
摘要: HTML部分 <div class="Msg-curve" id="curveEcharts"></div> JS部分 // main.js中全局引入echarts然后调用 this.$echarts let myChart = this.$echarts.init(document.getElem 阅读全文
posted @ 2020-05-25 14:16 海里的鱼-L 阅读(8326) 评论(0) 推荐(1) 编辑
摘要: 传参 let msg = JSON.stringify(e.currentTarget.dataset.item); wx.navigateTo({ url: '/pages/gam/conponent/gamdetail/gamdetail?msg=' + msg }) 接收 /* 生命周期函数- 阅读全文
posted @ 2020-05-23 10:59 海里的鱼-L 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 用 require 就可以了 <img style="width: 20px;height: 24px;" :src="require(url)" alt="" /> 阅读全文
posted @ 2020-05-23 10:54 海里的鱼-L 阅读(614) 评论(0) 推荐(0) 编辑
摘要: 思路:微信小程序中的录音文件存放地址是临时地址,所以发送给后台时是需要用wx.saveFile() 先下载到本地,地址变为本地地址,然后再上传给后台 。 录音上传 // 录音功能 start() {// console.log('开始录音') const recorderManager = wx.g 阅读全文
posted @ 2020-05-23 10:49 海里的鱼-L 阅读(765) 评论(0) 推荐(0) 编辑
摘要: 仅个人经验,希望能帮到有需要的人。 第一次写 就话不多说了直接上代码。 <el-input @keyup.native="proving(index)" v-model="item.Price"></el-input> // 只能输入数字且只有一位小数 proving(e) { // this.fo 阅读全文
posted @ 2019-12-21 14:40 海里的鱼-L 阅读(15161) 评论(1) 推荐(2) 编辑