Commit e7100afa by zhangzhen

时间展示细节优化

parent c03574a8
......@@ -43,11 +43,11 @@
<text class="text-title ">{{orderInfo.updateTime || orderInfo.createTime||'-'}}</text>
</view>
<view class="info">
<text class="text-title text-bold">开始时间:</text>
<text class="text-title text-bold">预约开始时间:</text>
<text class="text-title ">{{orderInfo.preStartDate||'00:00'}}:00</text>
</view>
<view class="info">
<text class="text-title text-bold">结束时间:</text>
<text class="text-title text-bold">预约结束时间:</text>
<text class="text-title ">{{orderInfo.preEndDate ||'00:00'}}:00</text>
</view>
</view>
......@@ -185,10 +185,10 @@
this.orderInfo = {
...res.data.data,
roomImages: res.data.data.roomImages.split(','),
startDate: res.data.data.preStartDate.split(" ")[0],
startTime: res.data.data.preStartDate.split(" ")[1],
endDate: res.data.data.preEndDate.split(" ")[0],
endTime: res.data.data.preEndDate.split(" ")[1],
startDate: res.data.data.startDate? res.data.data.startDate.split(" ")[0] : res.data.data.preStartDate.split(" ")[0],
startTime: res.data.data.startDate? res.data.data.startDate.split(" ")[1] : res.data.data.preStartDate.split(" ")[1],
endDate: res.data.data.endDate? res.data.data.endDate.split(" ")[0] : res.data.data.preEndDate.split(" ")[0],
endTime: res.data.data.endDate? res.data.data.endDate.split(" ")[1] : res.data.data.preEndDate.split(" ")[1],
payTime:res.data.data.payTime? moment(res.data.data.payTime).format("YYYY-MM-DD HH:mm:ss") :''
}
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment