Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
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
hujun
tl_estate
Commits
ca2f402c
Commit
ca2f402c
authored
Dec 20, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
152061d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
82 additions
and
0 deletions
+82
-0
download.vue
public/appnew/src/components/download/download.vue
+82
-0
No files found.
public/appnew/src/components/download/download.vue
0 → 100644
View file @
ca2f402c
<
template
>
<div
class=
"min-height-list"
>
<div
class=
"bg-con"
></div>
<div
class=
"btn-con"
>
<img
:src=
"btn"
@
click=
"download"
/>
</div>
</div>
</
template
>
<
script
>
import
btn
from
'@/components/download/images/btn@2x.png'
;
import
'@/assets/js/layer041002.js'
;
export
default
{
data
:
()
=>
({
btn
,
}),
created
()
{
let
_this
=
this
;
if
(
_this
.
common
.
isIos
())
{
_this
.
downloadAddress
=
'https://itunes.apple.com/cn/app/id1326696107'
;
}
else
{
//获取安卓下载链接,type为1,苹果为2
_this
.
axios
({
method
:
'get'
,
url
:
'/api/getVersionNo'
,
responseType
:
'json'
,
data
:
{
'type'
:
0
}
})
.
then
(
function
(
response
)
{
if
(
response
.
data
.
code
==
200
)
{
_this
.
downloadAddress
=
response
.
data
.
data
.
app_path
;
}
else
{
layer
.
tipsX
(
response
.
data
.
message
);
}
})
.
catch
(
function
(
error
)
{
_this
.
common
.
layerError
(
error
);
});
}
},
methods
:
{
download
()
{
let
_this
=
this
;
if
(
_this
.
common
.
isIos
())
{
window
.
open
(
_this
.
downloadAddress
);
}
else
{
if
(
_this
.
common
.
isWeixinBrowser
())
{
_this
.
layerWeiXin
=
true
;
}
else
{
window
.
open
(
_this
.
downloadAddress
);
}
}
}
}
}
</
script
>
<
style
scoped
>
.min-height-list
{
width
:
100%
;
height
:
100vh
;
background
:
#fff
;
}
.bg-con
{
width
:
100%
;
height
:
10rem
;
background
:
#fff
url(images/Group@2x.png)
no-repeat
center
.3rem
/
100%
;
}
img
{
width
:
5.4rem
;
position
:
fixed
;
bottom
:
1.2rem
;
left
:
50%
;
margin-left
:
-2.7rem
;
}
.btn-con
{
/*margin-top: .3rem;*/
}
</
style
>
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