feat: 合并代码
This commit is contained in:
commit
fb491dad1c
@ -19,4 +19,7 @@ export const apiArr = {
|
|||||||
categoryPage: '/api/v2/wechat/announcement-category-crud/page', // 公告分类信息分页
|
categoryPage: '/api/v2/wechat/announcement-category-crud/page', // 公告分类信息分页
|
||||||
infoPage: '/api/v2/wechat/announcement-crud/page', // 公告信息分页
|
infoPage: '/api/v2/wechat/announcement-crud/page', // 公告信息分页
|
||||||
getAnnounceInfo:"/api/v2/wechat/announcement-crud/info" ,//公告详情
|
getAnnounceInfo:"/api/v2/wechat/announcement-crud/info" ,//公告详情
|
||||||
|
|
||||||
|
getGovernmentByRoom:"/api/v2/wechat/government-housing-fund-flow-crud/room", //根据房源获取公积金信息
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="searchBox" :style="{ height: localHeight + 'px', paddingTop: top + 'px' }">
|
<div class="searchBox" :style="{ height: localHeight + 'px', paddingTop: top + 'px' }">
|
||||||
<div class="searchBox_add">
|
<div class="searchBox_add">
|
||||||
<div class="emptyCommunity" @click="addCommunity"> {{communityVal}} </div>
|
<div class="emptyCommunity" @click="addCommunity"> {{ communityVal }} </div>
|
||||||
<!-- <div class="MyCommunity" v-if="false">
|
<!-- <div class="MyCommunity" v-if="false">
|
||||||
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/community_mycommunity.png"
|
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/community_mycommunity.png"
|
||||||
mode="aspectFill"></image>
|
mode="aspectFill"></image>
|
||||||
@ -48,14 +48,15 @@
|
|||||||
|
|
||||||
<view class="funcList">
|
<view class="funcList">
|
||||||
<u-grid :col="rowNum" :border="false">
|
<u-grid :col="rowNum" :border="false">
|
||||||
<u-grid-item v-for="(item, index) in functionList" @click="jump(iteitem.mini_program_urlm)" :key="index">
|
<u-grid-item v-for="(item, index) in functionList" @click="jump(item.mini_program_url)" :key="index">
|
||||||
<image class="grid_Pic" :src="item.nav_icon" mode=""></image>
|
<image class="grid_Pic" :src="item.nav_icon" mode=""></image>
|
||||||
<text>{{ item.nav_name }}</text>
|
<text>{{ item.nav_name }}</text>
|
||||||
</u-grid-item>
|
</u-grid-item>
|
||||||
</u-grid>
|
</u-grid>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<div v-for="(item, index) in tileList" :key="index" :class="['ads', index == 0 ? 'ads_first' : '']" @click="headerServerClick(item)">
|
<div v-for="(item, index) in tileList" :key="index" :class="['ads', index == 0 ? 'ads_first' : '']"
|
||||||
|
@click="headerServerClick(item)">
|
||||||
<image :src="item.ad_picture" mode="aspectFill" />
|
<image :src="item.ad_picture" mode="aspectFill" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -69,8 +70,8 @@
|
|||||||
<div class="newsList">
|
<div class="newsList">
|
||||||
<div class="newsItem" v-for="item in infoList" @click="detail(item)" :key="item.id">
|
<div class="newsItem" v-for="item in infoList" @click="detail(item)" :key="item.id">
|
||||||
<div class="newsItem_left">
|
<div class="newsItem_left">
|
||||||
<div class="newsItem_left_tit">{{item.title}}</div>
|
<div class="newsItem_left_tit">{{ item.title }}</div>
|
||||||
<div class="newsItem_left_sub">{{item.author}}</div>
|
<div class="newsItem_left_sub">{{ item.author }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="newsItem_right">
|
<div class="newsItem_right">
|
||||||
<image :src="item.list_image" mode="aspectFill" />
|
<image :src="item.list_image" mode="aspectFill" />
|
||||||
@ -118,20 +119,20 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
request,
|
request,
|
||||||
picUrl,
|
picUrl,
|
||||||
uniqueByField,
|
uniqueByField,
|
||||||
menuButtonInfo,
|
menuButtonInfo,
|
||||||
NavgateTo
|
NavgateTo
|
||||||
} from '../../../utils';
|
} from '../../../utils';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
apiArr
|
apiArr
|
||||||
} from '../../../api/v2Community';
|
} from '../../../api/v2Community';
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
communityVal: '添加我的房产',
|
communityVal: '添加我的房产',
|
||||||
@ -156,15 +157,17 @@
|
|||||||
tileList: [], //平铺广告
|
tileList: [], //平铺广告
|
||||||
largePopList: [], //巨幅弹屏广告
|
largePopList: [], //巨幅弹屏广告
|
||||||
popList: [], //弹屏广告
|
popList: [], //弹屏广告
|
||||||
|
|
||||||
categoryList: [],
|
categoryList: [],
|
||||||
infoList: [],
|
infoList: [],
|
||||||
selectedTab: 0,
|
selectedTab: 0,
|
||||||
|
|
||||||
currentAdIndex: 0,
|
currentAdIndex: 0,
|
||||||
|
|
||||||
rowNum: 0,
|
rowNum: 0,
|
||||||
colNum: 0,
|
colNum: 0,
|
||||||
|
|
||||||
|
page_size:10,
|
||||||
|
page_num:1,
|
||||||
|
flag:false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async onLoad(options) {
|
async onLoad(options) {
|
||||||
@ -173,17 +176,42 @@
|
|||||||
// this.top = meun.height + meun.top;
|
// this.top = meun.height + meun.top;
|
||||||
this.localHeight = meun.height;
|
this.localHeight = meun.height;
|
||||||
// this.getCommunityList()
|
// this.getCommunityList()
|
||||||
if(!uni.getStorageSync('changeCommData').id){
|
if (!uni.getStorageSync('changeCommData').id) {
|
||||||
uni.setStorageSync("changeCommData",{name:"森呼吸二期",id:14})
|
uni.setStorageSync("changeCommData", { name: "森呼吸二期", id: 14 })
|
||||||
}
|
}
|
||||||
|
|
||||||
this.communityVal = uni.getStorageSync('changeCommData').name
|
this.communityVal = uni.getStorageSync('changeCommData').name
|
||||||
await this.getfunctionNum()
|
this.getfunctionNum()
|
||||||
this.getAdvertising()
|
this.getAdvertising()
|
||||||
this.getCategoryList()
|
this.getCategoryList()
|
||||||
|
},
|
||||||
|
|
||||||
|
//上拉刷新
|
||||||
|
onPullDownRefresh() {
|
||||||
|
this.communityVal = uni.getStorageSync('changeCommData').name
|
||||||
|
this.bannerList = []
|
||||||
|
this.currentIdx = 0
|
||||||
|
this.streamerList = [] //横幅广告
|
||||||
|
this.tileList = [] //平铺广告
|
||||||
|
this.largePopList = [] //巨幅弹屏广告
|
||||||
|
this.popList = [] //弹屏广告
|
||||||
|
this.categoryList = []
|
||||||
|
this.infoList = []
|
||||||
|
this.selectedTab = 0
|
||||||
|
this.currentAdIndex = 0
|
||||||
|
this.getfunctionNum()
|
||||||
|
this.getAdvertising()
|
||||||
|
this.getCategoryList()
|
||||||
|
uni.stopPullDownRefresh();
|
||||||
|
|
||||||
},
|
},
|
||||||
|
//下拉加载
|
||||||
|
onReachBottom() {
|
||||||
|
if(this.flag){
|
||||||
|
this.page_num++
|
||||||
|
this.getCategoryList()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
@ -200,7 +228,7 @@
|
|||||||
this.ads2Show = false
|
this.ads2Show = false
|
||||||
},
|
},
|
||||||
jump(e) {
|
jump(e) {
|
||||||
if(!e) {
|
if (!e) {
|
||||||
this.NotOpen();
|
this.NotOpen();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -211,24 +239,6 @@
|
|||||||
NavgateTo("/packages/community/myCommunity/index")
|
NavgateTo("/packages/community/myCommunity/index")
|
||||||
},
|
},
|
||||||
|
|
||||||
// getCommunityList() {
|
|
||||||
// let that = this
|
|
||||||
// request(apiArr.getCommunityList, 'POST', {
|
|
||||||
// page_num: that.queryPage.page_num,
|
|
||||||
// page_size: that.queryPage.page_size,
|
|
||||||
// user_id:""
|
|
||||||
// }).then(res => {
|
|
||||||
// console.log(res)
|
|
||||||
// if (res.rows.length == that.queryPage.page_size) {
|
|
||||||
// that.queryPage.page_num++
|
|
||||||
// that.flag = true
|
|
||||||
// that.communityList = that.communityList.concat(res.rows)
|
|
||||||
// }else{
|
|
||||||
// that.flag = false
|
|
||||||
// that.communityList = that.communityList.concat(res.rows)
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
// },
|
|
||||||
swipers(event) {
|
swipers(event) {
|
||||||
// 获取当前轮播图索引
|
// 获取当前轮播图索引
|
||||||
this.currentIdx = event.detail.current;
|
this.currentIdx = event.detail.current;
|
||||||
@ -243,26 +253,14 @@
|
|||||||
return await this.getfunctionList()
|
return await this.getfunctionList()
|
||||||
},
|
},
|
||||||
|
|
||||||
// async getfunctionList() {
|
|
||||||
// const res = await request(apiArr.navPage, "POST", {
|
|
||||||
// community_id: Number(uni.getStorageSync('changeCommData').id),
|
|
||||||
// page_num: 1,
|
|
||||||
// page_size: 50
|
|
||||||
// })
|
|
||||||
// this.functionList = res.rows.map(item => {
|
|
||||||
// return {
|
|
||||||
// ...item,
|
|
||||||
// nav_icon: picUrl + item.nav_icon
|
|
||||||
// };
|
|
||||||
// });
|
|
||||||
// console.log(this.functionList)
|
|
||||||
// },
|
|
||||||
async getfunctionList() {
|
async getfunctionList() {
|
||||||
const res = await request(apiArr.navPage, "POST", {
|
const res = await request(apiArr.navPage, "POST", {
|
||||||
community_id: Number(uni.getStorageSync('changeCommData').id),
|
community_id: Number(uni.getStorageSync('changeCommData').id),
|
||||||
page_num: 1,
|
page_num: 1,
|
||||||
page_size: 50
|
page_size: 50
|
||||||
});
|
});
|
||||||
|
console.log(res, 'xx');
|
||||||
|
|
||||||
// 获取 rowNum 和 colNum 的乘积
|
// 获取 rowNum 和 colNum 的乘积
|
||||||
const totalItems = this.rowNum * this.colNum;
|
const totalItems = this.rowNum * this.colNum;
|
||||||
// 使用 slice 方法截取前 totalItems 个元素
|
// 使用 slice 方法截取前 totalItems 个元素
|
||||||
@ -277,11 +275,6 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
async getAdvertising() {
|
async getAdvertising() {
|
||||||
// bannerList
|
|
||||||
// streamerList
|
|
||||||
// tileList
|
|
||||||
// largePopList
|
|
||||||
// popList
|
|
||||||
const res = await request(apiArr.advPage, "POST", {
|
const res = await request(apiArr.advPage, "POST", {
|
||||||
community_id: Number(uni.getStorageSync('changeCommData').id),
|
community_id: Number(uni.getStorageSync('changeCommData').id),
|
||||||
ad_position: 1,
|
ad_position: 1,
|
||||||
@ -410,7 +403,6 @@
|
|||||||
this.currentAdIndex = e.detail.current;
|
this.currentAdIndex = e.detail.current;
|
||||||
},
|
},
|
||||||
onDetailClick() {
|
onDetailClick() {
|
||||||
console.log('1111');
|
|
||||||
// 获取当前显示的广告项
|
// 获取当前显示的广告项
|
||||||
const currentAd = this.popList[this.currentAdIndex];
|
const currentAd = this.popList[this.currentAdIndex];
|
||||||
if (currentAd) {
|
if (currentAd) {
|
||||||
@ -454,28 +446,34 @@
|
|||||||
announcement_category_id: item.id,
|
announcement_category_id: item.id,
|
||||||
title: '',
|
title: '',
|
||||||
category_name: '',
|
category_name: '',
|
||||||
page_num: 1,
|
page_num: this.page_num,
|
||||||
page_size: 10,
|
page_size: this.page_size,
|
||||||
})
|
})
|
||||||
this.infoList = res.rows.map(item => {
|
if(res.rows && res.rows.length == this.page_size){
|
||||||
|
this.flag= true
|
||||||
|
}else{
|
||||||
|
this.flag= false
|
||||||
|
}
|
||||||
|
res.rows = res.rows.map(item => {
|
||||||
return {
|
return {
|
||||||
...item,
|
...item,
|
||||||
list_image: picUrl + item.list_image,
|
list_image: picUrl + item.list_image,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
this.infoList = this.infoList.concat(res.rows)
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
detail(e){
|
detail(e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
NavgateTo('../noticeDesc/index?id=' + e.id)
|
NavgateTo('../noticeDesc/index?id=' + e.id)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
@import url("./index.css");
|
@import url("./index.css");
|
||||||
</style>
|
</style>
|
||||||
@ -13,14 +13,17 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="main">
|
<view class="main">
|
||||||
<view class="person_info" v-for="(item,index) in list" :key="index">
|
<view class="person_info" v-for="(item,index) in list.owners" :key="index">
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<view class="label">姓名</view>
|
<view class="label">姓名</view>
|
||||||
<view class="desc">{{ item.name }}</view>
|
<view class="desc">{{ item.name }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<view class="label">身份</view>
|
<view class="label">身份</view>
|
||||||
<view class="desc">{{ item.identity }}</view>
|
<view class="desc" v-if="item.type == 1">业主</view>
|
||||||
|
<view class="desc" v-if="item.type == 2">家属</view>
|
||||||
|
<view class="desc" v-if="item.type == 3">租户</view>
|
||||||
|
<view class="desc" v-if="item.type == 4">访客</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<view class="label">手机号</view>
|
<view class="label">手机号</view>
|
||||||
@ -28,7 +31,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<view class="label">房产总数</view>
|
<view class="label">房产总数</view>
|
||||||
<view class="desc">{{ item.houseNum }}</view>
|
<view class="desc">{{ item.count_of_rooms }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<view class="label fix">
|
<view class="label fix">
|
||||||
@ -39,7 +42,7 @@
|
|||||||
<view class="angle"></view>
|
<view class="angle"></view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="desc">¥{{item.fund}}</view>
|
<view class="desc">¥{{item.property_fund_balance}}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -50,7 +53,7 @@
|
|||||||
<view class="header">
|
<view class="header">
|
||||||
<view></view>
|
<view></view>
|
||||||
<view class="title">选择房源</view>
|
<view class="title">选择房源</view>
|
||||||
<view class="close">取消</view>
|
<view class="close" @click="close">取消</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="line"></view>
|
<view class="line"></view>
|
||||||
<view class="main">
|
<view class="main">
|
||||||
@ -96,74 +99,23 @@ export default {
|
|||||||
desc: '物业公积金可通用至您加入的所有房产,任一房产的物业相关费用均可用该物业公积金抵扣。',
|
desc: '物业公积金可通用至您加入的所有房产,任一房产的物业相关费用均可用该物业公积金抵扣。',
|
||||||
defaultName: '',
|
defaultName: '',
|
||||||
list: [
|
list: [
|
||||||
{
|
|
||||||
name: '高尚',
|
|
||||||
identity: '业主',
|
|
||||||
mobile: '15931111111',
|
|
||||||
houseNum: '9',
|
|
||||||
fund: '50.00',
|
|
||||||
popupShow: false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '李明',
|
|
||||||
identity: '家属',
|
|
||||||
mobile: '15931111122',
|
|
||||||
houseNum: '6',
|
|
||||||
fund: '50.00',
|
|
||||||
popupShow: false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '王五',
|
|
||||||
identity: '租户',
|
|
||||||
mobile: '15931111316',
|
|
||||||
houseNum: '2',
|
|
||||||
fund: '50.00',
|
|
||||||
popupShow: false
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
houseList: [
|
houseList: [
|
||||||
{
|
|
||||||
name: '2323世纪名城1号楼1单元101室',
|
],
|
||||||
checked: false,
|
roomList:[]
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '2323世纪名城1号楼1单元102室',
|
|
||||||
checked: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '2323世纪名城1号楼1单元103室',
|
|
||||||
checked: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '2323世纪名城1号楼1单元104室',
|
|
||||||
checked: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '2323世纪名城1号楼1单元105室',
|
|
||||||
checked: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '2323世纪名城1号楼1单元201室',
|
|
||||||
checked: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '2323世纪名城1号楼1单元202室',
|
|
||||||
checked: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '2323世纪名城1号楼1单元203室',
|
|
||||||
checked: false,
|
|
||||||
},
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
async onLoad(options) {
|
||||||
this.defaultName = {
|
this.defaultName = {
|
||||||
...this.houseList[0],
|
...this.houseList[0],
|
||||||
checked: true
|
checked: true
|
||||||
};
|
};
|
||||||
const meun = menuButtonInfo();
|
const meun = menuButtonInfo();
|
||||||
this.top = meun.height + meun.top;
|
this.top = meun.height + meun.top;
|
||||||
|
await this.getRoomList()
|
||||||
|
await this.getInfo()
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
@ -174,10 +126,12 @@ export default {
|
|||||||
checked: true
|
checked: true
|
||||||
};
|
};
|
||||||
this.show = false;
|
this.show = false;
|
||||||
|
this.getInfo()
|
||||||
},
|
},
|
||||||
|
//选择房产
|
||||||
headerSwitchClick() {
|
headerSwitchClick() {
|
||||||
this.show = true;
|
this.show = true;
|
||||||
const newRes = this.houseList.map(item => {
|
const newRes = this.roomList.map(item => {
|
||||||
if (item.name === this.defaultName.name) {
|
if (item.name === this.defaultName.name) {
|
||||||
return {
|
return {
|
||||||
...item,
|
...item,
|
||||||
@ -192,14 +146,37 @@ export default {
|
|||||||
console.log('newResnewRes', newRes);
|
console.log('newResnewRes', newRes);
|
||||||
this.houseList = newRes;
|
this.houseList = newRes;
|
||||||
},
|
},
|
||||||
|
// 业主点击弹出层
|
||||||
headerIconClick(ind) {
|
headerIconClick(ind) {
|
||||||
this.list[ind].popupShow = !this.list[ind].popupShow
|
this.list.owners[ind].popupShow = !this.list.owners[ind].popupShow
|
||||||
},
|
},
|
||||||
|
|
||||||
close() {
|
close() {
|
||||||
this.show = false;
|
this.show = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
async getRoomList(){
|
||||||
|
await request(apiArr.getCommunityList,"POST",{
|
||||||
|
page_num:1,
|
||||||
|
page_size:50,
|
||||||
|
community_id:uni.getStorageSync("changeCommData").id
|
||||||
|
}).then(res=>{
|
||||||
|
res.rows.forEach(item=>{
|
||||||
|
item.checked = false
|
||||||
|
})
|
||||||
|
this.roomList = res.rows
|
||||||
|
this.defaultName = res.rows[0]
|
||||||
|
})
|
||||||
|
},
|
||||||
|
async getInfo(){
|
||||||
|
await request(apiArr.getGovernmentByRoom,"POST",{
|
||||||
|
room_id:this.defaultName.room_id
|
||||||
|
}).then(res=>{
|
||||||
|
res.owners.forEach(item => {
|
||||||
|
item.popupShow = false
|
||||||
|
});
|
||||||
|
this.list = res
|
||||||
|
})
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -168,3 +168,22 @@ page {
|
|||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
margin-top: 200rpx;
|
margin-top: 200rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.empty {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
font-weight: normal;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #999999;
|
||||||
|
margin-top: 110rpx;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.empty image {
|
||||||
|
width: 366rpx;
|
||||||
|
height: 226rpx;
|
||||||
|
margin-bottom: 27rpx;
|
||||||
|
}
|
||||||
|
|||||||
@ -1,18 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="box">
|
<view class="box">
|
||||||
<div
|
<div class="searchBox" :style="{ height: localHeight + 'px', paddingTop: top + 'px' }">
|
||||||
class="searchBox"
|
|
||||||
:style="{ height: localHeight + 'px', paddingTop: top + 'px' }"
|
|
||||||
>
|
|
||||||
<div class="searchBox_add">
|
<div class="searchBox_add">
|
||||||
<div class="searchBox_left">
|
<div class="searchBox_left">
|
||||||
<u-icon
|
<u-icon bold color="#000" size="40" name="arrow-left" @click="back"></u-icon>
|
||||||
bold
|
|
||||||
color="#000"
|
|
||||||
size="40"
|
|
||||||
name="arrow-left"
|
|
||||||
@click="back"
|
|
||||||
></u-icon>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="searchBox_mid">我的报修</div>
|
<div class="searchBox_mid">我的报修</div>
|
||||||
<div class="searchBox_right"></div>
|
<div class="searchBox_right"></div>
|
||||||
@ -20,33 +11,21 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tabList">
|
<div class="tabList">
|
||||||
<div
|
<div :class="active == 1 ? 'tab active' : 'tab'" @click="headerTabsClick(1)">
|
||||||
:class="active == 1 ? 'tab active' : 'tab'"
|
待指派 <span>({{ awaitingNumb }})</span>
|
||||||
@click="headerTabsClick(1)"
|
|
||||||
>
|
|
||||||
待指派 <span>({{awaitingNumb}})</span>
|
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div :class="active == 2 ? 'tab active' : 'tab'" @click="headerTabsClick(2)">
|
||||||
:class="active == 2 ? 'tab active' : 'tab'"
|
|
||||||
@click="headerTabsClick(2)"
|
|
||||||
>
|
|
||||||
进行中 <span>({{ underwayNum }})</span>
|
进行中 <span>({{ underwayNum }})</span>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div :class="active == 4 ? 'tab active' : 'tab'" @click="headerTabsClick(4)">
|
||||||
:class="active == 4 ? 'tab active' : 'tab'"
|
|
||||||
@click="headerTabsClick(4)"
|
|
||||||
>
|
|
||||||
已作废 <span>({{ discardNum }})</span>
|
已作废 <span>({{ discardNum }})</span>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div :class="active == 3 ? 'tab active' : 'tab'" @click="headerTabsClick(3)">
|
||||||
:class="active == 3 ? 'tab active' : 'tab'"
|
|
||||||
@click="headerTabsClick(3)"
|
|
||||||
>
|
|
||||||
已完成 <span>({{ doneNum }})</span>
|
已完成 <span>({{ doneNum }})</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="orderList" v-for="(item, index) in list" :key="index">
|
<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="orderItem" @click="handlerDetailClick(item.id)">
|
||||||
<div :class="['orderItemTit', statusType[item.status].style]">
|
<div :class="['orderItemTit', statusType[item.status].style]">
|
||||||
<div class="orderItemTit_left">工单编号:{{ item.order_code }}</div>
|
<div class="orderItemTit_left">工单编号:{{ item.order_code }}</div>
|
||||||
@ -90,6 +69,12 @@
|
|||||||
</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>
|
||||||
|
暂无数据
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="addBtn" @click="oneRepair">在线报修</div>
|
<div class="addBtn" @click="oneRepair">在线报修</div>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@ -238,6 +223,14 @@ export default {
|
|||||||
this.init();
|
this.init();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onPullDownRefresh() {
|
||||||
|
this.list = [];
|
||||||
|
this.flag = false;
|
||||||
|
this.page_num = 1;
|
||||||
|
this.getTabsList();
|
||||||
|
uni.stopPullDownRefresh();
|
||||||
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@ -139,7 +139,8 @@
|
|||||||
"navigationStyle": "custom",
|
"navigationStyle": "custom",
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"nav-footer": "/components/nav/nav"
|
"nav-footer": "/components/nav/nav"
|
||||||
}
|
},
|
||||||
|
"enablePullDownRefresh": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -212,7 +213,8 @@
|
|||||||
"style": {
|
"style": {
|
||||||
"navigationStyle": "custom",
|
"navigationStyle": "custom",
|
||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"navigationBarBackgroundColor": "#F9F9F9"
|
"navigationBarBackgroundColor": "#F9F9F9",
|
||||||
|
"enablePullDownRefresh":true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user