随笔分类 - 微信接口
微信接口
摘要:<view class="container"> <view class="my-view" style="{{viewData.style}}"> <image src="/images/abc.png" mode="widthFix"/> </view> </view> .my-view{ wi
阅读全文
摘要:微信小程序设置scss编译 方法一:现在微信开发者工具已经继承了,只要在project.config.json配置文件中修改即可。 方法二:在vs中安装easysass插件,微信开发者工具支持导入vs现有插件(应该也可以安装),之后再插件目录下配置文件,少量修改. 方法一: 选择小程序项目下的pro
阅读全文
摘要:直播间点赞动画 https://blog.csdn.net/weixin_50450473/article/details/129185936 https://blog.csdn.net/weixin_46837985/article/details/105852711 https://blog.c
阅读全文
摘要:解决办法: 在自定义组件内获取必须用SelectorQuery.in() Component({ lifetimes: { ready() { const query = wx.createSelectorQuery().in(this) const num = Math.ceil(this.dat
阅读全文
摘要:腾讯即时通讯简单1 IM即时通讯 1. 快速跑通https://cloud.tencent.com/document/product/269/68376#.E6.AD.A5.E9.AA.A41.EF.BC.9A.E5.88.9B.E5.BB.BA.E9.A1.B9.E7.9B.AE 2. 无UI继承
阅读全文
摘要:// 创建工作簿 const workbook = XLSX.utils.book_new(); // 创建工作表数据 let worksheet_data = [ ["用户ID", "用户昵称", "红包","所属邀请人","直播1a观看时长","红包1a","直播1c观看时长","红包1c"],
阅读全文
摘要:微信小程序本地读取xls文件: 其中用到一个js-xlsx库:https://docs.sheetjs.com/docs/demos/frontend/vue/ , 主要思路是 1. 通过 wx.chooseMessageFile 上传文件,获得一个临时地址 tempFilePath 。 (这个地址
阅读全文
摘要:前言 富文本编辑器,可以对图片、文字进行编辑。 编辑器导出内容支持带标签的 html和纯文本的 text,编辑器内部采用 delta 格式进行存储。 通过setContents接口设置内容时,解析插入的 html 可能会由于一些非法标签导致解析错误,建议开发者在小程序内使用时通过 delta 进行插
阅读全文
摘要:编辑器wxml <view class="container" style="height:{{editorHeight}}px;"> <editor id="editor" class="ql-container" placeholder="{{placeholder}}" bindstatusc
阅读全文
摘要:1.标记图标 <view class="top"> <map wx:if="{{markersStatus}}" class="map" id="myMap" scale="{{scale}}" longitude="{{longitude}}" latitude="{{latitude}}" ma
阅读全文
摘要:页面wxml <!--page/index/index.wxml--> <view id='demo'> <text>哈哈哈哈哈</text> <view>哈哈哈哈哈</view> </view> js文件 onLoad: function(options) { //创建节点选择器 var quer
阅读全文
摘要:Some selectors are not allowed in component wxss, including tag name selectors, ID selectors, and attribute selectors。 译 : 组件和引用组件的页面不能使用id选择器(#a)、属性选
阅读全文
摘要:原因是在HBulider X中没有配置APPID 转 : https://blog.csdn.net/weixin_42349568/article/details/110943219
阅读全文
摘要:问题:页面全屏播放视频,如果视频上面有其他元素,点击事件将失效 原生组件的层级是最高的,所以页面中的其他组件无论设置 z-index 为多少,都无法盖在原生组件上。 后插入的原生组件可以覆盖之前的原生组件。 原生组件还无法在 scroll-view、swiper、picker-view、movabl
阅读全文
摘要:发现微信小程序的wx.request无法post提交上传文件. 1.是微信小程序没有提供fromdata对象,(也就是无法把表单的内容封装成fromdata数据) 2.微信小程序也没有file的表单元素。(应该腾讯不想我们通过wx.request上传文件,让我们用wx.upload去每次一个一个的上
阅读全文
摘要:1、静态赋值 <img class="imgs-coat" v-for="(item,index) in coatImgs" :key="item.coatImg" :src="item.coatImg" alt="" data-item="123" @click="chooseCoat($even
阅读全文
摘要:// item 为 chooseImage 返回的图片 path let buffer = wx.getFileSystemManager().readFileSync(item) wx.cloud.callFunction({ name:'printedTextOCR', data: { buff
阅读全文
摘要:/** * * */ test: async function(){ let that = this; console.log(1); await that.getCanvasImg().then(function(res){ console.log(res); console.log(2); })
阅读全文
摘要:项目中小程序遇到大图片生成的需求,需要传递一个参数,然后从服务端获取生成到的长图。微信本身的wx.download()只提供Get请求,不提供POST请求方式下载。所以使用wx.request请求到arraybuffer存入本地文件。 wx.request({ url: pathUrl,//请求地址
阅读全文