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
af420c4c
Commit
af420c4c
authored
Dec 20, 2018
by
agping
Committed by
hujun
Dec 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
下载页
parent
a96ffabb
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
93 additions
and
1 deletion
+93
-1
download.vue
public/appnew/src/components/download/download.vue
+80
-0
Group@2x.png
public/appnew/src/components/download/images/Group@2x.png
+0
-0
btn@2x.png
public/appnew/src/components/download/images/btn@2x.png
+0
-0
download@2x.png
public/appnew/src/components/download/images/download@2x.png
+0
-0
entrance.vue
public/appnew/src/components/publicEg/entrance.vue
+6
-0
index.js
public/appnew/src/router/index.js
+7
-1
No files found.
public/appnew/src/components/download/download.vue
0 → 100644
View file @
af420c4c
<
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'
:
1
}
})
.
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
())
{
console
.
log
(
555
)
location
.
href
=
_this
.
downloadAddress
;
//直接进入下载页
}
else
{
if
(
_this
.
common
.
isWeixinBrowser
())
{
_this
.
layerWeiXin
=
true
;
}
else
{
location
.
href
=
_this
.
downloadAddress
;
}
}
}
}
}
</
script
>
<
style
scoped
>
.min-height-list
{
width
:
7.5rem
;
height
:
100vh
;
background
:
#fff
;
}
.bg-con
{
width
:
100%
;
height
:
10rem
;
background
:
#fff
url(images/Group@2x.png)
no-repeat
center
.3rem
/
7.5rem
;
}
img
{
width
:
5.4rem
;
}
.btn-con
{
text-align
:
center
;
margin-top
:
.3rem
;
}
</
style
>
public/appnew/src/components/download/images/Group@2x.png
0 → 100644
View file @
af420c4c
253 KB
public/appnew/src/components/download/images/btn@2x.png
0 → 100644
View file @
af420c4c
20.3 KB
public/appnew/src/components/download/images/download@2x.png
0 → 100644
View file @
af420c4c
62.2 KB
public/appnew/src/components/publicEg/entrance.vue
View file @
af420c4c
...
...
@@ -86,6 +86,12 @@
'nameCustom'
:
'H5广告推广页'
,
'query'
:
{
}
},
{
'path'
:
'/download'
,
'nameCustom'
:
'同联下载页'
,
'query'
:
{
}
}
]
}
...
...
public/appnew/src/router/index.js
View file @
af420c4c
...
...
@@ -17,7 +17,7 @@ import articleDetail from '@/components/businessCollege/articleDetail'
import
shopList
from
'@/components/shop/shopList'
import
shopSearchList
from
'@/components/shopSearch/shopSearchList'
import
advertisingPage
from
'@/components/advertisingPage/advertisingPage'
import
download
from
'@/components/download/download'
Vue
.
use
(
VueRouter
)
export
default
new
VueRouter
({
...
...
@@ -120,6 +120,11 @@ export default new VueRouter({
path
:
'/advertisingPage'
,
name
:
'v-advertising-page'
,
component
:
advertisingPage
},
{
path
:
'/download'
,
name
:
'v-download'
,
component
:
download
}
]
})
\ 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