Commit a149aa95 by 施宇

1111

parent 75d1837a
......@@ -129,7 +129,7 @@ $(function () {
var id, name, img, touserid, img1;
if (isDefault) {
id = this.defaultName;
name = 'IC助手客服';
name = '芯掌柜客服';
touserid = "";
img = dist + "/images/timg.jpg";
img1 = dist + "/images/timg.jpg";
......@@ -650,7 +650,7 @@ $(function () {
};
if (message.from == this.defaultName) {
obj.img = dist + "/images/timg.jpg";
obj.name = 'IC助手客服';
obj.name = '芯掌柜客服';
} else {
obj.img = message.ext.img || (dist + "/images/default.jpg");
obj.name = message.ext.name || '--';
......@@ -736,7 +736,7 @@ $(function () {
success: function (id, serverMsgId) {
$('#' + userId).find('.notice_item_content').append(self.messageHtml(1, {
message: emojiMessage,
name: self.customerNum == self.defaultName ? 'IC助手客服' : self.name,
name: self.customerNum == self.defaultName ? '芯掌柜客服' : self.name,
img: self.customerNum == self.defaultName ? dist + "/images/timg.jpg" : self.img,
id: self.id
}, false));
......@@ -843,7 +843,7 @@ $(function () {
var htmlStr = '<img src ="' + file.url + '" class="edit_img"/>';
$('#' + userId).find('.notice_item_content').append(self.messageHtml(1, {
message: htmlStr,
name: self.customerNum == self.defaultName ? 'IC助手客服' : self.name,
name: self.customerNum == self.defaultName ? '芯掌柜客服' : self.name,
img: self.customerNum == self.defaultName ? dist + "/images/timg.jpg" : self.img,
id: self.id
}, false));
......
......@@ -214,11 +214,11 @@
$('.web_btn').on('click', function () {
var token = Util.getCookie('token') || "";
if (token) {
window.location.href = home_url
window.location.href = home_url
} else {
window.location.href = passport_url;
window.location.href = passport_url;
}
});
});
return this;
}
......@@ -437,7 +437,7 @@
return {
randomStr: randomStr,
singnatrueStr: singnatrueStr,
timestampStr:timestamp
timestampStr: timestamp
}
},
sort: function (arr) { //数组排序
......@@ -511,19 +511,19 @@
}).join("");
return hex;
},
showOrHideQrcode:function(ele1,ele2){
showOrHideQrcode: function (ele1, ele2) {
$('.' + ele1).hover(function () {
$('.' + ele2).slideDown()
}, function () {
}, function () {
$('.' + ele2).stop().slideUp()
})
})
},
fourPoint:function(num){//检测价格是否是四位小数点的小数
var strArr = num.split('.');
if ((strArr.length == 1) || (strArr.length == 2 && strArr[1].length == 4)) {
return true
} else {
return false;
fourPoint: function (num) { //检测价格是否是四位小数点的小数
var reg = /^(([1-9][0-9]*)|(([0]\.\d{1,4}|[1-9][0-9]*\.\d{1,4})))$/;
if (!reg.test(num)) {
return false;
} else {
return true;
}
}
};
......
......@@ -317,7 +317,7 @@
},
pointLimit: function (value, item) {
if(!Util.fourPoint(value)){
return '价格只支持4位小数点'
return '价格为整数或不超过4位小数'
}
},
});
......
......@@ -219,7 +219,7 @@ $(function () {
},
pointLimit: function (value, item) {
if(!Util.fourPoint(value)){
return '价格只支持4位小数点'
return '价格为整数或不超过4位小数'
}
},
});
......
......@@ -218,7 +218,7 @@
},
pointLimit: function (value, item) {
if(!Util.fourPoint(value)){
return '价格只支持4位小数点'
return '价格为整数或不超过4位小数'
}
},
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment