Commit e872580d by cen

fix: 修复视频bug

1 parent 4d829fec
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
/> />
<GeneralPopup ref="calendarGeneralPopup" popupClass="calendarGeneralPopup" :showClose="false" :showTitle="false" @confirm="confirmCalendar"> <GeneralPopup ref="calendarGeneralPopup" popupClass="calendarGeneralPopup" :showClose="false" :showTitle="false" @confirm="confirmCalendar">
<template #content> <template #content>
<uni-calendar class="calendar" :showMonth="false" :date="defaultDate" :startDate="startDate" :endDate="endDate" @change="calendarChange" /> <uni-calendar class="calendar" :showMonth="false" :date="defaultDate" :startDate="startDate" @change="calendarChange" />
</template> </template>
</GeneralPopup> </GeneralPopup>
<GeneralPopup ref="tipsPopup" popupClass="tipsPopup" type="center" :showClose="true" :showTitle="false" :noTitle="true"> <GeneralPopup ref="tipsPopup" popupClass="tipsPopup" type="center" :showClose="true" :showTitle="false" :noTitle="true">
......
...@@ -144,7 +144,7 @@ export default { ...@@ -144,7 +144,7 @@ export default {
return return
} }
} }
uni.showLoading({ title: '上传中...' }) uni.showLoading({ title: '上传中...', mask: true })
// 上传所有选择的图片 // 上传所有选择的图片
for (let i = 0; i < res.tempFilePaths.length; i++) { for (let i = 0; i < res.tempFilePaths.length; i++) {
const url = await uploadFile(res.tempFiles[i], res.tempFilePaths[i]) const url = await uploadFile(res.tempFiles[i], res.tempFilePaths[i])
...@@ -185,7 +185,7 @@ export default { ...@@ -185,7 +185,7 @@ export default {
return return
} }
} }
uni.showLoading({ title: '上传中...' }) uni.showLoading({ title: '上传中...', mask: true })
// 上传所有选择的图片 // 上传所有选择的图片
for (let i = 0; i < res.tempFilePaths.length; i++) { for (let i = 0; i < res.tempFilePaths.length; i++) {
const url = await uploadFile(res.tempFiles[i], res.tempFilePaths[i]) const url = await uploadFile(res.tempFiles[i], res.tempFilePaths[i])
...@@ -224,7 +224,7 @@ export default { ...@@ -224,7 +224,7 @@ export default {
uni.showToast({ title: '视频上传最大100MB', icon: 'none' }) uni.showToast({ title: '视频上传最大100MB', icon: 'none' })
return return
} }
uni.showLoading({ title: '上传中...' }) uni.showLoading({ title: '上传中...', mask: true })
// #ifdef H5 // #ifdef H5
const url = await uploadFile(res.tempFile, res.tempFilePath) const url = await uploadFile(res.tempFile, res.tempFilePath)
// #endif // #endif
...@@ -272,7 +272,7 @@ export default { ...@@ -272,7 +272,7 @@ export default {
uni.showToast({ title: '视频上传最大100MB', icon: 'none' }) uni.showToast({ title: '视频上传最大100MB', icon: 'none' })
return return
} }
uni.showLoading({ title: '上传中...' }) uni.showLoading({ title: '上传中...', mask: true })
// #ifdef H5 // #ifdef H5
const url = await uploadFile(res.tempFile, res.tempFilePath) const url = await uploadFile(res.tempFile, res.tempFilePath)
// #endif // #endif
......
...@@ -659,7 +659,7 @@ export default { ...@@ -659,7 +659,7 @@ export default {
inputType: 'text', inputType: 'text',
targetKey: 'partAName', targetKey: 'partAName',
type: 'input', type: 'input',
maxlength: 28, maxlength: 20,
disabled: false disabled: false
}, },
{ {
...@@ -751,7 +751,7 @@ export default { ...@@ -751,7 +751,7 @@ export default {
targetKey: 'partAName', targetKey: 'partAName',
type: 'input', type: 'input',
disabled: false, disabled: false,
maxlength: 28 maxlength: 20
}, },
{ {
key: 'phone', key: 'phone',
...@@ -799,7 +799,8 @@ export default { ...@@ -799,7 +799,8 @@ export default {
} }
// 设置当前选中的索引 // 设置当前选中的索引
this.current = this.radioList.findIndex(item => item.value === value) this.current = this.radioList.findIndex(item => Number(item.value) === value)
console.log('this.current', this.current)
}, },
blurChange(value, field) { blurChange(value, field) {
if (field.key === 'idCard' && value) { if (field.key === 'idCard' && value) {
...@@ -996,6 +997,7 @@ export default { ...@@ -996,6 +997,7 @@ export default {
this.$refs.notice.open() this.$refs.notice.open()
}, },
prevPage() { prevPage() {
console.log('this.formData:', this.current)
this.comfirmPage = false this.comfirmPage = false
this.title = '签约信息' this.title = '签约信息'
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!