上一页 1 2 3 4 5 6 ··· 18 下一页
摘要: wxml 内 <view class='product-contact' wx:if="{{contact!=''}}" data-contact1="{{contact1}}" data-contact2="{{contact2}}" catchtap='makeCall'>立即联系</view> 阅读全文
posted @ 2024-04-02 14:44 shuihanxiao 阅读(199) 评论(0) 推荐(0)
摘要: data: { animationData: {} }, created() { let animation = wx.createAnimation({ duration: 500, // delay: 1000, timingFunction: 'ease' }); this.animation 阅读全文
posted @ 2024-03-18 11:33 shuihanxiao 阅读(120) 评论(0) 推荐(0)
摘要: 转码 var url = "https://www.example.com/页面"; // 需要跳转的链接包含中文字符var encodedUrl = encodeURIComponent(url); // 对链接进行编码window.location.href = encodedUrl; // 通 阅读全文
posted @ 2024-02-23 14:08 shuihanxiao 阅读(1083) 评论(0) 推荐(0)
摘要: 图片压缩js import ImageCompressor from 'image-compressor.js'; export function compressFile(file) { return new Promise((resolve, reject) => { const options 阅读全文
posted @ 2024-01-25 16:12 shuihanxiao 阅读(60) 评论(0) 推荐(0)
摘要: <scroll-view scroll-y class="right-box" :scroll-top="scrollRightTop" @scrolltolower="onreachBottom" :refresher-enabled="true" :refresher-triggered="tr 阅读全文
posted @ 2023-12-06 14:44 shuihanxiao 阅读(296) 评论(0) 推荐(0)
摘要: 去除微信小程序里面的button边框 方法一:通过button::after button::after{ border: none; } 方法二:给button按钮加上plain属性,属性值为true <button plain="true"></button> 然后设置样式就可以去除边框了 bu 阅读全文
posted @ 2023-12-04 23:10 shuihanxiao 阅读(391) 评论(0) 推荐(0)
摘要: <el-col :span="16" id="labelStyle"> <el-select v-model="value" placeholder="" :popper-append-to-body="false"> <el-option v-for="item in sellerLabels" 阅读全文
posted @ 2023-11-24 16:56 shuihanxiao 阅读(1621) 评论(0) 推荐(0)
摘要: 结果是:http://localhost:8100/#/ 改变为 http://localhost:8100/?#/ 导致路由跳转出现问题。 原因:这里是 form 表单,点击了button 按钮,触发了他的默认事件,就是触发了提交这个行为。 解决方案:使用@click.prevent 阻止默认事件 阅读全文
posted @ 2023-11-14 14:48 shuihanxiao 阅读(60) 评论(0) 推荐(0)
摘要: 1、小程序客服接入流程 在页面使用客服消息 需要将 button 组件 open-type 的值设置为 contact,当用户点击后就会进入客服会话,如果用户在会话中点击了小程序消息,则会返回到小程序,开发者可以通过 bindcontact 事件回调获取到用户所点消息的页面路径 path 和对应的参 阅读全文
posted @ 2023-11-09 16:18 shuihanxiao 阅读(477) 评论(0) 推荐(0)
摘要: 1、小程序内打开H5 这个只需要用标签web-view即可,类似 <web-view src="https://www.baidu.com" bindload="bindload" binderror="binderror"></web-view> 参考文档:https://developers.w 阅读全文
posted @ 2023-11-01 11:25 shuihanxiao 阅读(6519) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 18 下一页