mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-12 12:26:48 +08:00
提交修改
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user