Commit 6459c9fa by 胡悦

修复bug

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