Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
高东东-金蝶建发
/
jf-yzj-yunying-sheet
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
dab80d61
authored
Dec 26, 2023
by
zhongqm
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update:跳转天眼云轻应用
parent
5dc70f0c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
15 deletions
build/webpack.prod.conf.js
src/libraries/polyfill/cordova.js
src/shared/app.vue
build/webpack.prod.conf.js
View file @
dab80d61
...
...
@@ -12,6 +12,8 @@ var OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
var
env
=
config
.
build
.
env
console
.
log
(
'---------------------PACK_ENV:'
,
process
.
env
.
PACK_ENV
)
var
rules
=
utils
.
styleLoaders
({
sourceMap
:
config
.
build
.
productionSourceMap
,
extract
:
true
...
...
src/libraries/polyfill/cordova.js
View file @
dab80d61
...
...
@@ -352,6 +352,8 @@
}
var
appName
=
params
[
0
]
var
appId
=
appMap
[
appName
]
console
.
log
(
'appName>>'
,
appName
)
console
.
log
(
'appMap>>'
,
appMap
)
if
(
!
appId
)
{
failFn
(
'未检测到要打开的应用!'
)
return
...
...
src/shared/app.vue
View file @
dab80d61
...
...
@@ -117,21 +117,21 @@ export default {
// V+切换地图功能: areaNum 填写要进入的片区地图
var
that
=
this
;
console
.
log
(
that
.
currentAreaNum
,
"that.currentAreaNum-===
>>>"
);
cordova
.
exec
(
function
(
success
)
{
console
.
log
(
success
);
},
function
(
error
)
{
console
.
log
(
error
);
},
"MideaCommon"
,
"showWidget"
,
[
"com.cnd.jffc.tyypt"
,
`{"action":"gotoMap", "areaNum":"
${
that
.
currentAreaNum
}
","H5CallBackFunction":"callBack()"}`
,
]
);
console
.
log
(
"跳转天眼云
>>>"
);
//
cordova.exec(
//
function (success) {
//
console.log(success);
//
},
//
function (error) {
//
console.log(error);
//
},
//
"MideaCommon",
//
"showWidget",
//
[
//
"com.cnd.jffc.tyypt",
//
`{"action":"gotoMap", "areaNum":"${that.currentAreaNum}","H5CallBackFunction":"callBack()"}`,
//
]
//
);
// const urlParam = {
// action: 'gotoMap',
// areaNum: this.currentAreaNum
...
...
@@ -142,6 +142,11 @@ export default {
// qing.call("gotoLightApp", {
// urlParam: href,
// });
qing
.
call
(
'gotoLightApp'
,
{
appId
:
process
.
env
.
PACK_ENV
===
'test'
?
'500000155'
:
''
,
appName
:
'天眼云'
,
urlParam
:
`action=gotoMap&areaNum=
${
that
.
currentAreaNum
}
&H5CallBackFunction=callBack()`
});
},
...
...
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