Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
高东东-金蝶建发
/
jf-yzj-kesu
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
a240c441
authored
Nov 08, 2023
by
golton_gao
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update: 提交代码前优化
parent
5af75dab
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
8 deletions
.gitignore
.prettierrc
package-lock.json
package.json
src/main.js
src/polyfill/cordova.js
.gitignore
View file @
a240c441
...
...
@@ -4,7 +4,7 @@ dist/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
www/
# Editor directories and files
.idea
*.suo
...
...
.prettierrc
0 → 100644
View file @
a240c441
{
"tabWidth": 2,
"useTabs": false,
"singleQuote": true
}
package-lock.json
View file @
a240c441
This diff is collapsed.
Click to expand it.
package.json
View file @
a240c441
...
...
@@ -8,6 +8,7 @@
"dev"
:
"node build/dev-server.js"
,
"build"
:
"node build/build.js"
,
"lint"
:
"eslint --ext .js,.vue src"
,
"build:prod"
:
"node build/vt-build.js"
,
"build:zip"
:
"node build/vt-build.js"
},
"dependencies"
:
{
...
...
src/main.js
View file @
a240c441
...
...
@@ -22,6 +22,9 @@ import nativeApi from './base/NativeApi/cordova';
// 时间范围选择
import
Calendar
from
'vue-mobile-calendar'
;
import
FastClick
from
'fastclick'
;
const
deviceIsIOS
=
/iP
(
ad|hone|od
)
/
.
test
(
navigator
.
userAgent
);
FastClick
.
prototype
.
focus
=
function
(
targetElement
)
{
var
length
;
if
(
...
...
@@ -50,7 +53,7 @@ Vue.use(Calendar)
Vue
.
config
.
productionTip
=
false
;
Vue
.
prototype
.
$toPage
=
routerJump
;
Vue
.
prototype
.
$http
=
http
;
FastClick
.
attach
(
document
.
body
);
function
getUserUID
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
Vue
.
$nativeApi
.
account
...
...
src/polyfill/cordova.js
View file @
a240c441
...
...
@@ -208,12 +208,6 @@
qing
.
call
(
'closeWebView'
)
successFn
(
'success'
)
},
orgChoose1
:
function
(
p
,
successFn
,
failFn
)
{
selectPersons
([],
false
,
successFn
,
failFn
)
},
orgMuChoose1
:
function
(
selected
,
successFn
,
failFn
)
{
selectPersons
(
selected
,
true
,
successFn
,
failFn
)
},
openSysBrowser
:
function
(
urls
,
successFn
,
failFn
)
{
var
u
=
urls
||
[]
if
(
!
u
.
length
)
{
...
...
@@ -288,6 +282,12 @@
}
},
MIDEAUSER
:
{
orgChoose
:
function
(
p
,
successFn
,
failFn
)
{
selectPersons
([],
false
,
successFn
,
failFn
)
},
orgMuChoose
:
function
(
selected
,
successFn
,
failFn
)
{
selectPersons
(
selected
,
true
,
successFn
,
failFn
)
},
getUser
:
function
(
param
,
successFn
,
failFn
)
{
getCurrentUserInfo
(
function
(
result
)
{
var
success
=
(
result
||
{}).
success
...
...
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