create.wxml
4.24 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
<!--pages/pinglun/create.wxml-->
<nav>{{sellername}}</nav>
<page loading="{{loading}}">
<view class="view" style="padding-bottom: 200rpx;">
<view class="view padding-lr-lg">
<view class="view flex align-center solid-bottom" style="height: 136rpx;">
<view class="txt-36-h text-bold">评分</view>
<view class="txt-36-h text-bold margin-left-xs margin-right" style="color:#FF7A00;">*</view>
<view class="view">
<stat value="5" bindevent="statEvent"></stat>
</view>
</view>
<view class="view flex align-start solid-bottom padding-bottom-sm">
<view class="txt-36-h text-bold" style="margin-top: 48rpx; min-width: 72rpx;">标签</view>
<view class="txt-36-h text-bold margin-left-xs margin-right" style="color:#FF7A00;margin-top: 48rpx;">*</view>
<view class="view margin-top-lg flex flex-wrap">
<block wx:for="{{labels}}" wx:key="labels">
<view bindtap="labelTap" data-index="{{index}}"
class="tag-item {{item.active?'active':''}} view padding-lr margin-bottom margin-right flex align-center">{{item.name}}</view>
</block>
</view>
</view>
<textarea
class="margin-top-lg text-df textarea"
bindinput="textareaInput"
placeholder="从包间环境、菜品口味、服务来评价餐厅,可以帮助更多想要订这家餐厅的人哦~"></textarea>
</view>
<scroll-view class="view"
scroll-into-view="{{scrollIntoView}}"
scroll-x="true" style="height: 100%;width: 100%;white-space: nowrap;">
<block wx:for="{{files}}" wx:key="fileskey">
<qnupload qnConf="{{qnConf}}" upConf="{{upConf}}"
file="{{item}}" files="{{files}}"
bindevent="qnevent" class="view qnupload">
<view class="view scroll-block flex flex-direction justify-center align-center"
catchtap="displayImage" data-path="{{item.path}}" data-duration="{{item.duration}}">
<image class="view image" src="{{item.thumbTempFilePath||item.path}}"></image>
<view class="view image-delete" catchtap="deleteImage" data-index="{{index}}"></view>
<image class="view image-up" src=""></image>
<view class="view image-text"></view>
<view class="bg-image-video view" wx:if="{{item.duration>0}}"></view>
</view>
</qnupload>
</block>
<block wx:if="{{hasAddFile}}">
<qnupload
qnConf="{{qnConf}}" upConf="{{upConf}}"
file="{{item}}" files="{{files}}"
bindevent="qnevent" class="view qnupload">
<view class="view scroll-block flex flex-direction justify-center align-center">
<image class="view image-up" src="http://nosqn.colorcun.com/pinglun/p%20%2817%29.png"></image>
<view class="view image-text">上传图片</view>
</view>
</qnupload>
<qnupload
qnConf="{{qnConfVideo}}" upConf="{{upConfVideo}}"
file="{{item}}" files="{{files}}"
bindevent="qnevent" class="view qnupload">
<view class="view scroll-block flex flex-direction justify-center align-center">
<image class="view image" src="{{item.path}}"></image>
<image class="view image-up" src="http://nosqn.colorcun.com/pinglun/p%20%2818%29.png"></image>
<view class="view image-text">上传视频</view>
</view>
</qnupload>
</block>
<view id="scrollIntoView" class="qnupload" style="width: 0;"></view>
</scroll-view>
</view>
<view class="bg-blue-blue submit text-bold txt-36-h round flex align-center justify-center" bindtap="submit">发布评价</view>
</page>