06 2020 档案

摘要:###示例 前提:安装了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 阅读(29153) 评论(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 阅读(4232) 评论(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 阅读(11413) 评论(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 阅读(4384) 评论(1) 推荐(1) 编辑
摘要:须知:浏览器端网站请求接口时,会自动携带token。 所以浏览器网站没有此问题,无需从获取图形验证码的接口获取token,因为浏览器自动传的,不需手动操作。 获取图形验证码时直接将接口请求地址赋值给src即可,如下: 现在的问题是:在uniapp中包含小程序及app端的情况,请求接口时是不会自动携带 阅读全文
posted @ 2020-06-23 16:56 huihuihero 阅读(7954) 评论(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 阅读(956) 评论(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 阅读(2213) 评论(1) 推荐(2) 编辑
摘要:module.exports = { baseUrl: "./", //1.默认为 "/":部署在一个域名的根路径上 ; 2. "./":所有的资源都会被链接为相对路径,这样打出来的包可以被部署在任意路径 outputDir: "dist", //默认为 "dist",指打包后的资源放置的路径,放在 阅读全文
posted @ 2020-06-18 09:29 huihuihero 阅读(4034) 评论(0) 推荐(0) 编辑
摘要:###安装及引入 1、npm install moment 或者 yarn add moment 2、在main.js里引入并挂载到全局 import moment from 'moment' Vue.prototype.$moment = moment moment.locale('zh-cn') 阅读全文
posted @ 2020-06-11 14:53 huihuihero 阅读(1248) 评论(0) 推荐(0) 编辑
摘要:在安卓端,中文的行高和英文的行高不同。这导致了一些文字渲染出来后看起来不是很友好。 解决办法: 在开发app时,有需要的话,在有文字的地方设置统一的line-height 阅读全文
posted @ 2020-06-09 16:19 huihuihero 阅读(533) 评论(0) 推荐(0) 编辑
摘要:####介绍 插槽(Slot),在各种vue的ui插件中,经常见到的多个组件标签相互嵌套(如下)就是以此为基础的。 <el-col > <el-checkbox > </el-col> 而我们也经常会用到这种场景,例如封装一个边框样式的组件,组件中的内容,可以通过这种方式制作,或者将子组件提取到父组 阅读全文
posted @ 2020-06-08 17:30 huihuihero 阅读(1375) 评论(0) 推荐(0) 编辑
摘要:横向滚动不生效:不生效是因为少了以下两行代码,添加上即可 <scroll-view class="scroll-view-content" scroll-x="true"> <view v-for="(item,index) in videoInfo" :key="index" class="eve 阅读全文
posted @ 2020-06-01 14:46 huihuihero 阅读(4427) 评论(0) 推荐(0) 编辑
摘要:###设置背景 1、设置背景色: <template> <view class="container"> //最外层 <view class="bg-set"></view> //此标签为最外层view标签的第一个子标签 <view class="content"></view> </view> < 阅读全文
posted @ 2020-06-01 13:25 huihuihero 阅读(37674) 评论(0) 推荐(4) 编辑

点击右上角即可分享
微信分享提示