37eb19e7 by lttnew

添加会员

1 parent 3a8c8a3a
...@@ -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>
......
1 { 1 {
2 "appid": "wx523ee37fff4fea9d", 2 "appid": "wx5d51e8ed31bbdbb7",
3 "compileType": "miniprogram", 3 "compileType": "miniprogram",
4 "libVersion": "3.0.0", 4 "libVersion": "3.0.0",
5 "packOptions": { 5 "packOptions": {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!