会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
海里的鱼-L
博客园
首页
新随笔
联系
订阅
管理
2021年4月7日
移动端 - 另一种axios
摘要: 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
阅读(48)
评论(0)
推荐(0)
2020年12月28日
vue 中 axios 和 接口请求
摘要: 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
阅读(60)
评论(0)
推荐(0)
vue中 单张图片 存为本地Base64 进行上传
摘要: 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
阅读(673)
评论(0)
推荐(0)
vue中下载Excel模板文件
摘要: let fileName = '****'; downExcel(fileName).then(res => { // 请求下载接口 // 处理返回的文件流 const content = res; const blob = new Blob([content]); const fileName =
阅读全文
posted @ 2020-12-28 14:04 海里的鱼-L
阅读(985)
评论(0)
推荐(0)
2020年5月25日
vue中的一个 Echarts 和 点击事件
摘要: 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
阅读(8340)
评论(0)
推荐(1)
2020年5月23日
微信小程序的传参
摘要: 传参 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
阅读(144)
评论(0)
推荐(0)
vue中动态加载图片地址
摘要: 用 require 就可以了 <img style="width: 20px;height: 24px;" :src="require(url)" alt="" />
阅读全文
posted @ 2020-05-23 10:54 海里的鱼-L
阅读(621)
评论(0)
推荐(0)
微信小程序的录音、图片上传
摘要: 思路:微信小程序中的录音文件存放地址是临时地址,所以发送给后台时是需要用wx.saveFile() 先下载到本地,地址变为本地地址,然后再上传给后台 。 录音上传 // 录音功能 start() {// console.log('开始录音') const recorderManager = wx.g
阅读全文
posted @ 2020-05-23 10:49 海里的鱼-L
阅读(857)
评论(0)
推荐(0)
2019年12月21日
vue+element 中 el-input框 限制只能输入数字及一位小数
摘要: 仅个人经验,希望能帮到有需要的人。 第一次写 就话不多说了直接上代码。 <el-input @keyup.native="proving(index)" v-model="item.Price"></el-input> // 只能输入数字且只有一位小数 proving(e) { // this.fo
阅读全文
posted @ 2019-12-21 14:40 海里的鱼-L
阅读(15317)
评论(1)
推荐(2)
公告