|
|
|
@ -28,8 +28,8 @@ |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class='cropper-config'> |
|
|
|
|
<button type="primary reverse" @click="getImage" style='margin-top: 30rpx;'> 选择头像 </button> |
|
|
|
|
<button type="warn" @click="getImageInfo" style='margin-top: 30rpx;'> 提交 </button> |
|
|
|
|
<button class="v-secondary-btn large" @click="getImage" style='margin-top: 30rpx;'> 选择头像 </button> |
|
|
|
|
<button class="v-primary-btn large" @click="getImageInfo" style='margin-top: 30rpx;'> 提交 </button> |
|
|
|
|
</view> |
|
|
|
|
<canvas canvas-id="myCanvas" :style="'position:absolute;border: 1px solid red; width:'+imageW+'px;height:'+imageH+'px;top:-9999px;left:-9999px;'"></canvas> |
|
|
|
|
</view> |
|
|
|
|