Commit 6e7fe225 by zhangzhen

细节优化

parent 1fa9916b
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
</view> </view>
<view class="flex-row list-point-box"> <view class="flex-row list-point-box">
<view v-for="(val,k) in list" :key="k" class="flex-1 flex-col"> <view v-for="(val,k) in list" :key="k" class="flex-1 flex-col">
<view class="box" :class="objListDate.length&&objListDate[index][k].status==1?'bg-pink':'bg-gray'"> <view class="box" :class="objListDate.length && objListDate[index][k].status==1?'bg-pink':'bg-gray'">
</view> </view>
<text class="text-gray text-sm">{{val>=24? val-24:val}}</text> <text class="text-gray text-sm">{{val>=24? val-24:val}}</text>
...@@ -215,6 +215,7 @@ ...@@ -215,6 +215,7 @@
timer: null, timer: null,
roomVoList:[], roomVoList:[],
list, list,
listDate:[],
objListDate:[] objListDate:[]
} }
}, },
...@@ -304,8 +305,6 @@ ...@@ -304,8 +305,6 @@
images: item.images ? item.images.split(",").map(val => this.hostUrl + val) : [] images: item.images ? item.images.split(",").map(val => this.hostUrl + val) : []
} }
}) })
console.log(that.roomVoList,"that.roomVoList")
that.onGetSortDistance(0); that.onGetSortDistance(0);
} }
} }
...@@ -319,14 +318,14 @@ ...@@ -319,14 +318,14 @@
orderType:1 orderType:1
}).then(res=>{ }).then(res=>{
if(res.data.code == 200 && i <= this.roomVoList.length-1){ if(res.data.code == 200 && i <= this.roomVoList.length-1){
this.objListDate[i] = res.data.data; this.listDate[i] = res.data.data;
i+=1 i+=1
if(i >= this.roomVoList.length){ if(i >= this.roomVoList.length){
this.objListDate = this.objListDate.map(item=>{ this.listDate = this.listDate.map(item=>{
return this.list.map(val=>item[val]) return this.list.map(val=>item[val])
}) })
console.log(this.objListDate,"this.objListDate") this.objListDate = this.listDate;
}else{ }else{
this.onGetSortDistance(i) this.onGetSortDistance(i)
} }
...@@ -408,7 +407,6 @@ ...@@ -408,7 +407,6 @@
uni.openSetting({ uni.openSetting({
scope:"scope.userLocation", scope:"scope.userLocation",
complete: (res) => { complete: (res) => {
console.log(res,909090)
if(res.authSetting['scope.userLocation']){ if(res.authSetting['scope.userLocation']){
this.onClose(); this.onClose();
this.onLoading() this.onLoading()
......
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