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
Hide 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
...
@@ -101,4 +101,4 @@
...
@@ -101,4 +101,4 @@
"PACKAGE_NAME"
:
"com.xcmg.app"
"PACKAGE_NAME"
:
"com.xcmg.app"
}
}
}
}
}
}
\ No newline at end of file
src/main.js
View file @
e96553e8
...
@@ -59,9 +59,9 @@ import hlsUtil from './scripts/hlsUtil'
...
@@ -59,9 +59,9 @@ import hlsUtil from './scripts/hlsUtil'
/**
/**
* jpush jmessage
* 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'
// || process.env.CONFIG_ENV === 'prod'
if
(
process
.
env
.
CONFIG_ENV
===
'uat'
)
{
if
(
process
.
env
.
CONFIG_ENV
===
'uat'
)
{
const
VConsole
=
require
(
'vconsole'
)
const
VConsole
=
require
(
'vconsole'
)
...
@@ -107,9 +107,9 @@ Vue.prototype.PDFJS = window.PDFJS = PDFJS
...
@@ -107,9 +107,9 @@ Vue.prototype.PDFJS = window.PDFJS = PDFJS
Vue
.
prototype
.
hlsUtil
=
window
.
hlsUtil
=
hlsUtil
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') {
...
@@ -135,7 +135,7 @@ if (window.localStorage.isReadPolicy === 'true') {
/* window.getRegistrationID = function (callback){
/* window.getRegistrationID = function (callback){
callback('')
callback('')
} */
} */
try
{
/*
try {
setTimeout(function () {
setTimeout(function () {
navigator.splashscreen.hide()
navigator.splashscreen.hide()
if (window.plugins.jPushPlugin) {
if (window.plugins.jPushPlugin) {
...
@@ -146,7 +146,7 @@ if (window.localStorage.isReadPolicy === 'true') {
...
@@ -146,7 +146,7 @@ if (window.localStorage.isReadPolicy === 'true') {
}
}
}, 40)
}, 40)
} catch (e) {
} catch (e) {
}
}
*/
if
(
window
.
cordova
&&
window
.
cordova
.
plugins
&&
window
.
cordova
.
plugins
.
Keyboard
)
{
if
(
window
.
cordova
&&
window
.
cordova
.
plugins
&&
window
.
cordova
.
plugins
.
Keyboard
)
{
cordova
.
plugins
.
Keyboard
.
hideKeyboardAccessoryBar
(
true
)
cordova
.
plugins
.
Keyboard
.
hideKeyboardAccessoryBar
(
true
)
cordova
.
plugins
.
Keyboard
.
disableScroll
(
true
)
cordova
.
plugins
.
Keyboard
.
disableScroll
(
true
)
...
...
src/pages/home/location.vue
View file @
e96553e8
...
@@ -111,7 +111,7 @@ export default {
...
@@ -111,7 +111,7 @@ export default {
// console.log(error)
// console.log(error)
// }, {enableHighAccuracy: true})
// }, {enableHighAccuracy: true})
// } else { // ios使用插件定位
// } else { // ios使用插件定位
baidumap_location
.
getCurrentPosition
(
function
(
result
)
{
/*
baidumap_location.getCurrentPosition(function (result) {
console.log('*********** ' + JSON.stringify(result))
console.log('*********** ' + JSON.stringify(result))
window.localStorage.setItem('province', result.province)
window.localStorage.setItem('province', result.province)
window.localStorage.setItem('city', result.city)
window.localStorage.setItem('city', result.city)
...
@@ -122,7 +122,7 @@ export default {
...
@@ -122,7 +122,7 @@ export default {
vm.province_flag = true
vm.province_flag = true
}, function (error) {
}, function (error) {
console.log('errorerrorerrorerror ' + error)
console.log('errorerrorerrorerror ' + error)
})
})
*/
// }
// }
},
},
...
...
src/pages/login.vue
View file @
e96553e8
...
@@ -47,8 +47,8 @@
...
@@ -47,8 +47,8 @@
</scroll>
</scroll>
</
template
>
</
template
>
<
script
>
<
script
>
import
Jpush
from
"../scripts/jpushService"
;
//
import Jpush from "../scripts/jpushService";
import
Jmessage
from
"../scripts/jmessageService"
;
//
import Jmessage from "../scripts/jmessageService";
var
CryptoJS
=
require
(
'crypto-js'
)
var
CryptoJS
=
require
(
'crypto-js'
)
export
default
{
export
default
{
...
@@ -108,7 +108,7 @@ export default {
...
@@ -108,7 +108,7 @@ export default {
async
goHome
()
{
async
goHome
()
{
let
flag
=
await
this
.
getAccessToken
()
let
flag
=
await
this
.
getAccessToken
()
if
(
flag
)
{
if
(
flag
)
{
this
.
initJPush
()
//
this.initJPush()
this
.
$router
.
push
(
'tab'
)
this
.
$router
.
push
(
'tab'
)
}
}
},
},
...
@@ -302,13 +302,13 @@ export default {
...
@@ -302,13 +302,13 @@ export default {
},
},
})
})
},
},
initJPush
()
{
/*
initJPush () {
if (window.localStorage.isReadPolicy === 'true') {
if (window.localStorage.isReadPolicy === 'true') {
vum.$vumPlatform.ready(function () {
vum.$vumPlatform.ready(function () {
if ((vum.Platform.isAndroid()) || (vum.Platform.isIOS())) {
if ((vum.Platform.isAndroid()) || (vum.Platform.isIOS())) {
/* window.getRegistrationID = function (callback){
/
!
* window.getRegistrationID = function (callback){
callback('')
callback('')
} */
} *
!
/
try {
try {
setTimeout(function () {
setTimeout(function () {
navigator.splashscreen.hide()
navigator.splashscreen.hide()
...
@@ -341,7 +341,7 @@ export default {
...
@@ -341,7 +341,7 @@ export default {
}
}
})
})
}
}
},
},
*/
},
},
}
}
</
script
>
</
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>
<!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
\ 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