...
|
...
|
@@ -1125,14 +1125,13 @@ function fetchComment() { |
|
|
|
|
|
// 提交咨询
|
|
|
$('#submit-consult').click(function() {
|
|
|
var $this = $(this),
|
|
|
$textarea = $('#textbox'),
|
|
|
content = $.trim($textarea.val());
|
|
|
var consultdata = {
|
|
|
msg : '发表成功,等待客服回复',
|
|
|
download : '扫我下载app',
|
|
|
learn : '及时了解回复内容'
|
|
|
};
|
|
|
var $textarea = $('#textbox'),
|
|
|
content = $.trim($textarea.val());
|
|
|
var consultdata = {
|
|
|
msg: '发表成功,等待客服回复',
|
|
|
download: '扫我下载app',
|
|
|
learn: '及时了解回复内容'
|
|
|
};
|
|
|
|
|
|
var pass = true;
|
|
|
if (content === '') {
|
...
|
...
|
@@ -1157,12 +1156,12 @@ function fetchComment() { |
|
|
if (code === 200) {
|
|
|
$textarea.removeClass('err');
|
|
|
new Dialog({
|
|
|
content: consultsuccessTpl({success:consultdata}),
|
|
|
content: consultsuccessTpl({success: consultdata}),
|
|
|
className: 'consult-alert',
|
|
|
btns: [
|
|
|
{
|
|
|
id: 'consult-sure',
|
|
|
btnClass: ['alert-sure','btn-close'],
|
|
|
btnClass: ['alert-sure', 'btn-close'],
|
|
|
name: '确定'
|
|
|
}
|
|
|
]
|
...
|
...
|
|