Commit 6459c9fa by 胡悦

修复bug

1 parent 3393b922
......@@ -17,10 +17,12 @@
><view>车架号</view><view>{{ item.carVin || 4654651 }}</view></view
>
<view class="card-info"
><view>工单号</view><view>{{ item.orderId }}</view></view
><view>工单号</view><view>{{ item.payId }}</view></view
>
<view class="card-info"
><view>订单时间</view><view>{{ item.createdTime }}</view></view
><view>订单时间</view>
<view>{{ format(item.createdTime) }}</view>
</view
>
<view class="card-info"
><view>交易流水号</view><view>{{ item.transactionNo }}</view></view
......@@ -59,6 +61,7 @@
</template>
<script type="text/ecmascript-6">
import utils from '@/utils/utils';
import Tabs from './Tabs.vue';
export default {
name: 'Media_6',
......@@ -107,6 +110,9 @@ export default {
methods: {
format(dateTimeStr) {
return utils.convertDateTimeFormat(dateTimeStr, '/')
},
init(){
const { shopMerchantId } = uni.$storage.get("userInfo");
this.shopMerchantId = shopMerchantId
......@@ -130,7 +136,7 @@ export default {
this.historyList = this.historyList.concat(data.list)
this.isEnd = false
} else {
this.isEnd = true
if (this.historyList.length > 9) this.isEnd = true
}
}
......@@ -202,6 +208,7 @@ export default {
background: #ffffff;
border: 2rpx solid #dce0e6;
border-radius: 16rpx;
height: 448rpx;
.name {
font-weight: 500;
font-size: 32rpx;
......
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-04-07 14:39:40
* @LastEditors: huyue
* @LastEditTime: 2024-04-10 16:54:35
* @LastEditTime: 2024-04-10 17:00:04
-->
<template>
<view class="container" @click="handleTouchStart()">
......@@ -66,7 +66,7 @@
@cancel="cancel"
@confirm="preview"
:popupW="704"
content="直接点击素材可进行预览,若面向车辆主展示,请点击页面的「开始接待」"
content="直接点击素材可进行预览,若面向车辆主展示,请点击「开始接待」"
confirmBtnText="预览素材"
></MessageBox>
<MessageBox
......
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-04-07 14:54:28
* @LastEditors: huyue
* @LastEditTime: 2024-04-10 16:22:38
* @LastEditTime: 2024-04-10 17:14:52
-->
<template>
<view class="information-entry">
......@@ -224,7 +224,8 @@ export default {
f_key: Date.now(),
errorTip: false,
carBrand: '',
carBrandList: []
carBrandList: [],
isPreview: false
};
},
onLoad(options) {
......@@ -238,6 +239,16 @@ export default {
this.isPass = Object.values(customerInfo).every((value) => !!value);
});
},
onShow() {
if (!this.isPreview) {
this.infoList = this.infoList.map(item => {
if (item.imgUrl) {
delete item.imgUrl
}
return item
})
}
},
methods: {
...mapMutations("audio", ["setBooks"]),
// 上传图
......@@ -322,6 +333,7 @@ export default {
},
// 预览图片
preview(index) {
this.isPreview = true;
this.previewImg = this.infoList[index].imgUrl;
uni.previewImage({
urls: [this.infoList[index].imgUrl],
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!