release.wxml
3.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
<!--pages/release/release.wxml-->
<view class='banner_box'>
<view class='type_box' bindtap="showPicker">
<view>
<input placeholder='标题' value='{{title}}' bindinput='setTitle'></input>
</view>
<text class="currentWordNumber">{{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 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="deleteImg" 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='showMask'>{{time_info}}</view>
<view class='hint_label more_box'>
<text catchtap='showMore'>公开</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='bottom_box'>
<view class='bottom_btn1' bindtap='submitInfo'>确定</view>
</view>
</view>
<view class='mask_box' wx:if='{{relsese_state}}' catchtap='cancleMask'>
<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_box2' wx:if='{{img_state}}'>
<view class='item_list2'>
<image class='list_img' src='{{url}}'></image>
<view class='list_content_box'>
<textarea class="areas" placeholder='请输入简要描述' minlength="{{min}}" maxlength="{{max3}}" bindinput="setImgText">
<text class="currentWordNumber">{{imgInfoNum|0}}/{{max3}}</text>
</textarea>
</view>
</view>
<view class='bottom_btn2' bindtap='goCheck'>确定</view>
</view>