Commit ef4004ee by cen

fix: 样式

1 parent 90e34eb1
...@@ -307,8 +307,29 @@ ...@@ -307,8 +307,29 @@
<view v-for="(item, index) in detailsInfo.editLogList[indexContent].changeList || []" :key="index" class="tableRow"> <view v-for="(item, index) in detailsInfo.editLogList[indexContent].changeList || []" :key="index" class="tableRow">
<view class="tableCell">{{ item.fieldName }}</view> <view class="tableCell">{{ item.fieldName }}</view>
<view class="tableCell">{{ item.fieldType == 'text' ? '文本' : item.fieldType == 'image' ? '图片' : '视频' }}变更</view> <view class="tableCell">{{ item.fieldType == 'text' ? '文本' : item.fieldType == 'image' ? '图片' : '视频' }}变更</view>
<view class="tableCell">{{ item.fieldBeforeValue || '-' }}</view> <view class="tableCell">
<view class="tableCell">{{ item.fieldAfterValue || '-' }}</view> <view v-if="item.fieldType == 'text'">
{{ item.fieldBeforeValue || '-' }}
</view>
<view v-else-if="item.fieldType == 'image'">
<image v-for="(url, idx) in splitMediaUrls(item.fieldBeforeValue)" :key="idx" :src="url" mode="aspectFill" style="margin-right: 10px; width: 80px; height: 80px"></image>
</view>
<view v-else-if="item.fieldType == 'video'">
<image v-for="(url, idx) in splitMediaUrls(item.fieldBeforeValue)" :key="idx" :src="url" mode="aspectFill" style="margin-right: 10px; width: 80px; height: 80px"></image>
</view>
</view>
<view class="tableCell">
<view v-if="item.fieldType == 'text'">
{{ item.fieldAfterValue || '-' }}
</view>
<view v-else-if="item.fieldType == 'image'">
<image v-for="(url, idx) in splitMediaUrls(item.fieldAfterValue)" :key="idx" :src="url" mode="aspectFill" style="margin-right: 10px; width: 80px; height: 80px"></image>
</view>
<view v-else-if="item.fieldType == 'video'">
<image v-for="(url, idx) in splitMediaUrls(item.fieldAfterValue)" :key="idx" :src="url" mode="aspectFill" style="margin-right: 10px; width: 80px; height: 80px"></image>
</view>
</view>
</view> </view>
<!-- 当没有数据时显示空状态 --> <!-- 当没有数据时显示空状态 -->
<view v-if="!detailsInfo.editLogList[indexContent].changeList || detailsInfo.editLogList[indexContent].changeList.length === 0" class="empty-table"> <view v-if="!detailsInfo.editLogList[indexContent].changeList || detailsInfo.editLogList[indexContent].changeList.length === 0" class="empty-table">
...@@ -537,6 +558,13 @@ export default { ...@@ -537,6 +558,13 @@ export default {
delta: 1 delta: 1
}) })
}, },
splitMediaUrls(urls) {
if (!urls) return []
return urls
.split(',')
.map(url => url.trim())
.filter(url => url)
},
statusClass(status) { statusClass(status) {
return status > 0 ? `status-${status}` : 'status-0' return status > 0 ? `status-${status}` : 'status-0'
}, },
...@@ -1044,6 +1072,11 @@ export default { ...@@ -1044,6 +1072,11 @@ export default {
text-align: left; text-align: left;
background: #f9fafc; background: #f9fafc;
text-align: center; text-align: center;
uni-image {
width: toRpx(96);
height: toRpx(96);
border-radius: 8px;
}
} }
// 表格空状态样式 // 表格空状态样式
......
...@@ -402,7 +402,8 @@ export default { ...@@ -402,7 +402,8 @@ export default {
console.log('res:', res) console.log('res:', res)
if (res.data.code == 0) { if (res.data.code == 0) {
uni.hideLoading() uni.hideLoading()
if (!res.data.data.false) { console.log('res.data.data:', res.data.data)
if (!res.data.data) {
that.$refs.signAgreementPopup.open().then(() => { that.$refs.signAgreementPopup.open().then(() => {
uni.showLoading() uni.showLoading()
uni.$api.evaluationApi.sendCustodyAgreement({ ...that.signAgreementObj, evalOrderNo: e.evalOrderNo }).then(res => { uni.$api.evaluationApi.sendCustodyAgreement({ ...that.signAgreementObj, evalOrderNo: e.evalOrderNo }).then(res => {
...@@ -429,6 +430,12 @@ export default { ...@@ -429,6 +430,12 @@ export default {
title: e.status == 40 && e.paymentType == 1 ? '尾款款项已申请,完成代保管协议电子签约后将安排支付尾款' : '全款款项已申请,完成代保管协议电子签约后将安排支付全款', title: e.status == 40 && e.paymentType == 1 ? '尾款款项已申请,完成代保管协议电子签约后将安排支付尾款' : '全款款项已申请,完成代保管协议电子签约后将安排支付全款',
icon: 'none' icon: 'none'
}) })
} else {
uni.hideLoading()
uni.showToast({
title: res.data.msg || '请求失败',
icon: 'none'
})
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!