📌个人主页:个人主页
🧀 推荐专栏:小程序开发成神之路 --【这是一个为想要入门和进阶小程序开发专门开启的精品专栏
!从个人到商业的全套开发教程
,实打实的干货分享,确定不来看看? 😻😻】
📝作者简介:从web开发,再到大数据算法,踩过了无数的坑,用心总结经验教训,助你在技术生涯一臂之力!若想获取更多精彩内容,敬请订阅专栏或者关注😁😂🤣😃😆😉😊😋😍😘🥰
⭐️您的小小关注是我持续输出的动力!
⭐️
🥇入门和进阶小程序开发,不可错误的精彩内容🥇 :
- 《微信小程序 | 动手实现双十一红包雨》
- 《来接私活吧?小程序接私活必备功能-婚恋交友【附完整代码】》
微信作为熟人社交领域类的顶流。其中有非常多的功能值得借鉴和推敲。其中的用户聊天界面
,联系人界面
特别是朋友圈界面
妥妥是进行社交类应用开发的参考和借鉴的典范!
特此,本文整理了基于vue 2.0
语法,结合uniapp
框架,从而实现了可覆盖到移动全端的功能。同时使用了小程序端优秀的UI组件库uVIew
进行构建,使得开发的成本更低,效果更好。
uView
中的u-swipe-action
组件,使得消息具备了滑动展示菜单操作的功能。{{ item.name }} {{ item.updateTime }} -
//处理录音文件handleRecorder({ tempFilePath,duration }) {let contentDuration;// #ifdef MP-WEIXINthis.voiceTime = 0;if (duration < 600) {this.voiceIconText="说话时间过短";setTimeout(()=>{this.recording = false;},200)return;} contentDuration = duration/1000;// #endif// #ifdef APP-PLUScontentDuration = this.voiceTime +1;this.voiceTime = 0;if(contentDuration <= 0) {this.voiceIconText="说话时间过短";setTimeout(()=>{this.recording = false;},200)return;};// #endifthis.recording = false;const params = {contentType: 2,content: tempFilePath,contentDuration: Math.ceil(contentDuration)};this.canSend && this.sendMsg(params);},
{{ _user_info.userName }} {{ _user_info.signature }} {{ item.userName }} {{ item.content }} 1"> {{ item.createTime }} {{ userInfo.userName }}{{ index != item.praise.length - 1 ? ',' : '' }} {{ comment.userName }}: {{ comment.userName }}回复 {{ comment.replyUserName }}: {{ comment.content }} 0 ? inputOffsetBottom + 'px' : '0' }"> 0 ? inputOffsetBottom + 'px' : '0' }">
完整源码下载地址
觉得好用的话就给个好评吧😁🤩🥰😘😄😗😛