添加会员
Showing
2 changed files
with
13 additions
and
8 deletions
| ... | @@ -116,7 +116,8 @@ | ... | @@ -116,7 +116,8 @@ |
| 116 | idcType: '0', | 116 | idcType: '0', |
| 117 | perType: '1', // (1:个人会员;2:教练;3:考官;4:裁判;5:临时会员;) | 117 | perType: '1', // (1:个人会员;2:教练;3:考官;4:裁判;5:临时会员;) |
| 118 | perCode:'', | 118 | perCode:'', |
| 119 | validityDate:'' | 119 | validityDate:'', |
| 120 | validityDateRaw:'' | ||
| 120 | }) | 121 | }) |
| 121 | const items = ref(['身份证添加', '证件照录入']) | 122 | const items = ref(['身份证添加', '证件照录入']) |
| 122 | const idcTypeList = ref([{ | 123 | const idcTypeList = ref([{ |
| ... | @@ -345,6 +346,7 @@ | ... | @@ -345,6 +346,7 @@ |
| 345 | baseFormData.value.cityId = res.data.cityId | 346 | baseFormData.value.cityId = res.data.cityId |
| 346 | baseFormData.value.address = res.data.address | 347 | baseFormData.value.address = res.data.address |
| 347 | baseFormData.value.perCode = res.data.perCode ||'' | 348 | baseFormData.value.perCode = res.data.perCode ||'' |
| 349 | baseFormData.value.validityDateRaw = res.data.validityDate || '' | ||
| 348 | baseFormData.value.validityDate = res.data.validityDate?.slice(0,10) //去掉时分秒 | 350 | baseFormData.value.validityDate = res.data.validityDate?.slice(0,10) //去掉时分秒 |
| 349 | if (res.data.photo) { | 351 | if (res.data.photo) { |
| 350 | console.log(res.data.photo) | 352 | console.log(res.data.photo) |
| ... | @@ -473,10 +475,13 @@ | ... | @@ -473,10 +475,13 @@ |
| 473 | content: '请确认信息正确', | 475 | content: '请确认信息正确', |
| 474 | success: function(res) { | 476 | success: function(res) { |
| 475 | if (res.confirm) { | 477 | if (res.confirm) { |
| 476 | if (baseFormData.value.idcType == '4') { | 478 | if (baseFormData.value.idcType == '4') { |
| 477 | baseFormData.value.idcType = '0' | 479 | baseFormData.value.idcType = '0' |
| 478 | } | 480 | } |
| 479 | delete baseFormData.value.card | 481 | delete baseFormData.value.card |
| 482 | if (baseFormData.value.validityDateRaw) { | ||
| 483 | baseFormData.value.validityDate = baseFormData.value.validityDateRaw | ||
| 484 | } | ||
| 480 | 485 | ||
| 481 | const time = new Date().valueOf() + '' | 486 | const time = new Date().valueOf() + '' |
| 482 | baseFormData.value.t = time + Math.floor(Math.random() * 10) | 487 | baseFormData.value.t = time + Math.floor(Math.random() * 10) |
| ... | @@ -505,7 +510,7 @@ | ... | @@ -505,7 +510,7 @@ |
| 505 | content: '保存成功', | 510 | content: '保存成功', |
| 506 | title: '提示', | 511 | title: '提示', |
| 507 | confirmText: '继续添加', | 512 | confirmText: '继续添加', |
| 508 | cancelColor: '返回首页', | 513 | cancelText: '返回首页', |
| 509 | success: function(res) { | 514 | success: function(res) { |
| 510 | uni.redirectTo({ | 515 | uni.redirectTo({ |
| 511 | url: `/personalVip/addVip?tab=${current.value}&idcType=${baseFormData.value.idcType}` | 516 | url: `/personalVip/addVip?tab=${current.value}&idcType=${baseFormData.value.idcType}` |
| ... | @@ -671,4 +676,4 @@ | ... | @@ -671,4 +676,4 @@ |
| 671 | :deep(.fixUniFormItemStyle .uni-data-picker__text) { | 676 | :deep(.fixUniFormItemStyle .uni-data-picker__text) { |
| 672 | text-align: left !important; | 677 | text-align: left !important; |
| 673 | } | 678 | } |
| 674 | </style> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 679 | </style> | ... | ... |
-
Please register or sign in to post a comment