Commit a49d4901 by 潘琦

签约页新增来源参数;

parent 5f0ef44b
......@@ -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
}
......
......@@ -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
})
......
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