|
@@ -5,7 +5,7 @@
|
|
|
|
|
|
<div class="l-h">
|
|
|
<img :src="`${$cdn}images/icon-story.png`" alt="" />
|
|
|
- <p>{{params.name}}</p>
|
|
|
+ <p>{{params.name}}</p>
|
|
|
</div>
|
|
|
|
|
|
<div class="l-type">
|
|
@@ -60,7 +60,7 @@
|
|
|
|
|
|
<div class="l-h">
|
|
|
<img :src="`${$cdn}images/icon-story.png`" alt="" />
|
|
|
- <p>{{params.name}}</p>
|
|
|
+ <p>自由漫游</p>
|
|
|
</div>
|
|
|
|
|
|
<div class="l-type">
|
|
@@ -71,7 +71,7 @@
|
|
|
<li
|
|
|
:class="{ active: item.id === b_active }"
|
|
|
v-for="(item, i) in blocks"
|
|
|
- @click="b_active = item.id; blockVisible = false"
|
|
|
+ @click="b_active = item.id; blockVisible = false; "
|
|
|
:key="i"
|
|
|
>
|
|
|
{{ item.name }}
|
|
@@ -94,6 +94,9 @@
|
|
|
</ul>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
+ <img class="search-bar" :src="`${$cdn}images/mobile/home_search_bar.png`" alt="" @click="$router.push({path:'/search'})">
|
|
|
+
|
|
|
</div>
|
|
|
|
|
|
<div class="l-con">
|
|
@@ -130,6 +133,10 @@ import Card from "@/components/card";
|
|
|
|
|
|
let blocks = [
|
|
|
{
|
|
|
+ name: "全部",
|
|
|
+ id: '',
|
|
|
+ },
|
|
|
+ {
|
|
|
name: "东楼",
|
|
|
id: 1
|
|
|
},
|
|
@@ -173,11 +180,11 @@ export default {
|
|
|
blocks,
|
|
|
list:[],
|
|
|
a_active: '',
|
|
|
- b_active: 1,
|
|
|
+ b_active: '', // 1
|
|
|
l_active: '',
|
|
|
t_active: '',
|
|
|
total: 100,
|
|
|
- pageSize: 8,
|
|
|
+ pageSize: 20, // 8
|
|
|
currentPage: 1,
|
|
|
type:'roam',
|
|
|
block: null,
|
|
@@ -198,6 +205,11 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
async getList(){
|
|
|
+
|
|
|
+ if(this.isMobile) {
|
|
|
+ this.pageSize = 500;
|
|
|
+ }
|
|
|
+
|
|
|
let res = await this.$http({
|
|
|
method:'post',
|
|
|
data:{
|
|
@@ -212,11 +224,10 @@ export default {
|
|
|
})
|
|
|
this.list = res.data.list
|
|
|
this.total = res.data.total
|
|
|
-
|
|
|
-
|
|
|
},
|
|
|
refresh(){
|
|
|
- this.currentPage===1?(this.getList()):(this.currentPage = 1)
|
|
|
+
|
|
|
+ this.currentPage===1 ? (this.getList()) : (this.currentPage = 1)
|
|
|
}
|
|
|
},
|
|
|
watch:{
|
|
@@ -237,10 +248,8 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted(){
|
|
|
- this.getList()
|
|
|
- if(this.isMobile) {
|
|
|
- this.pageSize = this.total;
|
|
|
- }
|
|
|
+ this.getList();
|
|
|
+
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
@@ -428,16 +437,16 @@ export default {
|
|
|
font-size: 0;
|
|
|
li {
|
|
|
display: block;
|
|
|
- padding: 2px 6px;
|
|
|
+ padding: 8px;
|
|
|
// margin: 0 6px;
|
|
|
cursor: pointer;
|
|
|
text-align: left;
|
|
|
color: #382e2c;
|
|
|
- font-size: 16px;
|
|
|
+ font-size: 14px;
|
|
|
}
|
|
|
.active {
|
|
|
- background: @theme;
|
|
|
- color: #c9a27b;
|
|
|
+ background: #d6b8ae;
|
|
|
+ color: @theme;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -446,28 +455,39 @@ export default {
|
|
|
position: fixed;
|
|
|
top: 18vh;
|
|
|
left: 5vw;
|
|
|
+ font-size: 14px;
|
|
|
}
|
|
|
#select-block {
|
|
|
top: 21vh;
|
|
|
left: 5vw;
|
|
|
+ font-size: 14px;
|
|
|
}
|
|
|
#label-area {
|
|
|
position: fixed;
|
|
|
top: 18vh;
|
|
|
left: 25vw;
|
|
|
+ font-size: 14px;
|
|
|
}
|
|
|
#select-area {
|
|
|
top: 21vh;
|
|
|
left: 25vw;
|
|
|
+ font-size: 14px;
|
|
|
}
|
|
|
}
|
|
|
+ .search-bar {
|
|
|
+ position: fixed;
|
|
|
+ top: 18vh;
|
|
|
+ right: 5vw;
|
|
|
+ width: 30vw;
|
|
|
+ z-index: 100;
|
|
|
+ }
|
|
|
}
|
|
|
.l-con {
|
|
|
position: fixed;
|
|
|
- top: 25vh;
|
|
|
+ top: 23vh;
|
|
|
left: 5vw;
|
|
|
width: 93vw;
|
|
|
- height: 55vh;
|
|
|
+ height: 65%;
|
|
|
padding: 0;
|
|
|
box-sizing: border-box;
|
|
|
text-align: left;
|