提交修改

This commit is contained in:
daihh
2022-05-30 23:03:25 +08:00
parent faa7afb65f
commit ab382aca7b
18 changed files with 539 additions and 401 deletions

View File

@@ -227,10 +227,12 @@
}
}
.xaudio-title{
padding: 0 40upx;
font-weight: bold;
font-size: 34rpx;
margin-top: 50rpx;
text-align: center;
word-break:break-all;
}
.btn-size{
width: 100rpx;

View File

@@ -1,8 +1,7 @@
<template>
<view>
<u-upload :fileList="fileList" @afterRead="afterRead" @delete="deletePic" name="coverImg" :maxCount="1">
<image :src="coverImage==''? '/static/temp/uploading.png':coverImage" mode="widthFix" style="width: 150rpx;height: 150rpx;">
<image :src="coverImage==''? '/static/images/uploading.png':coverImage" mode="widthFix" style="width: 150rpx;height: 150rpx;">
</image>
</u-upload>
</view>

View File

@@ -1,9 +1,12 @@
<template name="cropper">
<view>
<view style="position: relative;">
<image :src="imgSrc.imgSrc" class="my-avatar" mode="aspectFill" @click="fSelect" :style="imgStyle"></image>
<!-- 上传图片 -->
<canvas canvas-id="avatar-canvas" id="avatar-canvas" class="my-canvas" :style="{top: styleTop, height: cvsStyleHeight}"
disable-scroll="false"></canvas>
<view @click="fSelect" style="position:absolute;top:50%;left:50%;margin-left: -29px;margin-top: -29px;" v-if="imgSrc.imgSrc == ''">
<u-icon name="plus" color="#ccc" size="58"></u-icon>
</view>
<!-- 截取边框 -->
<canvas canvas-id="oper-canvas" id="oper-canvas" class="oper-canvas" :style="{top: styleTop, height: cvsStyleHeight}"
disable-scroll="false" @touchstart="fStart" @touchmove="fMove" @touchend="fEnd"></canvas>