Commit b3f5a0a8 by zhangzhen

细节优化

parent 73a675d1
......@@ -3,7 +3,7 @@
<view class="flex-col" v-for="(val,i) in list" :key="i" @tap.stop="onNavToHome(val)">
<view class="flex-row">
<view class="room-img-box">
<image :src="val.images[0]" mode="scaleToFill" @tap.stop="onPreview(val)"></image>
<image :src="val.images[0]" mode="aspectFill" @tap.stop="onPreview(val)"></image>
</view>
<view class="flex-1 part-right">
<view class="part-title">
......@@ -123,10 +123,7 @@
border-radius: 12upx;
overflow: hidden;
margin: 0 20upx;
image {
display: block;
width: 100%;
height: 100%;
}
}
......
......@@ -219,7 +219,7 @@ import moment from "@/common/moment";
})
},
onNavSearch(val){
if(val.recordsStatus == 0 || val.recordsUserId === this.userInfo.id){
if(val.recordsStatus == 0 || val.recordsUserId == this.userInfo.id){
uni.navigateTo({
url:"/pages/cleanOrderInfo/cleanOrderInfo?id="+val.recordsId
})
......
......@@ -188,7 +188,7 @@ import NoLogin from "@/components/noLogin/noLogin"
this.onLoading()
},
onNavToOrderInfo(val){
if(val.consumerId === this.userInfo.id){
if(val.consumerId == this.userInfo.id){
uni.navigateTo({
url:"/pages/cleanOrderInfo/cleanOrderInfo?id="+val.id
})
......
......@@ -206,6 +206,7 @@
},
onLoading(){
getOrderInfoByNo(this.orderNo).then(res=>{
this.close()
if(res.data.code == 200){
this.orderInfo = {
...res.data.data,
......@@ -369,14 +370,13 @@
}).then(res=>{
uni.hideLoading()
if(res.data.code == 200){
this.close()
uni.showToast({
icon:'none',
title:'退单已提交'
})
setTimeout(()=>{
this.onLoading()
},1500)
},500)
}else{
uni.showToast({
icon:'none',
......
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