uniapp实现上传多张图片功能
实现效果:
2023-4-13 修改 []传参数组之对h5有用 app端只取到一张图片
123456789<u-form-item :label-position="labelPosition" label="上传图片" prop="photo" label-width="150"> <u-upload width="160" height="160" :auto-upload="false" @on-list-change="imageListChange" :source-type="['camera']" ref="uUpload" :custom-btn="true"> <view slot="addBtn" class="slot-btn" ...
vue解析Excel时日期格式引起的问题
1234<el-upload action accept=".xlsx, .xls" :auto-upload="false" :show-file-list="false" :on-change="handle"> <el-button type="primary" slot="trigger" :loading="loading">{{loading==true?'读取中':'选取EXCEL文件'}} </el-button></el-upload>
出现的问题:日期(月/日)格式的字符变成了一串数字400356这种的最开始excel格式全是字符 后来换了个user 需求(bug)来了
>import * as xlsx from 'xlsx'
1234567891011 ...
微信小程序实现点击按钮生成海报
页面布局
1234567891011121314><view class="mask" v-show="isShow"> <view class='board'> <view class="heart"> <span class="sure" @click="isShow=false">×</span> </view> <canvas @longpress="saveHomepage" :style="'width:'+canvasWidth+'px;height:'+ canvasHeight+'px;'" canvas-id="myCanvas"></canvas> ...
css 在div左上角添加标记
效果图:
<div class='wrapp'>
<div class='ribbon'>
<span>当前工单</span>
</div>
<div class="planBox">
<div class="item">
<div class="">xxx</div>
<div class="">xxx</div>
</div>
<div class="item">
<div class="">xxx</div>
...
vue实现点击选中div后,右下角显示对号√
vue 实现点击选中div 右下角显示对号√效果图:
123456789101112131415161718<div class="" style="display: flex;"> <div class="item" :class="activeKey === 0 ? 'select' : ''" @click="activeKey = 0"> <div class="shift"> 早班 8:00 - 20:00 </div> <div class=""> 2022年07月18日 </div> </div> <div class="item" :class="activeKey === 1 ? 'select' : '' ...