Commit b3f5a0a8 by zhangzhen

细节优化

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