This commit is contained in:
2025-12-20 08:34:16 +08:00
commit 9d4fdc7242
872 changed files with 3536 additions and 0 deletions

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view><block wx:if="{{imgSrc.imgSrc}}"><image class="my-avatar" style="{{$root.s0}}" src="{{imgSrc.imgSrc}}" data-event-opts="{{[['tap',[['fSelect',['$event']]]]]}}" bindtap="__e"></image></block><canvas class="my-canvas" style="{{'top:'+(sT)+';'+('height:'+(csH)+';')}}" canvas-id="avatar-canvas" id="avatar-canvas" disable-scroll="false"></canvas><canvas class="oper-canvas" style="{{'top:'+(sT)+';'+('height:'+(csH)+';')}}" canvas-id="oper-canvas" id="oper-canvas" disable-scroll="false" data-event-opts="{{[['touchstart',[['fStart',['$event']]]],['touchmove',[['fMove',['$event']]]],['touchend',[['fEnd',['$event']]]]]}}" bindtouchstart="__e" bindtouchmove="__e" bindtouchend="__e"></canvas><canvas class="prv-canvas" style="{{'height:'+(csH)+';'+('top:'+(pT)+';')}}" canvas-id="prv-canvas" id="prv-canvas" disable-scroll="false" data-event-opts="{{[['touchstart',[['fHideImg',['$event']]]]]}}" bindtouchstart="__e"></canvas><view class="oper-wrapper" style="{{'display:'+(sD)+';'+('top:'+(tp)+';')}}"><view class="oper"><block wx:if="{{sO}}"><view class="btn-wrapper"><view data-event-opts="{{[['tap',[['fClose',['$event']]]]]}}" class="cancel" style="{{'width:'+(bW)+';'}}" bindtap="__e"><text>取消</text></view><view data-event-opts="{{[['tap',[['fSelect',['$event']]]]]}}" style="{{'width:'+(bW)+';'}}" bindtap="__e"><text class="iconfont icon-shangchuan"></text></view><view data-event-opts="{{[['tap',[['fRotate',['$event']]]]]}}" style="{{'width:'+(bW)+';'+('display:'+(bD)+';')}}" bindtap="__e"><text class="iconfont icon-xuanzhuan"></text></view><view data-event-opts="{{[['tap',[['fUpload',['$event']]]]]}}" style="{{'width:'+(bW)+';'}}" bindtap="__e"><text class="upload">上传</text></view></view></block><block wx:else><view class="clr-wrapper"><slider class="my-slider" block-size="25" value="0" min="-100" max="100" activeColor="red" backgroundColor="green" block-color="grey" show-value="{{true}}" data-event-opts="{{[['change',[['fColorChange',['$event']]]]]}}" bindchange="__e"></slider><view style="{{'width:'+(bW)+';'}}" hover-class="hover" data-event-opts="{{[['tap',[['fPrvUpload',['$event']]]]]}}" bindtap="__e"><text>上传</text></view></view></block></view></view></view>

View File

@@ -0,0 +1 @@
.my-canvas{display:flex;position:fixed!important;background:#000;left:0;z-index:100000;width:100%}.my-avatar{width:150rpx;height:150rpx;border-radius:100%}.oper-canvas{display:flex;position:fixed!important;left:0;z-index:100001;width:100%}.prv-canvas{display:flex;position:fixed!important;background:#000;left:0;z-index:200000;width:100%}.oper-wrapper{height:50px;position:fixed!important;box-sizing:border-box;background:#000;width:100%;left:0;bottom:0;z-index:100009;flex-direction:row}.oper{display:flex;flex-direction:column;justify-content:center;width:100%;height:100%;box-sizing:border-box;align-self:center}.btn-wrapper{display:flex;flex-direction:row;flex-grow:1;justify-content:space-between}.btn-wrapper view{display:flex;align-items:center;justify-content:center;font-size:28rpx}.btn-wrapper .cancel{color:#fff;font-weight:700;text-align:center}.btn-wrapper .upload{background:#31bb6d;color:#fff;font-weight:700;height:60rpx;line-height:60rpx;padding:0 30rpx;border-radius:8rpx}.btn-wrapper .iconfont{color:#fff;font-size:18px}.hover{background:#f1f1f1;border-radius:6%}.clr-wrapper{display:flex;flex-direction:row;flex-grow:1}.clr-wrapper view{display:flex;align-items:center;justify-content:center;font-size:14px;color:#333;border:1px solid #f1f1f1;border-radius:6%}.my-slider{flex-grow:1}