2023年1月4日
摘要: 1、先获取用户是否授权地理定位,如果没有让其跳转到设置页面手动开启(获取到的位置是经纬度,需要借助其他地图SDK的地址逆解析获取省市区的名字) getSetting() { wx.getSetting({ success: (res) => { if (res.authSetting['scope. 阅读全文
posted @ 2023-01-04 14:27 Yseraaa 阅读(1777) 评论(0) 推荐(0)
2022年12月5日
摘要: text标签嵌套后添加事件无效,如下onTap是不触发的,解决方法:将最外层text改成view <text bindtap="onTap"><text>这里是一段文字</text></text> 在引入echarts图表的页面不能使用overflow:hidden,否则会滚动抖动,弹窗使用cove 阅读全文
posted @ 2022-12-05 10:36 Yseraaa 阅读(39) 评论(0) 推荐(0)
2022年8月19日
摘要: 1. 打开dart官网 获取 Dart SDK | Dart 2. 安装Chocolatey,以管理员身份打开cmd,输入下面代码 Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]:: 阅读全文
posted @ 2022-08-19 11:37 Yseraaa 阅读(118) 评论(0) 推荐(0)
2022年5月26日
摘要: 1. 安装淘宝镜像 npm install cnpm -g 2. 安装express cnpm install express --save 3. 安装express生成器 cnpm install express-generator -g 4. 生成项目 express --view=pug my 阅读全文
posted @ 2022-05-26 13:57 Yseraaa 阅读(41) 评论(0) 推荐(0)
2021年11月23日
摘要: <template> <div :id="id" :style="{width: `${width}`, height: `${height}`}" ></div> </template> <script> let echarts = require('echarts/lib/echarts') r 阅读全文
posted @ 2021-11-23 16:54 Yseraaa 阅读(255) 评论(0) 推荐(0)
摘要: 1. 首先安装oss npm install ali-oss --save 2. // template部分 <Upload ref="upload" type="drag" :default-file-list="file" action="" :before-upload="handleBefo 阅读全文
posted @ 2021-11-23 13:39 Yseraaa 阅读(735) 评论(0) 推荐(0)
2021年10月22日
摘要: 1. 设置动态根字号大小,/public/phone-adapt.js,在index.html中引入 (function (doc, win) { const docEl = win.document.documentElement; const resizeEvt = 'orientationch 阅读全文
posted @ 2021-10-22 13:21 Yseraaa 阅读(388) 评论(0) 推荐(0)
2021年10月21日
摘要: <template> <div class="content"> <div :class="[isOpen ? 'text' : 'text m']" ref="text"> <div v-if="isShow"> <label class="btn" @click="open" v-show="! 阅读全文
posted @ 2021-10-21 16:15 Yseraaa 阅读(225) 评论(0) 推荐(0)
2021年10月9日
摘要: componentDidMount() { this.getWxConfig() } getWxConfig () { // 请求后台接口拿到 data信息 wx.config({ debug: false, appId: data.appId, // 必填,公众号的唯一标识 timestamp: 阅读全文
posted @ 2021-10-09 09:34 Yseraaa 阅读(688) 评论(0) 推荐(0)
2021年9月28日
摘要: 1. 这里使用react-router-config配置静态路由 npm install react-router-dom--save npm install react-router-config --save "react-router-config": "^5.1.1", "react-rou 阅读全文
posted @ 2021-09-28 14:16 Yseraaa 阅读(698) 评论(0) 推荐(0)