picture.wxml
4.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<view class="fixed picture-title left top flex-ll bg_white">
<block wx:for="{{pictureList}}">
<view class="picture-single {{item.isactive==true ? 'green-font' : 'black-font'}} font32r flex-cc" bindtap="selecttitle" data-index="{{index}}">{{item.name}}</view>
</block>
<view class="line-desc bg_green" style="left:{{leftdecr}}rpx;"></view>
</view>
<view class="border"></view>
<view style="height:80rpx;"></view>
<view class="picture-list" style="height:{{currentheight}}rpx;overflow:hidden;min-height:{{nothingheight}}px;">
<block wx:for="{{pictureList}}">
<view class="picture-single-list {{isloading==false && item.imagelist.length==0 ? 'flex-vc' : 'flex-rs'}}" style="left:{{item.listleft}}rpx;padding-bottom:130rpx;">
<block wx:if="{{isloading==false}}">
<block wx:if="{{item.imagelist.length>0}}">
<block wx:for="{{item.imagelist}}" wx:for-item="itemimage">
<view class="picture-single-image">
<view class="picture-select" wx:if="{{select && select==true}}" bindtap="selectimage" data-id="{{itemimage.id}}">
<view style="width:32rpx;height:32rpx;border:1px solid #199095;border-radius:50%;" class="{{itemimage.isselect==true ? 'bg_green' : ''}} flex-cc">
<block wx:if="{{itemimage.isselect==true}}">
<image src="../image/right.svg" class="picture-right"></image>
</block>
</view>
</view>
<image src="{{itemimage.image}}" class="picture-image" mode="aspectFill" bindtap="lookimage" data-current="{{itemimage.image}}" bindlongpress="{{itemimage.isShare==1 ? '' : 'showshare'}}" data-id="{{itemimage.id}}"></image>
<block wx:if="{{!select || select==false}}">
<block wx:if="{{itemimage.isShare==1}}">
<view class="white-font smooth font20r smooth font-siny share-mark">分享图</view>
</block>
</block>
</view>
</block>
</block>
<block wx:else>
<nothing height="{{nothingheight}}" content="暂无图片"></nothing>
</block>
</block>
</view>
</block>
</view>
<block wx:if="{{!acttype}}">
<view class="fixed bg_white black-font smooth font26r left right act-selectors-origin flex-lr bottom">
<view class="act-single {{pictureList[type-1].imagelist.length>0 ? 'green-font' : 'white-font'}} font32r smooth flex-cc" style="background:{{pictureList[type-1].imagelist.length>0 ? 'rgba(25,144,149,.2)' : '#ccc'}};" bindtap="{{pictureList[type-1].imagelist.length>0 ? 'editimage' : ''}}">编辑相册</view>
<view class="act-single white-font font32r smooth bg_green flex-cc" bindtap="uploadimage">上传图片</view>
</view>
</block>
<block wx:if="{{selectlist && selectlist.length>0}}">
<view class="fixed bg_white black-font smooth font26r left right act-selectors-origin flex-lr bottom">
<view class="act-single gray-deep-font font32r smooth flex-cc" style="border:1px solid #eee;box-sizing:border-box;" bindtap="cancelselect">取消</view>
<view class="act-single white-font font32r smooth bg_green flex-cc" bindtap="deleteimage">{{acttype && acttype=='replace' ? '替换' : '删除'}}</view>
</view>
</block>
<action-sheet hidden="{{actionHidden}}" class="sheet" bindchange="editimage">
<!--<action-sheet-item class="sheet-item black-font font30r smooth flex-cc" bindtap="startselect" data-type="replace">替换</action-sheet-item>-->
<block wx:if="{{share==true}}">
<action-sheet-item class="sheet-item gray-font font28r smooth flex-cc" style="height:110rpx;">分享仅用于微信等第三方工具</action-sheet-item>
<action-sheet-item class="sheet-item green-font font30r smooth flex-cc" bindtap="setshareimage" data-type="share">设为分享图</action-sheet-item>
</block>
<block wx:else>
<action-sheet-item class="sheet-item green-font font30r smooth flex-cc" bindtap="startselect" data-type="delete">删除</action-sheet-item>
</block>
<view style="width:100%;height:10rpx;" class="bg_gray"></view>
<action-sheet-item class="sheet-item gray-deep-font font30r smooth flex-cc" bindtap="editimage">取消</action-sheet-item>
</action-sheet>