上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 29 下一页
摘要: ####场景一:用户点击按钮后动态切换按钮选中样式(如图) <view class="state-btn-content"> <view @tap="selectState" data-state="over" :class="[whichSelected=='over'?'state-btn-se 阅读全文
posted @ 2020-07-02 10:43 huihuihero 阅读(11120) 评论(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 阅读(29262) 评论(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 阅读(4316) 评论(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 阅读(11500) 评论(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 阅读(4435) 评论(1) 推荐(1)
摘要: 须知:浏览器端网站请求接口时,会自动携带token。 所以浏览器网站没有此问题,无需从获取图形验证码的接口获取token,因为浏览器自动传的,不需手动操作。 获取图形验证码时直接将接口请求地址赋值给src即可,如下: 现在的问题是:在uniapp中包含小程序及app端的情况,请求接口时是不会自动携带 阅读全文
posted @ 2020-06-23 16:56 huihuihero 阅读(8261) 评论(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 阅读(975) 评论(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 阅读(2247) 评论(1) 推荐(2)
摘要: module.exports = { baseUrl: "./", //1.默认为 "/":部署在一个域名的根路径上 ; 2. "./":所有的资源都会被链接为相对路径,这样打出来的包可以被部署在任意路径 outputDir: "dist", //默认为 "dist",指打包后的资源放置的路径,放在 阅读全文
posted @ 2020-06-18 09:29 huihuihero 阅读(4088) 评论(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 阅读(1287) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 29 下一页