- 博客(13)
- 收藏
- 关注
原创 uni-app实现 步骤条
实现如图样式html部分代码如下<view class="range-div"> <view class="title">投资期限与收益</view> <!-- 步骤条 --> <view class="step-deiv"> <view class="step-name"> <view :class="step>0? 'active':'default'">募集开始.
2021-08-05 10:02:38 3236 1
原创 img图片不失真,进行比例缩放
img{ width: 100%; height: 100%; object-fit: fill; object-fit: contain; object-fit: scale-down; }
2021-07-15 10:55:15 1763 1
原创 图片.svg拉伸
一般.png背景图片比较容易拉伸.bg{ background-image: url("../assets/imgs/bg-app.png"); background-size: 100% 100%;}------------------.svg的图片需要如下设置样式.bg{ background: url("../assets/imgs/bg.svg#svgView(preserveAspectRatio(none))") center center n
2021-07-14 15:59:56 1266
原创 输入框获取焦点实现软键盘上边样式如下图
实现点击评论弹起软键盘及键盘上方样式刚开始一头雾水,就写了一个input输入框固定在浏览器窗口的最下面(position:fixed),没想到对input获取焦点的时候,样式被弹上去了,就刚好实现需求.content{ position: fixed; bottom:0;}...
2021-07-02 17:43:55 146
原创 echarts饼图中间文字显示(样式设置)
series: [{ name: "组合比例", type: "pie", radius: ["30%", "40%"], center: ["25%", "51%"], avoidLabelOverlap: false, itemStyle: { normal: { label: { show: false, // formatter: '{b} : {c} ({d}%)' formatter: "({d}%)",.
2021-07-01 14:18:27 12036 1
原创 git 出现的 error: You have not concluded your merge (MERGE_HEAD exists). hint: Please,
解决方案保留本地的更改,中止合并->重新合并->重新拉取$:git merge --abort$:git reset --merge$:git pull
2021-06-30 16:49:21 3308
原创 uni-app实现android,ios打包过程详解
开发环境与打包环境说明Uni-app:HbuildX 2.7.9Ios:XcodeAndroid:Android studio打包准备:1.Uniapp 设置版本号使用HbuildX生成本地打包APP资源生成的打包资源地址2.将生成的www文件拷贝到/Users/wangweiyuan/code/mine/[email protected]_20200528/HBuilder-Integrate-AS/simpleDemo/src/main/asset
2021-06-30 16:39:12 2131
原创 vue + vue-awesome-swiper 实现整屏滚动切换(分页切换)
1.vue中安装vue-awesome-swiper"vue-awesome-swiper": "^3.1.3",2.
2021-06-17 15:45:35 1852
原创 new Date(date).getTime()兼容问题
需求:时间比大小bug:在Google浏览器没有问题,可以进行时间戳比较,在苹果手机会出现不兼容例如:获取到的data是字符串,格式类似于:‘2021-06-17 23:23:23’在苹果手机返回NaN解决方案:new Date(data.replace(/-/g,'/')).getTime()在苹果手机获取时间戳进行比大小...
2021-06-17 15:11:30 386
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人