release.wxml
4.8 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!--pages/release/release.wxml-->
<block wx:if='{{!img_state}}'>
<view class='banner_box'>
<view>
<view class='type_box' bindtap="showPicker">
<input placeholder='标题' value='{{title}}' bindinput='setTitle' maxlength="{{max}}"></input>
<text class="input_num">{{currentWordNumber|0}}/{{max}}</text>
</view>
<view class='textarea_box'>
<textarea class='textarea' placeholder='同大家分享一下你的穿搭秘籍吧~' maxlength='{{max2}}' value='{{text}}' bindinput='setText'>
<text class="number">{{number|0}}/{{max2}}</text>
</textarea>
</view>
</view>
<view class='upload_box'>
<block wx:for="{{images}}" wx:for-item="image" wx:key="index">
<view class='upload_img'>
<view class='icon_box'>
<view class='iconfont icon-jian' catchtap="showMask" data-index="{{index}}"></view>
<view class="edit_label" catchtap="goEdit" data-index="{{index}}" data-url='{{image.url}}'>编辑</view>
</view>
<image src='{{image.url}}' data-index="{{index}}" mode="aspectFill" bindtap="previewImg"></image>
</view>
</block>
<view class='upload_img' bindtap="choose">
<view class='iconfont icon-jia2'></view>
</view>
</view>
<view class='hint_box'>
<view class='hint_label' bindtap='showMask1'>{{time_info}}</view>
<view class='hint_label more_box'>
<text catchtap='showMore'>{{more_info}}</text>
<view class='more_label_box' wx:if='{{more_state}}'>
<view class='more_item' bindtap='setOpen' data-open='1'>
<text>公开</text>
</view>
<!-- <view class='more_line'></view> -->
<view class='more_item' catchtap='setOpen' data-open='3'>
<text>仅自己可见</text>
</view>
<!-- <view class='more_line'></view> -->
<view class='more_item' catchtap='setOpen' data-open='2'>
<text>粉丝可见</text>
</view>
<!-- <view class='more_line'></view> -->
<view class='more_item' catchtap='setOpen' data-open='4'>
<text>草稿箱</text>
</view>
</view>
</view>
</view>
</view>
<view class='content_box'>
<view class='tab_box'>
<scroll-view scroll-x>
<text class='classify_title'>风格</text>
<view class="tab_item {{item.state?'bgc-active':''}}" wx:for='{{classify}}' wx:key='index' data-index="{{index}}" bindtap="setClassify">{{item.name}}</view>
</scroll-view>
</view>
<view class='null_box'></view>
<view class='bottom_box'>
<view class='bottom_btn1' bindtap='submitInfo'>确定发布</view>
</view>
</view>
</block>
<!-- 编辑图片信息 -->
<view class='mask_box2' wx:else>
<view class='item_list2'>
<image class='list_img' src='{{url}}'></image>
<view class='list_content_box'>
<textarea class="areas" placeholder='请输入简要描述' minlength="{{min}}" value='{{imgInfo}}' maxlength="{{max3}}" bindinput="setImgText">
<text class="currentWordNumber">{{imgInfoNum}}/{{max3}}</text>
</textarea>
</view>
</view>
<view class='bottom_btn2' bindtap='goCheck'>确定</view>
</view>
<!-- 定时发送 -->
<view class='mask_box' wx:if='{{relsese_state}}' catchtap='cancleMask1'>
<view class='release_box'>
<view class='release_title'>选择发布时间</view>
<view class='release_content_box'>
<view class='release_left'>
<view class="relsese_item {{currentTime==index?'relsese_active':''}} " catchtap='selectTime' wx:for='{{lastMonth}}' wx:key data-index='{{index}}'>
<text wx:if='{{index==0}}'>今天</text>
<text wx:elif='{{index==1}}'>明天</text>
<text wx:else>{{item}} </text>
</view>
</view>
<view class='release_right'>
<view class="right_item" wx:for='{{release_time2}}' wx:key data-index='{{index}}' catchtap='setTime'>
<text>{{item}}</text>
<text class='iconfont icon-dui' wx:if='{{relsese_state1==index}}'></text>
</view>
</view>
</view>
</view>
</view>
<!-- 草稿箱 -->
<view class='mask_box' wx:if='{{box_state}}' catchtap='cancleMask3'>
<view class='popup_box'>
<view class='popup_title'>提示</view>
<view>是否保存为草稿?</view>
<view class='popup_btn_box'>
<view class='popup_btn' catchtap='cancleMask3'>取消</view>
<view class='popup_btn' bindtap='confirmInfo'>确定</view>
</view>
</view>
</view>
<!-- 草稿箱 -->
<view class='mask_box' wx:if='{{mask_state}}' catchtap='cancleMask2'>
<view class='popup_box'>
<view class='popup_title'>提示</view>
<view>是否确认删除?</view>
<view class='popup_btn_box'>
<view class='popup_btn' catchtap='cancleMask2'>取消</view>
<view class='popup_btn' bindtap='deleteImg'>确定</view>
</view>
</view>
</view>