Commit 4d829fec by cen

fix: 样式修改

1 parent f69ddaa0
......@@ -8,7 +8,7 @@
<view v-if="tabIndex == index && index != 0" class="sprite-icon tab-second-left icon-second-left"></view>
<view class="text flex justify-center align-center" :class="[tabIndex == index ? `active` : '']">
<view>{{ i[nameKey] }}</view>
<view v-if="isShowCount" class="count ml-8">{{ i.count }}</view>
<view v-if="isShowCount" class="count ml-8" :class="i.count > 99 ? 'count-red' : ''">{{ i.count > 99 ? '99+' : i.count }}</view>
</view>
</view>
</view>
......@@ -80,7 +80,7 @@ export default {
.tab-item {
text-align: center;
font-weight: 400;
font-size: toRpx(32);
font-size: toRpx(28);
color: #1f2133;
position: relative;
.text {
......@@ -91,6 +91,9 @@ export default {
.count {
font-size: toRpx(24);
}
.count-red {
font-size: toRpx(22);
}
}
.text.active {
position: relative;
......
......@@ -135,6 +135,7 @@ export default {
sizeType: ['original'],
sourceType: ['camera'],
success: async res => {
console.log('选择图片成功', res)
try {
const MAX_IMAGE_SIZE = 10 * 1024 * 1024 // 10MB
for (const file of res.tempFiles) {
......@@ -145,8 +146,8 @@ export default {
}
uni.showLoading({ title: '上传中...' })
// 上传所有选择的图片
for (const tempFilePath of res.tempFilePaths) {
const url = await uploadFile(tempFilePath)
for (let i = 0; i < res.tempFilePaths.length; i++) {
const url = await uploadFile(res.tempFiles[i], res.tempFilePaths[i])
uni.hideLoading()
......
......@@ -117,7 +117,8 @@
</view>
</template>
<script>
import { uploadFile } from '@/utils/ossUploadFile/uploadFile.js'
// import { uploadFile } from '@/utils/ossUploadFile/uploadFile.js'
import { uploadFile } from '@/utils/ossUpload.js'
import FormCell from './components/FormCell.vue'
import GeneralPopup from './components/GeneralPopup.vue'
import OrderPopup from '@/components/OrderPopup/index.vue'
......@@ -481,8 +482,8 @@ export default {
}
}
// 上传所有选择的图片
for (const tempFilePath of res.tempFilePaths) {
const url = await uploadFile(tempFilePath)
for (let i = 0; i < res.tempFilePaths.length; i++) {
const url = await uploadFile(res.tempFiles[i], res.tempFilePaths[i])
console.log('上传图片成功', url)
this.addImage(field, url)
}
......@@ -514,8 +515,8 @@ export default {
}
}
// 上传所有选择的图片
for (const tempFilePath of res.tempFilePaths) {
const url = await uploadFile(tempFilePath)
for (let i = 0; i < res.tempFilePaths.length; i++) {
const url = await uploadFile(res.tempFiles[i], res.tempFilePaths[i])
console.log('上传图片成功', url)
this.addImage(field, url)
}
......@@ -550,10 +551,10 @@ export default {
uni.showLoading({ title: '上传中...' })
let url = ''
// #ifdef H5
url = await uploadFile(res.tempFilePath)
url = await uploadFile(res.tempFile, res.tempFilePath)
// #endif
// #ifdef APP-PLUS
url = await uploadFile(res.tempFilePath)
url = await uploadFile(null, res.tempFilePath)
// #endif
url = url + this.videoProcess
console.log('上传视频成功', url)
......@@ -593,10 +594,10 @@ export default {
let url = ''
uni.showLoading({ title: '上传中...' })
// #ifdef H5
url = await uploadFile(res.tempFilePath)
url = await uploadFile(res.tempFile, res.tempFilePath)
// #endif
// #ifdef APP-PLUS
url = await uploadFile(res.tempFilePath)
url = await uploadFile(null, res.tempFilePath)
// #endif
url = url + this.videoProcess
console.log('上传视频成功', url)
......
......@@ -683,6 +683,7 @@ export default {
})
},
onConfirm(e) {
this.custodyAgreementObj = e.chooseContent
this.signAgreementObj = { custodianName: e.chooseContent.name, custodianIdentityCode: e.chooseContent.idCard, custodianPhone: e.chooseContent.phone, custodianAddress: e.chooseContent.address }
console.log('this.signAgreementObj:', this.signAgreementObj)
}
......
......@@ -202,7 +202,7 @@
</view>
<view class="flex align-center">
<view class="title-label-see mr-16">地址</view>
<view>{{ formData.address }}</view>
<view class="flex-1">{{ formData.address }}</view>
</view>
<view class="flex align-start" v-if="formData.idCardFrontUrl">
<view class="title-label-see mr-16">身份证正面</view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!