上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 28 下一页
摘要: //判断安卓还是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 阅读(5585) 评论(0) 推荐(1) 编辑
摘要: uni.setNavigationBarTitle({ title:'嘻嘻嘻' }) 文档地址: https://uniapp.dcloud.io/api/ui/navigationbar?id=setnavigationbartitle 阅读全文
posted @ 2020-07-13 15:48 huihuihero 阅读(3020) 评论(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 阅读(10904) 评论(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 阅读(28817) 评论(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 阅读(4068) 评论(0) 推荐(0) 编辑
摘要: ###例子( 更多详情见官网: https://uniapp.dcloud.io/component/web-view?id=web-view ) <template> <view class="container"> <web-view :src="weburl"></web-view> </vi 阅读全文
posted @ 2020-06-28 13:18 huihuihero 阅读(11267) 评论(0) 推荐(0) 编辑
摘要: ###文档地址:https://uniapp.dcloud.io/api/media/image?id=chooseimage ###直接贴代码 <template> <view class="container"> <view @tap="chooseTheImg">上传图片</view> </v 阅读全文
posted @ 2020-06-24 14:39 huihuihero 阅读(4220) 评论(1) 推荐(1) 编辑
摘要: 须知:浏览器端网站请求接口时,会自动携带token。 所以浏览器网站没有此问题,无需从获取图形验证码的接口获取token,因为浏览器自动传的,不需手动操作。 获取图形验证码时直接将接口请求地址赋值给src即可,如下: 现在的问题是:在uniapp中包含小程序及app端的情况,请求接口时是不会自动携带 阅读全文
posted @ 2020-06-23 16:56 huihuihero 阅读(7495) 评论(1) 推荐(1) 编辑
摘要: ###breadCrumb.vue <template> <div class="bread_crumb"> <div class="crumb"> <div class="crumb_content"> <a-breadcrumb separator=">"> <a-breadcrumb-item 阅读全文
posted @ 2020-06-19 14:32 huihuihero 阅读(940) 评论(0) 推荐(0) 编辑
摘要: ###前期准备 1、npm install vod-js-sdk-v6 或 yarn add vod-js-sdk-v6 2、在main.js中 import TcVod from 'vod-js-sdk-v6' Vue.prototype.$TcVod = TcVod ##注: 1、获取腾讯云上传 阅读全文
posted @ 2020-06-19 12:01 huihuihero 阅读(2161) 评论(1) 推荐(2) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 28 下一页