Commit 8d8ebaee934676adc3c74102cf762fd1e73847f4

Authored by pengye
1 parent a580e921

意见反馈已提交,置灰按钮

... ... @@ -89,6 +89,7 @@ Page({
sellerid: this.data.seller.sid,
oid: this.data.detail.id,
types: '1',
previousPage:'1',
}, '/pages/pinglun/createOpinion')
wx.navigateTo({
url
... ...
... ... @@ -406,7 +406,7 @@
}
.evaluateBox {
margin: 16rpx 84rpx 16rpx 56rpx;
margin: 16rpx 44rpx 16rpx 48rpx;
display: flex;
align-items: center;
justify-content: space-between;
... ...
... ... @@ -19,6 +19,7 @@ Page({
couponId:'',
price:'',
coupon:'',
is_user_comments:'',
},
text: '',
/**
... ... @@ -61,6 +62,7 @@ Page({
this.setData({
dateSmart,
tablesText,
is_user_comments:res.data.is_user_comments,
tableNum:res.data.actual_pum?res.data.actual_pum:tableNum,
cusdem:res.data.cusdem,
})
... ... @@ -100,7 +102,6 @@ Page({
price:price || '',
use:use || '',
})
this.setData({
marketing,
})
... ... @@ -125,9 +126,14 @@ Page({
title: '请填写意见反馈!',
})
}
wx.showToast({
icon: 'none',
title: '提交中,请稍后!',
if(this.data.is_user_comments){
return wx.showToast({
icon: 'none',
title: '评价已提交!',
})
}
wx.showLoading({
title: '提交中,请稍后!',
})
let params = {
sid: this.data.options.sellerid,
... ... @@ -169,10 +175,12 @@ Page({
couponId: this.data.couponId || '',
}, './opinionSuccess')
}
wx.hideLoading()
wx.redirectTo({
url
})
}).catch(e => {
wx.hideLoading()
console.log('catch', e);
wx.showToast({
icon: 'none',
... ...
<!--pages/pinglun/createOpinion.wxml 填写意见反馈页面-->
<nav color="#515151">{{options.sellerName}}</nav>
<nav color="#515151" hasHome="{{options.previousPage!='1'}}">{{options.sellerName}}</nav>
<view class="box">
<view class="info">
<view class="texts font28r">就餐时间:</view>
... ... @@ -22,4 +22,4 @@
<textarea class="margin-top-lg text-df textarea" bindinput="textareaInput" cols="30" rows="10" placeholder="麻烦点这里输入您的意见反馈。\n\n\n可以帮助我们持续改进,给您带来更好的服务品质,谢谢啦!" placeholder-style="color:#999999;font-size:30rpx;"></textarea>
<tpupload bind:tpupload="tpupload" tpNum='6'></tpupload>
</view>
<button class="btn" bindtap="submit">提交</button>
\ No newline at end of file
<button class="btn" bindtap="submit" disabled="{{is_user_comments}}">{{is_user_comments?'该订单已提交!':'提交'}}</button>
\ No newline at end of file
... ...
... ... @@ -55,4 +55,8 @@
color: #f8f9fd;
border-radius: 42rpx;
background: linear-gradient(104.24deg, #4c8dad -57.47%, #0143a3 55.72%, #42a5ff 148.72%);
}
button[disabled]:not([type]) {
color: #fff !important;
background:#4c8dad;
}
\ No newline at end of file
... ...