be737fae by 杨炀

+香港身份证识别 港澳xx

信息变更 未修改信息不能提交
1 parent 89213734
......@@ -150,7 +150,7 @@ export function createMyMember(data) {
}
export function updateUserPwd(data) {
return request({
url: `/system/user/profile/updatePwd?oldPassword=${encodeURIComponent(data.oldPassword)}&newPassword=${encodeURIComponent(data.oldPassword)}`,
url: `/system/user/profile/updatePwd?oldPassword=${encodeURIComponent(data.oldPassword)}&newPassword=${encodeURIComponent(data.newPassword)}`,
method: 'put',
params: data
})
......
......@@ -54,8 +54,8 @@ function getCodeImg() {
// 代退图形认证的获取手机验证码
function getSmsCode(data) {
return request({
url: '/captchaSmsWithCaptchaImage',
// url: '/captchaSmsWithCaptchaImageForMiniApp',
// url: '/captchaSmsWithCaptchaImage',
url: '/captchaSmsWithCaptchaImageForMiniApp',
method: 'post',
params: data
})
......
......@@ -184,7 +184,6 @@ function goDetail(item) {
uni.navigateTo({
url: path
});
}
function goMerge(){
let path = `/group/apply/merge`
......
......@@ -240,7 +240,10 @@
icon: 'none'
})
countDown.value.start = true
}).catch(getCode)
}).catch(res=>{
console.log(res.data.msg)
getCode()
})
}
function timeup() {
......
......@@ -163,36 +163,36 @@
</template>
<script setup>
import {
import {
ref
} from 'vue'
import {
} from 'vue'
import {
onLoad,
onShow
} from '@dcloudio/uni-app'
import * as api from '@/common/api.js'
import config from '/config.js'
const queryParams = ref({})
const total = ref(0)
const list = ref([])
const popup = ref(null)
const choseStudent = ref(null)
const studentList = ref([])
const type = ref('')
const form = ref({})
const sexs = ref([{
} from '@dcloudio/uni-app'
import * as api from '@/common/api.js'
import config from '/config.js'
const queryParams = ref({})
const total = ref(0)
const list = ref([])
const popup = ref(null)
const choseStudent = ref(null)
const studentList = ref([])
const type = ref('')
const form = ref({})
const sexs = ref([{
text: '男',
value: '0'
}, {
}, {
text: '女',
value: '1'
}])
const cardType = ref([{
}])
const cardType = ref([{
text: '身份证',
value: '0'
},
{
text: '港澳台通行证 ',
text: '来往大陆(内地)通行证',
value: '1'
},
{
......@@ -200,7 +200,7 @@ const cardType = ref([{
value: '2'
},
{
text: '外国护照',
text: '护照',
value: '3'
},
{
......@@ -208,42 +208,45 @@ const cardType = ref([{
value: '4'
},
{
text: '户口本',
text: '香港身份证',
value: '5'
},
{
text: '往来港澳台通行证',
value: '6'
}
])
const cardType1 = ref([{
])
const cardType1 = ref([{
text: '身份证',
value: '0'
},
{
text: '港澳台通行证 ',
text: '来往大陆(内地)通行证',
value: '1'
},
{
text: '外国护照',
}, {
text: '护照',
value: '3'
},
{
text: '户口本',
text: '香港身份证',
value: '5'
}
])
onLoad((option) => {
])
onLoad((option) => {
if (option.rangeId) {
queryParams.value.rangeId = option.rangeId
getList()
}
})
onShow((option) => {
})
onShow((option) => {
console.log(option)
if(option){
if (option) {
queryParams.value.rangeId = option
getList()
}
})
})
function getList() {
function getList() {
uni.showLoading({
title: '加载中'
})
......@@ -255,16 +258,16 @@ function getList() {
total.value = res.total
uni.hideLoading()
})
}
}
function handleChange(a, b) {
function handleChange(a, b) {
type.value = b
form.value = a
console.log(form.value.newName)
popup.value.open()
}
}
function handleDelete(row) {
function handleDelete(row) {
uni.showModal({
content: `确认删除会员${row.newName}`,
success: function(res) {
......@@ -273,7 +276,7 @@ function handleDelete(row) {
uni.showToast({
title: '操作成功'
})
if(list.value.length==1){
if (list.value.length == 1) {
queryParams.value.rangeId = ''
}
getList()
......@@ -281,38 +284,38 @@ function handleDelete(row) {
}
}
})
}
function chooseOnline() {
// uni.showLoading({
// title: '加载中',
// icon: 'none'
// })
// var obj = {
// paymentRangeId: queryParams.value.rangeId || '-1',
// multiDeptFlag: 1,
// perType: 1
// }
// api.selectPageList(obj).then(res => {
// studentList.value = res.rows
// uni.hideLoading()
// choseStudent.value.open()
// })
}
function chooseOnline() {
// uni.showLoading({
// title: '加载中',
// icon: 'none'
// })
// var obj = {
// paymentRangeId: queryParams.value.rangeId || '-1',
// multiDeptFlag: 1,
// perType: 1
// }
// api.selectPageList(obj).then(res => {
// studentList.value = res.rows
// uni.hideLoading()
// choseStudent.value.open()
// })
uni.navigateTo({
url:`/personalVip/changeVipChoseList?rangeId=${queryParams.value.rangeId || '-1'}`
url: `/personalVip/changeVipChoseList?rangeId=${queryParams.value.rangeId || '-1'}`
})
}
}
function checkThis(n) {
function checkThis(n) {
if (n.checked) {
n.checked = false
} else {
n.checked = true
}
}
}
function handleImport() {
function handleImport() {
var arr = []
for (var n of studentList.value) {
if (n.checked) {
......@@ -327,9 +330,9 @@ function handleImport() {
choseStudent.value.close()
getList()
})
}
}
function submitForm(type) {
function submitForm(type) {
if (type == 'newIdcCode' && form.value.newIdcType == 0) {
// 验证身份证
const pattern =
......@@ -359,17 +362,30 @@ function submitForm(type) {
})
getList()
})
}
}
function commitFN() {
function commitFN() {
const flag = list.value.some(item => {
if ((item.newName == item.oldName) && (item.newSex == item.oldSex) &&
(item.oldIdcType == item.newIdcType) && (item.oldIdcCode == item.newIdcCode) &&
(item.newBirth == item.oldBirth)
) {
uni.showToast({
title: `${item.newName}没有变更的信息`,
icon: 'none'
})
return true
}
if (!item.fileUrl) {
uni.showToast({
title:`请上传${item.newName}的附件`,
icon:'none'
title: `请上传${item.newName}的附件`,
icon: 'none'
})
return !item.fileUrl
}
})
if (flag) return
if (form.value.rangeId == '') return
......@@ -389,13 +405,13 @@ function commitFN() {
}
}
})
}
let selectFileValue = {}
}
let selectFileValue = {}
function selectFile(row, e) {
function selectFile(row, e) {
form.value = row
let file = e.tempFiles[0]
if(!file){
if (!file) {
return
}
api.uploadFile(e).then(data => {
......@@ -404,9 +420,9 @@ function selectFile(row, e) {
name: file.name,
extname: file.extname
}
console.log(selectFileValue,row.fileUrl)
console.log(selectFileValue, row.fileUrl)
uni.showLoading({
title:'上传中'
title: '上传中'
})
api.personChangeEditMod({
id: form.value.id,
......@@ -418,18 +434,17 @@ function selectFile(row, e) {
newSex: form.value.newSex,
newValiDate: form.value.newValiDate,
fileUrl: JSON.stringify([selectFileValue])
}).then(Response=>{
}).then(Response => {
uni.hideLoading()
getList()
})
});
}
}
function delSupplementFile(row) {
function delSupplementFile(row) {
selectFileValue = {}
row.fileUrl = []
}
}
</script>
<style scoped lang="scss">
.flexbox {
......@@ -469,7 +484,9 @@ function delSupplementFile(row) {
border-radius: 50px;
font-size: 28rpx;
}
:deep(.file-picker__progress) {
opacity: 0;background-color: transparent;
opacity: 0;
background-color: transparent;
}
</style>
\ No newline at end of file
......
......@@ -11,7 +11,7 @@
v-model="baseFormData.name" placeholder="请输入姓名" />
</uni-forms-item>
<uni-forms-item label="证件类型" required name="idcType">
<uni-data-select v-model="baseFormData.idcType" style="width: 300rpx;"
<uni-data-select v-model="baseFormData.idcType" style="width: 360rpx;"
@change="changeIdcType" :clear="false" :disabled="current === 0"
:localdata="idcTypeList"></uni-data-select>
</uni-forms-item>
......@@ -150,14 +150,17 @@
},
{
value: '1',
text: "港澳台通行证"
text: "来往大陆(内地)通行证"
},
{
value: '3',
text: "外国护照"
text: "护照"
}, {
value: '4',
text: '户口本'
}, {
value: '5',
text: '香港身份证'
}
])
const sexs = ref([{
......
......@@ -65,7 +65,7 @@ const cardType = ref([{
value: '0'
},
{
text: '港澳台通行证 ',
text: '来往大陆(内地)通行证',
value: '1'
},
{
......@@ -73,7 +73,7 @@ const cardType = ref([{
value: '2'
},
{
text: '外国护照',
text: '护照',
value: '3'
},
{
......@@ -81,8 +81,12 @@ const cardType = ref([{
value: '4'
},
{
text: '户口本',
text: '香港身份证',
value: '5'
},
{
text: '往来港澳台通行证',
value: '6'
}
])
onLoad((option) => {
......
......@@ -94,15 +94,15 @@
value: '2'
},
{
label: '外国护照',
label: '护照',
value: '3'
},
{
label: '其它',
label: '户口本',
value: '4'
},
{
label: '户口本',
label: '香港身份证',
value: '5'
}
])
......
......@@ -57,7 +57,7 @@
value: '0'
},
{
label: '港澳台通行证 ',
label: '来往大陆(内地)通行证',
value: '1'
},
{
......@@ -65,12 +65,18 @@
value: '2'
},
{
label: '外国护照',
label: '护照',
value: '3'
},
{
label: '其它',
value: '4'
}, {
label: '香港身份证',
value: '5'
}, {
label: '往来港澳台通行证',
value: '6'
}
])
const form = ref({})
......
......@@ -65,7 +65,7 @@ const cardType = ref([{
value: '0'
},
{
text: '港澳台通行证 ',
text: '来往大陆(内地)通行证',
value: '1'
},
{
......@@ -73,7 +73,7 @@ const cardType = ref([{
value: '2'
},
{
text: '外国护照',
text: '护照',
value: '3'
},
{
......@@ -81,8 +81,12 @@ const cardType = ref([{
value: '4'
},
{
text: '户口本',
text: '香港身份证',
value: '5'
},
{
text: '往来港澳台通行证',
value: '6'
}
])
onLoad((option) => {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!