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
a2657325
authored
Dec 26, 2023
by
zhongqm
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update:跳转天眼云
parent
b42d75da
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
82 additions
and
62 deletions
build/webpack.prod.conf.js
src/libraries/polyfill/cordova.js
src/shared/api.js
src/shared/app.vue
build/webpack.prod.conf.js
View file @
a2657325
...
@@ -30,7 +30,8 @@ var webpackConfig = merge(baseWebpackConfig, {
...
@@ -30,7 +30,8 @@ var webpackConfig = merge(baseWebpackConfig, {
plugins
:
[
plugins
:
[
// http://vuejs.github.io/vue-loader/en/workflow/production.html
// http://vuejs.github.io/vue-loader/en/workflow/production.html
new
webpack
.
DefinePlugin
({
new
webpack
.
DefinePlugin
({
'process.env'
:
env
'process.env'
:
env
,
'process.env.PACK_ENV'
:
JSON
.
stringify
(
process
.
env
.
PACK_ENV
)
}),
}),
new
webpack
.
optimize
.
UglifyJsPlugin
({
new
webpack
.
optimize
.
UglifyJsPlugin
({
compress
:
{
compress
:
{
...
...
src/libraries/polyfill/cordova.js
View file @
a2657325
This diff is collapsed.
Click to expand it.
src/shared/api.js
View file @
a2657325
...
@@ -20,6 +20,8 @@ export const SetToken = function (val) {
...
@@ -20,6 +20,8 @@ export const SetToken = function (val) {
}
}
}
}
export
const
appId
=
''
// android or iOS scheme
// android or iOS scheme
export
const
goThirdAppPrefix
=
{
export
const
goThirdAppPrefix
=
{
smartbuild
:
'com.tsinglink.smartbuild://'
,
// 进度概况->项目节点列表->跳转到“智慧工地”第三方app的参数拼接前缀
smartbuild
:
'com.tsinglink.smartbuild://'
,
// 进度概况->项目节点列表->跳转到“智慧工地”第三方app的参数拼接前缀
...
...
src/shared/app.vue
View file @
a2657325
...
@@ -12,9 +12,9 @@
...
@@ -12,9 +12,9 @@
</keep-alive>
</keep-alive>
<router-view
<router-view
v-if=
"!$route.meta.keepAlive"
v-if=
"!$route.meta.keepAlive"
class=
"child-view"
class=
"child-view"
:class=
"
{transition:isShowTransition}"
:class=
"
{transition:isShowTransition}"
>
</router-view>
>
</router-view>
</transition>
</transition>
<!-- bottom -->
<!-- bottom -->
...
@@ -22,17 +22,17 @@
...
@@ -22,17 +22,17 @@
<div
class=
"bar"
>
<div
class=
"bar"
>
<ul>
<ul>
<li
@
click=
"goPage('')"
>
<li
@
click=
"goPage('')"
>
<img
v-if=
"tabIndex==0"
:src=
"require('~proj/assets/images/yygl_active.png')"
/>
<img
v-if=
"tabIndex==0"
:src=
"require('~proj/assets/images/yygl_active.png')"
/>
<img
v-else
:src=
"require('~proj/assets/images/yygl.png')"
/>
<img
v-else
:src=
"require('~proj/assets/images/yygl.png')"
/>
<p>
运营概况
</p>
<p>
运营概况
</p>
</li>
</li>
<li
@
click=
"goMap"
v-if=
"showProjectMap"
>
<li
@
click=
"goMap"
v-if=
"showProjectMap"
>
<img
:src=
"require('~proj/assets/images/xmdt.png')"
/>
<img
:src=
"require('~proj/assets/images/xmdt.png')"
/>
<p>
项目地图
</p>
<p>
项目地图
</p>
</li>
</li>
<li
v-if=
"showReport"
@
click=
"goPage('classifySheet')"
>
<li
v-if=
"showReport"
@
click=
"goPage('classifySheet')"
>
<img
v-if=
"tabIndex==2"
:src=
"require('~proj/assets/images/flbb_active.png')"
/>
<img
v-if=
"tabIndex==2"
:src=
"require('~proj/assets/images/flbb_active.png')"
/>
<img
v-else
:src=
"require('~proj/assets/images/flbb.png')"
/>
<img
v-else
:src=
"require('~proj/assets/images/flbb.png')"
/>
<p>
分类报表
</p>
<p>
分类报表
</p>
</li>
</li>
</ul>
</ul>
...
@@ -44,8 +44,8 @@
...
@@ -44,8 +44,8 @@
<
script
>
<
script
>
import
CHeader
from
"./components/commom/c-header.vue"
;
import
CHeader
from
"./components/commom/c-header.vue"
;
import
{
SetToken
,
code
,
projectMapUrl
}
from
"./api.js"
;
import
{
SetToken
,
code
,
projectMapUrl
}
from
"./api.js"
;
import
{
delCookie
}
from
"~lib/utils/common"
;
import
{
delCookie
}
from
"~lib/utils/common"
;
export
default
{
export
default
{
components
:
{
components
:
{
...
@@ -112,43 +112,60 @@ export default {
...
@@ -112,43 +112,60 @@ export default {
});
});
},
},
goMap
()
{
goMap
()
{
// 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()"}`
,
]
);
// const urlParam = {
// action: 'gotoMap',
// areaNum: this.currentAreaNum
// }
//
// const path = encodeURIComponent(`index.html?${urlParam}`);
// const href = `cloudhub://miniapp?appid=${TyyptAppId}&path=${path}`;
// qing.call("gotoLightApp", {
// urlParam: href,
// });
},
goMap_old
()
{
var
that
=
this
;
var
that
=
this
;
// V+切换地图功能: areaNum 填写要进入的片区地图
// V+切换地图功能: areaNum 填写要进入的片区地图
console
.
log
(
that
.
currentAreaNum
,
"that.currentAreaNum-===>>>"
);
console
.
log
(
that
.
currentAreaNum
,
"that.currentAreaNum-===>>>"
);
cordova
.
exec
(
cordova
.
exec
(
function
(
success
)
{
function
(
success
)
{
console
.
log
(
success
);
console
.
log
(
success
);
},
},
function
(
error
)
{
function
(
error
)
{
console
.
log
(
error
);
console
.
log
(
error
);
},
},
"MideaCommon"
,
"MideaCommon"
,
"showWidget"
,
"showWidget"
,
[
[
"com.cnd.jffc.tyypt"
,
"com.cnd.jffc.tyypt"
,
`{"action":"gotoMap", "areaNum":"
${
that
.
currentAreaNum
}
","H5CallBackFunction":"callBack()"}`
,
`{"action":"gotoMap", "areaNum":"
${
that
.
currentAreaNum
}
","H5CallBackFunction":"callBack()"}`
,
]
]
);
);
// cordova.exec(
// function (result) {
// console.log("回调成功: " + JSON.stringify(result));
// },
// function (error) {
// console.log("回调失败");
// },
// "MideaCommon",
// "openUrl", [
// projectMapUrl + "?areaNum=05&access_token=" +
// that.$mas.token,
// {
// title: 1,
// shareRange: 2
// }
// ]
// );
},
},
clickBar
:
function
()
{
clickBar
:
function
()
{
this
.
isShowTransition
=
false
;
this
.
isShowTransition
=
false
;
...
@@ -162,31 +179,31 @@ export default {
...
@@ -162,31 +179,31 @@ export default {
},
},
getUserAccount
()
{
getUserAccount
()
{
this
.
$nativeApi
.
account
this
.
$nativeApi
.
account
.
getUser
()
.
getUser
()
.
then
((
data
)
=>
{
.
then
((
data
)
=>
{
// alert('V+登录用户账号' + JSON.stringify(data))
// alert('V+登录用户账号' + JSON.stringify(data))
this
.
$store
.
commit
(
"updateVUserInfo"
,
{
this
.
$store
.
commit
(
"updateVUserInfo"
,
{
userAccount
:
data
.
uid
,
userAccount
:
data
.
uid
,
});
})
.
catch
((
error
)
=>
{
// alert('获取用户信息失败:' + JSON.stringify(error) )
console
.
log
(
"获取用户信息失败:"
,
error
);
});
});
})
.
catch
((
error
)
=>
{
// alert('获取用户信息失败:' + JSON.stringify(error) )
console
.
log
(
"获取用户信息失败:"
,
error
);
});
},
},
getUserPassword
()
{
getUserPassword
()
{
this
.
$nativeApi
.
account
this
.
$nativeApi
.
account
.
getUserPassword
()
.
getUserPassword
()
.
then
((
data
)
=>
{
.
then
((
data
)
=>
{
// alert('V+用户密码:' + JSON.stringify(data))
// alert('V+用户密码:' + JSON.stringify(data))
this
.
$store
.
commit
(
"updateVUserInfo"
,
{
this
.
$store
.
commit
(
"updateVUserInfo"
,
{
userPassword
:
data
,
userPassword
:
data
,
});
})
.
catch
((
error
)
=>
{
// alert('获取用户密码失败:' + JSON.stringify(error))
console
.
log
(
"获取用户密码失败:"
,
error
);
});
});
})
.
catch
((
error
)
=>
{
// alert('获取用户密码失败:' + JSON.stringify(error))
console
.
log
(
"获取用户密码失败:"
,
error
);
});
},
},
},
},
created
()
{
created
()
{
...
@@ -248,8 +265,8 @@ export default {
...
@@ -248,8 +265,8 @@ export default {
_this
.
$store
.
commit
(
"setNavbarShow"
,
true
);
_this
.
$store
.
commit
(
"setNavbarShow"
,
true
);
if
(
if
(
(
to
.
name
==
"homepage"
&&
from
.
name
==
"subject"
)
||
(
to
.
name
==
"homepage"
&&
from
.
name
==
"subject"
)
||
(
to
.
name
==
"subject"
&&
from
.
name
==
"homepage"
)
(
to
.
name
==
"subject"
&&
from
.
name
==
"homepage"
)
)
{
)
{
if
(
_this
.
isShowTransition
)
{
if
(
_this
.
isShowTransition
)
{
_this
.
isShowTransition
=
false
;
_this
.
isShowTransition
=
false
;
...
...
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