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
cc3d052d
Commit
cc3d052d
authored
1 month ago
by
Smile
Committed by
wux
1 month ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设置点击版本,没有关闭按钮
parent
423fd5fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
site.vue
src/pages/site/site.vue
+12
-0
No files found.
src/pages/site/site.vue
View file @
cc3d052d
...
@@ -197,6 +197,9 @@
...
@@ -197,6 +197,9 @@
<view
v-if=
"!forceUpdate"
class=
"ad-btn"
@
click=
"closeAd"
>
<view
v-if=
"!forceUpdate"
class=
"ad-btn"
@
click=
"closeAd"
>
<view>
{{
$lang
.
lang
.
notices
.
close
}}
</view>
<view>
{{
$lang
.
lang
.
notices
.
close
}}
</view>
</view>
</view>
<view
class=
"ad-btn"
v-if=
"forceUpdate"
@
click=
"toCloseApp"
>
<view>
{{
$lang
.
lang
.
notices
.
closeApp
}}
</view>
</view>
</view>
</view>
<view
class=
"progress"
v-if=
"showdownLine"
>
<view
class=
"progress"
v-if=
"showdownLine"
>
<progress
:percent=
"downloadNum"
show-info
stroke-width=
"3"
/>
<progress
:percent=
"downloadNum"
show-info
stroke-width=
"3"
/>
...
@@ -287,6 +290,15 @@ export default {
...
@@ -287,6 +290,15 @@ export default {
},
500
)
},
500
)
},
},
methods
:
{
methods
:
{
toCloseApp
()
{
let
platform
=
uni
.
getSystemInfoSync
().
platform
.
toLocaleLowerCase
()
if
(
platform
==
'
ios
'
)
{
//ios使用原来的quit()方法失效
plus
.
ios
.
import
(
"
UIApplication
"
).
sharedApplication
().
performSelector
(
"
exit
"
)
}
else
{
plus
.
runtime
.
quit
();
}
},
showLangView
()
{
showLangView
()
{
const
lang
=
uni
.
getStorageSync
(
'
locale
'
)
||
'
zh
'
;
const
lang
=
uni
.
getStorageSync
(
'
locale
'
)
||
'
zh
'
;
this
.
index
=
this
.
languages
.
findIndex
(
item
=>
item
.
value
===
lang
);
this
.
index
=
this
.
languages
.
findIndex
(
item
=>
item
.
value
===
lang
);
...
...
This diff is collapsed.
Click to expand it.
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