Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-customer-new-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-customer-new-master
Commits
6b1f9c79
Commit
6b1f9c79
authored
Mar 17, 2025
by
Smile
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug318 googleplay自动升级问题处理 ,系统默认跳转Google Play应用商店,未安装应用商店才下载更新
parent
4e9a54d5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
218 additions
and
162 deletions
+218
-162
index.vue
src/pages/index/index.vue
+60
-42
login.vue
src/pages/login/login.vue
+60
-42
site.vue
src/pages/site/site.vue
+98
-78
No files found.
src/pages/index/index.vue
View file @
6b1f9c79
...
...
@@ -361,6 +361,23 @@ export default {
if
(
platform
==
'
ios
'
)
{
plus
.
runtime
.
openURL
(
'
https://apps.apple.com/us/app/e-c-logistics/id6466407990
'
)
}
else
{
console
.
log
(
'
android直接跳转
'
)
var
Uri
=
plus
.
android
.
importClass
(
"
android.net.Uri
"
);
var
Intent
=
plus
.
android
.
importClass
(
'
android.content.Intent
'
);
var
main
=
plus
.
android
.
runtimeMainActivity
();
//https://play.google.com/store/apps/details?id=com.jiedao.app
var
uri
=
Uri
.
parse
(
"
market://details?id=
"
+
"
com.jiedao.app
"
);
var
intent
=
new
Intent
(
Intent
.
ACTION_VIEW
,
uri
);
const
googlePlay
=
"
com.android.vending
"
// 选择进入商店
intent
.
setPackage
(
googlePlay
);
intent
.
flags
=
Intent
.
FLAG_ACTIVITY_NEW_TASK
;
// 没有该商店应用
if
(
intent
.
resolveActivity
(
main
.
getPackageManager
())
!==
null
)
{
console
.
log
(
'
android 跳转google play
'
)
main
.
startActivity
(
intent
);
}
else
{
console
.
log
(
'
android 直接下载
'
)
uni
.
showLoading
({
title
:
this
.
$lang
.
lang
.
notices
.
startDown
})
...
...
@@ -406,6 +423,7 @@ export default {
})
dtask
.
start
()
}
}
// #endif
},
getMemberSystemStatus
(){
...
...
src/pages/login/login.vue
View file @
6b1f9c79
...
...
@@ -373,6 +373,23 @@ export default {
if
(
platform
==
'
ios
'
)
{
plus
.
runtime
.
openURL
(
'
https://apps.apple.com/us/app/e-c-logistics/id6466407990
'
)
}
else
{
console
.
log
(
'
android直接跳转
'
)
var
Uri
=
plus
.
android
.
importClass
(
"
android.net.Uri
"
);
var
Intent
=
plus
.
android
.
importClass
(
'
android.content.Intent
'
);
var
main
=
plus
.
android
.
runtimeMainActivity
();
//https://play.google.com/store/apps/details?id=com.jiedao.app
var
uri
=
Uri
.
parse
(
"
market://details?id=
"
+
"
com.jiedao.app
"
);
var
intent
=
new
Intent
(
Intent
.
ACTION_VIEW
,
uri
);
const
googlePlay
=
"
com.android.vending
"
// 选择进入商店
intent
.
setPackage
(
googlePlay
);
intent
.
flags
=
Intent
.
FLAG_ACTIVITY_NEW_TASK
;
// 没有该商店应用
if
(
intent
.
resolveActivity
(
main
.
getPackageManager
())
!==
null
)
{
console
.
log
(
'
android 跳转google play
'
)
main
.
startActivity
(
intent
);
}
else
{
console
.
log
(
'
android 直接下载
'
)
uni
.
showLoading
({
title
:
this
.
$lang
.
lang
.
notices
.
startDown
})
...
...
@@ -418,6 +435,7 @@ export default {
})
dtask
.
start
()
}
}
// #endif
},
getVersion
()
{
...
...
src/pages/site/site.vue
View file @
6b1f9c79
...
...
@@ -312,6 +312,24 @@ export default {
if
(
platform
==
'
ios
'
)
{
plus
.
runtime
.
openURL
(
'
https://apps.apple.com/us/app/e-c-logistics/id6466407990
'
)
}
else
{
console
.
log
(
'
android直接跳转
'
)
var
Uri
=
plus
.
android
.
importClass
(
"
android.net.Uri
"
);
var
Intent
=
plus
.
android
.
importClass
(
'
android.content.Intent
'
);
var
main
=
plus
.
android
.
runtimeMainActivity
();
//https://play.google.com/store/apps/details?id=com.jiedao.app
var
uri
=
Uri
.
parse
(
"
market://details?id=
"
+
"
com.jiedao.app
"
);
var
intent
=
new
Intent
(
Intent
.
ACTION_VIEW
,
uri
);
const
googlePlay
=
"
com.android.vending
"
// 选择进入商店
intent
.
setPackage
(
googlePlay
);
intent
.
flags
=
Intent
.
FLAG_ACTIVITY_NEW_TASK
;
// 没有该商店应用
if
(
intent
.
resolveActivity
(
main
.
getPackageManager
())
!==
null
)
{
console
.
log
(
'
android 跳转google play
'
)
main
.
startActivity
(
intent
);
}
else
{
console
.
log
(
'
android直接跳转
'
)
// uni.showLoading({
// title: this.$lang.lang.notices.startDown,
// })
...
...
@@ -335,7 +353,8 @@ export default {
plus
.
runtime
.
install
(
d
.
filename
,
{},
()
=>
{},
()
=>
{
},
function
(
error
)
{
uni
.
showToast
({
title
:
that
.
$lang
.
lang
.
notices
.
failDown
,
...
...
@@ -396,6 +415,7 @@ export default {
})
}
}
}
// #endif
},
openAd
()
{
...
...
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