Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
施宇
/
icsales
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a149aa95
authored
Sep 27, 2019
by
施宇
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1111
parent
75d1837a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
20 deletions
dist/js/chat/index.js
dist/js/global/global.min.js
dist/js/goodmanage/uploadsingle.js
dist/js/quoteprice/quotedetail.js
dist/js/quoteprice/releaseinquiry.js
dist/js/chat/index.js
View file @
a149aa95
...
...
@@ -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
));
...
...
dist/js/global/global.min.js
View file @
a149aa95
...
...
@@ -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
fals
e
;
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
tru
e
;
}
}
};
...
...
dist/js/goodmanage/uploadsingle.js
View file @
a149aa95
...
...
@@ -317,7 +317,7 @@
},
pointLimit
:
function
(
value
,
item
)
{
if
(
!
Util
.
fourPoint
(
value
)){
return
'价格
只支持4位小数点
'
return
'价格
为整数或不超过4位小数
'
}
},
});
...
...
dist/js/quoteprice/quotedetail.js
View file @
a149aa95
...
...
@@ -219,7 +219,7 @@ $(function () {
},
pointLimit
:
function
(
value
,
item
)
{
if
(
!
Util
.
fourPoint
(
value
)){
return
'价格
只支持4位小数点
'
return
'价格
为整数或不超过4位小数
'
}
},
});
...
...
dist/js/quoteprice/releaseinquiry.js
View file @
a149aa95
...
...
@@ -218,7 +218,7 @@
},
pointLimit
:
function
(
value
,
item
)
{
if
(
!
Util
.
fourPoint
(
value
)){
return
'价格
只支持4位小数点
'
return
'价格
为整数或不超过4位小数
'
}
},
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment