修改首页功能导航区的显隐判断
This commit is contained in:
parent
cb4e23669d
commit
743532973d
@ -80,6 +80,7 @@ export default {
|
||||
uni.setStorageSync('changeCommData', { id: e.community_id, name: e.name });
|
||||
uni.setStorageSync('currentCommunityAddr',e.addr);
|
||||
uni.setStorageSync("isShowNav", e.room_owner_list[0].type)
|
||||
console.log("🚀 ~ choseCommunity ~ e.room_owner_list[0].type:", e.room_owner_list[0].type)
|
||||
NavgateTo("1")
|
||||
},
|
||||
},
|
||||
|
||||
@ -1,110 +1,82 @@
|
||||
<template>
|
||||
<view class="box">
|
||||
<div
|
||||
class="searchBox"
|
||||
:style="{ height: localHeight + 'px', paddingTop: top + 'px' }"
|
||||
>
|
||||
<div class="searchBox_add">
|
||||
<div class="searchBox_left">
|
||||
<u-icon
|
||||
bold
|
||||
color="#000"
|
||||
size="40"
|
||||
name="arrow-left"
|
||||
@click="back"
|
||||
></u-icon>
|
||||
</div>
|
||||
<div class="searchBox_mid">我的报修</div>
|
||||
<div class="searchBox_right"></div>
|
||||
</div>
|
||||
</div>
|
||||
<view class="searchBox" :style="{ height: localHeight + 'px', paddingTop: top + 'px' }">
|
||||
<view class="searchBox_add">
|
||||
<view class="searchBox_left">
|
||||
<u-icon bold color="#000" size="40" name="arrow-left" @click="back"></u-icon>
|
||||
</view>
|
||||
<view class="searchBox_mid">我的报修</view>
|
||||
<view class="searchBox_right"></view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<div class="tabList">
|
||||
<div
|
||||
:class="active == 1 ? 'tab active' : 'tab'"
|
||||
@click="headerTabsClick(1)"
|
||||
>
|
||||
<view class="tabList">
|
||||
<view :class="active == 1 ? 'tab active' : 'tab'" @click="headerTabsClick(1)">
|
||||
待指派 <span>({{ awaitingNumb }})</span>
|
||||
</div>
|
||||
<div
|
||||
:class="active == 2 ? 'tab active' : 'tab'"
|
||||
@click="headerTabsClick(2)"
|
||||
>
|
||||
</view>
|
||||
<view :class="active == 2 ? 'tab active' : 'tab'" @click="headerTabsClick(2)">
|
||||
进行中 <span>({{ underwayNum }})</span>
|
||||
</div>
|
||||
<div
|
||||
:class="active == 4 ? 'tab active' : 'tab'"
|
||||
@click="headerTabsClick(4)"
|
||||
>
|
||||
</view>
|
||||
<view :class="active == 4 ? 'tab active' : 'tab'" @click="headerTabsClick(4)">
|
||||
已作废 <span>({{ discardNum }})</span>
|
||||
</div>
|
||||
<div
|
||||
:class="active == 3 ? 'tab active' : 'tab'"
|
||||
@click="headerTabsClick(3)"
|
||||
>
|
||||
</view>
|
||||
<view :class="active == 3 ? 'tab active' : 'tab'" @click="headerTabsClick(3)">
|
||||
已完成 <span>({{ doneNum }})</span>
|
||||
</div>
|
||||
</div>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<div
|
||||
v-if="list.length !== 0"
|
||||
class="orderList"
|
||||
v-for="(item, index) in list"
|
||||
:key="index"
|
||||
>
|
||||
<div class="orderItem" @click="handlerDetailClick(item.id)">
|
||||
<div :class="['orderItemTit', statusType[item.status].style]">
|
||||
<div class="orderItemTit_left">工单编号:{{ item.order_code }}</div>
|
||||
<div class="orderItemTit_right">{{ item.create_time }}</div>
|
||||
</div>
|
||||
<div class="orderItem_row">
|
||||
<div class="df">
|
||||
<div class="orderItem_row_label">小区房源名称</div>
|
||||
<div class="orderItem_row_con">{{ item.room.name }}</div>
|
||||
<div
|
||||
:class="['orderItem_row_state', statusType[item.status].color]"
|
||||
>
|
||||
{{ statusType[item.status].desc }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<view v-if="list.length !== 0">
|
||||
<view class="orderList" v-for="(item, index) in list" :key="index">
|
||||
<view class="orderItem" @click="handlerDetailClick(item.id)">
|
||||
<view :class="['orderItemTit', statusType[item.status].style]">
|
||||
<view class="orderItemTit_left">工单编号:{{ item.order_code }}</view>
|
||||
<view class="orderItemTit_right">{{ item.create_time }}</view>
|
||||
</view>
|
||||
<view class="orderItem_row">
|
||||
<view class="df">
|
||||
<view class="orderItem_row_label">小区房源名称</view>
|
||||
<view class="orderItem_row_con">{{ item.room.name }}</view>
|
||||
<view :class="['orderItem_row_state', statusType[item.status].color]">
|
||||
{{ statusType[item.status].desc }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<div class="orderItem_row">
|
||||
<div class="orderItem_row_label">报修类型</div>
|
||||
<div class="orderItem_row_con">{{ item.ac.category_name }}</div>
|
||||
</div>
|
||||
<view class="orderItem_row">
|
||||
<view class="orderItem_row_label">报修类型</view>
|
||||
<view class="orderItem_row_con">{{ item.ac.category_name }}</view>
|
||||
</view>
|
||||
|
||||
<div class="orderItem_row">
|
||||
<div class="orderItem_row_label">问题描述</div>
|
||||
<div class="orderItem_row_con">{{ item.problem_description }}</div>
|
||||
</div>
|
||||
<view class="orderItem_row">
|
||||
<view class="orderItem_row_label">问题描述</view>
|
||||
<view class="orderItem_row_con">{{ item.problem_description }}</view>
|
||||
</view>
|
||||
|
||||
<div class="orderItem_row">
|
||||
<div class="orderItem_row_label">上门时间</div>
|
||||
<div class="orderItem_row_con">{{ item.service_time }}</div>
|
||||
</div>
|
||||
<view class="orderItem_row">
|
||||
<view class="orderItem_row_label">上门时间</view>
|
||||
<view class="orderItem_row_con">{{ item.service_time }}</view>
|
||||
</view>
|
||||
|
||||
<div class="orderItem_row">
|
||||
<div class="orderItem_row_label">联系人</div>
|
||||
<div class="orderItem_row_con">{{ item.contact_name }}</div>
|
||||
</div>
|
||||
<view class="orderItem_row">
|
||||
<view class="orderItem_row_label">联系人</view>
|
||||
<view class="orderItem_row_con">{{ item.contact_name }}</view>
|
||||
</view>
|
||||
|
||||
<div class="orderItem_row">
|
||||
<div class="orderItem_row_label">联系人手机号</div>
|
||||
<div class="orderItem_row_con">{{ item.contact_phone }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div v-if="list.length == 0" class="empty">
|
||||
<image
|
||||
src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/com_nearbyList_empty.png"
|
||||
mode="aspectFill"
|
||||
></image>
|
||||
<view class="orderItem_row">
|
||||
<view class="orderItem_row_label">联系人手机号</view>
|
||||
<view class="orderItem_row_con">{{ item.contact_phone }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view v-if="list.length == 0" class="empty">
|
||||
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/com_nearbyList_empty.png"
|
||||
mode="aspectFill"></image>
|
||||
暂无数据
|
||||
</div>
|
||||
</view>
|
||||
|
||||
<div class="addBtn" @click="oneRepair">在线报修</div>
|
||||
<view class="addBtn" @click="oneRepair">在线报修</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
||||
@ -188,7 +188,7 @@ page {
|
||||
}
|
||||
|
||||
.Msg_con_img image {
|
||||
width: calc(33.33% - 11rpx);
|
||||
width: calc(33% - 11rpx);
|
||||
height: 225rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
@ -249,7 +249,7 @@ export default {
|
||||
}, //2.注册组件
|
||||
data() {
|
||||
return {
|
||||
showNav: true,
|
||||
showNav: false,
|
||||
isShowSearch: false,
|
||||
|
||||
loading: false,
|
||||
@ -999,11 +999,13 @@ export default {
|
||||
toggleDropdown() {
|
||||
this.showDropdown = !this.showDropdown;
|
||||
// 当展开下拉菜单时,页面滑动
|
||||
if (this.showDropdown) {
|
||||
uni.pageScrollTo({
|
||||
scrollTop: 2500,
|
||||
duration: 300
|
||||
});
|
||||
if (this.showDropdown) {
|
||||
this.$nextTick(() => {
|
||||
uni.pageScrollTo({
|
||||
scrollTop: 2500,
|
||||
duration: 300
|
||||
});
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
@ -1019,7 +1021,6 @@ export default {
|
||||
this.localHeight = meun.height;
|
||||
this.showSearch()
|
||||
this.getSearchVal()
|
||||
this.showNav = uni.getStorageSync("isShowNav") != 1
|
||||
},
|
||||
|
||||
onShow() {
|
||||
@ -1049,6 +1050,9 @@ export default {
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.showNav = uni.getStorageSync("isShowNav") ?
|
||||
(uni.getStorageSync("isShowNav") == 1 ? false : true) : false
|
||||
console.log("🚀 ~ onLoad ~ this.showNav:", this.showNav)
|
||||
this.flag = false
|
||||
this.bottomPageNum = 1
|
||||
console.log('当前页面展示的城市信息', this.currentCity)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user