随笔分类 - uni-app
摘要:本次是后端服务的 苹果和安卓手机FCM的推送 说明: ios在线的时间可以监听到服务端推送的数据 ios离线是监听不到推送的数据,只能在消息栏点击后才能监听到数据 android在线可以监听到服务端数据 android离线同样不能监听到,点击打开后可监听 android(FCM)离线需要连接外网才可
阅读全文
摘要:h5: <a href="https://api.whatsapp.com/send?phone=+86123456789&text=Hello">点我WhatsApp聊天</a> 移动端: <a href="whatsapp://send?phone=+86123456789&text=Hello
阅读全文
摘要:1、原生导航栏(顶部)动态修改 title uni.setNavigationBarTitle({ title:"賬號名稱" }) 2、原生导航栏(顶部)左边箭头默认是返回上一级,监听动态返回指定页面 与data()同级 // 监听原生导航栏的发回按钮 onBackPress(options) {
阅读全文
摘要:记录一下 uniapp项目的引入uview的使用流程 1、安装到项目中 2、在uni.scss 引用 @import 'uview-ui/theme.scss'; 3、App.vue文件里面引入 @import 'uview-ui/index.scss'; 4、main.js引入 import uV
阅读全文
摘要:微信公众平台-测试号 https://mp.weixin.qq.com/debug/cgi-bin/sandboxinfo?action=showinfo&t=sandbox/index 接口配置信息可留空不用管。 扫码关注测试公众号。 设置修改网页域名 网页授权获取用户基本信息 https://d
阅读全文
摘要:使用 组件 rich-text(nvue 专有) 富文本 <view class="bottom-msg-area lst"> <scroll-view class="msg-area-scroll" scroll-y="true" scroll-with-animation :scroll-int
阅读全文
摘要:<template> <view class="lst"> <view @touchmove="move" @touchstart="moveStart" @touchend="moveEnd" class="warp" :style="{transform: 'translate(0px, '+s
阅读全文
摘要:可以参考:https://www.jianshu.com/p/f11965521baf
阅读全文
摘要:ios的内存回收机制问题 iOS手机内存不足时,如果是UIWebview的应用,系统会整体回收这个App,现象是在重新打开已打开过的App时App整体重启。而WKWebview则是单个页面回收,这带来的坏处就是内存不足时,会单个页面白屏 在配置文件manifest.json加上一下代码可解决(在"a
阅读全文
摘要://查看内置地图 (导航) 注意:经纬度必须转换为number类型,不然就...哈哈哈 goMap(item){ // console.log(item) uni.openLocation({ latitude: Number(item.take.mer_take_location[0]), lon
阅读全文
摘要:<template> <view @touchstart="touchStart" @touchend="touchEnd" style="height:2000px;"> 测试 </view> </template> <script> export default { data() { retur
阅读全文
摘要:1、 <!-- 时间发送 --> <div class="sendingTime" v-if="withinArry.indexOf(j) 1"> {{timeChange(item.create_time)}} </div> 2、 withinArry:[] 3、 // 用于存在小于5分钟内发的信
阅读全文
摘要:<template> <view class="prod_detail_container"> <view class="proImg_caro" id="box_caro" > <view class="swiper_b1" v-if="imgUrls.length" > <swiper circ
阅读全文