摘要:
//获取当前的地理位置、速度 wx.getLocation({}) //使用微信内置地图查看位置 wx.getLocation({}) //打开地图选择位置 wx.chooseLocation({}) 官方文档链接:https://developers.weixin.qq.com/miniprogr 阅读全文
posted @ 2022-01-12 17:27
天空中的云~飞起来了
阅读(105)
评论(0)
推荐(0)
摘要:
将uview-ui文件放在项目文件根目录下面 uview-ui.zip 配置步骤 1. 引入uView主JS库 在项目根目录中的main.js中,引入并使用uView的JS库,注意这两行要放在import Vue之后。 // main.js import uView from "uview-ui"; 阅读全文
posted @ 2022-01-12 11:02
天空中的云~飞起来了
阅读(439)
评论(0)
推荐(0)
摘要:
<template> <view style="width: 100%;" > <web-view :src="allUrl"></web-view> </view> </template> <script> export default { data() { return { src: '', a 阅读全文
posted @ 2022-01-12 10:54
天空中的云~飞起来了
阅读(915)
评论(0)
推荐(0)
摘要:
// 下载关键测试代码如下 downloadFileAction() { const downloadTask = uni.downloadFile({ url: 'http://www.test.com/文件.zip', //仅为示例,并非真实的资源 success: (res) => { if 阅读全文
posted @ 2022-01-12 10:48
天空中的云~飞起来了
阅读(847)
评论(0)
推荐(0)
摘要:
<video :src="class_info.video_audio_url" id="myVideo" :poster="imgurl" @timeupdate="videoTimeUpdateEvent"></video> data() { return { videoContext: {}, 阅读全文
posted @ 2022-01-12 10:47
天空中的云~飞起来了
阅读(611)
评论(0)
推荐(0)
摘要:
plus.runtime.getProperty(plus.runtime.appid, (wgtinfo) => { console.log(wgtinfo) wgtinfo.version; //1.1.6 wgtinfo.versionCode; //116 } 阅读全文
posted @ 2022-01-12 10:35
天空中的云~飞起来了
阅读(876)
评论(0)
推荐(0)
摘要:
uni.$emit uni.$emit('update',{msg:'页面更新'}) uni.$on uni.$on('update',function(data){ console.log('监听到事件来自 update ,携带参数 msg 为:' + data.msg); }) https:// 阅读全文
posted @ 2022-01-12 10:07
天空中的云~飞起来了
阅读(93)
评论(0)
推荐(0)
摘要:
问题:在使用uniapp开发手机App时,因为HBuildX创建的应用默认是沉浸式样式,如果去除自带的导航栏之后,页面会直通手机顶部状态栏,解决办法如下: 方法1:使用uniapp官方文档提供的解决方案 https://uniapp.dcloud.io/collocation/pages?id=cu 阅读全文
posted @ 2022-01-12 10:02
天空中的云~飞起来了
阅读(837)
评论(0)
推荐(0)
浙公网安备 33010602011771号