会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
高山仰行,景行行止
人不是有机体的集合,是经历的集合。
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
下一页
2022年4月28日
自定义日历
摘要:
data() { return { selDat: "", //当前选择的标记 overMoon: "", //结束日期 disableDay: [], //禁止选择日期 time: [], //时间段 selTimeArr: [], //选择的时间 year: "", moon: "", day:
阅读全文
posted @ 2022-04-28 15:21 小万子呀
阅读(66)
评论(0)
推荐(0)
2022年4月8日
自定义小程序导航栏,获取导航栏高度
摘要: let stateHeight = ""; //任务栏高度 wx.getSystemInfoAsync({ success: (result) => { stateHeight = result.statusBarHeight; //状态栏高度 let sum = ""; sum = stateHe
阅读全文
posted @ 2022-04-08 09:23 小万子呀
阅读(595)
评论(0)
推荐(0)
小程序获取用户授权
摘要: <button @click="getuserinfo">授权登录</button> // 获取用户授权信息 getuserinfo(e) { uni.getUserProfile({ desc: "获取你的昵称、头像、地区及性别", success: (res) => { this.getUser
阅读全文
posted @ 2022-04-08 09:21 小万子呀
阅读(253)
评论(0)
推荐(0)
小程序检测用户是否授权过
摘要: isLogin() { uni.login({ provider: "weixin", success: (res) => { this.$require({ url: "xxxxxxx", data: { code: res.code, }, }).then((res) => { if (res.
阅读全文
posted @ 2022-04-08 09:19 小万子呀
阅读(291)
评论(0)
推荐(0)
2022年4月6日
防抖
摘要: <Input style="width:200px" @on-change="saveAll" /> export default { data(){ return{ timer: null, // 用于临时存放计时器 } }, methods: { saveAll () { if (this.ti
阅读全文
posted @ 2022-04-06 12:15 小万子呀
阅读(33)
评论(0)
推荐(0)
2022年3月28日
vue 通过axios下载文件
摘要: //准备工作 npm i axios npm install js-file-download --save //https://github.com/kennethjiang/js-file-download //vue2.x //main.js //添加到原型中 import axios fro
阅读全文
posted @ 2022-03-28 09:49 小万子呀
阅读(1434)
评论(0)
推荐(0)
2022年3月23日
vue3使用axios上传文件
摘要: //下载axios npm i axios //在main.js挂载到全局 import axios from "axios"; const app = createApp(App); app.config.globalProperties.$axios = axios; //页面使用 <templ
阅读全文
posted @ 2022-03-23 11:18 小万子呀
阅读(3048)
评论(0)
推荐(2)
vue3中将axios添加到原型对象中
摘要: npm i axios main.js import axios from "axios"; const app = createApp(App); app.config.globalProperties.$axios = axios; 页面使用 import { getCurrentInstanc
阅读全文
posted @ 2022-03-23 10:42 小万子呀
阅读(226)
评论(0)
推荐(0)
2022年3月18日
vue3使用ECharts地图配置高德地图实现往下钻效果
摘要:
/*准备工作*/ //安装echarts npm install echarts //index.html文件中加入这俩行代码 <script src='https://webapi.amap.com/maps?v=1.3&key=你申请的key&plugin=AMap.DistrictSearch
阅读全文
posted @ 2022-03-18 11:19 小万子呀
阅读(1452)
评论(0)
推荐(0)
2022年3月14日
uniapp h5使用map跨域问题
摘要:
npm init -y //初始化一下项目 npm i vue-jsonp //下载jsonp 不初始化无法下载 //main.js中引入 import {VueJsonp} from 'vue-jsonp' Vue.use(VueJsonp) //h5 将经纬度转换成地址 getUserLocat
阅读全文
posted @ 2022-03-14 15:29 小万子呀
阅读(669)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
下一页
公告