摘要:
转码 var url = "https://www.example.com/页面"; // 需要跳转的链接包含中文字符var encodedUrl = encodeURIComponent(url); // 对链接进行编码window.location.href = encodedUrl; // 通 阅读全文
摘要:
图片压缩js import ImageCompressor from 'image-compressor.js'; export function compressFile(file) { return new Promise((resolve, reject) => { const options 阅读全文
摘要:
<scroll-view scroll-y class="right-box" :scroll-top="scrollRightTop" @scrolltolower="onreachBottom" :refresher-enabled="true" :refresher-triggered="tr 阅读全文
摘要:
去除微信小程序里面的button边框 方法一:通过button::after button::after{ border: none; } 方法二:给button按钮加上plain属性,属性值为true <button plain="true"></button> 然后设置样式就可以去除边框了 bu 阅读全文
摘要:
<el-col :span="16" id="labelStyle"> <el-select v-model="value" placeholder="" :popper-append-to-body="false"> <el-option v-for="item in sellerLabels" 阅读全文
摘要:
结果是:http://localhost:8100/#/ 改变为 http://localhost:8100/?#/ 导致路由跳转出现问题。 原因:这里是 form 表单,点击了button 按钮,触发了他的默认事件,就是触发了提交这个行为。 解决方案:使用@click.prevent 阻止默认事件 阅读全文
摘要:
1、小程序客服接入流程 在页面使用客服消息 需要将 button 组件 open-type 的值设置为 contact,当用户点击后就会进入客服会话,如果用户在会话中点击了小程序消息,则会返回到小程序,开发者可以通过 bindcontact 事件回调获取到用户所点消息的页面路径 path 和对应的参 阅读全文
摘要:
1、小程序内打开H5 这个只需要用标签web-view即可,类似 <web-view src="https://www.baidu.com" bindload="bindload" binderror="binderror"></web-view> 参考文档:https://developers.w 阅读全文
摘要:
this.getPicSave() getPicSave(){ let _this=this wx.getSetting({ scope: 'scope.writePhotosAlbum', success(res) { if (res.authSetting['scope.writePhotosA 阅读全文
摘要:
第一步:根据官方文来,先在微信公众平台登录小程序后台配置模板,获取模板id:,这块的模版可以在公共模版库里选。也可以新申请,但是需要3-7天才能出审核结果。 第二步,获取下发权限在获取下发权限之前,需要先获取小程序code和订阅消息的模板id给服务端,以便后台人员进行服务端配置 // 这里是获取下发 阅读全文