Commit a49d4901 by 潘琦

签约页新增来源参数;

parent 5f0ef44b
...@@ -161,6 +161,14 @@ const redirectUrl = () => { ...@@ -161,6 +161,14 @@ const redirectUrl = () => {
} else if (curUrl.indexOf('?scene=0') >= 0) { } else if (curUrl.indexOf('?scene=0') >= 0) {
let newUrl = curUrl.replace('?scene=0', '') let newUrl = curUrl.replace('?scene=0', '')
window.location.href = newUrl 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 { } else {
return true return true
} }
......
...@@ -484,6 +484,7 @@ export default { ...@@ -484,6 +484,7 @@ export default {
orgId: this.$route.query.orgId ? parseInt(this.$route.query.orgId) : null, orgId: this.$route.query.orgId ? parseInt(this.$route.query.orgId) : null,
groupId: this.$route.query.groupId ? parseInt(this.$route.query.groupId) : null, groupId: this.$route.query.groupId ? parseInt(this.$route.query.groupId) : null,
accountId: this.$route.query.accountId ? this.$route.query.accountId : store.getters.accountId, accountId: this.$route.query.accountId ? this.$route.query.accountId : store.getters.accountId,
from: this.$route.query.voucherFrom ? this.$route.query.voucherFrom : '',
orgInfo: { orgInfo: {
picture: _defaultPicture, picture: _defaultPicture,
orgname: '', orgname: '',
...@@ -546,18 +547,18 @@ export default { ...@@ -546,18 +547,18 @@ export default {
addressPopupVisible: false, // “现住址”popup显示状态 addressPopupVisible: false, // “现住址”popup显示状态
orgPopupVisible: false, // “所在卫生服务机构”popup显示状态 orgPopupVisible: false, // “所在卫生服务机构”popup显示状态
addressForm: { addressForm: {
province: '', province: '江苏省',
city: '', city: '苏州市',
area: '', area: '张江港市',
street: '', street: '',
villages: '', villages: '',
ProvinceCode: '', ProvinceCode: '320000',
CityCode: '', CityCode: '320500',
AreaCode: '', AreaCode: '320582',
StreetCode: '', StreetCode: '',
VillagesCode: '' VillagesCode: ''
}, },
stepCurrent: 1, // 地址省市区街道步骤下标 stepCurrent: 3, // 地址省市区街道步骤下标
ProvinceData: null, // 省会列表数据 ProvinceData: null, // 省会列表数据
CityData: null, // 城市列表数据 CityData: null, // 城市列表数据
AreaData: null, // 区域列表数据 AreaData: null, // 区域列表数据
...@@ -596,6 +597,24 @@ export default { ...@@ -596,6 +597,24 @@ export default {
console.log('created') console.log('created')
// wxpermission(0, () => {}) // wxpermission(0, () => {})
// this.getOrgInfoFn() // 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() // 获取用户签约信息回显 this.getUserSignInfoFn() // 获取用户签约信息回显
}, },
mounted: function () { mounted: function () {
...@@ -1004,7 +1023,7 @@ export default { ...@@ -1004,7 +1023,7 @@ export default {
return return
} else if (this.signState === '0') { // 未审核通过 关闭页面 } else if (this.signState === '0') { // 未审核通过 关闭页面
this.$toast({ this.$toast({
message: '签约成功,请等待审核!', message: '审核周期约三天,请您耐心等待!',
position: 'center', position: 'center',
duration: 3000 duration: 3000
}) })
...@@ -1125,7 +1144,7 @@ export default { ...@@ -1125,7 +1144,7 @@ export default {
this.$Indicator.close() this.$Indicator.close()
if (res.code === 200 && res.value) { if (res.code === 200 && res.value) {
this.$toast({ this.$toast({
message: '签约成功,请等待审核!', message: '审核周期约三天,请您耐心等待!',
position: 'center', position: 'center',
duration: 3000 duration: 3000
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment