Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
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
xugong
hls-xcmg-vue-app
Commits
e96553e8
Commit
e96553e8
authored
Nov 09, 2023
by
jiacheng.mao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除极光推送的引用
parent
1e750327
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
17 deletions
+17
-17
android.json
plugins/android.json
+1
-1
main.js
src/main.js
+6
-6
location.vue
src/pages/home/location.vue
+2
-2
login.vue
src/pages/login.vue
+7
-7
index.html
www/index.html
+1
-1
No files found.
plugins/android.json
View file @
e96553e8
src/main.js
View file @
e96553e8
...
...
@@ -59,9 +59,9 @@ import hlsUtil from './scripts/hlsUtil'
/**
* jpush jmessage
*/
import
Jpush
from
'./scripts/jpushService'
//
import Jpush from './scripts/jpushService'
import
Jmessage
from
'./scripts/jmessageService'
//
import Jmessage from './scripts/jmessageService'
// || process.env.CONFIG_ENV === 'prod'
if
(
process
.
env
.
CONFIG_ENV
===
'uat'
)
{
const
VConsole
=
require
(
'vconsole'
)
...
...
@@ -107,9 +107,9 @@ Vue.prototype.PDFJS = window.PDFJS = PDFJS
Vue
.
prototype
.
hlsUtil
=
window
.
hlsUtil
=
hlsUtil
Vue
.
prototype
.
Jpush
=
window
.
Jpush
=
Jpush
//
Vue.prototype.Jpush = window.Jpush = Jpush
Vue
.
prototype
.
Jmessage
=
window
.
Jmessage
=
Jmessage
//
Vue.prototype.Jmessage = window.Jmessage = Jmessage
/**
* 全局返回上一页面
...
...
@@ -135,7 +135,7 @@ if (window.localStorage.isReadPolicy === 'true') {
/* window.getRegistrationID = function (callback){
callback('')
} */
try
{
/*
try {
setTimeout(function () {
navigator.splashscreen.hide()
if (window.plugins.jPushPlugin) {
...
...
@@ -146,7 +146,7 @@ if (window.localStorage.isReadPolicy === 'true') {
}
}, 40)
} catch (e) {
}
}
*/
if
(
window
.
cordova
&&
window
.
cordova
.
plugins
&&
window
.
cordova
.
plugins
.
Keyboard
)
{
cordova
.
plugins
.
Keyboard
.
hideKeyboardAccessoryBar
(
true
)
cordova
.
plugins
.
Keyboard
.
disableScroll
(
true
)
...
...
src/pages/home/location.vue
View file @
e96553e8
...
...
@@ -111,7 +111,7 @@ export default {
// console.log(error)
// }, {enableHighAccuracy: true})
// } else { // ios使用插件定位
baidumap_location
.
getCurrentPosition
(
function
(
result
)
{
/*
baidumap_location.getCurrentPosition(function (result) {
console.log('*********** ' + JSON.stringify(result))
window.localStorage.setItem('province', result.province)
window.localStorage.setItem('city', result.city)
...
...
@@ -122,7 +122,7 @@ export default {
vm.province_flag = true
}, function (error) {
console.log('errorerrorerrorerror ' + error)
})
})
*/
// }
},
...
...
src/pages/login.vue
View file @
e96553e8
...
...
@@ -47,8 +47,8 @@
</scroll>
</
template
>
<
script
>
import
Jpush
from
"../scripts/jpushService"
;
import
Jmessage
from
"../scripts/jmessageService"
;
//
import Jpush from "../scripts/jpushService";
//
import Jmessage from "../scripts/jmessageService";
var
CryptoJS
=
require
(
'crypto-js'
)
export
default
{
...
...
@@ -108,7 +108,7 @@ export default {
async
goHome
()
{
let
flag
=
await
this
.
getAccessToken
()
if
(
flag
)
{
this
.
initJPush
()
//
this.initJPush()
this
.
$router
.
push
(
'tab'
)
}
},
...
...
@@ -302,13 +302,13 @@ export default {
},
})
},
initJPush
()
{
/*
initJPush () {
if (window.localStorage.isReadPolicy === 'true') {
vum.$vumPlatform.ready(function () {
if ((vum.Platform.isAndroid()) || (vum.Platform.isIOS())) {
/* window.getRegistrationID = function (callback){
/
!
* window.getRegistrationID = function (callback){
callback('')
} */
} *
!
/
try {
setTimeout(function () {
navigator.splashscreen.hide()
...
...
@@ -341,7 +341,7 @@ export default {
}
})
}
},
},
*/
},
}
</
script
>
...
...
www/index.html
View file @
e96553e8
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,width=device-width,viewport-fit=cover"
><meta
name=
format-detection
content=
"telephone=no"
><meta
name=
format-detection
content=
"email=no"
><meta
name=
apple-mobile-web-app-capable
content=
yes
><meta
name=
apple-mobile-web-app-status-bar-style
content=
black
><script
type=
text/javascript
src=
./static/vuePlatform.js
></script><script
type=
text/javascript
src=
./static/prototype.js
></script><script
type=
text/javascript
src=
./cordova.js
></script><script
type=
text/javascript
src=
"http://api.map.baidu.com/api?v=2.0&ak=Eoo0EtfjYCdAy7r8D19gZ0vMojdZpHqU"
></script><title>
徐工金服
</title><link
href=
./static/css/app.fb52dd271f35e6cb942abb94eb5f18bb.css
rel=
stylesheet
></head><body><div
id=
app-box
></div><script
type=
text/javascript
src=
./static/js/manifest.7780e1adfdfe6ac04498.js
></script><script
type=
text/javascript
src=
./static/js/vendor.6fb9a8a9e3d7464e35f7.js
></script><script
type=
text/javascript
src=
./static/js/app.44587b14d696ac350635.js
></script></body></html>
\ No newline at end of file
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,width=device-width,viewport-fit=cover"
><meta
name=
format-detection
content=
"telephone=no"
><meta
name=
format-detection
content=
"email=no"
><meta
name=
apple-mobile-web-app-capable
content=
yes
><meta
name=
apple-mobile-web-app-status-bar-style
content=
black
><script
type=
text/javascript
src=
./static/vuePlatform.js
></script><script
type=
text/javascript
src=
./static/prototype.js
></script><script
type=
text/javascript
src=
./cordova.js
></script><script
type=
text/javascript
src=
"http://api.map.baidu.com/api?v=2.0&ak=Eoo0EtfjYCdAy7r8D19gZ0vMojdZpHqU"
></script><title>
徐工金服
</title><link
href=
./static/css/app.fb52dd271f35e6cb942abb94eb5f18bb.css
rel=
stylesheet
></head><body><div
id=
app-box
></div><script
type=
text/javascript
src=
./static/js/manifest.14a4464888b76cace761.js
></script><script
type=
text/javascript
src=
./static/js/vendor.6fb9a8a9e3d7464e35f7.js
></script><script
type=
text/javascript
src=
./static/js/app.3b1fc03cdd88b3c9ea24.js
></script></body></html>
\ No newline at end of file
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