Commit 26792a6525778634fb51443693e18d1b8a80d1c4

Authored by vking
1 parent 560b6e02

taocan-share-pinglun

@@ -179,13 +179,16 @@ Page({ @@ -179,13 +179,16 @@ Page({
179 } 179 }
180 }) 180 })
181 if(eval_label.length<1) return util.toast('请选择标签','none') 181 if(eval_label.length<1) return util.toast('请选择标签','none')
182 - this.submitIng=true  
183 let enclosure=[]; 182 let enclosure=[];
184 this.data.files.some(attr=>{ 183 this.data.files.some(attr=>{
185 if(attr.remote){ 184 if(attr.remote){
186 enclosure.push(attr.remote) 185 enclosure.push(attr.remote)
  186 + }else{
  187 + util.toast('请等待上传完成','none')
  188 + throw new Error('请等待上传完成')
187 } 189 }
188 }) 190 })
  191 + this.submitIng=true
189 let params={ 192 let params={
190 sid:this.options.sid, 193 sid:this.options.sid,
191 rid:this.options.oid, 194 rid:this.options.oid,
@@ -21,14 +21,13 @@ @@ -21,14 +21,13 @@
21 </view> 21 </view>
22 </view> 22 </view>
23 <textarea 23 <textarea
24 - class="margin-top-lg" style="height: 294rpx; font-size: 30rpx;line-height: 42rpx;" 24 + class="margin-top-lg text-df textarea"
25 bindinput="textareaInput" 25 bindinput="textareaInput"
26 - placeholder-style="font-size: 30rpx;line-height: 42rpx;color:#999999;"  
27 placeholder="从包间环境、菜品口味、服务来评价餐厅,可以帮助更多想要订这家餐厅的人哦~"></textarea> 26 placeholder="从包间环境、菜品口味、服务来评价餐厅,可以帮助更多想要订这家餐厅的人哦~"></textarea>
28 </view> 27 </view>
29 <scroll-view class="view" 28 <scroll-view class="view"
30 scroll-into-view="{{scrollIntoView}}" 29 scroll-into-view="{{scrollIntoView}}"
31 - scroll-x="true" style="height: 192rpx;width: 100%;white-space: nowrap;"> 30 + scroll-x="true" style="height: 100%;width: 100%;white-space: nowrap;">
32 <block wx:for="{{files}}" wx:key="fileskey"> 31 <block wx:for="{{files}}" wx:key="fileskey">
33 <qnupload qnConf="{{qnConf}}" upConf="{{upConf}}" 32 <qnupload qnConf="{{qnConf}}" upConf="{{upConf}}"
34 file="{{item}}" files="{{files}}" 33 file="{{item}}" files="{{files}}"
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 .qnupload{ 3 .qnupload{
4 display: inline-block; 4 display: inline-block;
5 margin-right: 20rpx; 5 margin-right: 20rpx;
6 - padding-top: 12rpx; 6 + padding-top: 32rpx;
7 } 7 }
8 .scroll-block{ 8 .scroll-block{
9 width: 180rpx; 9 width: 180rpx;
@@ -42,6 +42,15 @@ @@ -42,6 +42,15 @@
42 background-image: url("http://nosqn.colorcun.com/pinglun/p%20%286%29.png"); 42 background-image: url("http://nosqn.colorcun.com/pinglun/p%20%286%29.png");
43 background-size: 100% 100%; 43 background-size: 100% 100%;
44 } 44 }
  45 +.image-delete:after{
  46 + display: block;
  47 + content: "";
  48 + position: absolute;
  49 + top:-22rpx;
  50 + right: -12rpx;
  51 + width: 80rpx;
  52 + height: 80rpx;
  53 +}
45 .submit{ 54 .submit{
46 position: fixed; 55 position: fixed;
47 width: calc(100% - 80rpx); 56 width: calc(100% - 80rpx);
@@ -73,4 +82,17 @@ @@ -73,4 +82,17 @@
73 height: 60rpx; 82 height: 60rpx;
74 top:calc(50% - 30rpx); 83 top:calc(50% - 30rpx);
75 left:calc(50% - 30rpx); 84 left:calc(50% - 30rpx);
  85 +}
  86 +.textarea{
  87 + height: 252rpx;
  88 + font-size: 30rpx;
  89 + line-height: 42rpx;
  90 + margin-bottom:20rpx;
  91 +}
  92 +.textarea-placeholder{
  93 + font-size: 30rpx;
  94 + font-family: PingFangSC-Regular, PingFang SC;
  95 + font-weight: 400;
  96 + color: #999999!important;
  97 + line-height: 42rpx;
76 } 98 }
@@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
5 <view class="view flex flex-wrap margin-lr-lg margin-top-lg" wx:if="{{commentLabel.length>0}}"> 5 <view class="view flex flex-wrap margin-lr-lg margin-top-lg" wx:if="{{commentLabel.length>0}}">
6 <block wx:for="{{commentLabel}}" wx:key="commentLabel"> 6 <block wx:for="{{commentLabel}}" wx:key="commentLabel">
7 <view bindtap="commentLabelTap" data-val="{{item.name}}" 7 <view bindtap="commentLabelTap" data-val="{{item.name}}"
8 - class="view commentLabel padding-lr-sm margin-bottom-sm {{commentLabelActive==item.name?'active':''}}">{{item.name}}</view> 8 + class="view commentLabel padding-lr-sm margin-bottom-sm margin-right-sm {{commentLabelActive==item.name?'active':''}}">{{item.name}}</view>
9 </block> 9 </block>
10 </view> 10 </view>
11 <view class="view" wx:for="{{posts}}" wx:key="posts"> 11 <view class="view" wx:for="{{posts}}" wx:key="posts">
@@ -209,7 +209,7 @@ @@ -209,7 +209,7 @@
209 <view class="view padding-bottom-xl"> 209 <view class="view padding-bottom-xl">
210 <view class="view flex flex-wrap" wx:if="{{commentLabel.length>0}}"> 210 <view class="view flex flex-wrap" wx:if="{{commentLabel.length>0}}">
211 <block wx:for="{{commentLabel}}" wx:key="commentLabel"> 211 <block wx:for="{{commentLabel}}" wx:key="commentLabel">
212 - <view class="view commentLabel padding-lr-sm margin-bottom-sm">{{item.name}}</view> 212 + <view class="view commentLabel padding-lr-sm margin-bottom-sm margin-right-sm">{{item.name}}</view>
213 </block> 213 </block>
214 </view> 214 </view>
215 <view class="margin-top-lg"> 215 <view class="margin-top-lg">