摘要: 自定义日历 data() { return { selDat: "", //当前选择的标记 overMoon: "", //结束日期 disableDay: [], //禁止选择日期 time: [], //时间段 selTimeArr: [], //选择的时间 year: "", moon: "", day: 阅读全文
posted @ 2022-04-28 15:21 小万子呀 阅读(66) 评论(0) 推荐(0)
摘要: 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)
摘要: <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)
摘要: //准备工作 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)
摘要: //下载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)
摘要: 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)
摘要: 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)
摘要: 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)