摘要: 1.在index.html 引入js文件 <script src="https://3gimg.qq.com/lightmap/components/geolocation/geolocation.min.js"></script> 2.在需要页面中 created() { this.getMyLo 阅读全文
posted @ 2021-05-11 08:42 三线码工 阅读(1064) 评论(0) 推荐(0) 编辑
摘要: 1.安装nodejs 2.安装electron(主程序) npm install electron -g 3、安装electron-packager(打包用) npm install electron-packager -g 4.uniapp的manifest.json修改 5.h5打包 6.h5文 阅读全文
posted @ 2021-04-15 12:05 三线码工 阅读(3757) 评论(0) 推荐(0) 编辑
摘要: MP4格式视频在线测试使用 惊奇队长 http://vfx.mtime.cn/Video/2019/02/04/mp4/190204084208765161.mp4 http://vfx.mtime.cn/Video/2019/03/21/mp4/190321153853126488.mp4 紧急救 阅读全文
posted @ 2021-02-22 15:06 三线码工 阅读(2976) 评论(1) 推荐(0) 编辑
摘要: <el-checkbox-group v-model="checkList"> <el-checkbox v-for="(it,i) in rolerList" :key="i" :label="it.id+''" > {{it.title}} </el-checkbox> 多选框,label是用户 阅读全文
posted @ 2021-01-05 10:10 三线码工 阅读(1269) 评论(0) 推荐(1) 编辑
摘要: { //收藏 "path": "pages/collect", "style": { "navigationBarTitleText":"收藏", "app-plus": { "titleNView": { "titleSize": "36rpx", "buttons": [ { "float": 阅读全文
posted @ 2020-12-21 21:57 三线码工 阅读(5558) 评论(0) 推荐(0) 编辑
摘要: uniapp APP取消导航栏与通知状态重合解决办法 方法1 <view class="status_bar"> <!-- 这里是状态栏,放在最顶部, --> </view> .status_bar { height: var(--status-bar-height);//默认状态高度,撑起高度 w 阅读全文
posted @ 2020-12-19 19:07 三线码工 阅读(1035) 评论(0) 推荐(0) 编辑
摘要: 在comment文件夹创建一个js文件 const fun1 = function(){ console.log(1) } const fun2 = function() { console.log(2) return "666" } //声明函数,可以被引用 module.exports = { 阅读全文
posted @ 2020-12-09 09:51 三线码工 阅读(2976) 评论(0) 推荐(0) 编辑
摘要: index.vue <template> <view> <view class=""> 当前经度:{{local.long}} 当前纬度:{{local.lat}} </view> <view v-if="!hasLogin"> 游客你好{{hasLogin}} </view> <view v-if 阅读全文
posted @ 2020-12-08 20:18 三线码工 阅读(1329) 评论(0) 推荐(0) 编辑
摘要: <script> export default { onLaunch: function() { console.log('App Launch'); plus.screen.lockOrientation('landscape-primary'); //锁定 }, onShow: function 阅读全文
posted @ 2020-11-27 15:39 三线码工 阅读(3052) 评论(0) 推荐(0) 编辑
摘要: 1.安装element UI npm i element-ui -S 在main.js 中 引入element import ElementUI from 'element-ui' import 'element-ui/lib/theme-chalk/index.css' Vue.use(Eleme 阅读全文
posted @ 2020-11-26 22:08 三线码工 阅读(474) 评论(0) 推荐(0) 编辑
摘要: "app-plus": {"titleNView": false} 将所有的顶部导航条去掉 "style":{ "app-plus":{ "titleNView":false } } 单页面去除导航条 阅读全文
posted @ 2020-11-26 14:33 三线码工 阅读(466) 评论(0) 推荐(0) 编辑
摘要: 在项目中打开cmd窗口 npm init -y 根目录会多出一个 package.json 文件。 如果想要使用微信的jssdk包直接下载就可以了 npm install weixin-js-sdk --save-dev 安装完成后,根目录会多出一个 node_modules 文件夹 阅读全文
posted @ 2020-11-26 14:24 三线码工 阅读(3844) 评论(0) 推荐(0) 编辑
摘要: 首先安装git,选择版本进行安装。推荐使用淘宝镜像安装 https://npm.taobao.org/mirrors/git-for-windows/ 接下来注册码云账号。。。。。 刚注册的账号需要有shh公钥 https://gitee.com/help/articles/4181#article 阅读全文
posted @ 2020-11-24 20:49 三线码工 阅读(1350) 评论(0) 推荐(0) 编辑
摘要: 都是处理异步请求的 // 申明一个异步方法 async function testAsync() { return "hello async"; } const result = testAsync(); console.log(result); // 输出 Promise 对象。async 函数会 阅读全文
posted @ 2020-11-21 16:55 三线码工 阅读(453) 评论(0) 推荐(0) 编辑
摘要: uniapp微信小程序使用Vant Weappui框架方法 1. 在根目录下创建wxcomponents,wxcomponents下建文件夹vant 2.项目引入 1.在https://github.com/youzan/vant-weapp下载最新的zip压缩包2.解压,将里面的dist文件放到v 阅读全文
posted @ 2020-08-17 11:40 三线码工 阅读(4183) 评论(3) 推荐(0) 编辑