Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
上
上药订单生命周期升级
Project overview
Project overview
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
sph
上药订单生命周期升级
Commits
d144b900
Commit
d144b900
authored
Apr 28, 2021
by
琉璃丶c
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.添加版本号显示
parent
dd0f14cc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
19 deletions
+26
-19
src/views/scanQRCode/index.vue
src/views/scanQRCode/index.vue
+26
-19
No files found.
src/views/scanQRCode/index.vue
View file @
d144b900
...
@@ -18,8 +18,8 @@
...
@@ -18,8 +18,8 @@
<img
class=
'subImg'
:src=
"sphImage"
/>
<img
class=
'subImg'
:src=
"sphImage"
/>
<div
class=
"subTitle"
>
上药移动APP
</div>
<div
class=
"subTitle"
>
上药移动APP
</div>
<van-button
@
click=
"versionUpdateHttpAction('4
1')"
round
type=
"info"
class=
"bottom-button"
>
iOS版下载
</van-button>
<van-button
@
click=
"versionUpdateHttpAction('4
2')"
round
type=
"info"
class=
"bottom-button"
>
iOS版下载(
{{
this
.
iosInfo
.
title
}}
)
</van-button>
<van-button
@
click=
"versionUpdateHttpAction('4
0')"
round
type=
"info"
style=
"margin-top: 10px"
class=
"bottom-button"
>
Android下载
</van-button>
<van-button
@
click=
"versionUpdateHttpAction('4
3')"
round
type=
"info"
style=
"margin-top: 10px"
class=
"bottom-button"
>
Android下载(
{{
this
.
androidInfo
.
title
}}
)
</van-button>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -39,6 +39,8 @@ export default {
...
@@ -39,6 +39,8 @@ export default {
activeTab
:
''
,
activeTab
:
''
,
isFirst
:
false
,
isFirst
:
false
,
isShowNoticeBar
:
false
,
isShowNoticeBar
:
false
,
androidInfo
:
{},
iosInfo
:
{},
guideImage
:
require
(
'
@/assets/img/guide.png
'
),
guideImage
:
require
(
'
@/assets/img/guide.png
'
),
sphImage
:
require
(
'
@/assets/img/icon_sph.png
'
),
sphImage
:
require
(
'
@/assets/img/icon_sph.png
'
),
bagImage
:
require
(
'
@/assets/img/bagImage.png
'
)
bagImage
:
require
(
'
@/assets/img/bagImage.png
'
)
...
@@ -82,6 +84,8 @@ export default {
...
@@ -82,6 +84,8 @@ export default {
// this.moreSearchShow = true
// this.moreSearchShow = true
this
.
getJudgeBrowserAction
()
this
.
getJudgeBrowserAction
()
// this.tabsTitleData()
// this.tabsTitleData()
this
.
versionUpdateHttpAction
(
'
42
'
,
true
)
// ios
this
.
versionUpdateHttpAction
(
'
43
'
,
true
)
// android
},
},
destroyed
()
{
destroyed
()
{
},
},
...
@@ -127,7 +131,7 @@ export default {
...
@@ -127,7 +131,7 @@ export default {
if
(
browser
.
versions
.
Safari
)
{
if
(
browser
.
versions
.
Safari
)
{
this
.
activeTab
=
this
.
activeTab
+
'
/Safari
'
this
.
activeTab
=
this
.
activeTab
+
'
/Safari
'
// window.location.href = 'https://www.baidu.com/'
// window.location.href = 'https://www.baidu.com/'
this
.
versionUpdateHttpAction
(
'
4
1
'
)
this
.
versionUpdateHttpAction
(
'
4
2
'
)
}
}
}
}
if
(
browser
.
versions
.
android
)
{
if
(
browser
.
versions
.
android
)
{
...
@@ -136,17 +140,16 @@ export default {
...
@@ -136,17 +140,16 @@ export default {
this
.
isShowNoticeBar
=
true
this
.
isShowNoticeBar
=
true
}
else
{
}
else
{
this
.
activeTab
=
this
.
activeTab
+
'
/android
'
this
.
activeTab
=
this
.
activeTab
+
'
/android
'
this
.
versionUpdateHttpAction
(
'
4
0
'
)
this
.
versionUpdateHttpAction
(
'
4
3
'
)
}
}
}
}
}
}
}
else
if
(
browser
.
versions
.
weixin
)
{
}
else
if
(
browser
.
versions
.
weixin
)
{
this
.
activeTab
=
'
weixin
'
this
.
activeTab
=
'
weixin
'
}
}
}
},
,
// 版本更新接口
// 版本更新接口
versionUpdateHttpAction
(
type
,
isFirst
)
{
versionUpdateHttpAction
(
type
)
{
let
_this
=
this
let
_this
=
this
let
dict
=
{
let
dict
=
{
'
attr
'
:
{
'
empid
'
:
''
},
'
attr
'
:
{
'
empid
'
:
''
},
...
@@ -161,7 +164,16 @@ export default {
...
@@ -161,7 +164,16 @@ export default {
}
}
activityQueryDocList
(
dict
).
then
(
rt
=>
{
activityQueryDocList
(
dict
).
then
(
rt
=>
{
if
(
rt
)
{
if
(
rt
)
{
// ios
if
(
type
===
'
42
'
)
{
this
.
iosInfo
=
rt
.
list
[
0
]
// android
}
else
if
(
type
===
'
43
'
)
{
this
.
androidInfo
=
rt
.
list
[
0
]
}
if
(
!
isFirst
)
{
window
.
location
.
href
=
rt
.
list
[
0
].
comments
window
.
location
.
href
=
rt
.
list
[
0
].
comments
}
// _this.$toast(rt.list[0].comments)
// _this.$toast(rt.list[0].comments)
}
else
{
}
else
{
_this
.
$toast
(
rt
.
message
)
_this
.
$toast
(
rt
.
message
)
...
@@ -169,33 +181,28 @@ export default {
...
@@ -169,33 +181,28 @@ export default {
}).
catch
(
e
=>
{
}).
catch
(
e
=>
{
this
.
$toast
(
'
获取信息失败!
'
)
this
.
$toast
(
'
获取信息失败!
'
)
})
})
}
},
,
postDataListAction
(
item
)
{
postDataListAction
(
item
)
{
const
removeItem
=
item
const
removeItem
=
item
removeItem
.
cellId
=
item
.
id
+
item
.
erp_user
removeItem
.
cellId
=
item
.
id
+
item
.
erp_user
return
item
return
item
}
},
,
openPager
(
path
)
{
openPager
(
path
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
path
,
path
:
path
,
query
:
this
.
$store
.
state
.
linkInfo
query
:
this
.
$store
.
state
.
linkInfo
})
})
}
},
,
onBrowserBack
()
{
onBrowserBack
()
{
if
(
this
.
moreSearchShow
)
{
if
(
this
.
moreSearchShow
)
{
this
.
moreSearchShow
=
false
this
.
moreSearchShow
=
false
return
return
}
}
this
.
$router
.
go
(
-
1
)
this
.
$router
.
go
(
-
1
)
}
},
,
onSearch
()
{
onSearch
()
{
}
},
,
closeAppPage
()
{
closeAppPage
()
{
console
.
log
(
'
关闭页面
'
)
console
.
log
(
'
关闭页面
'
)
bridge
.
closeWindow_c
()
bridge
.
closeWindow_c
()
...
...
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