Commit 6e7fe225 by zhangzhen

细节优化

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