文章分类 - Uniapp --- 开发问题
摘要:1、下载插件: https://ext.dcloud.net.cn/plugin?name=uni-nav-bar 2、页面引入: <template> <view class="container"> <uni-nav-bar :fixed="true" status-bar class="nav
阅读全文
摘要:悬浮前: 悬浮后: <view class="content"> <!-- 轮播 --> <swiper class="swiper" :indicator-dots="true" autoplay interval> <swiper-item> <image mode="aspectFill" s
阅读全文
摘要:1、下图是高德地图开放平台设置的项目的包名 2、下图是app打包时设置的包名 看这两个地方的包名设置的是否一样,不一样的话修改一下就可以了。亲测有效
阅读全文
此应用 DCloud APPID 非当前账号所有,请联系应用所有者(即此Appid的创建者)设置你的账号为协作者(在https://dev.dcloud.net.cn操作),或重新生成 APPID 后
摘要:解决办法:在manifest.json中重新获取下应用标识
阅读全文
摘要:报错信息: 报错原因: 1、token太长 2、域名的证书链有问题,请检查你的域名的证书链。 报错导致的结果: 微信小程序模拟器可以正常登录,但手机真机真机登录不了 解决办法: 检查域名问题 最后,解决证书问题即可。
阅读全文
摘要:父子传值,报错代码: 报错信息: Props with type Object/Array must use a factory function to return the default value.(数组/对象的默认值应当由一个工厂函数返回) 解决办法: 1、箭头函数 props: { act
阅读全文
摘要:插件下载地址:https://ext.dcloud.net.cn/plugin?id=6983 我这里使用 npm install echarts --save 安装比较慢,采用了下面方法: 1.将插件下载下来; 2. 将node_modules文件夹和package.json文件夹复制到项目根目录
阅读全文
摘要:插件下载地址:https://ext.dcloud.net.cn/plugin?id=7622#detail <view class="marker"> <map id="map" style="width: 100vw; height: 100vh;" :scale="scale" :latitu
阅读全文
摘要:<view class="content"> <view class="video-wrap"> <video id="myVideo" :src="src" @error="videoErrorCallback" :danmu-list="danmuList" show-fullscreen-bt
阅读全文
摘要:报错信息: 解决办法: 微信开发者工具 → 点击右上角详情 → 本地设置: 将基础库版本调低,直到不再报错。
阅读全文
摘要:1、时间格式仅支持 "/" 拼接(例如:2022/05/08),不支持 "-" 拼接(例如:2022-05-08)。 2、uni-app 页面上下滑动,且页面中并未使用scroll-view标签,但是 ios出现回弹 { "path" : "pages/index/index", "style":{
阅读全文
摘要:悬浮前: 悬浮后: <template> <view class="container"> <view class="top-wrap"> <view class="txt">为您推荐~</view> </view> <!-- 商品列表 --> <view class="goods-wrap" :c
阅读全文
摘要:效果如下:点击地图显示气泡和视频 <template> <view class="map-wrap"> <map class="map" :markers="markers" :latitude="latitude" :longitude="longitude" :scale="16" @marke
阅读全文
摘要:markers: [{ iconPath: '/static/shop.png', id: 1, width: 24, height: 38, latitude: 30.172792900, longitude: 120.2133285343 callout: { content: "店铺", //
阅读全文
摘要:1、打开manifest.json文件,微信小程序配置: 勾选位置接口。填写获取附近店铺位置 2、 app.json文件中添加: requiredPrivateInfos "permission": { //勾选过位置接口的这里会自动编译显示 "scope.userLocation": { "des
阅读全文
摘要:1、下载table插件: https://ext.dcloud.net.cn/plugin?id=413 2、引入并使用: <template> <view class="warp"> <view class="box"> <view class="title">默认效果</view> <t-tab
阅读全文
摘要:<template> <view> <image class="head-bg" src="../../static/img1.png" @click="showpopup=!showpopup"/> <view class="mask-wrap" @touchstart="touchStart"
阅读全文
摘要:HTML代码: <template> <view class="relative"> <image class="bg" src="../../static/bj.png"></image> <view class="rotate-wrap"> <image src="../../static/zh
阅读全文
摘要:报错:不能在子组件中修改父组件传过来的值 解决办法:子组件给父组件传值,在父组件中修改值。
阅读全文
摘要:在onUnload中清除,只对非tabBar页面有效。 onShow(){ this.timer = setInterval(()=>{ this.number++; console.log("21",this.number); },1000) }, onUnload(){ clearInterva
阅读全文

浙公网安备 33010602011771号