上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 29 下一页
摘要: 解释:uniapp的video组件在非H5端是覆盖在所有层级之上的,要想在video组件层级之上添加自定义盒子,则需要用cover-view。如图红框内为自定义内容 video组件详细解释见文档: https://uniapp.dcloud.io/component/video?id=video 注 阅读全文
posted @ 2020-08-12 17:11 huihuihero 阅读(9898) 评论(0) 推荐(0) 编辑
摘要: ###使用场景:视频选集 直接使用redirectTo再跳转至当前页面(此方式路由不会堆栈) 也可使用navigateTo,但路由会堆栈,如果用户多次切换集数,回导致用户回退页面时体验不好。 //选择视频集数 selectSeries(e){ let vid=e.currentTarget.data 阅读全文
posted @ 2020-08-04 12:09 huihuihero 阅读(28027) 评论(0) 推荐(0) 编辑
摘要: ####功能介绍:用户输入emoji表情,如输入法里的附带的表情,然后前端这里编码这些表情成特定格式的字符,传到后端。之后从接口拿到后直接html渲染即可。 ####问题所在:移动端用户输入emoji表情,如果未做编码就提交到后端的话,是不能成功提交的。需要先编码才行。 ###编码 /** * 用于 阅读全文
posted @ 2020-07-24 10:38 huihuihero 阅读(1923) 评论(1) 推荐(0) 编辑
摘要: ####子组件,有一个childMethod方法 <template> <view> </view> </template> <script> export default { data(){ return { } }, onLoad(){ }, methods:{ childMethod() { 阅读全文
posted @ 2020-07-21 17:37 huihuihero 阅读(463) 评论(0) 推荐(0) 编辑
摘要: ####将uniapp的uni.createSelectorQuery()方法与uni.pageScrollTo(OBJECT)方法结合使用 更详细用法见官方文档: uni.createSelectorQuery()方法: https://uniapp.dcloud.io/api/ui/nodes- 阅读全文
posted @ 2020-07-21 15:31 huihuihero 阅读(8587) 评论(0) 推荐(0) 编辑
摘要: //判断安卓还是iOS judgePlatForm(){ let platform=uni.getSystemInfoSync().platform if(platform=='ios'){ console.log('我是iOS') }else if(platform=='android'){ co 阅读全文
posted @ 2020-07-17 17:39 huihuihero 阅读(5935) 评论(0) 推荐(1) 编辑
摘要: uni.setNavigationBarTitle({ title:'嘻嘻嘻' }) 文档地址: https://uniapp.dcloud.io/api/ui/navigationbar?id=setnavigationbartitle 阅读全文
posted @ 2020-07-13 15:48 huihuihero 阅读(3107) 评论(0) 推荐(0) 编辑
摘要: ####场景一:用户点击按钮后动态切换按钮选中样式(如图) <view class="state-btn-content"> <view @tap="selectState" data-state="over" :class="[whichSelected=='over'?'state-btn-se 阅读全文
posted @ 2020-07-02 10:43 huihuihero 阅读(11000) 评论(0) 推荐(0) 编辑
摘要: ###示例 前提:安装了uniapp的LoadMore插件(一般初始都会安装此插件), https://ext.dcloud.net.cn/plugin?id=29 <template> <view class="container"> <view v-for="(item,index) in vi 阅读全文
posted @ 2020-06-29 11:17 huihuihero 阅读(29144) 评论(0) 推荐(3) 编辑
摘要: ###官方文档: https://uniapp.dcloud.io/api/router?id=navigateto ###示例代码 【list.vue】 goMicroInfo(e){ let a=e.currentTarget.dataset.microlink let link=encodeU 阅读全文
posted @ 2020-06-28 15:30 huihuihero 阅读(4222) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 29 下一页