Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
N
nwjs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
YZG
nwjs
Commits
10d01568
Commit
10d01568
authored
Dec 10, 2021
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
输入手机号
parent
2cbe5ca4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
33 deletions
+24
-33
20211209.log
nwjs-v0.25.2-win-ia32/Config/Temp/Log/20211209.log
+0
-5
manualNumbering.js
...v0.25.2-win-ia32/TubidaNewSale/js/lhgj/manualNumbering.js
+24
-28
No files found.
nwjs-v0.25.2-win-ia32/Config/Temp/Log/20211209.log
deleted
100644 → 0
View file @
2cbe5ca4
17:28:18.061 未实现该方法或操作。:
在 LightFrame.Util.Converts.TypeConvert.XmlElementConvert.get_SourceType()
在 LightFrame.Util.Converts.ConvertCenter.<>c__DisplayClass6_0.<AddHandle>b__0()
在 LightFrame.Util.Threads.ThreadHelper.ExecuteCatch(DelegateEmpty vCode)
nwjs-v0.25.2-win-ia32/TubidaNewSale/js/lhgj/manualNumbering.js
View file @
10d01568
...
@@ -45,7 +45,7 @@ $(function(){
...
@@ -45,7 +45,7 @@ $(function(){
cache
.
channelId
=
channels
.
channelId
;
cache
.
channelId
=
channels
.
channelId
;
cache
.
saleId
=
channels
.
saleId
;
cache
.
saleId
=
channels
.
saleId
;
cache
.
buyNum
=
$mnInput
.
val
();
cache
.
buyNum
=
$mnInput
.
val
();
cache
.
mobile
=
$mnInput2
.
val
();
cache
.
mobile
=
getMobile
();
$mnInput2
.
val
(
""
);
//清空输入框的电话号码
$mnInput2
.
val
(
""
);
//清空输入框的电话号码
$mnInput
.
val
(
1
);
//清空输入框的电话号码
$mnInput
.
val
(
1
);
//清空输入框的电话号码
showResPage
(
null
,
"/page/lhgj/workScanCode.html"
);
showResPage
(
null
,
"/page/lhgj/workScanCode.html"
);
...
@@ -86,50 +86,46 @@ $(function(){
...
@@ -86,50 +86,46 @@ $(function(){
* @param mobile 手机号码
* @param mobile 手机号码
* @returns {string}
* @returns {string}
*/
*/
function
getMobile
(
mobile
)
{
function
getMobile
()
{
return
(
mobile
||
""
).
split
(
" "
).
join
(
""
);
let
mobile
=
$mnInput2
.
val
();
return
(
mobile
||
""
).
split
(
" "
).
join
(
""
);
}
}
/**
/**
* 输入新得手机号码,并且显示出来
* 输入新得手机号码,并且显示出来
* @param mobile
* @param mobile
*/
*/
function
inputMobile
(
mobile
)
{
function
setMobile
(
num
)
{
mobile
=
getMobile
(
mobile
);
if
(
num
.
length
>
11
)
{
mobile
=
mobile
||
""
;
num
=
num
.
substr
(
0
,
11
);
if
(
mobile
.
length
>
11
)
{
}
mobile
=
mobile
.
substr
(
0
,
11
);
if
(
num
.
length
>
7
)
{
}
num
=
num
.
substr
(
0
,
7
)
+
" "
+
num
.
substr
(
7
);
if
(
mobile
.
length
>
7
)
{
}
mobile
=
mobile
.
substr
(
0
,
7
)
+
" "
+
mobile
.
substr
(
7
);
if
(
num
.
length
>
3
)
{
}
num
=
num
.
substr
(
0
,
3
)
+
" "
+
num
.
substr
(
3
);
if
(
mobile
.
length
>
3
)
{
}
mobile
=
mobile
.
substr
(
0
,
3
)
+
" "
+
mobile
.
substr
(
3
);
$mnInput2
.
val
(
num
);
}
$mnInput2
.
val
(
mobile
);
}
}
/**
/**
* 输入手机号按钮点击
* 输入手机号按钮点击
*/
*/
$mnNum
.
click
(
function
()
{
$mnNum
.
click
(
function
()
{
// 已经输入得手机号得值
let
front
=
getMobile
();
let
mobile
=
$mnInput2
.
val
();
let
num
=
$
(
this
).
text
();
// 新输入得数字
setMobile
(
front
+
num
);
let
num
=
$
(
this
).
text
();
// 输入手机号码
inputMobile
(
mobile
+
num
);
});
});
$mnKong
.
click
(
function
()
{
$mnKong
.
click
(
function
()
{
inpu
tMobile
(
""
);
se
tMobile
(
""
);
});
});
// 退格手机号
// 退格手机号
$mnBackspace
.
click
(
function
()
{
$mnBackspace
.
click
(
function
()
{
let
mobile
=
$mnInput2
.
val
();
let
num
=
getMobile
();
mobile
=
mobile
.
substr
(
0
,
mobile
.
length
-
1
);
num
=
num
.
substr
(
0
,
num
.
length
-
1
);
inputMobile
(
mobile
);
setMobile
(
num
);
});
});
function
loadChannel
(){
//加载购买渠道
function
loadChannel
(){
//加载购买渠道
...
...
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