Showing
1 changed file
with
9 additions
and
10 deletions
@@ -1125,14 +1125,13 @@ function fetchComment() { | @@ -1125,14 +1125,13 @@ function fetchComment() { | ||
1125 | 1125 | ||
1126 | // 提交咨询 | 1126 | // 提交咨询 |
1127 | $('#submit-consult').click(function() { | 1127 | $('#submit-consult').click(function() { |
1128 | - var $this = $(this), | ||
1129 | - $textarea = $('#textbox'), | ||
1130 | - content = $.trim($textarea.val()); | ||
1131 | - var consultdata = { | ||
1132 | - msg : '发表成功,等待客服回复', | ||
1133 | - download : '扫我下载app', | ||
1134 | - learn : '及时了解回复内容' | ||
1135 | - }; | 1128 | + var $textarea = $('#textbox'), |
1129 | + content = $.trim($textarea.val()); | ||
1130 | + var consultdata = { | ||
1131 | + msg: '发表成功,等待客服回复', | ||
1132 | + download: '扫我下载app', | ||
1133 | + learn: '及时了解回复内容' | ||
1134 | + }; | ||
1136 | 1135 | ||
1137 | var pass = true; | 1136 | var pass = true; |
1138 | if (content === '') { | 1137 | if (content === '') { |
@@ -1157,12 +1156,12 @@ function fetchComment() { | @@ -1157,12 +1156,12 @@ function fetchComment() { | ||
1157 | if (code === 200) { | 1156 | if (code === 200) { |
1158 | $textarea.removeClass('err'); | 1157 | $textarea.removeClass('err'); |
1159 | new Dialog({ | 1158 | new Dialog({ |
1160 | - content: consultsuccessTpl({success:consultdata}), | 1159 | + content: consultsuccessTpl({success: consultdata}), |
1161 | className: 'consult-alert', | 1160 | className: 'consult-alert', |
1162 | btns: [ | 1161 | btns: [ |
1163 | { | 1162 | { |
1164 | id: 'consult-sure', | 1163 | id: 'consult-sure', |
1165 | - btnClass: ['alert-sure','btn-close'], | 1164 | + btnClass: ['alert-sure', 'btn-close'], |
1166 | name: '确定' | 1165 | name: '确定' |
1167 | } | 1166 | } |
1168 | ] | 1167 | ] |
-
Please register or login to post a comment