|
@@ -820,8 +820,8 @@ function sendPhone(type,node){
|
|
|
});
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-function saveQuestion(){
|
|
|
+
|
|
|
+function saveQuestion(type){
|
|
|
var index = layer.load(1, {
|
|
|
shade: [0.5,'#fff']
|
|
|
});
|
|
@@ -863,9 +863,14 @@ function saveQuestion(){
|
|
|
success: function(data){
|
|
|
if (data.returnCode == 200) {
|
|
|
$("#questionId").val(data.returnMsg.questionId);
|
|
|
- layer.msg(data.resultMsg, {icon: 1, time: 3000});
|
|
|
+ if(type == 1){
|
|
|
+ layer.msg(data.resultMsg, {icon: 1, time: 3000});
|
|
|
+ }
|
|
|
+
|
|
|
}else{
|
|
|
- layer.msg(data.resultMsg, {icon: 5, time: 3000});
|
|
|
+ if(type == 1) {
|
|
|
+ layer.msg(data.resultMsg, {icon: 5, time: 3000});
|
|
|
+ }
|
|
|
}
|
|
|
layer.close(index);
|
|
|
},
|
|
@@ -1397,6 +1402,8 @@ $(function(){
|
|
|
|
|
|
|
|
|
function addCustomerReady(){
|
|
|
+
|
|
|
+ saveQuestion(2);
|
|
|
|
|
|
|
|
|
$("#customerName").val($("#sendName").val());
|