会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
shuihanxiao
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
···
18
下一页
2024年4月2日
微信小程序点击选择拨打多个电话
摘要: 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)
2024年3月18日
小程序闪烁效果/ 微信小程序 实现视屏录制REC闪烁效果动画
摘要: 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)
2024年2月23日
JS 跳转链接中的中文转码/中文解码
摘要: 转码 var url = "https://www.example.com/页面"; // 需要跳转的链接包含中文字符var encodedUrl = encodeURIComponent(url); // 对链接进行编码window.location.href = encodedUrl; // 通
阅读全文
posted @ 2024-02-23 14:08 shuihanxiao
阅读(1083)
评论(0)
推荐(0)
2024年1月25日
图片压缩
摘要: 图片压缩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)
2023年12月6日
scroll-view回到顶部的使用(scroll-top)
摘要: <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)
2023年12月4日
去除微信小程序里面的button边框
摘要: 去除微信小程序里面的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)
2023年11月24日
修改element ui组件 el-select 默认选中颜色
摘要: <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)
2023年11月14日
在vue项目开发过程中,输入框以表单形式提交后,路径中多了问号?
摘要: 结果是:http://localhost:8100/#/ 改变为 http://localhost:8100/?#/ 导致路由跳转出现问题。 原因:这里是 form 表单,点击了button 按钮,触发了他的默认事件,就是触发了提交这个行为。 解决方案:使用@click.prevent 阻止默认事件
阅读全文
posted @ 2023-11-14 14:48 shuihanxiao
阅读(60)
评论(0)
推荐(0)
2023年11月9日
小程序客服接入及注意事项
摘要: 1、小程序客服接入流程 在页面使用客服消息 需要将 button 组件 open-type 的值设置为 contact,当用户点击后就会进入客服会话,如果用户在会话中点击了小程序消息,则会返回到小程序,开发者可以通过 bindcontact 事件回调获取到用户所点消息的页面路径 path 和对应的参
阅读全文
posted @ 2023-11-09 16:18 shuihanxiao
阅读(477)
评论(0)
推荐(0)
2023年11月1日
小程序和H5之间互相跳转实现方法
摘要: 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
下一页
公告