37eb19e7 by lttnew

添加会员

1 parent 3a8c8a3a
......@@ -116,7 +116,8 @@
idcType: '0',
perType: '1', // (1:个人会员;2:教练;3:考官;4:裁判;5:临时会员;)
perCode:'',
validityDate:''
validityDate:'',
validityDateRaw:''
})
const items = ref(['身份证添加', '证件照录入'])
const idcTypeList = ref([{
......@@ -345,6 +346,7 @@
baseFormData.value.cityId = res.data.cityId
baseFormData.value.address = res.data.address
baseFormData.value.perCode = res.data.perCode ||''
baseFormData.value.validityDateRaw = res.data.validityDate || ''
baseFormData.value.validityDate = res.data.validityDate?.slice(0,10) //去掉时分秒
if (res.data.photo) {
console.log(res.data.photo)
......@@ -473,10 +475,13 @@
content: '请确认信息正确',
success: function(res) {
if (res.confirm) {
if (baseFormData.value.idcType == '4') {
baseFormData.value.idcType = '0'
}
delete baseFormData.value.card
if (baseFormData.value.idcType == '4') {
baseFormData.value.idcType = '0'
}
delete baseFormData.value.card
if (baseFormData.value.validityDateRaw) {
baseFormData.value.validityDate = baseFormData.value.validityDateRaw
}
const time = new Date().valueOf() + ''
baseFormData.value.t = time + Math.floor(Math.random() * 10)
......@@ -505,7 +510,7 @@
content: '保存成功',
title: '提示',
confirmText: '继续添加',
cancelColor: '返回首页',
cancelText: '返回首页',
success: function(res) {
uni.redirectTo({
url: `/personalVip/addVip?tab=${current.value}&idcType=${baseFormData.value.idcType}`
......@@ -671,4 +676,4 @@
:deep(.fixUniFormItemStyle .uni-data-picker__text) {
text-align: left !important;
}
</style>
\ No newline at end of file
</style>
......
{
"appid": "wx523ee37fff4fea9d",
"appid": "wx5d51e8ed31bbdbb7",
"compileType": "miniprogram",
"libVersion": "3.0.0",
"packOptions": {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!