Prechádzať zdrojové kódy

fix:游记详情加载效果

qiao 2 mesiacov pred
rodič
commit
981679f95b

+ 8 - 2
src/pages/house/components/filters.vue

@@ -8,7 +8,7 @@
             <van-dropdown-item v-if="props.listType!='rentHouse'" @change="doEmit()" :title="price_select == 0 ? '价格' : priceList[price_select].text"
                 v-model="price_select" :options="priceList" />
             <van-dropdown-item title="户型">
-                <div class="text-[#333] text-[12px] p-15">
+                <div class="text-[#333] text-[12px] p-15 pl-25">
                     <div class="text-[14px] text-[#444]">厅室</div>
                     <div class="flex items-center justify-between mt-10">
                         <div @click="officeTypeId = item.itemId, doEmit()" class="bg-[#e4e4e4] px-8 py-4 rounded"
@@ -38,7 +38,7 @@
                 </div>
             </van-dropdown-item>
             <van-dropdown-item title="更多">
-                <div class="text-[#333] text-[12px] p-15">
+                <div class="text-[#333] text-[12px] p-15 pl-25">
                     <div class="text-[14px] text-[#444]">楼层</div>
                     <div v-if="props.listType == 'newHouse' || props.listType=='oldHouse'" class="flex items-center mt-10">
                         <div @click="floor_select = item.itemId, doEmit()" class="bg-[#e4e4e4] mr-20 px-8 py-4 rounded"
@@ -510,4 +510,10 @@ function doEmit() {
 ::v-deep .van-picker__confirm {
     color: #fd9a00;
 }
+::v-deep .van-dropdown-item__option--active{
+    color: #fd9a00;
+}
+::v-deep .van-dropdown-item__icon::before{
+    color: #fd9a00;
+}
 </style>

+ 3 - 6
src/pages/yj/[id].vue

@@ -253,7 +253,8 @@
         </div>
       </div>
     </div>
-    <div v-else class=" text-[#999] mt-100">
+    
+    <div v-if="['error'].includes(status)">
       <div class="text-center">
         不好意思,找不到这篇游记了~
       </div>
@@ -361,11 +362,7 @@ function textareaFocus() {
 // 获取评论列表
 const commentList = ref([])
 async function getComments() {
-  showLoadingToast({
-    forbidClick: true,
-    duration: 0,
-  })
-  const { data } = await request("/website/comment/tourTravelNotesComment/list?travelNoteId=" + id.value).finally(()=>closeToast())
+  const { data } = await request("/website/comment/tourTravelNotesComment/list?travelNoteId=" + id.value)
   if (!Array.isArray(data) || !data.length) return commentList.value = []
   commentList.value = data
 }