Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
voucher-h5
Project
Overview
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
潘琦
voucher-h5
Commits
a49d4901
Commit
a49d4901
authored
Sep 10, 2019
by
潘琦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
签约页新增来源参数;
parent
5f0ef44b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
9 deletions
+36
-9
permission.js
src/permission.js
+8
-0
index.vue
src/views/signing/index.vue
+28
-9
No files found.
src/permission.js
View file @
a49d4901
...
...
@@ -161,6 +161,14 @@ const redirectUrl = () => {
}
else
if
(
curUrl
.
indexOf
(
'?scene=0'
)
>=
0
)
{
let
newUrl
=
curUrl
.
replace
(
'?scene=0'
,
''
)
window
.
location
.
href
=
newUrl
return
false
}
else
if
(
curUrl
.
indexOf
(
'/voucher/?'
))
{
const
urlArr
=
curUrl
.
split
(
'/voucher/?'
)
const
locationStr
=
urlArr
[
0
]
const
pathArr
=
urlArr
[
1
].
split
(
'#'
)
let
newUrl
=
locationStr
+
'/voucher/#'
+
pathArr
[
1
]
window
.
location
.
href
=
newUrl
return
false
}
else
{
return
true
}
...
...
src/views/signing/index.vue
View file @
a49d4901
...
...
@@ -484,6 +484,7 @@ export default {
orgId
:
this
.
$route
.
query
.
orgId
?
parseInt
(
this
.
$route
.
query
.
orgId
)
:
null
,
groupId
:
this
.
$route
.
query
.
groupId
?
parseInt
(
this
.
$route
.
query
.
groupId
)
:
null
,
accountId
:
this
.
$route
.
query
.
accountId
?
this
.
$route
.
query
.
accountId
:
store
.
getters
.
accountId
,
from
:
this
.
$route
.
query
.
voucherFrom
?
this
.
$route
.
query
.
voucherFrom
:
''
,
orgInfo
:
{
picture
:
_defaultPicture
,
orgname
:
''
,
...
...
@@ -546,18 +547,18 @@ export default {
addressPopupVisible
:
false
,
// “现住址”popup显示状态
orgPopupVisible
:
false
,
// “所在卫生服务机构”popup显示状态
addressForm
:
{
province
:
''
,
city
:
''
,
area
:
''
,
province
:
'
江苏省
'
,
city
:
'
苏州市
'
,
area
:
'
张江港市
'
,
street
:
''
,
villages
:
''
,
ProvinceCode
:
''
,
CityCode
:
''
,
AreaCode
:
''
,
ProvinceCode
:
'
320000
'
,
CityCode
:
'
320500
'
,
AreaCode
:
'
320582
'
,
StreetCode
:
''
,
VillagesCode
:
''
},
stepCurrent
:
1
,
// 地址省市区街道步骤下标
stepCurrent
:
3
,
// 地址省市区街道步骤下标
ProvinceData
:
null
,
// 省会列表数据
CityData
:
null
,
// 城市列表数据
AreaData
:
null
,
// 区域列表数据
...
...
@@ -596,6 +597,24 @@ export default {
console
.
log
(
'created'
)
// wxpermission(0, () => {})
// this.getOrgInfoFn()
if
(
this
.
from
!==
''
)
{
switch
(
this
.
from
)
{
case
'320582'
:
this
.
addressForm
.
province
=
'江苏省'
this
.
addressForm
.
city
=
'苏州市'
this
.
addressForm
.
area
=
'张江港市'
this
.
addressForm
.
ProvinceCode
=
'320000'
this
.
addressForm
.
CityCode
=
'320500'
this
.
addressForm
.
AreaCode
=
'320582'
break
default
:
this
.
stepCurrent
=
1
break
}
this
.
stepCurrent
=
3
}
else
{
this
.
stepCurrent
=
1
}
this
.
getUserSignInfoFn
()
// 获取用户签约信息回显
},
mounted
:
function
()
{
...
...
@@ -1004,7 +1023,7 @@ export default {
return
}
else
if
(
this
.
signState
===
'0'
)
{
// 未审核通过 关闭页面
this
.
$toast
({
message
:
'
签约成功,请等待审核
!'
,
message
:
'
审核周期约三天,请您耐心等待
!'
,
position
:
'center'
,
duration
:
3000
})
...
...
@@ -1125,7 +1144,7 @@ export default {
this
.
$Indicator
.
close
()
if
(
res
.
code
===
200
&&
res
.
value
)
{
this
.
$toast
({
message
:
'
签约成功,请等待审核
!'
,
message
:
'
审核周期约三天,请您耐心等待
!'
,
position
:
'center'
,
duration
:
3000
})
...
...
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