随笔分类 - 微信小程序
摘要:下载最新版本的微信开发者工具时,会发现调试器中不显示AppData和Storage选项,我们可以打开电脑C盘找到 C:\Users\你的用户名\AppData\Local\微信开发者工具\User Data\一串MD5\WeappPlugin这个文件删掉,再重新启动就可以了,AppData和Stor
阅读全文
摘要:单独写了组件,结果运行没有问题,真机测试一直出现找不到组件的问题。 组件的json文件里面,一定要加 “component”: true, { "navigationBarTitleText": "导航栏组件", "component": true, "usingComponents": {} }
阅读全文
摘要:最近学习Vant Weapp的组件库,结果构建npm的时候出错了,回去查了官方文档,原来要修改project.config.json文件 npm init npm i @vant/weapp -S --production 开发者工具创建的项目,miniprogramRoot默认为 miniprog
阅读全文
摘要:如需自取,完整项目源码:https://gitee.com/vxsoft/online-h 若对你有帮助,烦请star一个 请给我一面国旗@微信官方,先上生成的头像效果图 小程序的制作国庆头像的页面 利用 canvas 绘制头像: 核心代码: wx.canvasToTempFilePath({ x:
阅读全文
摘要:<!--公告--> <!-- <view class="notice_box"> <view class="notice"> <image src="/images/notice-icon.png"></image> </view> <view class="swiper_box"> <swiper
阅读全文
摘要:background: linear-gradient(to right, #34b5e2, #04bafc);
阅读全文
摘要:一开始我以为是border-radius属性设置错地方了。于是就全部给他们加上试了一试 html <swiper class="banner" indicator-dots="true" autoplay="true" interval="1600" duration="1000" circular
阅读全文
摘要:由于视频广告组件的z-index:99 所以自定义的nav需要设置1200
阅读全文
摘要:真机调试出现错误,"request:fail -102:net::ERR_CONNECTION_REFUSED"。 解决“不是request合法域名问题” 解决 net::ERR_CONNECTION_REFUSED 若不是以上两种情况导致的问题,那就采用以下解决方法 1,手机与电脑同一网络 2,
阅读全文
摘要:.wx-swiper-dots{position:relative;left: unset!important;right: 0;} .wx-swiper-dots.wx-swiper-dots-horizontal{ margin-bottom: -5rpx; }
阅读全文
摘要:swiper中轮番播放三个色块,父容器的class为"container"时不能显示出来,现象为白屏,当把container改为其它即可,container应该为swiper的保留字符, //container改为其他,如:mycontainer <view class="container"> <
阅读全文
摘要:效果如下图: .nav-item.active{ position: relative; } .nav-item.active:after { content: " "; width: 0.8rem; height: 0.12rem; background: #fff; position: abso
阅读全文
摘要:引入微信内置的video组件时,出现如下错误 TypeError: Cannot read property 'elem' of undefined at M (VM4401 WAService.js:2) at VM4401 WAService.js:2 at VM4401 WAService.j
阅读全文
摘要:错误信息如下: 导入数据库失败, Error: Poll error, 导入数据任务(id:528440)异常,错误信息:line 1, column 750: bare " in non-quoted-field 导入数据库失败, Error: Poll error, 导入数据任务(id:5284
阅读全文
摘要:
阅读全文
摘要:顶端固定 <view class="page__hd" style="position:fixed; top:0;width: 750rpx;"> </view> 底端固定 <view class="page__hd" style="position:fixed; bottom:0;width: 7
阅读全文
摘要:1,General 2,源码管理 3,构建触发器 4,构建环境 5,Pre Steps 6,Bulid 7,Post Steps Post Steps 执行的命令: #!/bin/bashecho "execute shell start to cp project "cd /usr/soft/vx
阅读全文