|
...
|
...
|
@@ -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',
|
...
|
...
|
|