摘要:
https://open.weixin.qq.com/sns/getexpappinfo?appid=这里填写你的appId&path=需要跳转的小程序地址 注意:需要跳转的小程序地址,需要在 地址最后 参数前 增加.html 例如我需要跳转体验版的小程序地址为 pages/home/index?n 阅读全文
摘要:
::v-deep .el-input { input[type="number"] { padding-right: 0px; -moz-appearance: textfield; -webkit-appearance: textfield; // 解决el-input设置类型为number时,中 阅读全文
摘要:
wxml 内 <view class='product-contact' wx:if="{{contact!=''}}" data-contact1="{{contact1}}" data-contact2="{{contact2}}" catchtap='makeCall'>立即联系</view> 阅读全文
摘要:
data: { animationData: {} }, created() { let animation = wx.createAnimation({ duration: 500, // delay: 1000, timingFunction: 'ease' }); this.animation 阅读全文
摘要:
转码 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 阻止默认事件 阅读全文