Compare commits

..

No commits in common. "5c1458d5b831f762deaffd2a53968be8d900b79f" and "c8baeb4384f3b8b1e6831c584b5fd0cd9066e433" have entirely different histories.

32 changed files with 3338 additions and 5026 deletions

View File

@ -0,0 +1,88 @@
.title {
font-weight: bold;
font-size: 28rpx;
color: #222222;
margin-top: 30rpx;
margin-left: 20rpx;
}
.item {
margin: 0 50rpx;
height: 90rpx;
border-bottom: 1rpx solid #E6E6E6;
display: flex;
align-items: center;
justify-content: space-between;
}
.no-border {
border-bottom: none;
}
.left {
display: flex;
}
.left_pic {
width: 30rpx;
height: 30rpx;
margin-right: 20rpx;
}
.item_desc {
font-weight: 400;
font-size: 26rpx;
color: #999999;
}
.right_input {
flex: 1;
text-align: right;
}
.right_pic {
width: 40rpx;
height: 40rpx;
}
.line {
height: 20rpx;
background: #F9F9F9;
}
.tips {
padding: 30rpx 0 0 20rpx
}
.tip {
display: inline-block;
font-weight: 400;
font-size: 26rpx;
color: #FFFFFF;
background: #FF512A;
border-radius: 100rpx 100rpx 100rpx 100rpx;
padding: 4rpx 14rpx;
}
.desc {
font-weight: 400;
font-size: 24rpx;
color: #999999;
margin-top: 24rpx;
}
.desc:last-child {
margin-top: 20rpx;
}
.btn {
height: 80rpx;
line-height: 80rpx;
margin: 34rpx 50rpx 0;
font-weight: 400;
font-size: 36rpx;
color: #FFFFFF;
background: #FF512A;
border-radius: 100rpx 100rpx 100rpx 100rpx;
text-align: center;
}

View File

@ -0,0 +1,119 @@
<template>
<view class="container">
<view class="header">
<view class="title">车辆信息</view>
<view class="item">
<view class="left">
<view class="item_desc">车主姓名</view>
</view>
<input class="right_input" type="text" :value="name" data-name="name" @input="handerInputClick" placeholder="请输入车主姓名"/>
</view>
<view class="item">
<view class="left">
<view class="item_desc">车主电话</view>
</view>
<input class="right_input" type="number" maxlength="11" :value="phone" data-name="phone" @input="handerInputClick" placeholder="请输入车主电话"/>
</view>
<view class="item no-border">
<view class="left">
<view class="item_desc">车牌号</view>
</view>
<input class="right_input" type="text" :value="carNum" data-name="carNum" @input="handerInputClick" placeholder="请输入您的车牌号(例冀AXXXXX)"/>
</view>
<view class="btn" @click="headerSubmitClick">提交申请</view>
</view>
</view>
</template>
<script>
import { request } from '../../../utils';
import { apiArr } from '../../../api/community';
export default {
data() {
return {
pageTitle: '',
id: '', // id
name: '',
phone: '',
carNum: '',
}
},
methods: {
handerInputClick(e) {
console.log('112313131', e);
const { name } = e.currentTarget.dataset;
const { value } = e.detail;
this[name] = value.toUpperCase();
},
async headerSubmitClick() {
const {id, name, phone, carNum} = this;
if (name === '') {
uni.showToast({
title: '请输入车主姓名',
icon: 'none'
});
return
}
if (phone === '' || phone.length !== 11) {
uni.showToast({
title: `${phone.length !== 11 ? '请输入11位电话号码' : '请输入车主电话'}`,
icon: 'none'
});
return
}
if (carNum === '') {
uni.showToast({
title: '请输入您的车牌号',
icon: 'none'
});
return
}
const res = await request(apiArr.addCar, 'POST', {
car_number: carNum,
community_id: id,
contact_name: name,
mobile: phone,
}, { silent: true, nested: true});
console.log('ress', res);
if (res.error || res.errorCode) {
uni.showToast({
title: '添加车辆信息失败',
icon: 'none'
})
} else {
uni.showToast({
title: '添加车辆信息成功',
success() {
setTimeout(() => {
uni.navigateBack({
delta: 1
})
}, 1500)
}
})
}
},
},
onLoad(options) {
console.log('1111', options);
uni.setNavigationBarTitle({
title: options.title,
});
this.pageTitle = options.title;
this.id = Number(options.id);
},
}
</script>
<style>
@import url("./index.css");
</style>

View File

@ -1,101 +1,85 @@
page { .title {
background-color: #FFFFFF; font-weight: bold;
min-height: calc(100vh - 120rpx); font-size: 28rpx;
} color: #222222;
margin-top: 30rpx;
.container_body { margin-left: 20rpx;
height: 100%; }
}
.item {
.container { margin: 0 50rpx;
height: 100%; height: 90rpx;
} border-bottom: 1rpx solid #E6E6E6;
display: flex;
.title { align-items: center;
font-weight: bold; justify-content: space-between;
font-size: 28rpx; }
color: #222222;
margin-top: 30rpx; .left {
margin-left: 20rpx; display: flex;
} }
.left_pic {
width: 30rpx;
.right_pic { height: 30rpx;
width: 40rpx; margin-right: 20rpx;
height: 40rpx; }
}
.item_desc {
.line { font-weight: 400;
height: 20rpx; font-size: 26rpx;
background: #F9F9F9; color: #999999;
} }
.tips { .right_input {
font-size: 26rpx; flex: 1;
color: #999999; text-align: right;
margin: 0 80rpx; }
}
.right_pic {
width: 40rpx;
.desc { height: 40rpx;
font-weight: 400; }
font-size: 24rpx;
color: #999999; .line {
margin-top: 24rpx; height: 20rpx;
background: #F9F9F9;
} }
.desc:last-child { .tips {
margin-top: 20rpx; padding: 30rpx 0 0 20rpx
} }
.btn { .tip {
height: 80rpx; display: inline-block;
line-height: 80rpx; font-weight: 400;
margin: 80rpx 50rpx 0; font-size: 26rpx;
font-weight: 400; color: #FFFFFF;
font-size: 36rpx; background: #FF512A;
color: #FFFFFF; border-radius: 100rpx 100rpx 100rpx 100rpx;
background: #FF512A; padding: 4rpx 14rpx;
border-radius: 100rpx 100rpx 100rpx 100rpx; }
text-align: center;
} .desc {
font-weight: 400;
font-size: 24rpx;
image { color: #999999;
width: 100%; margin-top: 24rpx;
height: 100%;
object-fit: cover; }
}
.desc:last-child {
.userAva { margin-top: 20rpx;
width: 180rpx; }
height: 180rpx;
border-radius: 50%; .btn {
overflow: hidden; height: 80rpx;
margin: 0 auto; line-height: 80rpx;
margin-top: 12rpx; margin: 80rpx 50rpx 0;
} font-weight: 400;
font-size: 36rpx;
.Name { color: #FFFFFF;
font-size: 40rpx; background: #FF512A;
color: #000000; border-radius: 100rpx 100rpx 100rpx 100rpx;
text-align: center; text-align: center;
margin-top: 20rpx;
margin-bottom: 78rpx;
}
.item {
margin-top: 40rpx;
margin: 0 80rpx;
border-bottom: 1rpx solid #EBEBEB;
padding-bottom: 10rpx;
margin-bottom: 40rpx;
}
.label {
font-size: 32rpx;
color: #000000;
margin-bottom: 10rpx;
} }

View File

@ -1,112 +1,236 @@
<template> <template>
<view class="container_body"> <view class="container_body">
<view class="container"> <view class="container">
<view class="header">
<div class="userAva"> <view class="title">请填写基本信息</view>
<image src="http://192.168.0.172:5500/com_MsgImg1.png" alt="" mode="aspectFill" /> <view class="item">
</div> <view class="left">
<div class="Name">MarrekoZhang</div> <image class="left_pic" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/apply_icon1.png" mode="heightFix"/>
<view class="item_desc">入驻小区</view>
<view class="item"> </view>
<view class="label"> <input :value="communityName" class="right_input" disabled type="text" placeholder="请输入入驻小区名称"/>
<view class="item_desc">房产</view> </view>
</view>
<view class="item">
<input :value="communityName" @click="chooseMsg" class="right_input" disabled type="text" placeholder="请选择您要入驻的房产" /> <view class="left">
</view> <image class="left_pic" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/apply_icon2.png" mode="heightFix"/>
<view class="item_desc">楼宇号</view>
</view>
<view class="item"> <input class="right_input" :value="FacName" disabled type="text" placeholder="请选择楼宇号" @click.stop="choose" data-type="1"/>
<view class="label"> </view>
<view class="item_desc">姓名</view>
</view> <view class="item">
<view class="left">
<input :value="communityName" class="right_input" type="text" placeholder="请输入您的姓名" /> <image class="left_pic" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/apply_icon3.png" mode="heightFix"/>
</view> <view class="item_desc">房间号</view>
</view>
<view class="item"> <input class="right_input" :value="RoomName" disabled type="text" placeholder="请选择房间" @click.stop="choose" data-type="2"/>
<view class="label"> </view>
<view class="item_desc">手机</view> <view class="item">
</view> <view class="left">
<image class="left_pic" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/apply_icon4.png" mode="heightFix"/>
<input :value="communityName" class="right_input" type="text" placeholder="请选择您的手机号" /> <view class="item_desc">类型</view>
</view> </view>
<input class="right_input" type="text" placeholder="请选择入驻类型" @click="changeShow" disabled :value="typeName"/>
<view class="item"> </view>
<view class="label"> <view class="item">
<view class="item_desc">身份</view> <view class="left">
</view> <image class="left_pic" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/apply_icon5.png" mode="heightFix"/>
<view class="item_desc">您的姓名</view>
<input :value="communityName" class="right_input" type="text" placeholder="请输入您的身份" /> </view>
</view> <input class="right_input" type="text" :value="name" data-name='name' @input="headerInputChange" placeholder="请输入您的姓名"/>
</view>
<view class="tips "> <view class="item">
注意业主为在物业登记在册的人员需经过物业审 <view class="left">
核确认后即可成为该房产的业主如需帮助可与物 <image class="left_pic" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/apply_icon6.png" mode="heightFix"/>
业或平台联系 <view class="item_desc">手机号码</view>
</view> </view>
<view class="btn" @click="submit">确定</view> <input class="right_input" type="number" maxlength="11" :value="phone" data-name='phone' @input="headerInputChange" placeholder="请输入您的手机号"/>
</view> </view>
<view class="line"></view>
<u-picker :show="show" :columns="columns" keyName="text" @confirm='confirm' @close='onClose' @cancel='onClose' <view class="tips ">
closeOnClickOverlay></u-picker> <view class="tip">小提示</view>
</view> <view class="desc">请您一定要认真填写相关信息</view>
</template> <view class="desc">若查无房屋号请联系物业运营人员添加</view>
</view>
<script> <view class="btn" @click="submit">提交申请</view>
import { request, picUrl, NavgateTo } from '../../../utils'; </view>
import { apiArr } from '../../../api/community'; </view>
export default {
data() { <u-picker :show="show" :columns="columns" keyName="text" @confirm='confirm' @close='onClose' @cancel='onClose' closeOnClickOverlay ></u-picker>
return { </view>
</template>
show: false, //
columns: [ <script>
[ import { request, picUrl, NavgateTo } from '../../../utils';
{ text: "业主", type: 1 }, import { apiArr } from '../../../api/community';
{ text: "家属", type: 2 }, export default {
{ text: "租户", type: 3 }, data() {
{ text: "访客", type: 4 }, return {
] show:false, //
]
} FacName:"",
}, FacId:"",
methods: { RoomName:"",
changeShow() { RoomId:"",
this.show = !this.show;
}, communityName:"",
communityId:"",
onClose() { name:"",
this.show = false; phone:"",
}, type:"",// 访
typeName:"",// 访
confirm(e) { room_id:"",
console.log('eee', e);
this.typeName = e.value[0].text; columns:[
this.type = e.value[0].type; [
this.show = false; {text:"业主",type:1},
}, {text:"家属",type:2},
{text:"租户",type:3},
{text:"访客",type:4},
chooseMsg(){ ]
uni.navigateTo({ ]
url:"../chooseMsg/index" }
}) },
}, methods: {
}, choose(e){
console.log('eee' ,e);
onLoad(options) { const { type } = e.currentTarget.dataset;
}, if(type == '1'){
NavgateTo(`/packages/community/chooseMsg/index?type=${type}&id=${this.communityId}`);
onShow() { }else{
if(this.FacId){
}, NavgateTo(`/packages/community/chooseMsg/index?type=${type}&id=${this.communityId}&FacId=${this.FacId}`);
}
</script> }else{
uni.showToast({
<style> title: '请先选择楼宇号',
@import url("./index.css"); icon:"none"
</style> })
}
}
},
changeShow(){
this.show = !this.show;
},
onClose() {
this.show = false;
},
confirm(e){
console.log('eee', e);
this.typeName = e.value[0].text;
this.type = e.value[0].type;
this.show = false;
},
// input
headerInputChange(e){
console.log('eeee', e);
const { name } = e.currentTarget.dataset;
this[name] = e.detail.value;
},
async submit(){
if(!this.FacName){
uni.showToast({
title: '请选择楼宇号',
icon:"none"
})
return
}
if(!this.RoomName){
uni.showToast({
title: '请选择房间号',
icon:"none"
})
return
}
if(!this.type){
uni.showToast({
title: '请选择类型',
icon:"none"
})
return
}
if(!this.name){
uni.showToast({
title: '请填写姓名',
icon:"none"
})
return
}
if(!this.phone){
uni.showToast({
title: '请填写手机号',
icon:"none"
})
return
}
const res = await request(apiArr.apply, 'POST', {
community_id: Number(this.communityId),
facility_id: Number(this.FacId),
mobile: this.phone,
name: this.name,
room_id: Number(this.RoomId),
type: Number(this.type),
face: ''
}, { silent: true, nested: true})
// if(res.msg = ''){ msg code
if (res.code == 1) {
uni.showToast({
title: res.msg,
icon:"none"
})
uni.removeStorage('FacName');
uni.removeStorage('FacId');
uni.removeStorage('RoomName');
uni.removeStorage('RoomId');
setTimeout(()=>{
uni.navigateBack({delta:1})
},1500)
} else {
uni.showToast({
title: '申请失败',
icon:"none"
})
};
},
},
onLoad(options) {
console.log('1231213313', options)
uni.setNavigationBarTitle({
title: options.title,
})
this.communityName = options.title;
this.communityId = options.id;
},
onShow() {
let RoomName = uni.getStorageSync('RoomName');
let RoomId = uni.getStorageSync('RoomId');
let FacName = uni.getStorageSync('FacName');
let FacId = uni.getStorageSync('FacId');
this.RoomName = RoomName;
this.RoomId = RoomId;
this.FacName = FacName;
this.FacId = FacId;
},
}
</script>
<style>
@import url("./index.css");
</style>

View File

@ -1,88 +1,17 @@
image { .title {
width: 100%; font-weight: bold;
height: 100%; font-size: 28rpx;
} color: #222222;
margin-top: 30rpx;
.searchBox { margin-left: 20rpx;
width: 710rpx; }
height: 70rpx;
background: #F6F6FA; .item {
border-radius: 100rpx 100rpx 100rpx 100rpx; margin: 0 50rpx;
margin: 0 auto; height: 90rpx;
margin-top: 30rpx; border-bottom: 1rpx solid #E6E6E6;
display: flex; display: flex;
align-items: center; align-items: center;
padding: 0 30rpx; justify-content: space-between;
} }
.searchBox image {
width: 30rpx;
height: 30rpx;
margin-right: 16rpx;
}
.searchBox input {
flex: 1;
}
.communityItem {
box-sizing: border-box;
margin: 0 20rpx;
padding: 30rpx 0;
border-bottom: 1rpx solid #EBEBEB;
display: flex;
}
.communityItem_img {
width: 180rpx;
height: 160rpx;
border-radius: 20rpx 20rpx 20rpx 20rpx;
margin-right: 20rpx;
}
.communityItem_msg {
flex: 1;
display: flex;
align-items: center;
}
.communityItem_msg_title {
font-size: 32rpx;
color: #222222;
}
.communityItem_msg_addr {
font-size: 26rpx;
color: #999999;
height: 72rpx;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
margin-top: 20rpx;
}
.communityItem_msg_more {
width: 16rpx;
height: 30rpx;
margin-left: 110rpx;
}
.addBtn {
font-size: 36rpx;
color: #FFFFFF;
width: 600rpx;
height: 90rpx;
background: linear-gradient(91deg, #FF7658 0%, #FF370B 100%);
border-radius: 100rpx 100rpx 100rpx 100rpx;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: center;
margin-top: 30rpx;
}
/* .communityItem的最后一个 */
.communityList .communityItem:last-child {
border-bottom: none;
}

View File

@ -1,65 +1,125 @@
<template> <template>
<view class="container"> <view class="container">
<div class="searchBox"> <view class="header" v-if="type == '1'">
<img src="http://192.168.0.172:5500/com_communitySearchIcon.png" alt="" /> <view class="title">社区楼宇信息</view>
<input placeholder="请输入小区名称" type="text"> <view class="item" v-for="(item, index) in facList" :key="index" :data-id="item.facility_id" :data-name="item.name" @click="chooseFac">
</div> <view class="left">
{{item.name}}
<div class="communityList"> </view>
<div class="communityItem" v-for="item in 5" @click="chooseCommunityInfo"> </view>
<div class="communityItem_img"> </view>
<img src="http://192.168.0.172:5500/com_act2Img.png" alt="" />
</div>
<view class="header" v-if="type == '2'">
<div class="communityItem_msg"> <view class="title">房间列表</view>
<div> <view class="item" v-for="(item, index ) in RoomList" :key="index" :data-id="item.room_id" :data-name="item.name" @click="chooseRoom">
<div class="communityItem_msg_title">岸芷汀兰(东区)</div> <view class="left">
<div class="communityItem_msg_addr"> {{item.name}}
河北省衡水市桃城区红旗大街与河 <!-- {{item.location}} -->
阳路交叉口西北300米东车辆入口 </view>
</div> </view>
</div> </view>
</view>
<div class="communityItem_msg_more"> </template>
<img src="http://192.168.0.172:5500/com_communityMore.png" alt="" />
</div> <script>
import { request } from '../../../utils';
</div> import { apiArr } from '../../../api/community';
</div> export default {
</div> data() {
<div class="addBtn">新建小区</div> return {
type:"",
</view> communityId:"",
</template> facList:[],
<script> flag:false,
import { request } from '../../../utils'; page_num:1,
import { apiArr } from '../../../api/community'; page_size:10,
export default { RoomList:[],
data() { FacId:"",
return { }
},
} methods: {
}, async getFacList(id){
methods: { const res = await request(apiArr.getFacilityList, 'POST', {
chooseCommunityInfo() { community_id:Number(id)
uni.navigateTo({ });
url: '../chooseMsgInfo/index' console.log('12313131', res);
}); this.facList = res?.rows || [];
} },
}, async getRoomList(id, facId){
const res = await request(apiArr.getRoomList, "POST", {
onLoad(options) { facility_id: Number(facId),
community_id: Number(id),
}, page_num: this.page_num,
page_size: this.page_size
onReachBottom() { })
console.log('getRoomList res', res);
},
} if(res?.rows){
</script> let flag = false
if(res.rows.length == this.page_size){
<style> flag = true
@import url("./index.css"); }else{
</style> flag = false
}
this.flag = flag;
this.RoomList = this.RoomList.concat(res?.rows || []);
this.page_num = this.page_num + 1;
}
},
//
chooseFac(e){
let that= this
let FacName = e.currentTarget.dataset.name
let FacId = e.currentTarget.dataset.id
uni.setStorageSync('FacName', FacName)
uni.setStorageSync('FacId', FacId)
//
uni.navigateBack({
delta: 1
});
},
//
chooseRoom(e){
let that= this
let RoomName = e.currentTarget.dataset.name
let RoomId = e.currentTarget.dataset.id
uni.setStorageSync('RoomName', RoomName)
uni.setStorageSync('RoomId', RoomId)
uni.navigateBack({
delta: 1
});
},
},
onLoad(options){
this.communityId = options.id;
this.type = options.type;
this.FacId = options.FacId;
if(options.type == '1'){
this.getFacList(options.id)
}else{
this.getRoomList(options.id, options.FacId)
}
},
onReachBottom() {
if(this.flag){
that.getRoomList()
}
},
}
</script>
<style>
@import url("./index.css");
</style>

View File

@ -1,278 +0,0 @@
image {
width: 100%;
height: 100%;
}
.searchBox image {
width: 30rpx;
height: 30rpx;
margin-right: 16rpx;
}
.searchBox input {
flex: 1;
}
.communityItem {
box-sizing: border-box;
margin: 0 20rpx;
padding: 30rpx 0;
display: flex;
}
.communityItem_img {
width: 180rpx;
height: 160rpx;
border-radius: 20rpx 20rpx 20rpx 20rpx;
margin-right: 20rpx;
}
.communityItem_msg {
flex: 1;
display: flex;
align-items: center;
}
.communityItem_msg_title {
font-size: 32rpx;
color: #222222;
}
.communityItem_msg_addr {
font-size: 26rpx;
color: #999999;
height: 72rpx;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
margin-top: 20rpx;
}
.communityItem_msg_more {
width: 16rpx;
height: 30rpx;
margin-left: 110rpx;
}
.addBtn {
font-size: 36rpx;
color: #FFFFFF;
width: 600rpx;
height: 90rpx;
background: linear-gradient(91deg, #FF7658 0%, #FF370B 100%);
border-radius: 100rpx 100rpx 100rpx 100rpx;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: center;
margin-top: 30rpx;
}
.line {
height: 20rpx;
width: 100%;
background: #F6F6FA;
}
.chooseTit {
font-size: 36rpx;
color: #222222;
font-weight: 700;
padding-left: 20rpx;
padding-top: 30rpx;
}
.communityInfoList {
padding: 0 20rpx;
margin-top: 30rpx;
display: flex;
flex-wrap: wrap;
}
.communityInfo {
font-size: 28rpx;
color: #222222;
border-radius: 10rpx 10rpx 10rpx 10rpx;
border: 1rpx solid #222222;
padding: 10rpx 26rpx;
margin-bottom: 20rpx;
margin-right: 10rpx;
}
.communityInfo:nth-child(4n) {
margin-right: 0;
}
.communityInfo2 {
font-size: 28rpx;
color: #222222;
border-radius: 10rpx 10rpx 10rpx 10rpx;
border: 1rpx solid #222222;
padding: 10rpx 0;
margin-bottom: 20rpx;
margin-right: 10rpx;
width: 170rpx;
text-align: center;
box-sizing: border-box;
}
.communityInfo2:nth-child(4n) {
margin-right: 0;
}
.active {
border: 1rpx solid #FF370B;
position: relative;
}
.active::after {
content: '✔️';
font-size: 14rpx;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
position: absolute;
right: 0rpx;
bottom: 0rpx;
background-color: #FF370B;
width: 23rpx;
height: 24rpx;
border-top-left-radius: 40rpx;
}
.addCommunityBtn {
font-weight: normal;
font-size: 36rpx;
color: #FFFFFF;
width: 600rpx;
height: 90rpx;
background: linear-gradient(91deg, #FF7658 0%, #FF370B 100%);
border-radius: 100rpx 100rpx 100rpx 100rpx;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto;
margin-top: 60rpx;
}
.header {
display: flex;
align-items: center;
padding-left: 20rpx;
}
.item {
margin-top: 40rpx;
margin: 0 80rpx;
border-bottom: 1rpx solid #EBEBEB;
padding-bottom: 10rpx;
margin-bottom: 40rpx;
margin-top: 40rpx;
}
.label {
font-size: 32rpx;
color: #000000;
margin-bottom: 10rpx;
font-weight: 700;
}
.tip {
font-size: 26rpx;
color: #999999;
margin: 0 80rpx;
}
.dialog {
height: 100vh;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
z-index: 1000;
}
.dialogCon {
margin-top: -40rpx;
border-radius: 20rpx 20rpx 20rpx 20rpx;
background: #FFFFFF;
width: 500rpx;
padding: 40rpx 28rpx;
box-sizing: border-box;
}
.dialogCon_Tit {
font-size: 30rpx;
color: #222222;
font-weight: 700;
}
.dialogCon_Con {
font-size: 26rpx;
color: #222222;
margin-top: 14rpx;
}
.dialogCon_BtnList {
display: flex;
align-items: center;
justify-content: center;
margin-top: 40rpx;
}
.dialogCon_BtnList1 {
width: 170rpx;
height: 52rpx;
background: #D9D9D9;
border-radius: 100rpx 100rpx 100rpx 100rpx;
font-size: 28rpx;
color: #222222;
display: flex;
align-items: center;
justify-content: center;
margin-right: 50rpx;
}
.dialogCon_BtnList2 {
display: flex;
align-items: center;
justify-content: center;
width: 170rpx;
height: 52rpx;
background: #FF370B;
border-radius: 100rpx 100rpx 100rpx 100rpx;
font-size: 28rpx;
color: #FFFFFF;
}
.dialogCon_room {
font-size: 30rpx;
color: #FF370B;
margin-top: 20rpx;
text-align: center;
}
.dialogCon_room1 {
font-size: 36rpx;
color: #FF370B;
margin-top: 20rpx;
text-align: center;
font-weight: 700;
}
.dialogCon_room2 {
font-size: 30rpx;
text-align: center;
color: #FF370B;
}

View File

@ -1,337 +0,0 @@
<template>
<view class="container">
<div class="header" :style="{ paddingTop: top + 'px', height: localHeight + 'px' }">
<u-icon bold color="#000" size="40" name="arrow-left" @click="back"></u-icon>
</div>
<div class="communityList">
<div class="communityItem">
<div class="communityItem_img">
<image mode="aspectFill" src="http://192.168.0.172:5500/com_act2Img.png" alt="" />
</div>
<div class="communityItem_msg">
<div>
<div class="communityItem_msg_title">岸芷汀兰(东区)</div>
<div class="communityItem_msg_addr">
河北省衡水市桃城区红旗大街与河
阳路交叉口西北300米东车辆入口
</div>
</div>
<div class="communityItem_msg_more">
<image src="http://192.168.0.172:5500/com_communityMore.png" alt="" />
</div>
</div>
</div>
</div>
<div class="line"></div>
<div v-if="step == '0' && type == '0'">
<div class="chooseTit">请选择楼栋</div>
<div class="communityInfoList">
<template v-for="(item, index) in 11">
<div :class="active == index ? 'communityInfo active' : 'communityInfo'" @click="choseTower">
1栋2单元
</div>
</template>
</div>
<div class="addCommunityBtn" @click="addCommunity">
新建楼栋
</div>
</div>
<div v-if="step == '0' && type == '1'">
<div class="chooseTit">新建楼栋</div>
<view class="item">
<view class="label">
<view class="item_desc">楼栋号</view>
</view>
<input class="right_input" type="text" placeholder="请输入楼栋号" />
</view>
<view class="item">
<view class="label">
<view class="item_desc">单元号</view>
</view>
<input class="right_input" type="text" placeholder="请输入单元号" />
</view>
<div class="tip">注意新建的楼栋号需经物业或平台的核实后自动建 如核实未通过将会创建失败</div>
<div class="addCommunityBtn" @click="saveCommunity">
确定
</div>
</div>
<div v-if="step == '1' && type == '0'">
<div class="chooseTit">请选择楼层1栋3单元</div>
<div class="communityInfoList">
<template v-for="(item, index) in 11">
<div :class="active == index ? 'communityInfo2 active' : 'communityInfo2'" @click="choseFloor">
{{ index + 1 }}
</div>
</template>
</div>
<div class="addCommunityBtn" @click="addCommunity">
新建楼层
</div>
</div>
<div v-if="step == '1' && type == '1'">
<div class="chooseTit">新建楼层</div>
<view class="item">
<view class="label">
<view class="item_desc">楼层</view>
</view>
<input class="right_input" type="text" placeholder="请输入楼层(仅为数字)" />
</view>
<div class="tip">注意新建的楼栋号需经物业或平台的核实后自动建 如核实未通过将会创建失败</div>
<div class="addCommunityBtn" @click="saveFloor">
确定
</div>
</div>
<div v-if="step == '2' && type == '0'">
<div class="chooseTit">请选择房间1栋3单元/2</div>
<div class="communityInfoList">
<template v-for="(item, index) in 11">
<div :class="active == index ? 'communityInfo2 active' : 'communityInfo2'" @click="choseRoom">
201
</div>
</template>
</div>
<div class="addCommunityBtn" @click="addRoom">
新建房间号
</div>
</div>
<div v-if="step == '2' && type == '1'">
<div class="chooseTit">新建房间号</div>
<view class="item">
<view class="label">
<view class="item_desc">房间号</view>
</view>
<input class="right_input" type="text" placeholder="请输入房间号" />
</view>
<div class="tip">注意新建的楼栋号需经物业或平台的核实后自动建 如核实未通过将会创建失败</div>
<div class="addCommunityBtn" @click="saveRoom">
确定
</div>
</div>
<!-- 创建 -->
<div class="dialog" v-if="show1" @click="cancel1">
<div class="dialogCon">
<div class="dialogCon_Tit">
您是要创建{{ createName }}
</div>
<div class="dialogCon_Con">
新建的楼层需经物业或平台的核实 后才会创建成功如核实未通过 将会创建失败
</div>
<div class="dialogCon_BtnList">
<div class="dialogCon_BtnList1" @click="cancel1">取消</div>
<div class="dialogCon_BtnList2" @click="confirm1">确定</div>
</div>
</div>
</div>
<!-- 已存在 -->
<div class="dialog" v-if="show2" @click="cancel2">
<div class="dialogCon">
<div class="dialogCon_Con">
您输入的楼层已存在 <br>
您是否确认入住{{ createName}}
</div>
<div class="dialogCon_BtnList">
<div class="dialogCon_BtnList1" @click="cancel2">取消</div>
<div class="dialogCon_BtnList2" @click="confirm2">确定</div>
</div>
</div>
</div>
<!-- 最后创建房间并入住 -->
<div class="dialog" v-if="show3" @click="cancel3">
<div class="dialogCon">
<div class="dialogCon_Tit">
您是要创建并入驻
</div>
<div class="dialogCon_room">
{{ createName }}
</div>
<div class="dialogCon_Con">
新建的楼层需经物业或平台的核实 后才会创建成功如核实未通过 将会创建失败
</div>
<div class="dialogCon_BtnList">
<div class="dialogCon_BtnList1" @click="cancel3">取消</div>
<div class="dialogCon_BtnList2" @click="confirm3">确定</div>
</div>
</div>
</div>
<!-- 最后入驻 -->
<div class="dialog" v-if="show4" @click="cancel4">
<div class="dialogCon">
<div class="dialogCon_Tit">
您是要创建并入驻
</div>
<div class="dialogCon_room1">
岸芷汀兰(东区)
</div>
<div class="dialogCon_room2">
{{ createName }}
</div>
<div class="dialogCon_BtnList">
<div class="dialogCon_BtnList1" @click="cancel4">取消</div>
<div class="dialogCon_BtnList2" @click="confirm4">确定</div>
</div>
</div>
</div>
</view>
</template>
<script>
import { apiArr } from '../../../api/community';
import {
request,
picUrl,
uniqueByField,
menuButtonInfo
} from '../../../utils';
export default {
data() {
return {
localHeight: "",
top: "",
active: "1",
step: "0",
type: "0", //1 0
createName: "8层",
show1: false, //
show2: false,
show3: false,
show4: true,
}
},
methods: {
//
addCommunity() {
this.type = "1"
},
//
saveCommunity() {
let that = this
uni.showModal({
title: `您是要创建:${this.step}`,
content: '新建的楼栋号需经物业或平台的核 实后才会创建成功。如核实未通过, 将会创建失败!',
success: function (res) {
if (res.confirm) {
console.log('用户点击确定');
that.type = "0"
} else if (res.cancel) {
console.log('用户点击取消');
}
}
});
},
//
choseTower() {
this.step = "1"
},
//
saveFloor() {
this.type = "0"
},
//
choseFloor() {
this.step = "2"
},
//
choseRoom() {
this.step = "3"
},
saveRoom() {
this.type = "0"
},
back() {
if (this.step == "0") {
if (this.type == "1") {
return this.type = "0"
}
uni.navigateBack({
delta: 1
})
}
if (this.step == "1") {
if (this.type == "1") {
return this.type = "0"
}
this.step = "0"
}
if (this.step == "2") {
if (this.type == "1") {
return this.type = "0"
}
this.step = "1"
}
if (this.step == "3") {
if (this.type == "1") {
return this.type = "0"
}
this.step = "2"
}
},
cancel4(){
this.show4 = false
},
confirm4(){
},
cancel3(){
this.show3 = false
},
confirm3(){},
cancel2(){
this.show2 = false
},
confirm2(){},
cancel1(){
this.show1 = false
},
confirm1(){},
},
onLoad(options) {
const meun = menuButtonInfo();
this.top = meun.top;
// this.top = meun.height + meun.top;
this.localHeight = meun.height;
},
onReachBottom() {
},
}
</script>
<style>
@import url("./index.css");
</style>

View File

@ -1,777 +1,87 @@
page { .banner {
background-color: #F6F6FA; width: 710rpx;
} height: 300rpx;
border-radius: 0rpx 0rpx 0rpx 0rpx;
.container { margin: 30rpx auto 0;
display: flex; }
flex-direction: column;
min-height: calc(100vh - 120rpx); .banner_item {
width: 100%; width: 710rpx;
} height: 300rpx;
}
.searchBox { .nav {
display: flex; margin: 48rpx 20rpx 0;
align-items: center; }
padding: 0 20rpx;
/* margin-top: 35rpx; */ .sub_nav {
justify-content: space-between; display: flex;
background-color: #fff; flex-wrap: wrap;
} margin: 30rpx 20rpx 0;
justify-content: right;
.searchBox_add {
display: flex; }
align-items: center;
font-weight: 400; .sub_nav_item {
font-size: 30rpx; width: 345rpx;
color: #000000; background: #FFF5E2;
} border-radius: 30rpx 30rpx 30rpx 30rpx;
margin-right: 15rpx;
.searchBox_add image { }
width: 30rpx;
height: 30rpx; .wy_pay {
margin-right: 16rpx; background: #FFF4EF;
} margin-right: 0;
}
.myRealEstate {
font-weight: 700; .wy_pay2 {
padding-top: 36rpx; background: #FFFCEB;
font-weight: normal; margin-right: 20rpx;
font-size: 36rpx; margin-top: 20rpx;
color: #222222; }
text-align: center;
background-color: #fff; .tel_leave {
padding-bottom: 22rpx; background: #F5F5F5;
} margin-top: 20rpx;
margin-right: 0;
}
.myRealEstate .btn {
width: 600rpx; .sub_nav_item_desc {
height: 90rpx; margin: 29rpx 0 0 39rpx;
background: linear-gradient(91deg, #FF7658 0%, #FF370B 100%); font-weight: bold;
border-radius: 100rpx 100rpx 100rpx 100rpx; font-size: 28rpx;
font-weight: normal; color: #222222;
font-size: 36rpx; }
color: #FFFFFF;
font-weight: 700; .sub_nav_item_right {
display: flex; display: flex;
align-items: center; justify-content: flex-end;
justify-content: center; }
margin: 0 auto;
margin-top: 30rpx; .sub_nav_item_pic {
} width: 90rpx;
height: 90rpx;
.nearby { margin: 0 15rpx 19rpx 0;
padding: 0 20rpx; }
margin-top: 20rpx;
background-color: #fff; .line {
padding-top: 20rpx; height: 20rpx;
box-sizing: border-box; background: #F9F9F9;
flex: 1; border-radius: 0rpx 0rpx 0rpx 0rpx;
} }
.nearbyTit { .main {
display: flex; margin: 30rpx 20rpx 0;
justify-content: space-between; }
} .grid_Pic {
width: 54rpx;
.nearbyTit_left { height: 46rpx;
font-size: 36rpx; margin-bottom: 20rpx;
color: #222222; }
font-weight: 700;
} .uicon-volume {
font-size: 28rpx !important;
.nearbyTit_right { }
font-size: 26rpx; .u-grid-item {
color: #999999; margin-bottom: 43rpx;
display: flex;
align-items: center;
}
.nearbyTit_right image {
width: 30rpx;
height: 30rpx;
}
.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;
}
.communityItem {
border-bottom: 1rpx solid #EBEBEB;
margin-top: 32rpx;
}
.communityItem_msg {
font-size: 26rpx;
color: #999999;
margin-top: 20rpx;
padding-bottom: 30rpx;
}
.communityItem_Box {
display: flex;
}
.communityItem_Box_left {
width: 180rpx;
overflow: hidden;
height: 180rpx;
border-radius: 20rpx 20rpx 20rpx 20rpx;
margin-right: 20rpx;
}
.communityItem_Box_left image {
width: 100%;
height: 100%;
}
.communityItem_Box_right {
flex: 1;
}
.communityItem_Box_right_tit {
font-size: 32rpx;
color: #222222;
margin-bottom: 8rpx;
}
.communityItem_Box_right_com {
font-size: 26rpx;
color: #555555;
margin-top: 8rpx;
height: 72rpx;
line-height: 36rpx;
-webkit-line-clamp: 2;
/* 限制显示 2 行 */
-webkit-box-orient: vertical;
/* 垂直排列 */
overflow: hidden;
/* 超出部分隐藏 */
text-overflow: ellipsis;
display: -webkit-box;
}
.communityItem_Box_right_msg {
margin-top: 14rpx;
}
.communityItem_Box_right_msg_right {
width: 140rpx;
height: 40rpx;
background: #FF370B;
border-radius: 100rpx 100rpx 100rpx 100rpx;
font-size: 26rpx;
color: #FFFFFF;
display: flex;
align-items: center;
justify-content: center;
}
.communityItem_Box_right_msg {
display: flex;
align-items: center;
justify-content: space-between;
}
.communityItem_Box_right_msg_left {
display: flex;
align-items: center;
}
.communityItem_Box_right_msg_left1 {
width: 110rpx;
height: 40rpx;
background: rgba(255, 81, 42, 0.1);
border-radius: 100rpx 100rpx 100rpx 100rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 22rpx;
color: #555555;
margin-right: 20rpx;
}
.communityItem_Box_right_msg_left1 image {
width: 24rpx;
height: 24rpx;
margin-right: 10rpx;
}
.communityItem_Box_right_msg_left2 {
width: 110rpx;
height: 40rpx;
background: #FFF2DA;
border-radius: 100rpx 100rpx 100rpx 100rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 22rpx;
color: #555555;
}
.communityItem_Box_right_msg_left2 image {
width: 24rpx;
height: 24rpx;
margin-right: 10rpx;
}
.myRealEstateEmpty {
display: flex;
}
.myRealEstates {
width: 710rpx;
height: 200rpx;
margin: 0 auto;
position: relative;
}
.myRealEstates image {
width: 100%;
height: 100%;
object-fit: cover;
position: absolute;
z-index: 1;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
.name {
font-size: 50rpx;
color: #FFFFFF;
text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.6);
text-align: center;
position: relative;
z-index: 2;
padding-top: 24rpx;
}
.Visitor {
font-weight: normal;
font-size: 24rpx;
color: #FFFFFF;
width: 380rpx;
display: flex;
align-items: center;
justify-content: center;
height: 52rpx;
margin: 0 auto;
margin-top: 30rpx;
position: relative;
z-index: 2;
background: rgba(0, 0, 0, 0.3);
border-radius: 10rpx 10rpx 10rpx 10rpx;
}
.Announcement {
width: 710rpx;
height: 60rpx;
background: #F4F4F4;
border-radius: 10rpx 10rpx 10rpx 10rpx;
margin: 0 auto;
box-sizing: border-box;
padding: 14rpx 20rpx;
display: flex;
margin-top: 22rpx;
display: flex;
align-items: center;
flex: 1;
}
.Announcement image {
width: 149.55rpx;
height: 31rpx;
}
.line {
width: 2rpx;
height: 30rpx;
background-color: #999999;
margin-left: 23rpx;
}
.Announcement .msg {
display: flex;
justify-content: space-between;
align-items: center;
flex: 1;
margin-left: 23rpx;
font-weight: normal;
font-size: 26rpx;
color: #555555;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.Announcement .msg image {
width: 26rpx;
height: 26rpx;
}
.navList {
background-color: #fff;
padding-top: 30rpx;
display: flex;
padding: 0 20rpx;
box-sizing: border-box;
justify-content: space-between;
}
.navItem {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: 26rpx;
color: #222222;
}
.navItem image {
margin-bottom: 10rpx;
width: 90rpx;
height: 90rpx;
}
.tabList {
display: flex;
align-items: center;
justify-content: space-between;
background-color: #fff;
padding: 0 20rpx;
padding-top: 30rpx;
}
.tabItem {
width: 226rpx;
height: 120rpx;
box-sizing: border-box;
padding-top: 7rpx;
padding-left: 18rpx;
font-weight: normal;
font-size: 28rpx;
color: #FF370B;
}
.tabItem1 {
background: url(http://192.168.0.172:5500/com_tabBg1.png);
background-size: cover;
}
.tabItem2 {
background: url(http://192.168.0.172:5500/com_tabBg2.png);
background-size: cover;
}
.tabItem3 {
background: url(http://192.168.0.172:5500/com_tabBg3.png);
background-size: cover;
}
.nearbyTit {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 20rpx;
padding-top: 30rpx;
font-weight: normal;
font-size: 36rpx;
color: #222222;
background-color: #fff;
}
.nearbyTit .more {
font-size: 26rpx;
color: #FF370B;
}
.nearbyList {
background-color: #fff;
display: flex;
justify-content: space-between;
padding: 0 20rpx;
}
.nearbyList .emptys {
display: flex;
flex-direction: column;
font-size: 28rpx;
color: #999999;
align-items: center;
justify-content: center;
margin-top: 75rpx;
}
.nearbyList .emptys image {
width: 360rpx;
height: 222rpx;
}
.nearbyList .emptys .emptysBtn {
font-size: 36rpx;
color: #FFFFFF;
width: 600rpx;
height: 90rpx;
background: linear-gradient(91deg, #FF7658 0%, #FF370B 100%);
border-radius: 100rpx 100rpx 100rpx 100rpx;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: center;
margin-top: 60rpx;
margin-bottom: 50rpx;
}
.tabCard {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 20rpx;
margin-top: 16rpx;
}
.tabCardItem {
font-size: 30rpx;
color: #222222;
position: relative;
}
.active {
position: relative;
color: #222222;
font-weight: 700;
}
.active::after {
content: '';
width: 52rpx;
height: 22rpx;
background: url(http://192.168.0.172:5500/com_active.png);
background-size: cover;
position: absolute;
left: 50%;
bottom: -20rpx;
transform: translateX(-50%);
}
.emptyAdd {
font-size: 36rpx;
color: #FFFFFF;
width: 600rpx;
height: 90rpx;
background: linear-gradient(91deg, #FF7658 0%, #FF370B 100%);
border-radius: 100rpx 100rpx 100rpx 100rpx;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: center;
margin-top: 60rpx;
margin-bottom: 40rpx;
}
.nearbyList_left,
.nearbyList_right {
margin-top: 20rpx;
padding-bottom: 20rpx;
}
.nearbyList_leftItem {
height: 230rpx;
width: 350rpx;
margin-bottom: 18rpx;
}
.nearbyList_leftItem image {
width: 100%;
height: 100%;
}
.nearbyList_rightItem {
width: 345rpx;
height: 148rpx;
margin-bottom: 20rpx;
}
.nearbyList_rightItem image {
width: 100%;
height: 100%;
}
.MsgList {
display: flex;
justify-content: space-between;
padding: 0 18rpx;
}
.MsgList_left,
.MsgList_right {
width: 345rpx;
margin-top: 46rpx;
}
.MsgList_leftItem {
border-radius: 20rpx 20rpx 20rpx 20rpx;
width: 345rpx;
height: auto;
padding-bottom: 20rpx;
background: #FFFFFF;
box-shadow: 0rpx 4rpx 4rpx 0rpx rgba(0, 0, 0, 0.05);
margin-bottom: 20rpx;
}
.MsgList_rightItem {
border-radius: 20rpx 20rpx 20rpx 20rpx;
width: 345rpx;
height: auto;
padding-bottom: 20rpx;
background: #FFFFFF;
box-shadow: 0rpx 4rpx 4rpx 0rpx rgba(0, 0, 0, 0.05);
margin-bottom: 20rpx;
}
.MsgList_leftItemImg,
.MsgList_rightItemImg {
width: 345rpx;
object-fit: cover;
height: auto;
display: block;
margin-bottom: 20rpx;
}
.MsgList_leftItemImg image,
.MsgList_rightItemImg image {
width: 100%;
height: auto;
display: block;
}
.MsgList_leftItemName {
font-size: 30rpx;
color: #222222;
margin-top: 20rpx;
line-height: 40rpx;
height: 80rpx;
/* 两行溢出隐藏 */
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
box-sizing: border-box;
padding: 0 14rpx;
}
.MsgList_leftItemMsg {
display: flex;
align-items: center;
margin-top: 7rpx;
box-sizing: border-box;
padding-left: 18rpx;
}
.MsgList_leftItemMsg_like {
display: flex;
align-items: center;
font-size: 22rpx;
color: #999999;
margin-right: 30rpx;
}
.MsgList_leftItemMsg_like image {
width: 22rpx;
height: 20rpx;
margin-right: 7rpx;
}
.MsgList_rightItemName {
font-size: 30rpx;
color: #222222;
margin-top: 20rpx;
line-height: 40rpx;
height: 80rpx;
/* 两行溢出隐藏 */
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
box-sizing: border-box;
padding: 0 14rpx;
}
.act1 {
display: flex;
width: 100%;
justify-content: space-between;
}
.act2 {
background-color: #fff;
margin-top: 20rpx;
}
.act2Item {
display: flex;
border-bottom: 1rpx solid #EBEBEB;
padding: 32rpx 20rpx;
}
.act2Item_left {
width: 180rpx;
height: 180rpx;
border-radius: 20rpx;
overflow: hidden;
margin-right: 20rpx;
}
.act2Item_left image {
width: 100%;
height: 100%;
}
.act2Item_right_Name {
font-size: 30rpx;
color: #000000;
line-height: 40rpx;
height: 80rpx;
/* 两行溢出隐藏 */
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
}
.act2Item_right_Msg {
font-size: 24rpx;
color: #999999;
margin-top: 7rpx;
}
.act2Item_right_Msg span {
color: #FF8520;
}
.act2Item_right_Btn_right {
font-size: 26rpx;
color: #FFFFFF;
width: 140rpx;
height: 40rpx;
background: #FF370B;
border-radius: 100rpx 100rpx 100rpx 100rpx;
display: flex;
align-items: center;
justify-content: center;
}
.act2Item_right_Btn_left {
display: flex;
font-size: 24rpx;
color: #222222;
align-items: center;
}
.act2Item_right_Btn_left image {
width: 80rpx;
height: 24rpx;
margin-right: 5rpx;
}
.act2Item_right_Btn_left span {
font-size: 36rpx;
color: #FF370B;
}
.act2Item_right_Btn {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 12rpx;
}
.act4{
margin-top: 20rpx;
display: flex;
align-items: center;
flex-wrap: wrap;
justify-content: space-between;
}
.act4Item {
border-radius: 20rpx 20rpx 20rpx 20rpx;
width: 345rpx;
height: 512rpx;
background: #FFFFFF;
box-shadow: 0rpx 4rpx 4rpx 0rpx rgba(0, 0, 0, 0.05);
margin-bottom: 20rpx;
}
.act4Img {
width: 345rpx;
height: 300rpx;
}
.act4Name {
font-size: 30rpx;
color: #222222;
line-height: 40rpx;
height: 80rpx;
/* 两行溢出隐藏 */
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
box-sizing: border-box;
padding: 0 14rpx;
margin-top: 20rpx;
}
.act4Msg {
font-size: 24rpx;
color: #999999;
display: flex;
padding: 0 14rpx;
box-sizing: border-box;
margin-top: 10rpx;
}
.act4Msg span {
color: #FF8520;
}
.act4Price {
font-weight: 400;
font-size: 36rpx;
color: #FF370B;
display: flex;
align-items: center;
padding: 0 14rpx;
margin-top: 20rpx;
box-sizing: border-box;
}
.act4Price span{
font-size: 24rpx;
color: #222222;
} }

View File

@ -1,360 +1,248 @@
<template> <template>
<view class="container"> <view class="container">
<view class="searchBox" :style="{ height: localHeight + 'px', paddingTop: top + 'px' }"> <u-notice-bar v-if="tipsList.length !== 0" :text="tipsList[0].title" :fontSize='28' @click="headerTipsClick" />
<view class="searchBox_add">
<img src="http://192.168.0.172:5500/com_communityIcon.png" alt="" /> <view v-if="info.swiperList && info.swiperList.length !== 0">
我的房产 <swiper class="banner" indicator-dots autoplay circular>
</view> <swiper-item v-for="(item, index) in info.swiperList" :key="index">
</view> <image class="banner_item" :src="item" mode="aspectFill" />
</swiper-item>
<div class="myRealEstate"> </swiper>
<div class="myRealEstates"> </view>
<image src="http://192.168.0.172:5500/com_communityNav.png" mode="aspectFill"></image> <view class="nav">
<div class="name">滏阳锦苑</div> <u-grid col="4" :border="false">
<div class="Visitor">访客身份 点击立即入驻本社区</div> <u-grid-item
</div> v-for="(item, index) in navList"
@click="headerNavClick(item)"
:key="index"
<div class="Announcement"> >
<image src="http://192.168.0.172:5500/com_Announcement.png" mode="aspectFill"></image> <image class="grid_Pic" :src="item.pic" mode=""></image>
<div class="line"></div> <text>{{item.desc}}</text>
<div class="msg" @click="notice"> </u-grid-item>
<div>asdasdasd</div> </u-grid>
<image src="http://192.168.0.172:5500/com_more.png" mode="aspectFill"></image> </view>
</div> <view class="line"></view>
</div>
</div> <view class="sub_nav">
<view class="sub_nav_item" @click="repair">
<div class="navList"> <view class="sub_nav_item_desc">报事保修</view>
<div class="navItem"> <view class="sub_nav_item_right">
<image src="http://192.168.0.172:5500/com_NavIcon1.png" mode="aspectFill"></image> <image class="sub_nav_item_pic" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group%203022.png" mode=""/>
物业服务 </view>
</div> </view>
<view class="sub_nav_item wy_pay" @click="NotOpen">
<div class="navItem" @click="repair"> <view class="sub_nav_item_desc">物业缴费</view>
<image src="http://192.168.0.172:5500/com_NavIcon2.png" mode="aspectFill"></image> <view class="sub_nav_item_right">
在线报修 <image class="sub_nav_item_pic" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_366.png" mode=""/>
</div> </view>
</view>
<div class="navItem">
<image src="http://192.168.0.172:5500/com_NavIcon3.png" mode="aspectFill"></image> <view class="sub_nav_item wy_pay2" @click="ReparirList">
物业缴费 <view class="sub_nav_item_desc">报修列表</view>
</div> <view class="sub_nav_item_right">
<image class="sub_nav_item_pic" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/indexSubcontract/_assets/Repairwithone.png" mode=""/>
<div class="navItem"> </view>
<image src="http://192.168.0.172:5500/com_NavIcon4.png" mode="aspectFill"></image> </view>
物业公积
</div> <view v-if="!isJoin" class="sub_nav_item tel_leave" @click="NotOpen">
<view class="sub_nav_item_desc">手机通行</view>
<div class="navItem"> <view class="sub_nav_item_right">
<image src="http://192.168.0.172:5500/com_NavIcon5.png" mode="aspectFill"></image> <image class="sub_nav_item_pic" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_302.png" mode=""/>
社区管家 </view>
</div> </view>
<div class="navItem" @click="mores">
<image src="http://192.168.0.172:5500/com_NavIconMore.png" mode="aspectFill"></image> </view>
更多 </view>
</div> </template>
</div>
<script>
<div class="tabList"> import { request, picUrl, NavgateTo } from '../../../utils';
<div class="tabItem tabItem1"> import { apiArr } from '../../../api/community';
门禁通行
</div> export default {
<div class="tabItem tabItem2"> data () {
人人爱净水 return {
</div> pageTitle: '',
<div class="tabItem tabItem3"> id: '', // id
馒头领取 navList: [
</div> {
</div> pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_345.png',
url: '/packages/community/applyOwer/index',
<div class="nearbyTit"> desc: '申请业主'
<div>周边补贴公积金商家</div> },
{
<div class="more">更多>>></div> pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_346.png',
</div> desc: '我的车辆'
},
{
<div class="nearbyList"> pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_348.png',
<div class="emptys" v-if="false"> desc: '社区活动'
<image src="http://192.168.0.172:5500/com_nearbyList_empty.png" mode="aspectFill"></image> },
周边暂无补贴公积金商家 {
pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_347.png',
<div class="emptysBtn"> desc: '呼叫管家'
商户申请入驻 },
</div> {
</div> pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_350.png',
desc: '访客登记'
<div class="nearbyList_left"> },
<div class="nearbyList_leftItem"> {
<image src="http://192.168.0.172:5500/com_nearbyImg1.png" mode="aspectFill"></image> pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_351.png',
</div> desc: '便民信息'
<div class="nearbyList_leftItem"> },
<image src="http://192.168.0.172:5500/com_nearbyImg1.png" mode="aspectFill"></image> {
</div> pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_352.png',
</div> desc: '物业缴费'
<div class="nearbyList_right"> },
<div class="nearbyList_rightItem"> {
<image src="http://192.168.0.172:5500/com_nearbyImg2.png" mode="aspectFill"></image> pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_356.png',
</div> desc: '便捷挪车'
<div class="nearbyList_rightItem"> },
<image src="http://192.168.0.172:5500/com_nearbyImg2.png" mode="aspectFill"></image> ],
</div> mainList: [
<div class="nearbyList_rightItem"> {
<image src="http://192.168.0.172:5500/com_nearbyImg2.png" mode="aspectFill"></image> pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_349.png',
</div> desc: '报事报修',
</div> url:"/community/oneRepair/index"
</div> },
{
pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_350.png',
<div class="tabCard"> desc: '访客登记'
<div @click="changeTab" data-active="0" :class="active == 0 ? 'active tabCardItem' : 'tabCardItem'">社区互动 },
</div> {
<div @click="changeTab" data-active="1" :class="active == 1 ? 'active tabCardItem' : 'tabCardItem'">社区团购 pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_351.png',
</div> desc: '便民信息'
<div @click="changeTab" data-active="2" :class="active == 2 ? 'active tabCardItem' : 'tabCardItem'">上门服务 },
</div> {
<div @click="changeTab" data-active="3" :class="active == 3 ? 'active tabCardItem' : 'tabCardItem'">本地优选 pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_352.png',
</div> desc: '物业缴费'
</div> },
{
<div class="MsgList"> pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_353.png',
desc: '生活缴费'
},
<div v-if="active == 0" class="act1"> {
<div class="empty" > pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_354.png',
<image src="http://192.168.0.172:5500/com_empty.png" mode="aspectFill"></image> desc: '社区投票'
暂无信息 },
{
<div class="emptyAdd">发布社区互动信息</div> pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_355.png',
</div> desc: '租售信息'
},
<div class="MsgList_left" v-if="false"> {
<div class="MsgList_leftItem"> pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_356.png',
<div class="MsgList_leftItemImg"> desc: '便捷挪车'
<image src="http://192.168.0.172:5500/com_MsgImg1.png" mode="widthFix"></image> },
</div> {
<div class="MsgList_leftItemName">我家的小猫丢了谁看见了请联系我~</div> pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_357.png',
<div class="MsgList_leftItemMsg"> desc: '一键报警'
<div class="MsgList_leftItemMsg_like"> },
<image src="http://192.168.0.172:5500/com_likeIcon.png" mode="aspectFill"></image> {
134 pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_358.png',
</div> desc: '更多服务'
<div class="MsgList_leftItemMsg_like"> },
<image src="http://192.168.0.172:5500/com_comIcon.png" mode="aspectFill"></image> ],
134 info: {},
</div> tipsList: [],
<div class="MsgList_leftItemMsg_like"> isJoin: false, //
<image src="http://192.168.0.172:5500/com_shareIcon.png" mode="aspectFill"></image> }
134 },
</div> onLoad (options) {
</div> this.pageTitle = options.title;
</div> this.id = Number(options.id);
this.init(options.id);
</div> },
<div class="MsgList_right" v-if="false">
<div class="MsgList_rightItem"> methods: {
<div class="MsgList_rightItemImg"> async getInfo (id) {
<image src="http://192.168.0.172:5500/com_MsgImg2.png" mode="widthFix"></image> const res = await request(apiArr.info, "POST", {
</div> community_id: Number(id)
}, { silent: false });
<div class="MsgList_rightItemName"> return res;
这几天准备去春游小区有人一起去么 },
</div>
async getIsJoin (id) {
<div class="MsgList_leftItemMsg"> const res = await request(apiArr.isJoin, "POST", {
<div class="MsgList_leftItemMsg_like"> community_id: Number(id)
<image src="http://192.168.0.172:5500/com_likeIcon.png" mode="aspectFill"></image> }, { silent: false });
134 return res;
</div> },
<div class="MsgList_leftItemMsg_like">
<image src="http://192.168.0.172:5500/com_comIcon.png" mode="aspectFill"></image> async init(id) {
134 uni.showLoading({
</div> title: '加载中',
<div class="MsgList_leftItemMsg_like"> mask: true
<image src="http://192.168.0.172:5500/com_shareIcon.png" mode="aspectFill"></image> })
134 const [res, isJoinRes] = await Promise.all([
</div> this.getInfo(id),
</div> this.getIsJoin(id),
</div> ])
const newInfo = {
<div class="MsgList_rightItem"> ...res,
swiperList: res?.swiper_img ? res?.swiper_img.split(',').map((item) => picUrl+item): [],
<div class="MsgList_rightItemName"> }
这几天准备去春游小区有人一起去么 console.log('newInfo', newInfo);
</div> let navList = this.navList
navList[0].url = `/packages/community/applyOwer/index?id=${Number(id)}&title=${res.name}`;
<div class="MsgList_leftItemMsg"> navList[1].url = `/packages/community/mycar/index?id=${Number(id)}&title=${res.name}`;
<div class="MsgList_leftItemMsg_like"> this.info = newInfo;
<image src="http://192.168.0.172:5500/com_likeIcon.png" mode="aspectFill"></image> this.navList = navList;
134 this.isJoin = isJoinRes.is_join;
</div> uni.hideLoading();
<div class="MsgList_leftItemMsg_like"> uni.setNavigationBarTitle({
<image src="http://192.168.0.172:5500/com_comIcon.png" mode="aspectFill"></image> title: newInfo.name,
134 })
</div>
<div class="MsgList_leftItemMsg_like"> //
<image src="http://192.168.0.172:5500/com_shareIcon.png" mode="aspectFill"></image> const tipsRes = await request(apiArr.tipsList, 'POST', {
134 community_id: Number(id),
</div> page_num: 1,
</div> page_size: 10,
</div> })
</div> this.tipsList = tipsRes?.rows || []
</div> },
<div v-if="active == 1" class="act2"> NotOpen() {
uni.showModal({
<div class="empty" > title: '提示',
<image src="http://192.168.0.172:5500/com_empty.png" mode="aspectFill"></image> content: '此功能暂未开通!',
暂无信息 showCancel: false,
})
<div class="emptyAdd">发布社区互动信息</div> return
</div> },
<div class="act2Item" v-for="itme in 3">
<div class="act2Item_left"> //
<image src="http://192.168.0.172:5500/com_act2Img.png" mode="widthFix"></image> headerTipsClick() {
</div> NavgateTo(`/packages/community/notice/index?id=${this.id}&title=${this.pageTitle}`, { isLogin: false })
<div class="act2Item_right"> },
<div class="act2Item_right_Name">约1.7~2.3/ 软糯甜香新鲜水果 玉米</div>
<div class="act2Item_right_Msg"> // item
本社区已抢购 <span>1536</span> headerNavClick(event) {
</div> const { pageTitle } = this;
if(!event.url) {
<div class="act2Item_right_Btn"> this.NotOpen();
<div class="act2Item_right_Btn_left"> return
<image src="http://192.168.0.172:5500/com_act2Ms.png" mode="widthFix"></image> }
NavgateTo( `${event.url}?title=${pageTitle}`)
<span>5.58</span> },
</div>
repair(){
<div class="act2Item_right_Btn_right"> NavgateTo(`/packages/community/oneRepair/index`)
立即抢购 },
</div>
ReparirList(){
</div> NavgateTo(`/packages/community/repairList/index?id=${this.id}&title=${this.info.name}`)
},
</div>
</div>
</div>
<div v-if="active == 2" class="act2"> },
}
<div class="empty" > </script>
<image src="http://192.168.0.172:5500/com_empty.png" mode="aspectFill"></image>
暂无信息 <style>
@import url("./index.css");
<div class="emptyAdd">发布社区互动信息</div>
</div>
<div class="act2Item" v-for="itme in 3">
<div class="act2Item_left">
<image src="http://192.168.0.172:5500/com_act2Img.png" mode="widthFix"></image>
</div>
<div class="act2Item_right">
<div class="act2Item_right_Name">约1.7~2.3/ 软糯甜香新鲜水果 玉米</div>
<div class="act2Item_right_Msg">
本社区已抢购 <span>1536</span>
</div>
<div class="act2Item_right_Btn">
<div class="act2Item_right_Btn_left">
<span>5.58</span>
/
</div>
<div class="act2Item_right_Btn_right">
立即预定
</div>
</div>
</div>
</div>
</div>
<div v-if="active == 3" class="act4">
<div class="act4Item" v-for="itme in 4">
<div class="act4Img">
<image src="http://192.168.0.172:5500/com_act2Img.png" mode="aspectFill"></image>
</div>
<div class="act4Name">
舒克小苏打牙膏洁白细护120G
</div>
<div class="act4Msg">
本社区已抢购 <span>1536</span>
</div>
<div class="act4Price">
<span></span>
99.00
</div>
</div>
</div>
</div>
</view>
</template>
<script>
import {
request,
picUrl,
uniqueByField,
menuButtonInfo
} from '../../../utils';
import {
apiArr
} from '../../../api/community';
export default {
data() {
return {
top: "",
localHeight: "",
active: 0
}
},
onLoad(options) {
const meun = menuButtonInfo();
this.top = meun.top;
// this.top = meun.height + meun.top;
this.localHeight = meun.height;
},
methods: {
changeTab(e) {
const active = e.currentTarget.dataset.active;
this.active = active;
},
mores() {
uni.navigateTo({
url: '../serverList/index'
})
},
notice(){
uni.navigateTo({
url: '../notice/index'
})
},
repair(){
uni.navigateTo({
url: '../repairList/index'
})
},
},
}
</script>
<style>
@import url("./index.css");
</style> </style>

View File

@ -0,0 +1,51 @@
<template>
<view class="container">
<rich-text :nodes="tipsInfo.details"/>
</view>
</template>
<script>
import { request } from '../../../utils';
import { apiArr } from '../../../api/community';
export default {
data() {
return {
tipsInfo: {}
}
},
methods: {
decodeHTMLEntities(html) {
const entities = {
'&lt;': '<',
'&gt;': '>',
'&amp;': '&',
'&quot;': '"',
'&apos;': "'",
'&#39;': "'",
'&#x2F;': '/',
};
return html.replace(/&(lt|gt|amp|quot|apos|#39|#x2F);/g, (match) => entities[match] || match);
},
},
onLoad(options) {
let _this = this;
console.log('13212313', options);
uni.setNavigationBarTitle({
title: options.title,
})
request(apiArr.oneTips, 'POST', {
news_id: Number(options.id),
}).then((res) => {
const decodedString = _this.decodeHTMLEntities(res.details);
res.details = decodedString;
this.tipsInfo = res;
})
},
}
</script>
<style>
</style>

View File

@ -1,322 +1,12 @@
page { .container {
background-color: #F6F6FA; background: #F9F9F9;
} overflow: hidden;
}
.container { .banner {
display: flex; margin: 0 20rpx;
flex-direction: column; }
min-height: calc(100vh - 120rpx); .main {
width: 100%; background: #FFFFFF;
} /* margin-bottom: 82rpx; */
min-height: calc( 100vh - 180rpx - 82rpx);
.searchBox {
display: flex;
align-items: center;
padding: 0 20rpx;
/* margin-top: 35rpx; */
justify-content: space-between;
background-color: #fff;
}
.searchBox_add {
display: flex;
align-items: center;
font-weight: 400;
font-size: 30rpx;
color: #000000;
}
.searchBox_add2{
font-size: 36rpx;
font-weight: 700;
}
.searchBox_add image {
width: 30rpx;
height: 30rpx;
margin-right: 16rpx;
}
.myRealEstate {
font-weight: 700;
padding-top: 36rpx;
font-weight: normal;
font-size: 36rpx;
color: #222222;
text-align: center;
background-color: #fff;
padding-bottom: 40rpx;
}
.myRealEstate .btn {
width: 600rpx;
height: 90rpx;
background: linear-gradient(91deg, #FF7658 0%, #FF370B 100%);
border-radius: 100rpx 100rpx 100rpx 100rpx;
font-weight: normal;
font-size: 36rpx;
color: #FFFFFF;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto;
margin-top: 30rpx;
}
.nearby {
padding: 0 20rpx;
margin-top: 20rpx;
background-color: #fff;
padding-top: 20rpx;
box-sizing: border-box;
flex: 1;
}
.nearbyTit {
display: flex;
justify-content: space-between;
}
.nearbyTit_left {
font-size: 36rpx;
color: #222222;
font-weight: 700;
}
.nearbyTit_right {
font-size: 26rpx;
color: #999999;
display: flex;
align-items: center;
}
.nearbyTit_right image {
width: 30rpx;
height: 30rpx;
margin-right: 10rpx;
}
.empty {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
font-weight: normal;
font-size: 28rpx;
color: #999999;
margin-top: 110rpx;
}
.empty image {
width: 366rpx;
height: 226rpx;
margin-bottom: 27rpx;
}
.communityItem {
border-bottom: 1rpx solid #EBEBEB;
margin-top: 32rpx;
}
.communityItem_msg {
font-size: 26rpx;
color: #999999;
margin-top: 20rpx;
padding-bottom: 30rpx;
}
.communityItem_Box {
display: flex;
}
.communityItem_Box_left {
width: 180rpx;
overflow: hidden;
height: 180rpx;
border-radius: 20rpx 20rpx 20rpx 20rpx;
margin-right: 20rpx;
}
.communityItem_Box_left image {
width: 100%;
height: 100%;
}
.communityItem_Box_right {
flex: 1;
}
.communityItem_Box_right_tit {
font-size: 32rpx;
color: #222222;
margin-bottom: 8rpx;
}
.communityItem_Box_right_com {
font-size: 26rpx;
color: #555555;
margin-top: 8rpx;
height: 72rpx;
line-height: 36rpx;
-webkit-line-clamp: 2;
/* 限制显示 2 行 */
-webkit-box-orient: vertical;
/* 垂直排列 */
overflow: hidden;
/* 超出部分隐藏 */
text-overflow: ellipsis;
display: -webkit-box;
}
.communityItem_Box_right_msg {
margin-top: 14rpx;
}
.communityItem_Box_right_msg_right {
width: 140rpx;
height: 40rpx;
background: #FF370B;
border-radius: 100rpx 100rpx 100rpx 100rpx;
font-size: 26rpx;
color: #FFFFFF;
display: flex;
align-items: center;
justify-content: center;
}
.communityItem_Box_right_msg {
display: flex;
align-items: center;
justify-content: space-between;
}
.communityItem_Box_right_msg_left {
display: flex;
align-items: center;
}
.communityItem_Box_right_msg_left1 {
width: 110rpx;
height: 40rpx;
background: rgba(255, 81, 42, 0.1);
border-radius: 100rpx 100rpx 100rpx 100rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 22rpx;
color: #555555;
margin-right: 20rpx;
}
.communityItem_Box_right_msg_left1 image {
width: 24rpx;
height: 24rpx;
margin-right: 10rpx;
}
.communityItem_Box_right_msg_left2 {
width: 110rpx;
height: 40rpx;
background: #FFF2DA;
border-radius: 100rpx 100rpx 100rpx 100rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 22rpx;
color: #555555;
}
.communityItem_Box_right_msg_left2 image {
width: 24rpx;
height: 24rpx;
margin-right: 10rpx;
}
.myRealEstates {
width: 710rpx;
height: 200rpx;
margin: 0 auto;
position: relative;
}
.myRealEstates image {
width: 100%;
height: 100%;
object-fit: cover;
position: absolute;
z-index: 1;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
.name {
font-size: 50rpx;
color: #FFFFFF;
text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.6);
text-align: center;
position: relative;
z-index: 2;
padding-top: 24rpx;
}
.Visitor {
font-weight: normal;
font-size: 24rpx;
color: #FFFFFF;
width: 380rpx;
display: flex;
align-items: center;
justify-content: center;
height: 52rpx;
margin: 0 auto;
margin-top: 30rpx;
position: relative;
z-index: 2;
background: rgba(0, 0, 0, 0.3);
border-radius: 10rpx 10rpx 10rpx 10rpx;
}
.Householder {
font-weight: normal;
font-size: 24rpx;
color: #FFFFFF;
white-space: nowrap;
padding: 9rpx 36rpx;
margin: 0 auto;
margin-top: 30rpx;
position: relative;
z-index: 2;
background: rgba(0, 0, 0, 0.3);
border-radius: 10rpx 10rpx 10rpx 10rpx;
display: inline-block;
}
.addRealEstateList{
height: auto;
background-color: #fff;
padding-bottom: 40rpx;
margin-bottom: 20rpx;
}
.addRealEstate {
margin-top: 54rpx;
font-size: 36rpx;
color: #FFFFFF;
display: flex;
align-items: center;
justify-content: center;
width: 600rpx;
height: 90rpx;
background: linear-gradient(91deg, #FF7658 0%, #FF370B 100%);
border-radius: 100rpx 100rpx 100rpx 100rpx;
margin: 0 auto;
} }

View File

@ -1,139 +1,186 @@
<template> <template>
<view class="container"> <view class="container">
<search @search="headerSearch" />
<view class="addRealEstateList" :style="{paddingTop: 54 + top + 'px'}"> <view v-if="pageType">
<div class="addRealEstate" @click="apply"> <swiper class="banner" indicator-dots autoplay circular>
申请入驻 / 新增房产 <swiper-item v-for="(item, index) in bannerList" :key="index">
</div> <image class="banner_item" :src="item.pic" mode="" />
</view> </swiper-item>
</swiper>
<view class="searchBox" :style="{height: localHeight + 'px',paddingTop: top + 'px'}" v-if="false"> </view>
<view class="searchBox_add"> <view class="main">
<img src="http://192.168.0.172:5500/com_communityIcon.png" alt="" /> <tabularCard
我的房产 v-for="(item,index) in list"
</view> :key="index"
</view> :item="item"
:type="pageType"
<view class="searchBox" > :isLast="index === list.length -1"
<view class="searchBox_add2"> :joinType="joinType"
我的房产 @chooseCommunity="chooseCommunity"
</view> />
</view> </view>
<nav-footer />
<div class="myRealEstate"> </view>
<div class="myRealEstateEmpty" v-if="false"> </template>
抱歉您尚未绑定任何房产
<div class="btn" @click="apply"> <script>
商户申请入驻 import { request, picUrl, uniqueByField } from '../../../utils';
</div> import { apiArr } from '../../../api/community';
</div> export default {
data() {
<div class="myRealEstates"> return {
<image src="http://192.168.0.172:5500/com_communityNav.png" mode="aspectFill"></image> pageType: 2,
<div class="name">滏阳锦苑</div> page_num: 1,
<div class="Visitor" v-if="false">访客身份 点击立即入驻本社区</div> page_size: 10,
<div class="Householder"> list: [],
3号楼 2单元 17 1706 | 1 | 物业公积金55.68 bannerList: [{
</div> pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_62.png'
},
</div> {
</div> pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_62.png'
},
<div class="nearby"> {
<div class="nearbyTit"> pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_62.png'
<div class="nearbyTit_left">附近已开通的小区</div> },
<div class="nearbyTit_right"> ],
<image src="http://192.168.0.172:5500/com_searchIcon.png" alt="" mode="aspectFill" /> blurdesc: '', //
搜索 flag: false,
</div> choose: true,
</div> joinType: "2"
}
<div class="empty" v-if="false"> },
<image src="http://192.168.0.172:5500/com_empty.png" alt="" mode="aspectFill" /> onLoad(options) {
暂无信息 console.log('1231', options);
</div> //
uni.setNavigationBarTitle({
title: options.title || '社区列表'
<div class="communityList"> })
<div class="communityItem" v-for="item in 3">
<div class="communityItem_Box"> this.pageType = options?.type || '';
<div class="communityItem_Box_left"> this.joinType = options?.joinType || '2'
<image src="http://192.168.0.172:5500/test.png" alt="" mode="aspectFill" />
</div> // types === 2
<div class="communityItem_Box_right"> if(options?.types == 2){
<div class="communityItem_Box_right_tit">滏阳锦苑</div> this.init(options?.type || '');
<div class="communityItem_Box_right_com">物业公司河北锦绣繁华物业管理有限公司物 业管理有限公司</div> }else{
<div class="communityItem_Box_right_msg"> this.getUserCommunity()
<div class="communityItem_Box_right_msg_left"> }
<div class="communityItem_Box_right_msg_left1"> },
<image src="http://192.168.0.172:5500/com_navigationIcon.png" mode="aspectFill"></image>
导航
</div> methods: {
<div class="communityItem_Box_right_msg_left2">
<image src="http://192.168.0.172:5500/com_phoneIconIcon.png" mode="aspectFill"></image> //
电话 headerSearch(item) {
</div> console.log('1', item);
let value = item.detail.__args__[0].value;
</div> console.log('12112313221', value)
<div class="communityItem_Box_right_msg_right" @click="desc">进入小区</div> this.blurdesc = value;
</div> this.page_num = 1;
</div> this.flag = false,
</div> this.list = [],
<div class="communityItem_msg"> this.init();
河北省衡水市桃城区红旗大街与河阳路交叉口西北300米东车辆入口 },
</div>
</div>
</div> async init(type) {
console.log('12313', this);
</div> const {
</view> list,
page_num,
</template> page_size,
blurdesc
<script> } = this;
import {
request, let url;
picUrl, // type
uniqueByField, if (type) {
menuButtonInfo url = 'bianming'
} from '../../../utils'; } else {
import { url = apiArr.list
apiArr }
} from '../../../api/community'; const res = await request(url, 'POST', {
page_num,
page_size,
export default { name: blurdesc || ''
data() { });
return { console.log('11231321', res);
top: "",
localHeight: "", let flag = false;
} if (res?.rows && res?.rows?.length == this.page_size) {
}, flag = true
onLoad(options) { } else {
const meun = menuButtonInfo(); flag = false
this.top = meun.top; }
// this.top = meun.height + meun.top; res?.rows && res?.rows.forEach(item => {
this.localHeight = meun.height; item.pic = picUrl + item.pic
}, });
console.log('变更后的', res);
methods: { this.list = list.concat(res.rows || []),
desc(){ this.page_num = this.page_num + 1;
uni.navigateTo({ this.flag = flag;
url:"../communityDetail/index" },
})
}, async getUserCommunity() {
apply(){ const { page_num, page_size, blurdesc } = this;
uni.navigateTo({ let param = {
url:"../applyOwer/index" page_num,
}) page_size,
}, };
}, if (blurdesc !== '') {
param = {
page_num,
} page_size,
</script> name: blurdesc,
};
<style> }
@import url("./index.css"); const res = await request(apiArr.getUserCommunity, 'POST', param);
console.log('reeee', res);
let communityList = []
if(res?.rows){
communityList = uniqueByField(res.rows,'community_id')
}
communityList = communityList.map( item => item.community)
if(communityList.length == 0){
this.init(this.pageType || '');
}else{
communityList.forEach(item => {
item.pic = picUrl + item.pic
});
console.log('变更后的', communityList);
this.list = communityList;
}
},
chooseCommunity(e){
console.log(e,'eeeee');
return;
// let community_id = e.detail
const pages = getCurrentPages();
if (pages.length < 2) return; //
const prevPage = pages[pages.length - 2]; //
// updateData
if (prevPage.updateData) {
prevPage.updateData(e.detail);
}
},
},
onReachBottom() {
if (this.flag) {
this.init(this.pageType);
};
},
}
</script>
<style>
@import url("./index.css");
</style> </style>

View File

@ -1,385 +1,73 @@
page { .container {
background-color: #F6F6FA; background: #F9F9F9;
} overflow: hidden;
}
.container { .main {
display: flex; margin-top: 7rpx;
flex-direction: column; margin-bottom: 50rpx;
min-height: calc(100vh - 120rpx); background: #FFFFFF;
width: 100%; }
}
.item {
height: 129rpx;
.searchBox { display: flex;
display: flex; align-items: center;
align-items: center; margin: 0 20rpx;
padding: 0 20rpx; border-bottom: 1rpx solid #E6E6E6;
/* margin-top: 35rpx; */ }
justify-content: space-between; .no_border {
background-color: #fff; border-bottom: none;
} }
.searchBox_add { .left_pic {
display: flex; width: 60rpx;
align-items: center; height: 60rpx;
font-weight: 400; margin-right: 21rpx;
font-size: 30rpx; }
color: #000000;
} .center {
width: 428rpx;
.searchBox_add image { }
width: 30rpx;
height: 30rpx; .title {
margin-right: 16rpx; white-space: nowrap; /* 强制文本在一行内显示 */
} overflow: hidden; /* 隐藏超出容器的文本 */
text-overflow: ellipsis;
.myRealEstate { font-weight: 400;
font-weight: 700; font-size: 26rpx;
padding-top: 36rpx; color: #222222;
font-weight: normal; }
font-size: 36rpx;
color: #222222; .center_bottom {
text-align: center; margin-top: 10rpx;
background-color: #fff; display: flex;
padding-bottom: 27rpx; justify-content: space-between;
} }
.center_bottom_item {
.myRealEstate .btn { display: flex;
width: 600rpx; align-items: center;
height: 90rpx; }
background: linear-gradient(91deg, #FF7658 0%, #FF370B 100%);
border-radius: 100rpx 100rpx 100rpx 100rpx; .center_bottom_item_pic {
font-weight: normal; width: 24rpx;
font-size: 36rpx; height: 24rpx;
color: #FFFFFF; margin-right: 10rpx;
font-weight: 700;
display: flex; }
align-items: center;
justify-content: center; .center_bottom_item_desc {
margin: 0 auto; font-weight: 400;
margin-top: 30rpx; font-size: 22rpx;
} color: #999999;
}
.nearby { .right {
padding: 0 20rpx; flex: 1;
margin-top: 20rpx; display: flex;
background-color: #fff; justify-content: flex-end;
padding-top: 20rpx; }
box-sizing: border-box; .right_pic {
flex: 1; width: 12rpx;
} height: 26rpx;
margin-right: 21rpx;
.nearbyTit {
display: flex;
justify-content: space-between;
}
.nearbyTit_left {
font-size: 36rpx;
color: #222222;
font-weight: 700;
}
.nearbyTit_right {
font-size: 26rpx;
color: #999999;
display: flex;
align-items: center;
}
.nearbyTit_right image {
width: 30rpx;
height: 30rpx;
}
.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;
}
.communityItem {
border-bottom: 1rpx solid #EBEBEB;
margin-top: 32rpx;
}
.communityItem_msg {
font-size: 26rpx;
color: #999999;
margin-top: 20rpx;
padding-bottom: 30rpx;
}
.communityItem_Box {
display: flex;
}
.communityItem_Box_left {
width: 180rpx;
overflow: hidden;
height: 180rpx;
border-radius: 20rpx 20rpx 20rpx 20rpx;
margin-right: 20rpx;
}
.communityItem_Box_left image {
width: 100%;
height: 100%;
}
.communityItem_Box_right {
flex: 1;
}
.communityItem_Box_right_tit {
font-size: 32rpx;
color: #222222;
margin-bottom: 8rpx;
}
.communityItem_Box_right_com {
font-size: 26rpx;
color: #555555;
margin-top: 8rpx;
height: 72rpx;
line-height: 36rpx;
-webkit-line-clamp: 2;
/* 限制显示 2 行 */
-webkit-box-orient: vertical;
/* 垂直排列 */
overflow: hidden;
/* 超出部分隐藏 */
text-overflow: ellipsis;
display: -webkit-box;
}
.communityItem_Box_right_msg {
margin-top: 14rpx;
}
.communityItem_Box_right_msg_right {
width: 140rpx;
height: 40rpx;
background: #FF370B;
border-radius: 100rpx 100rpx 100rpx 100rpx;
font-size: 26rpx;
color: #FFFFFF;
display: flex;
align-items: center;
justify-content: center;
}
.communityItem_Box_right_msg {
display: flex;
align-items: center;
justify-content: space-between;
}
.communityItem_Box_right_msg_left {
display: flex;
align-items: center;
}
.communityItem_Box_right_msg_left1 {
width: 110rpx;
height: 40rpx;
background: rgba(255, 81, 42, 0.1);
border-radius: 100rpx 100rpx 100rpx 100rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 22rpx;
color: #555555;
margin-right: 20rpx;
}
.communityItem_Box_right_msg_left1 image {
width: 24rpx;
height: 24rpx;
margin-right: 10rpx;
}
.communityItem_Box_right_msg_left2 {
width: 110rpx;
height: 40rpx;
background: #FFF2DA;
border-radius: 100rpx 100rpx 100rpx 100rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 22rpx;
color: #555555;
}
.communityItem_Box_right_msg_left2 image {
width: 24rpx;
height: 24rpx;
margin-right: 10rpx;
}
.myRealEstateEmpty {
display: flex;
}
.myRealEstates {
width: 710rpx;
height: 200rpx;
margin: 0 auto;
position: relative;
}
.myRealEstates image {
width: 100%;
height: 100%;
object-fit: cover;
position: absolute;
z-index: 1;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
.name {
font-size: 50rpx;
color: #FFFFFF;
text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.6);
text-align: center;
position: relative;
z-index: 2;
padding-top: 24rpx;
}
.Visitor {
font-weight: normal;
font-size: 24rpx;
color: #FFFFFF;
width: 380rpx;
display: flex;
align-items: center;
justify-content: center;
height: 52rpx;
margin: 0 auto;
margin-top: 30rpx;
position: relative;
z-index: 2;
background: rgba(0, 0, 0, 0.3);
border-radius: 10rpx 10rpx 10rpx 10rpx;
}
.tabList {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20rpx;
box-sizing: border-box;
width: 100%;
font-weight: normal;
font-size: 30rpx;
color: #222222;
background-color: #f6f6fa;
}
.active {
position: relative;
color: #222222;
font-weight: 700;
}
.active::after {
content: '';
width: 52rpx;
height: 22rpx;
background: url(http://192.168.0.172:5500/com_active.png);
background-size: cover;
position: absolute;
left: 50%;
bottom: -20rpx;
transform: translateX(-50%);
}
.ConList{
background-color: #fff;
}
.ConItem {
display: flex;
padding: 30rpx 0;
margin: 0 20rpx;
box-sizing: border-box;
border-bottom: 1rpx solid #EBEBEB;;
}
.ConItem_left {
width: 180rpx;
height: 160rpx;
margin-right: 20rpx;
}
.ConItem_right {
flex: 1;
}
.ConItem_right_tit {
font-size: 32rpx;
color: #222222;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.ConItem_right_time {
font-size: 26rpx;
color: #999999;
margin-top: 10rpx;
}
.ConItem_right_msg {
display: flex;
align-items: center;
margin-top: 30rpx;
}
.ConItem_right_msg2 {
font-weight: normal;
font-size: 24rpx;
color: #FFFFFF;
width: 80rpx;
height: 36rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 24rpx;
color: #FFFFFF;
border-radius: 5rpx 5rpx 5rpx 5rpx;
background: #FF370B;
margin-right: 13rpx;
}
.ConItem_right_msg1 {
width: 80rpx;
height: 36rpx;
background: #D9D9D9;
border-radius: 5rpx 5rpx 5rpx 5rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 24rpx;
color: #222222;
} }

View File

@ -1,99 +1,104 @@
<template> <template>
<view class="container"> <view class="container">
<view class="searchBox" :style="{ height: localHeight + 'px', paddingTop: top + 'px' }"> <view class="main">
<view class="searchBox_add"> <view :class="['item', index === tipsList.length - 1 && 'no_border']" v-for="(item, index ) in tipsList" :key="index" :data-item="item" @click="headerNoticeClick">
<u-icon bold color="#000" size="40" name="arrow-left" @click="back"></u-icon> <image class="left_pic" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/ConvenServer/_assets/Group_476.png" mode=""/>
</view> <view class="center">
</view> <view class="title">{{item.title}}</view>
<view class="center_bottom">
<div class="myRealEstate"> <view class="center_bottom_item">
<div class="myRealEstates"> <image class="center_bottom_item_pic" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/location.png" mode=""/>
<image src="http://192.168.0.172:5500/com_communityNav.png" mode="aspectFill"></image> <view class="center_bottom_item_desc">{{title}}</view>
<div class="name">滏阳锦苑</div> </view>
<div class="Visitor">访客身份 点击立即入驻本社区</div> <view class="center_bottom_item">
</div> <image class="center_bottom_item_pic" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Alarm-clock.png" mode=""/>
</div> <view class="center_bottom_item_desc">{{item.intro}}</view>
</view>
<div class="tabList"> </view>
<div @click="changeTab(0)" :class="active == 0 ? 'active' : ''">全部公告</div> </view>
<div @click="changeTab(1)" :class="active == 1 ? 'active' : ''">安全消防</div> <view class="right">
<div @click="changeTab(2)" :class="active == 2 ? 'active' : ''">小区通知</div> <image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/more.primary.12x22.png" mode="" class="right_pic"/>
<div @click="changeTab(3)" :class="active == 3 ? 'active' : ''">社区活动</div> </view>
<div @click="changeTab(4)" :class="active == 4 ? 'active' : ''">党建</div> </view>
</div> </view>
</view>
<div class="ConList"> </template>
<div class="ConItem" v-for="item in 3" @click="desc">
<div class="ConItem_left"> <script>
<image src="http://192.168.0.172:5500/com_act2Img.png" mode="aspectFill"></image> import { request, NavgateTo } from '../../../utils';
</div> import { apiArr } from '../../../api/community';
<div class="ConItem_right">
<div class="ConItem_right_tit">关于小区停车场治理通告</div> export default {
<div class="ConItem_right_time">2025年5月27日 11:14:29</div> data() {
<div class="ConItem_right_msg"> return {
<div class="ConItem_right_msg2"> isOnshow: false,
最新 noticeList: [],
</div> page_num: 1,
<div class="ConItem_right_msg1"> tipsList: [],
置顶 title: '',
</div> id: '',
</div> }
</div> },
</div> methods: {
</div> async init(id) {
const res = await request(apiArr.tipsList, 'POST', {
</view> community_id: Number(id),
page_num: this.page_num || 1,
</template> page_size: 10,
});
<script>
import { let flag = false;
request, if (res?.rows && res?.rows?.length == this.page_size) {
picUrl, flag = true
uniqueByField, } else {
menuButtonInfo flag = false
} from '../../../utils'; }
import {
apiArr console.log('ressss', res);
} from '../../../api/community'; this.tipsList = this.tipsList.concat(res?.rows || []);
this.page_num = this.page_num + 1;
this.flag = flag;
export default { this.isOnshow = true;
data() { },
return {
top: "",
localHeight: "", headerNoticeClick(event) {
active: 0 const { item } = event.currentTarget.dataset;
} NavgateTo(`/packages/community/desc/desc?id=${item.news_id}&title=${item.title}`)
}, },
onLoad(options) {
const meun = menuButtonInfo(); },
this.top = meun.top;
// this.top = meun.height + meun.top; onLoad(options) {
this.localHeight = meun.height; //
}, uni.setNavigationBarTitle({
title: options.title,
})
methods: { this.title = options?.title;
changeTab(index) { this.id = options?.id;
this.active = index; this.init(options.id);
}, },
back() {
uni.navigateBack({ onShow() {
delta: 1 if (this.isOnshow) {
}); this.page_num = 1;
}, this.tipsList = [];
desc(){ this.flag = false;
uni.navigateTo({ this.init(this.id);
url: '../noticeDesc/index' }
}); },
},
}, /**
* 页面上拉触底事件的处理函数
*/
} onReachBottom() {
</script> if (this.flag) {
this.init(this.id);
<style> }
@import url("./index.css"); },
</style> }
</script>
<style>
@import url("./index.css");
</style>

View File

@ -1,306 +0,0 @@
page {
background-color: #F6F6FA;
}
.container {
display: flex;
flex-direction: column;
min-height: calc(100vh - 120rpx);
width: 100%;
}
.searchBox {
display: flex;
align-items: center;
padding: 0 20rpx;
/* margin-top: 35rpx; */
justify-content: space-between;
background-color: #fff;
}
.searchBox_add {
display: flex;
align-items: center;
font-weight: 400;
font-size: 30rpx;
color: #000000;
}
.searchBox_add image {
width: 30rpx;
height: 30rpx;
margin-right: 16rpx;
}
.myRealEstate {
font-weight: 700;
padding-top: 36rpx;
font-weight: normal;
font-size: 36rpx;
color: #222222;
text-align: center;
background-color: #fff;
padding-bottom: 27rpx;
}
.myRealEstate .btn {
width: 600rpx;
height: 90rpx;
background: linear-gradient(91deg, #FF7658 0%, #FF370B 100%);
border-radius: 100rpx 100rpx 100rpx 100rpx;
font-weight: normal;
font-size: 36rpx;
color: #FFFFFF;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto;
margin-top: 30rpx;
}
.nearby {
padding: 0 20rpx;
margin-top: 20rpx;
background-color: #fff;
padding-top: 20rpx;
box-sizing: border-box;
flex: 1;
}
.nearbyTit {
display: flex;
justify-content: space-between;
}
.nearbyTit_left {
font-size: 36rpx;
color: #222222;
font-weight: 700;
}
.nearbyTit_right {
font-size: 26rpx;
color: #999999;
display: flex;
align-items: center;
}
.nearbyTit_right image {
width: 30rpx;
height: 30rpx;
}
.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;
}
.communityItem {
border-bottom: 1rpx solid #EBEBEB;
margin-top: 32rpx;
}
.communityItem_msg {
font-size: 26rpx;
color: #999999;
margin-top: 20rpx;
padding-bottom: 30rpx;
}
.communityItem_Box {
display: flex;
}
.communityItem_Box_left {
width: 180rpx;
overflow: hidden;
height: 180rpx;
border-radius: 20rpx 20rpx 20rpx 20rpx;
margin-right: 20rpx;
}
.communityItem_Box_left image {
width: 100%;
height: 100%;
}
.communityItem_Box_right {
flex: 1;
}
.communityItem_Box_right_tit {
font-size: 32rpx;
color: #222222;
margin-bottom: 8rpx;
}
.communityItem_Box_right_com {
font-size: 26rpx;
color: #555555;
margin-top: 8rpx;
height: 72rpx;
line-height: 36rpx;
-webkit-line-clamp: 2;
/* 限制显示 2 行 */
-webkit-box-orient: vertical;
/* 垂直排列 */
overflow: hidden;
/* 超出部分隐藏 */
text-overflow: ellipsis;
display: -webkit-box;
}
.communityItem_Box_right_msg {
margin-top: 14rpx;
}
.communityItem_Box_right_msg_right {
width: 140rpx;
height: 40rpx;
background: #FF370B;
border-radius: 100rpx 100rpx 100rpx 100rpx;
font-size: 26rpx;
color: #FFFFFF;
display: flex;
align-items: center;
justify-content: center;
}
.communityItem_Box_right_msg {
display: flex;
align-items: center;
justify-content: space-between;
}
.communityItem_Box_right_msg_left {
display: flex;
align-items: center;
}
.communityItem_Box_right_msg_left1 {
width: 110rpx;
height: 40rpx;
background: rgba(255, 81, 42, 0.1);
border-radius: 100rpx 100rpx 100rpx 100rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 22rpx;
color: #555555;
margin-right: 20rpx;
}
.communityItem_Box_right_msg_left1 image {
width: 24rpx;
height: 24rpx;
margin-right: 10rpx;
}
.communityItem_Box_right_msg_left2 {
width: 110rpx;
height: 40rpx;
background: #FFF2DA;
border-radius: 100rpx 100rpx 100rpx 100rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 22rpx;
color: #555555;
}
.communityItem_Box_right_msg_left2 image {
width: 24rpx;
height: 24rpx;
margin-right: 10rpx;
}
.myRealEstateEmpty {
display: flex;
}
.myRealEstates {
width: 710rpx;
height: 200rpx;
margin: 0 auto;
position: relative;
}
.myRealEstates image {
width: 100%;
height: 100%;
object-fit: cover;
position: absolute;
z-index: 1;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
.name {
font-size: 50rpx;
color: #FFFFFF;
text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.6);
text-align: center;
position: relative;
z-index: 2;
padding-top: 24rpx;
}
.Visitor {
font-weight: normal;
font-size: 24rpx;
color: #FFFFFF;
width: 380rpx;
display: flex;
align-items: center;
justify-content: center;
height: 52rpx;
margin: 0 auto;
margin-top: 30rpx;
position: relative;
z-index: 2;
background: rgba(0, 0, 0, 0.3);
border-radius: 10rpx 10rpx 10rpx 10rpx;
}
.Tit {
font-size: 40rpx;
color: #222222;
text-align: center;
margin-top: 20rpx;
margin-bottom: 5rpx;
}
.subTit {
font-size: 24rpx;
color: #999999;
text-align: center;
margin-bottom: 30rpx;
}
.Con{
padding: 0 20rpx;
box-sizing: border-box;
}

View File

@ -1,72 +0,0 @@
<template>
<view class="container">
<view class="searchBox" :style="{ height: localHeight + 'px', paddingTop: top + 'px' }">
<view class="searchBox_add">
<u-icon bold color="#000" size="40" name="arrow-left" @click="back"></u-icon>
</view>
</view>
<div class="myRealEstate">
<div class="myRealEstates">
<image src="http://192.168.0.172:5500/com_communityNav.png" mode="aspectFill"></image>
<div class="name">滏阳锦苑</div>
<div class="Visitor">访客身份 点击立即入驻本社区</div>
</div>
</div>
<div class="Tit">再生资源回收让我们一起行动起来</div>
<div class="subTit">衡水繁花似锦物业管理有限公司 2025年6月6日10:37:27</div>
<div class="Con">
再生资源回收是一项对我们社会和小区都有益的活动通过回收再利用废纸废金属废塑料废玻璃和废电子产品等再生资源我们不仅可以保护环境还能为我们的小区带来诸多好处
</div>
</view>
</template>
<script>
import {
request,
picUrl,
uniqueByField,
menuButtonInfo
} from '../../../utils';
import {
apiArr
} from '../../../api/community';
export default {
data() {
return {
top: "",
localHeight: "",
active: 0
}
},
onLoad(options) {
const meun = menuButtonInfo();
this.top = meun.top;
// this.top = meun.height + meun.top;
this.localHeight = meun.height;
},
methods: {
changeTab(index) {
this.active = index;
},
back() {
uni.navigateBack({
delta: 1
});
},
},
}
</script>
<style>
@import url("./index.css");
</style>

View File

@ -1,222 +1,208 @@
page { .box {
background-color: #f6f7fb; background-color: #fff;
} }
.searchBox { .nav-box {
padding-bottom: 24rpx; box-sizing: border-box;
background-color: #fff; width: 100%;
} z-index: 2;
background: #F9F9F9;
.searchBox_add { padding-bottom: 25rpx;
height: 100%; }
width: 100%;
display: flex; .nav-box .nav-bar {
} display: flex;
align-items: center;
.searchBox_left { }
flex: 1;
display: flex; .nav-box .nav-bar .nav-bar-left,
align-items: center; .nav-box .nav-bar .nav-bar-right {
padding-left: 20rpx; padding: 0 20rpx;
} min-width: 36rpx;
}
.searchBox_mid {
flex: 1; .nav-box .nav-bar .nav-bar-left van-icon {
font-size: 40rpx; vertical-align: sub;
color: #222222; color: #333333;
text-align: center; }
display: flex;
align-items: center; .nav-box .nav-bar .nav-bar-title {
justify-content: center; flex: 1;
} text-align: center;
font-weight: 400;
.searchBox_right { font-size: 36rpx;
flex: 1; color: #000000;
} }
.nav-box .nav-bar-title {}
.repairMsg {
margin: 30rpx 20rpx 20rpx;
box-sizing: border-box; .information {
padding: 25rpx 20rpx; padding-top: 30rpx;
border-radius: 20rpx 20rpx 20rpx 20rpx; padding-left: 20rpx;
background-color: #fff; padding-right: 20rpx;
} }
.repairTit { .information .title {
font-size: 32rpx; font-weight: bold;
color: #222222; font-size: 32rpx;
display: flex; color: #222222;
box-sizing: border-box; margin-bottom: 25rpx;
margin-bottom: 27rpx; }
}
.information_row {
.repairTit span { padding-top: 30rpx;
color: #FF0000; padding-bottom: 30rpx;
font-size: 32rpx; border-bottom: 2rpx solid #E6E6E6;
} display: flex;
align-items: center;
.label { justify-content: space-between;
font-size: 28rpx; }
color: #999999;
} .information_tit {
font-weight: 400;
font-size: 26rpx;
.roomList { color: #999999;
display: flex; }
flex-wrap: wrap;
align-items: center; .information_ipt {
margin-top: 20rpx; font-weight: 400;
} font-size: 26rpx;
text-align: right;
.roomItem { color: #222222;
width: 276rpx; }
height: 54rpx;
background: #FFF5F5; .information_ipt_pla {
border-radius: 10rpx 10rpx 10rpx 10rpx; font-weight: 400;
border: 1rpx solid #FF370B; font-size: 26rpx;
display: flex; color: #999999;
align-items: center; text-align: right;
justify-content: center; }
font-size: 28rpx;
color: #222222; .noneBorder {
margin-right: 30rpx; border-bottom: none !important;
margin-bottom: 28rpx; position: relative;
} }
.roomItem:nth-child(2n) { .gray {
margin-right: 0; height: 20rpx;
} background-color: #F9F9F9;
}
.row { .containerMsg {
display: flex; padding-top: 30rpx;
padding-top: 30rpx; padding-bottom: 30rpx;
} }
.row_label { .containerMsg .title {
font-size: 28rpx; font-weight: 400;
color: #999999; font-size: 26rpx;
width: 180rpx; color: #222222;
} }
.row_con { .uploadImg {
padding-bottom: 30rpx; padding-top: 30rpx;
box-sizing: border-box; padding-left: 20rpx;
border-bottom: 1rpx solid #EBEBEB; padding-right: 20rpx;
flex: 1; padding-bottom: 30rpx;
display: flex; }
justify-content: space-between;
} .uploadImg .title {
font-weight: 400;
.active { font-size: 26rpx;
position: relative; color: #222222;
} }
.active::after { .btn {
content: ''; font-weight: 400;
position: absolute; font-size: 36rpx;
right: 0; color: #FFFFFF;
bottom: -2rpx; width: 650rpx;
width: 30rpx; height: 80rpx;
height: 30rpx; background: #FF512A;
background: url(http://192.168.0.172:5500/com_activeIcon.png); border-radius: 100rpx 100rpx 100rpx 100rpx;
background-size: 100% 100%; display: flex;
} align-items: center;
justify-content: center;
.noneBorder .row_con { margin: 0 auto;
border-bottom: none; margin-top: 40rpx;
} }
.repairMedia {
width: 710rpx; .sucess {
height: 336rpx; display: flex;
background: #FFFFFF; flex-direction: column;
border-radius: 20rpx 20rpx 20rpx 20rpx; justify-content: center;
margin: 0 auto; }
margin-top: 20rpx;
box-sizing: border-box; .sucess #sucess {
padding: 30rpx 20rpx; width: 250rpx;
} height: 257rpx;
margin: 0 auto;
.u-upload { margin-top: 185rpx;
width: 120rpx !important; }
height: 120rpx !important;
background: #F6F7FB !important; .sucess_msgTit {
display: flex !important; font-weight: 400;
align-items: center !important; font-size: 36rpx;
justify-content: center !important; color: #222222;
border-radius: 10rpx 10rpx 10rpx 10rpx !important; margin-top: 45rpx;
border: 1rpx solid #D1D1D1 !important; text-align: center;
} }
.u-upload__button { .sucess_msg {
width: 100% !important; font-weight: 400;
height: 100% !important; font-size: 28rpx;
margin-right: 0 !important; color: #999999;
margin-bottom: 0 !important; margin-top: 30rpx;
} text-align: center;
}
.u-upload__wrap {
width: 100% !important; .sucess #msg {
height: 100% !important; /* width: 186rpx; */
} /* height: 33rpx; */
margin: 0 auto;
.df { margin-top: 73rpx;
display: flex; font-weight: 400;
align-items: center; font-size: 26rpx;
padding-top: 0; color: #FF512A;
margin-bottom: 30rpx; text-decoration: underline;
} /* line-height: 30rpx; */
}
.imgCon {
font-size: 18rpx;
color: #222222; .van-cell {
display: flex; padding: 0 !important;
flex-direction: column; margin-top: 10rpx !important;
align-items: center; }
justify-content: center;
width: 120rpx; .van-field__control--textarea {
height: 120rpx; /* height:238rpx !important; */
} }
.imgCon image {
width: 34rpx; .rows {
height: 34rpx; display: flex;
margin-bottom: 8rpx; justify-content: space-between;
} align-items: center;
padding: 30rpx 0;
.videoCon { margin: 0 20rpx;
width: 120rpx; border-bottom: 1rpx solid #E6E6E6 ;
height: 120rpx; }
font-size: 18rpx;
color: #222222; .rows_tit{
display: flex; font-weight: 400;
flex-direction: column; font-size: 26rpx;
align-items: center; color: #222222;
justify-content: center; }
} .rows .rows_con{
flex: 1;
.videoCon image { text-align: right;
width: 40rpx; }
height: 26rpx;
margin-bottom: 8rpx; .timeBox{
} display: flex;
align-items: center;
.btn { flex: 1;
font-size: 36rpx; justify-content: flex-end;
color: #FFFFFF;
width: 600rpx;
height: 90rpx;
background: linear-gradient(91deg, #FF7658 0%, #FF370B 100%);
border-radius: 100rpx 100rpx 100rpx 100rpx;
margin: 0 auto;
margin-top: 65rpx;
display: flex;
align-items: center;
justify-content: center;
}
page{
padding-bottom: 0;
} }

View File

@ -1,185 +1,422 @@
<template> <template>
<div class="container"> <view class="container">
<div class="searchBox" :style="{ height: localHeight + 'px', paddingTop: top + 'px' }"> <view class="box">
<div class="searchBox_add"> <!-- 报修 -->
<div class="searchBox_left"> <view v-if="sucess">
<u-icon bold color="#000" size="40" name="arrow-left" @click="back"></u-icon> <view class="rows">
</div> <view class="rows_tit">报修小区</view>
<div class="searchBox_mid">报修信息</div> <view class="rows_con">
<div class="searchBox_right"></div> <input type="text" placeholder="请选择报修小区" disabled @click="chooseCom" :value="CommunityInfo.name" />
</div> </view>
</div> </view>
<view class="rows">
<div class="repairMsg"> <view class="rows_tit">楼宇号</view>
<div class="repairTit"> <view class="rows_con">
<span>*</span>报修信息 <input type="text" :value="FacName" placeholder="请选择楼宇号" @click="chooseFac" data-type="1" disabled />
</div> </view>
</view>
<div class="label">选择房源信息</div> <view class="rows">
<div class="roomList"> <view class="rows_tit">房间号</view>
<div :class="active == '1'?'roomItem active':'roomItem'" @click="changeAct(1)">1号楼1单位101</div> <view class="rows_con">
<div :class="active == '2'?'roomItem active':'roomItem'" @click="changeAct(2)">1号楼1单位101</div> <input type="text" :value="RoomName" placeholder="请选择房间号" @click="chooseFac" data-type="2" disabled />
<div :class="active == '3'?'roomItem active':'roomItem'" @click="changeAct(3)">1号楼1单位101</div> </view>
<div :class="active == '4'?'roomItem active':'roomItem'" @click="changeAct(4)">1号楼1单位101</div> </view>
</div>
<view class="rows">
<div class="row"> <view class="rows_tit">提交类型</view>
<div class="row_label">报修类型</div> <view class="rows_con">
<div class="row_con" @click="chose"> <input type="text" :value="currentType.text" placeholder="请选择提交类型" @click="changeShow" disabled />
<input type="text" placeholder="请选择报修类型" disabled> </view>
<u-icon bold color="#999999" size="30" name="arrow-right"></u-icon> </view>
</div>
</div> <view class="rows">
<view class="rows_tit">报修人</view>
<div class="row"> <view class="rows_con">
<div class="row_label">问题描述</div> <input type="text" placeholder="请输入报修人" :value="Name" data-name='Name' @input="headerInputClick" />
<div class="row_con"> </view>
<input type="text" placeholder="请描述故障"> </view>
</div> <view class="rows">
</div> <view class="rows_tit">报修人电话</view>
<view class="rows_con">
<div class="row"> <input type="number" maxlength="11" placeholder="请输入报修人电话" :value="Phone" data-name='Phone' @input="headerInputClick" />
<div class="row_label">联系人</div> </view>
<div class="row_con"> </view>
<input type="text" placeholder="请输入您的姓名">
</div> <view class="information">
</div> <view class="containerMsg" v-if="currentType.value && currentType.value == 1">
<view class="title">报修内容</view>
<div class="row"> <u--textarea :value="Msg" @input="headerInputClick2" data-name="Msg" placeholder="请输入留言" maxlength='50' count border="none" />
<div class="row_label">联系电话</div> </view>
<div class="row_con">
<input type="text" placeholder="请输入您的联系方式"> <view class="containerMsg" v-if="currentType.value && currentType.value == 2">
</div> <view class="title">意见反馈</view>
</div> <u-textarea :value="Msg" @input="headerInputClick2" data-name="Msg" autoHeight placeholder="请输入留言" maxlength='50' count border="none" />
</view>
<div class="row noneBorder">
<div class="row_label">上门时间</div> <view class="gray"></view>
<div class="row_con" @click="choseTime"> <view class="uploadImg">
<input type="text" placeholder="请选择上门时间" disabled> <view class="title">图片上传</view>
<u-icon bold color="#999999" size="30" name="arrow-right"></u-icon> <view style="margin-top: 20rpx;">
</div> <u-upload
</div> :fileList="fileList"
</div> maxCount="6"
@beforeRead="beforeRead"
<div class="repairMedia"> @afterRead="beforeRead"
<div class="row df"> @delete="deleteImg"
<div class="row_label">上传图片</div> uploadIcon="plus"
<div class="row_con2"> />
<u-upload :fileList="imgList" @afterRead="afterReadImg" @delete="deletePic" name="1" multiple </view>
:maxCount="10"> </view>
<div class="imgCon">
<image src="http://192.168.0.172:5500/com_imageImg.png" mode="widthFix"></image> <view class="gray"></view>
上传图片 <view class="information_row noneBorder">
</div> <view class="information_tit">期望上门时间</view>
</u-upload>
</div> <view class="timeBox" @click="switchShow">
</div>
<view class="information_ipt" v-if="time">
<div class="row df"> {{time}}
<div class="row_label">上传视频</div> </view>
<div class="row_con2"> <u-icon name="arrow-right" size="32" color="#D5AC66" />
<u-upload :fileList="videoList" @afterRead="afterReadVideo" @delete="deletePic" name="1" </view>
:maxCount="1" accept="video">
<div class="videoCon">
<image src="http://192.168.0.172:5500/com_videoImg.png" mode="widthFix"></image> </view>
上传视频 </view>
</div>
</u-upload> <view class="btn" @click="submit">提交</view>
</div> </view>
</div> <!-- 报修成功 -->
</div> <view v-if="!sucess" class="sucess">
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/maintenance_sucess.png"
<u-picker :show="show" :columns="columns" @confirm="confirm1" @cancel="cancel1"></u-picker> mode="widthFix" id="sucess" />
<view class="sucess_msgTit">提交成功</view>
<u-datetime-picker :show="show2" v-model="time" mode="datetime" @confirm="confirm2" <view class="sucess_msg">1条报修内容已提交成功</view>
@cancel="cancel2"></u-datetime-picker> <!-- <image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/maintennace_msg.png" mode="widthFix" id="msg"/> -->
<!-- <view id="msg" bind:tap="desc">
<div class="btn">确认报修</div> 查看报修详情>>
</view> -->
</div> </view>
</template> </view>
<script> <u-datetime-picker
import { :show="DoorTimeShow"
request, mode="datetime"
picUrl, :minDate="minDate"
NavgateTo, :formatter="formatter"
upload, @confirm="onInput"
isPhone, @cancel="onClose"
menuButtonInfo />
} from '../../../utils';
import {
apiArr <u-picker :show="show" :columns="columns" keyName="name" @confirm="confirm" @cancel="onClose" />
} from '../../../api/community';
export default {
data() { </view>
return { </template>
active:"1",
top: "", <script>
localHeight: "", import {
columns: ["家具维修"], request,
show: false, picUrl,
show2: false, NavgateTo,
time: new Date().getTime(), upload,
imgList: [], isPhone,
videoList: [], } from '../../../utils';
} import {
}, apiArr
methods: { } from '../../../api/community';
back() { export default {
uni.navigateBack({ data() {
delta: 1 return {
}); value: '',
}, fileList: [],
chose() { fileList2: [],
console.log(123);
this.show = true; CommunityInfo: {}, //
}, FacId: "", //
cancel1() { FacName: "",
this.show = false; RoomId: "",
}, RoomName: "",
confirm1(e) { Name: "", //
console.log(e); Phone: "", //
this.show = false; Msg: "", //
}, time: "", //
choseTime() { DoorTimeShow: false,
this.show2 = true; sucess: true, //
},
minDate: new Date().getTime(),
cancel2() { formatter(type, value) {
this.show2 = false; if (type === 'year') {
}, return `${value}`;
confirm2(e) { }
console.log(e); if (type === 'month') {
this.show2 = false; return `${value}`;
}, }
if (type === 'day') {
afterReadImg(e){ return `${value}`;
console.log(e); }
return value;
console.log(123); },
},
afterReadVideo(){}, columns: [
[{
changeAct(e){ name: "报事报修",
this.active = e; type: 1
}, },
{
}, name: "意见反馈",
type: 2
onLoad(options) { },
const meun = menuButtonInfo(); ]
this.top = meun.top; ],
this.localHeight = meun.height; show: false,
}, currentType: {}
}
onShow() { },
methods: {
}, chooseCom(){
NavgateTo(`/packages/community/index/index?joinType=3`)
} },
</script>
chooseFac(e){
<style> console.log('eeee', e);
@import url("./index.css"); const { type } = e.currentTarget.dataset;
if(type == '1'){
NavgateTo(`/packages/community/chooseMsg/index?type=${type}&id=${this.CommunityInfo.id}`);
}else{
console.log(this.FacId);
if(this.FacId){
NavgateTo(`/packages/community/chooseMsg/index?type=${type}&id=${this.CommunityInfo.id}&FacId=${this.FacId}`);
}else{
uni.showToast({
title: '请先选择楼宇号',
icon:"none"
})
}
}
},
changeShow(){
this.show = true;
},
confirm(e){
console.log('eee', e)
let pickerValue = {
text: e.value[0].name,
value: e.value[0].type
}
this.currentType = pickerValue;
this.Msg = '',
this.show = false;
},
onClose(){
this.show = false;
this.DoorTimeShow = false;
},
//
beforeRead(e){
console.log(e);
let that = this
upload(e.file.url,(res)=>{
let datas = JSON.parse(res)
console.log(datas.data);
let url = picUrl + datas.data.path
let fileList = this.fileList
let fileList2 = this.fileList2
let obj = {
url:url,
name:'avatar'
}
let obj2 = {
url:datas.data.path,
name:'avatar'
}
fileList.push(obj);
fileList2.push(obj2);
this.fileList = fileList;
this.fileList2 = fileList2;
})
},
switchShow(){
this.DoorTimeShow = true;
},
headerInputClick(e) {
console.log('e', e);
const { name } = e.currentTarget.dataset;
const { value } = e.detail;
this[name] = value;
},
headerInputClick2(e) {
this.Msg = e;
},
onInput(event){
const date = new Date(event.value); // Date
const year = date.getFullYear(); //
const month = date.getMonth() + 1; // 0 +1
const day = date.getDate(); //
const hours =date.getHours()
const minutes = date.getMinutes();
const time = `${year}-${month}-${day} ${hours}:${minutes}`;
console.log(time);
this.time = time;
this.DoorTimeShow = false;
},
async submit(){
console.log('123131', this);
if(!this.CommunityInfo.name){
uni.showToast({
title: '请选择小区',
icon:"none"
})
return
}
if(!this.FacName){
uni.showToast({
title: '请选择楼宇号',
icon:"none"
})
return
}
if(!this.RoomName){
uni.showToast({
title: '请选择楼宇号',
icon:"none"
})
return
}
if(!this.Name){
uni.showToast({
title: '请输入报修人',
icon:"none"
})
return
}
if(!this.currentType){
uni.showToast({
title: '请选择提交类型',
icon:"none"
})
return
}
if(!this.Phone){
uni.showToast({
title: '请输入报修人电话',
icon:"none"
})
return
}
if(!isPhone(this.Phone)){
uni.showToast({
title: '请输入正确电话号',
icon:"none"
})
return
}
if(!this.Msg){
uni.showToast({
title: '请填写报修内容/意见反馈',
icon:"none"
})
return
}
if(this.fileList2.length === 0){
uni.showToast({
title: '请上传图片信息',
icon:"none"
})
return
}
if(!this.time){
uni.showToast({
title: '请选择上门时间',
icon:"none"
})
return
}
let photos = this.fileList2.map(item=>item.url).join(',');
const res = await request(apiArr.submit, 'POST', {
community_id: this.CommunityInfo.id,
facility_id: this.FacId,
room_id: this.RoomId,
hope_order_time: this.time,
mobile: this.Phone,
user_name: this.Name,
photos,
title: this.currentType.text,
current_remark: '',
details: this.Msg,
type: this.currentType.value,
}, {silent: true, nested: true});
console.log('1231', res);
if(res.code == 1){
// if(res.msg == ''){
uni.showToast({
title: '创建反馈信息成功' || res.msg,
icon:"none"
})
this.sucess = !this.sucess;
uni.removeStorageSync('FacName');
uni.removeStorageSync('FacId');
uni.removeStorageSync('RoomName');
uni.removeStorageSync('RoomId');
uni.removeStorageSync('currentCommunity');
uni.removeStorageSync('currentCommunityId');
}
},
},
onLoad(options) {
},
onShow() {
let RoomName = uni.getStorageSync('RoomName')
let RoomId = uni.getStorageSync('RoomId')
let FacName = uni.getStorageSync('FacName')
let FacId = uni.getStorageSync('FacId')
let currentCommunity = uni.getStorageSync('currentCommunity')
let currentCommunityId = uni.getStorageSync('currentCommunityId')
let CommunityInfo = {
id: currentCommunityId,
name: currentCommunity
};
this.RoomName = RoomName;
this.RoomId = RoomId;
this.FacName = FacName;
this.FacId = FacId;
this.CommunityInfo = CommunityInfo;
},
}
</script>
<style>
@import url("./index.css");
</style> </style>

View File

@ -1,119 +1,306 @@
page { .box {
background-color: #f6f7fb; background-color: #F9F9F9;
min-height: 100vh;
} }
.searchBox { .nav-box {
padding-bottom: 24rpx; box-sizing: border-box;
background-color: #fff; width: 100%;
} z-index: 2;
background: #F9F9F9;
.searchBox_add { padding-bottom: 25rpx;
height: 100%; }
width: 100%;
display: flex; .nav-box .nav-bar {
} display: flex;
align-items: center;
.searchBox_left { }
flex: 1;
display: flex; .nav-box .nav-bar .nav-bar-left,
align-items: center; .nav-box .nav-bar .nav-bar-right {
padding-left: 20rpx; padding: 0 20rpx;
} min-width: 36rpx;
}
.searchBox_mid {
flex: 1; .nav-box .nav-bar .nav-bar-left van-icon {
font-size: 40rpx; vertical-align: sub;
color: #222222; color: #333333;
text-align: center; }
display: flex;
align-items: center; .nav-box .nav-bar .nav-bar-title {
justify-content: center; flex: 1;
} text-align: center;
font-weight: 400;
.searchBox_right { font-size: 36rpx;
flex: 1; color: #000000;
} }
.repairMsg { .tabItem {
margin: 20rpx; font-weight: 400;
box-sizing: border-box; font-size: 28rpx;
padding: 25rpx 20rpx; color: #555555;
border-radius: 20rpx 20rpx 20rpx 20rpx; flex: 1;
background-color: #fff; display: flex;
align-items: center;
} justify-content: center;
}
page { .active {
padding-bottom: 60rpx; position: relative;
} font-weight: bold;
font-size: 32rpx;
color: #222222;
}
.orderItemTit {
display: flex; .active::after {
background: linear-gradient(304deg, #FFFFFF 0%, #FFF6E6 100%); content: '';
border-radius: 20rpx 20rpx 0rpx 0rpx; width: 130rpx;
height: 85rpx; height: 10rpx;
justify-content: space-between; background: #FF512A;
padding: 0 20rpx; border-radius: 0rpx 0rpx 0rpx 0rpx;
align-items: center; position: absolute;
box-sizing: border-box; left: 50%;
} transform: translateX(-50%);
bottom: -8rpx;
.orderItemTit_state1 { }
background: linear-gradient(304deg, #FFFFFF 0%, #FFF6E6 100%);
} .active::before {
content: '';
.orderItemTit_state2 { width: 120rpx;
background: linear-gradient(280deg, #FFFFFF 0%, #FFE7E7 100%); height: 4rpx;
} background: #FF5D73;
border-radius: 0rpx 0rpx 0rpx 0rpx;
.orderItemTit_state3 { filter: blur(12rpx);
background: linear-gradient(290deg, #FFFFFF 0%, #EDEDED 100%); position: absolute;
} left: 50%;
transform: translateX(-50%);
.orderItemTit_state4 { bottom: -18rpx;
background: linear-gradient(280deg, #FFFFFF 0%, #FFE7E7 100%); }
}
.row { .InfoMsg {
display: flex; background-color: #fff;
padding: 0 20rpx; margin-bottom: 20rpx;
justify-content: center; }
padding-top: 30rpx;
} .InfoMsg {
padding-left: 20rpx;
.row_label { padding-right: 20rpx;
font-size: 28rpx; padding-top: 30rpx;
color: #999999; padding-bottom: 4rpx;
width: 190rpx; }
}
.InfoMsg_tit {
.row_con { font-weight: bold;
font-size: 28rpx; font-size: 32rpx;
color: #222222; color: #222222;
padding-bottom: 30rpx; margin-bottom: 40rpx;
border-bottom: 1rpx solid #EBEBEB; }
flex: 1;
display: flex; .InfoMsg_info {
align-items: center; display: flex;
flex-wrap: wrap; align-items: center;
} font-weight: 400;
font-size: 26rpx;
.row_con image { color: #999999;
width: 120rpx; margin-bottom: 30rpx;
height: 120rpx; }
border-radius: 10rpx 10rpx 10rpx 10rpx;
margin-right: 20rpx; .InfoMsg_info text {
} color: #222222;
margin-left: 30rpx;
.noneBor{ }
border-bottom: none;
} .InfoItem {
.df{ background-color: #fff;
display: flex; padding-top: 30rpx;
align-items: center; padding-left: 20rpx;
padding-right: 20rpx;
padding-bottom: 30rpx;
}
.InfoItem_tit {
font-weight: bold;
font-size: 32rpx;
color: #222222;
margin-bottom: 40rpx;
}
.InfoItem_msg {
display: flex;
font-weight: 400;
font-size: 26rpx;
white-space: nowrap;
margin-bottom: 30rpx;
color: #222222;
}
.InfoItem_msg:last-child {
margin-bottom: 0;
}
.InfoItem_msg text {
color: #999999;
width: 140rpx;
}
.maintenance_progress {
background-color: #fff;
padding: 60rpx 20rpx;
box-sizing: border-box;
box-sizing: border-box;
}
.progress {
width: 100%;
height: 100%;
background: rgba(249, 249, 249, 0.6);
border-radius: 30rpx 30rpx 30rpx 30rpx;
margin: 0 auto;
padding-left: 80rpx;
padding-top: 60rpx;
padding-bottom: 66rpx;
}
.progress_step_cir {
width: 28rpx;
height: 28rpx;
background: rgba(255, 81, 42, 0.2);
border-radius: 0rpx 0rpx 0rpx 0rpx;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
margin-right: 30rpx;
}
.progress_step_cir2 {
width: 18rpx;
height: 18rpx;
background: #FF512A;
border-radius: 50%;
box-sizing: border-box;
}
.progress_step_time {
font-weight: 400;
font-size: 28rpx;
color: #222222;
position: relative;
display: flex;
align-items: center;
}
.progress_step_msg {
font-weight: 400;
font-size: 24rpx;
color: #FF512A;
border-left: 2rpx dashed #C4C4C4;
padding-left: 44rpx;
box-sizing: border-box;
margin-left: 14rpx;
margin-top: 6rpx;
margin-bottom: 12rpx;
padding-top: 16rpx;
padding-bottom: 45rpx;
}
.progress_step_msg2 {
font-weight: 400;
font-size: 24rpx;
color: #555555;
border-left: 2rpx dashed #C4C4C4;
padding-left: 44rpx;
box-sizing: border-box;
margin-left: 14rpx;
margin-top: 6rpx;
margin-bottom: 12rpx;
padding-top: 16rpx;
padding-bottom: 45rpx;
}
.progress_step_person {
width: 498rpx;
height: 143rpx;
background: #FFECE7;
border-radius: 20rpx 20rpx 20rpx 20rpx;
margin-top: 20rpx;
display: flex;
align-items: center;
justify-content: space-between;
padding-right: 30rpx;
padding-left: 40rpx;
}
.personAva {
width: 76rpx;
height: 76rpx;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
background-color: #fff;
margin-right: 20rpx;
}
.personAva image {
width: 59rpx;
height: 59rpx;
}
.personCall {
width: 36rpx;
height: 36rpx;
}
.personCall image {
width: 100%;
height: 100%;
}
.personInfo_name {
font-weight: 400;
font-size: 28rpx;
color: #222222;
display: flex;
align-items: center;
}
.personInfo_name text {
margin-right: 10rpx;
}
.personInfo_name image {
width: 20rpx;
height: 20rpx;
margin-right: 3rpx;
}
.personInfo_phone {
font-weight: 400;
font-size: 22rpx;
color: #999999;
}
.progress_step_person_left {
display: flex;
align-items: center;
}
.imgList {
display: flex;
align-items: center;
flex-wrap: wrap;
}
.imgList image {
width: 120rpx !important;
height: 120rpx !important;
margin-right: 20rpx;
margin-bottom: 20rpx;
} }

View File

@ -1,176 +1,91 @@
<template> <template>
<div class="container"> <view class="box">
<div class="searchBox" :style="{ height: localHeight + 'px', paddingTop: top + 'px' }"> <view class="tabList">
<div class="searchBox_add"> </view>
<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> <view class="InfoList">
</div> <view class="InfoMsg">
</div> <view class="InfoMsg_tit">基本信息</view>
<view class="InfoMsg_info">联系人: <text>{{info.user_name}}</text> </view>
<div class="repairMsg"> <view class="InfoMsg_info">联系电话: <text>{{info.mobile}}</text> </view>
<div class="orderItemTit orderItemTit_state1" v-if="false"> <view class="InfoMsg_info">期望上门时间: <text>{{info.hope_order_time}}</text> </view>
<div class="orderItemTit_left">工单编号123456789145</div> </view>
<div class="orderItemTit_right">2025-06-04 16:27:35</div> <view class="InfoItem">
</div> <view class="InfoItem_tit">报修内容</view>
<div class="orderItemTit orderItemTit_state2" v-if="true">
<div class="orderItemTit_left">工单编号123456789145</div> <!-- <view class="InfoItem_msg"><text>故障描述</text>净水机不出水</view> -->
<div class="orderItemTit_right">2025-06-04 16:27:35</div> <view class="InfoItem_msg"><text>故障小区</text> {{info.community.name}}/{{info.facility.name }}/{{info.room.name}}
</div> </view>
<div class="orderItemTit orderItemTit_state3" v-if="false"> <view class="InfoItem_msg"><text>报修内容</text>
<div class="orderItemTit_left">工单编号123456789145</div> {{Info.details}}
<div class="orderItemTit_right">2025-06-04 16:27:35</div> </view>
</div> <view class="InfoItem_msg"><text>故障图片</text>
<div class="orderItemTit orderItemTit_state4" v-if="false">
<div class="orderItemTit_left">工单编号123456789145</div> <view class="imgList">
<div class="orderItemTit_right">2025-06-04 16:27:35</div> <image :src="item" mode='' v-for="(item, index) in imgList" @click="lookMore" :data-url="item" :key="index" />
</div> </view>
</view>
<div class="row"> </view>
<div class="row_label">小区房源名称</div> </view>
<div class="row_con">世纪名城1号楼1单元101</div> </view>
</div> </template>
<div class="row"> <script>
<div class="row_label">报修类型</div> import { request, picUrl } from '../../../utils';
<div class="row_con">家具维修</div> import {
</div> apiArr
} from '../../../api/community';
<div class="row"> export default {
<div class="row_label">问题描述</div> data() {
<div class="row_con">门坏了</div> return {
</div> id: "",
info: "",
<div class="row"> imgList: []
<div class="row_label">联系人</div> }
<div class="row_con">高尚</div> },
</div> methods: {
async init() {
<div class="row"> const res = await request(apiArr.getInfoById, 'POST', {
<div class="row_label">联系电话</div> feed_id: this.id
<div class="row_con">15901518415</div> });
</div> let imgList = []
imgList = this.processApiData(res.photos);
<div class="row"> this.info = res;
<div class="row_label">上门时间</div> this.imgList = imgList;
<div class="row_con">2025-06-12 12:00</div> },
</div>
</div>
lookMore(e) {
<div class="repairMsg"> uni.previewImage({
<div class="row"> urls: this.imgList,
<div class="row_label df">图片</div> current: e.currentTarget.dataset.url
<div class="row_con"> })
<image v-for="item in 3" src="http://192.168.0.172:5500/com_communityNav.png" mode="aspectFill"> },
</image>
</div> processApiData(apiData) {
</div> let arr = apiData.split(',');
console.log('123131 arr', arr);
<div class="row"> for (let index = 0; index < arr.length; index++) {
<div class="row_label df">视频</div> arr[index] = picUrl + arr[index]
<div class="row_con"> }
<image src="http://192.168.0.172:5500/com_communityNav.png" mode="aspectFill"></image> return arr
</div> },
</div>
},
<div class="row">
<div class="row_label">指派时间</div> onLoad(options) {
<div class="row_con noneBor">2025-06-12 12:00</div> this.id = Number(options.id);
</div> uni.setNavigationBarTitle({
</div> title: options.title,
});
<div class="repairMsg"> this.init()
<div class="row"> },
<div class="row_label">维修师傅</div> }
<div class="row_con"> </script>
刘师傅
</div> <style>
</div> @import url("./index.css");
<div class="row">
<div class="row_label">师傅手机号</div>
<div class="row_con">
13445667552
</div>
</div>
<div class="row">
<div class="row_label">师傅工号</div>
<div class="row_con noneBor">123456789</div>
</div>
</div>
<div class="repairMsg">
<div class="row">
<div class="row_label df">维修图片</div>
<div class="row_con">
<image v-for="item in 3" src="http://192.168.0.172:5500/com_communityNav.png" mode="aspectFill">
</image>
</div>
</div>
<div class="row">
<div class="row_label df">维修视频</div>
<div class="row_con">
<image src="http://192.168.0.172:5500/com_communityNav.png" mode="aspectFill"></image>
</div>
</div>
<div class="row">
<div class="row_label">维修描述</div>
<div class="row_con noneBor">大门坏了文案文案文案文案</div>
</div>
</div>
</div>
</template>
<script>
import {
request,
picUrl,
NavgateTo,
upload,
isPhone,
menuButtonInfo
} from '../../../utils';
import {
apiArr
} from '../../../api/community';
export default {
data() {
return {
active: "1",
top: "",
localHeight: "",
}
},
methods: {
back() {
uni.navigateBack({
delta: 1
});
},
changeAct(e) {
this.active = e;
},
},
onLoad(options) {
const meun = menuButtonInfo();
this.top = meun.top;
this.localHeight = meun.height;
},
onShow() {
},
}
</script>
<style>
@import url("./index.css");
</style> </style>

View File

@ -1,161 +1,215 @@
.searchBox { .box {
padding-bottom: 24rpx; background-color: #F9F9F9;
background-color: #fff; display: flex;
} flex-direction: column;
min-height: 90vh;
.searchBox_add { }
height: 100%;
width: 100%; .nav-box {
display: flex; box-sizing: border-box;
} width: 100%;
z-index: 2;
.searchBox_left { background: #F9F9F9;
flex: 1; padding-bottom: 25rpx;
display: flex; }
align-items: center;
padding-left: 20rpx; .nav-box .nav-bar {
} display: flex;
align-items: center;
.searchBox_mid { }
flex: 1;
font-size: 40rpx; .nav-box .nav-bar .nav-bar-left,
color: #222222; .nav-box .nav-bar .nav-bar-right {
text-align: center; padding: 0 20rpx;
display: flex; min-width: 36rpx;
align-items: center; }
justify-content: center;
} .nav-box .nav-bar .nav-bar-left van-icon {
vertical-align: sub;
.searchBox_right { color: #333333;
flex: 1; }
}
.nav-box .nav-bar .nav-bar-title {
.tabList { flex: 1;
display: flex; text-align: center;
align-items: center; font-weight: 400;
justify-content: space-between; font-size: 36rpx;
margin: 0 20rpx; color: #000000;
padding-top: 38rpx; }
padding-bottom: 26rpx;
} .nav-bar-right {
display: none;
.tab { }
font-size: 30rpx;
color: #222222; .van-tab {
} font-size: 28rpx !important;
color: #555555 !important;
.tab span { }
color: 30rpx;
}
.tabList {
.active { display: flex;
font-weight: 700; align-items: center;
position: relative; margin-left: 20rpx;
} background-color: #fff;
padding-top: 40rpx;
.active::after { padding-bottom: 20rpx;
content: ''; box-sizing: border-box;
width: 52rpx; }
height: 22rpx;
background: url(http://192.168.0.172:5500/com_active.png);
background-size: cover; .tabItem {
position: absolute; font-weight: 400;
left: 50%; font-size: 28rpx;
bottom: -20rpx; color: #555555;
transform: translateX(-50%); margin-right: 70rpx;
} }
.active {
.orderList { position: relative;
margin-top: 20rpx; font-weight: bold;
} }
.orderItem { .active::after {
width: 710rpx; content: '';
height: 435rpx; width: 64rpx;
background-color: #fff; height: 10rpx;
margin: 0 auto; background: #FF512A;
border-radius: 20rpx; border-radius: 0rpx 0rpx 0rpx 0rpx;
} position: absolute;
left: 50%;
page { bottom: -8rpx;
background-color: #f6f7fb; transform: translateX(-50%);
min-height: 100vh; }
padding: 0;
} .active::before {
content: '';
.orderItemTit { width: 54rpx;
display: flex; height: 4rpx;
background: linear-gradient(304deg, #FFFFFF 0%, #FFF6E6 100%); background: #FF5D73;
border-radius: 20rpx 20rpx 0rpx 0rpx; border-radius: 0rpx 0rpx 0rpx 0rpx;
width: 710rpx; filter: blur(12rpx);
height: 85rpx; position: absolute;
justify-content: space-between; left: 50%;
padding: 0 20rpx; bottom: -18rpx;
align-items: center; transform: translateX(-50%);
box-sizing: border-box; }
}
.orderItemTit_state1{ .recordList {
background: linear-gradient(304deg, #FFFFFF 0%, #FFF6E6 100%); background-color: #fff;
} padding-top: 10rpx;
.orderItemTit_state2{ }
background: linear-gradient( 280deg, #FFFFFF 0%, #FFE7E7 100%);
} .recordItem {
.orderItemTit_state3{ display: flex;
background: linear-gradient( 290deg, #FFFFFF 0%, #EDEDED 100%); align-items: center;
} justify-content: center;
.orderItemTit_state4{ margin-left: 20rpx;
background: linear-gradient( 280deg, #FFFFFF 0%, #FFE7E7 100%); margin-right: 20rpx;
} padding-top: 30rpx;
padding-bottom: 30rpx;
.orderItemTit_left { border-bottom: 2rpx solid #E6E6E6;
font-size: 28rpx; }
color: #222222;
font-weight: 600; .recordItem_img {
} width: 180rpx;
height: 180rpx;
.orderItemTit_right { border-radius: 30rpx 30rpx 30rpx 30rpx;
font-size: 24rpx; overflow: hidden;
color: #999999; }
}
.recordItem_img image {
.orderItem_row { width: 100%;
display: flex; height: 100%;
align-items: center; }
padding: 0 20rpx;
box-sizing: border-box; .recordItem_Msg {
font-size: 26rpx; display: flex;
color: #999999; align-items: center;
margin-top: 20rpx; justify-content: space-between;
justify-content: space-between; flex: 1;
} margin-left: 30rpx;
}
.orderItem_row_label {
width: 200rpx; .recordItem_Msg_right_state1 {
} width: 150rpx;
height: 50rpx;
.orderItem_row_state { background: #999999;
font-size: 28rpx; border-radius: 100rpx 100rpx 100rpx 100rpx;
color: #FFA600; display: flex;
font-weight: 600; align-items: center;
} justify-content: center;
color: #fff;
.df { }
display: flex;
align-items: center; .recordItem_Msg_right_state2 {
justify-content: space-between; width: 150rpx;
} height: 50rpx;
background: #FF512A;
.addBtn { border-radius: 100rpx 100rpx 100rpx 100rpx;
font-size: 36rpx; display: flex;
color: #FFFFFF; align-items: center;
width: 600rpx; justify-content: center;
height: 90rpx; color: #fff;
background: linear-gradient(91deg, #FF7658 0%, #FF370B 100%); }
border-radius: 100rpx 100rpx 100rpx 100rpx;
display: flex; .recordItem_Msg_right_state3 {
align-items: center; width: 150rpx;
justify-content: center; height: 50rpx;
margin: 0 auto; background: #D5AC66;
margin-top: 200rpx; border-radius: 100rpx 100rpx 100rpx 100rpx;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
}
.recordItem_Msg_left {
flex: 1;
}
.recordItem_Msg_left_tit {
font-weight: 400;
font-size: 32rpx;
color: #000000;
margin-bottom: 10rpx;
}
.recordItem_Msg_left_msg {
font-weight: 400;
font-size: 24rpx;
color: #999999;
}
.recordItem:last-child {
border-bottom: none;
}
.btn {
width: 650rpx;
height: 80rpx;
background: #FF512A;
border-radius: 100rpx 100rpx 100rpx 100rpx;
font-weight: 400;
font-size: 36rpx;
color: #FFFFFF;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto;
margin-top: 10px;
margin-bottom: 40rpx;
position: fixed;
left: 0;
right: 0;
bottom: 0;
z-index: 9;
}
.emplty {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
margin-top: 20rpx;
} }

View File

@ -1,121 +1,116 @@
<template> <template>
<view class="box"> <view class="box">
<div class="searchBox" :style="{ height: localHeight + 'px', paddingTop: top + 'px' }">
<div class="searchBox_add"> <view class="tabList">
<div class="searchBox_left"> <view :class="['tabItem', status == 0 ? 'active' : '']" @click="changeTab" data-index="0">全部</view>
<u-icon bold color="#000" size="40" name="arrow-left" @click="back"></u-icon> <view :class="['tabItem', status == 1 ? 'active' : '']" @click="changeTab" data-index="1">待处理</view>
</div> <view :class="['tabItem', status == 2 ? 'active' : '']" @click="changeTab" data-index="2">处理中</view>
<div class="searchBox_mid">我的报修</div> <view :class="['tabItem', status == 3 ? 'active' : '']" @click="changeTab" data-index="3">已完成</view>
<div class="searchBox_right"></div> </view>
</div>
</div>
<view class="recordList" v-if="list.length != 0">
<div class="tabList"> <view class="recordItem" v-for="(item, index) in list" @click="headerRepairDetailClick" :data-id="item.feed_id">
<div :class="active == '1' ? 'tab active' : 'tab'">待指派 <span>(1)</span></div> <view class="recordItem_Msg">
<div :class="active == '2' ? 'tab active' : 'tab'">进行中 <span>(1)</span></div> <view class="recordItem_Msg_left">
<div :class="active == '3' ? 'tab active' : 'tab'">已作废 <span>(1)</span></div> <view class="recordItem_Msg_left_tit">{{item.details}}</view>
<div :class="active == '4' ? 'tab active' : 'tab'">已完成 <span>(1)</span></div>
</div> <view class="recordItem_Msg_left_msg">
联系人{{item.user_name}}
<div class="orderList"> </view>
<div class="orderItem" @click="desc"> <view class="recordItem_Msg_left_msg">
<div class="orderItemTit orderItemTit_state1" v-if="false"> 联系人电话{{item.mobile}}
<div class="orderItemTit_left">工单编号123456789145</div> </view>
<div class="orderItemTit_right">2025-06-04 16:27:35</div> <view class="recordItem_Msg_left_msg">
</div> 期望上门{{item.hope_order_time}}
<div class="orderItemTit orderItemTit_state2" v-if="true"> </view>
<div class="orderItemTit_left">工单编号123456789145</div> <view class="recordItem_Msg_left_msg">
<div class="orderItemTit_right">2025-06-04 16:27:35</div> 提交时间{{item.create_time}}
</div> </view>
<div class="orderItemTit orderItemTit_state3" v-if="false"> </view>
<div class="orderItemTit_left">工单编号123456789145</div> <!-- <view class="recordItem_Msg_right_state1" wx:if="{{item.status == 0}}">待处理</view>
<div class="orderItemTit_right">2025-06-04 16:27:35</div> <view class="recordItem_Msg_right_state2" wx:if="{{item.status == 1}}">已完成</view>
</div> <view class="recordItem_Msg_right_state3" wx:if="{{item.status == 2}}">处理中</view> -->
<div class="orderItemTit orderItemTit_state4" v-if="false"> </view>
<div class="orderItemTit_left">工单编号123456789145</div> </view>
<div class="orderItemTit_right">2025-06-04 16:27:35</div> </view>
</div>
<view v-if="list.length == 0" class="emplty">
<div class="orderItem_row"> <u-empty iconSize="180" textSize='28' text="暂无内容" />
<div class="df"> </view>
<div class="orderItem_row_label">小区房源名称</div>
<div class="orderItem_row_con">世纪名城1号楼1单元101</div> <view class="btn" @click="headerRepairClick">我要报修</view>
</div>
</view>
<div class="orderItem_row_state"> </template>
待指派
</div> <script>
</div> import { request, NavgateTo } from '../../../utils';
import { apiArr } from '../../../api/community';
<div class="orderItem_row"> export default {
<div class="orderItem_row_label">报修类型</div> data() {
<div class="orderItem_row_con">家具维修</div> return {
</div> page_num: 1,
page_size: 10,
<div class="orderItem_row"> flag: false,
<div class="orderItem_row_label">问题描述</div> list: [],
<div class="orderItem_row_con">门坏了</div> id: "",
</div> title: '',
status: 0
<div class="orderItem_row"> }
<div class="orderItem_row_label">上门时间</div> },
<div class="orderItem_row_con">2025-06-12 12:00</div> methods: {
</div> async init() {
const res = await request(apiArr.getListByRepair, 'POST', {
<div class="orderItem_row"> community_id: this.id,
<div class="orderItem_row_label">联系人</div> page_num: this.page_num,
<div class="orderItem_row_con">高尚</div> page_size: this.page_size,
</div> status: this.status
})
<div class="orderItem_row"> if (res.rows) {
<div class="orderItem_row_label">联系人手机号</div> let flag = false
<div class="orderItem_row_con">15901518415</div> if (res.rows.length == this.page_size) {
</div> flag = true
</div> } else {
</div> flag = false
}
<div class="addBtn" @click="oneRepair">
在线报修 this.flag = flag;
</div> this.page_num = this.page_num + 1;
this.list = this.list.concat(res.rows || []);
</view> }
</template> },
<script> headerRepairClick(e){
import { request, NavgateTo, menuButtonInfo } from '../../../utils'; NavgateTo(`/packages/community/oneRepair/index`)
import { apiArr } from '../../../api/community'; },
export default { headerRepairDetailClick(e){
data() { const { id } = e.currentTarget.dataset
return { NavgateTo(`/packages/community/repairDetail/index?id=${id}&title=${this.title}`)
top: "", },
localHeight: "",
active: "1" changeTab(e){
} this.status = Number(e.currentTarget.dataset.index);
}, this.flag = false;
methods: { this.page_num = 1;
oneRepair(){ this.list = [];
uni.navigateTo({
url: '../oneRepair/index' this.init()
}); },
},
},
desc(){
uni.navigateTo({ onLoad(options) {
url: '../repairDetail/index' this.id = Number(options.id);
}); this.title = options.title;
}, uni.setNavigationBarTitle({
title: options.title,
});
}, this.init()
},
onLoad(options) { }
const meun = menuButtonInfo(); </script>
this.top = meun.top;
this.localHeight = meun.height; <style>
}, @import url("./index.css");
}
</script>
<style>
@import url("./index.css");
</style> </style>

View File

@ -1,126 +0,0 @@
image {
width: 100%;
height: 100%;
}
.tabList1 {
margin-top: 30rpx;
}
.Tit {
margin-left: 20rpx;
font-size: 36rpx;
color: #222222;
font-weight: 700;
}
.functionList {
display: flex;
align-items: center;
flex-wrap: wrap;
padding: 0 40rpx;
}
.functionItem {
display: flex;
flex-direction: column;
align-items: center;
width: 148rpx;
margin-right: 30rpx;
margin-bottom: 36rpx;
}
.functionItem image {
height: 67rpx;
}
.functionItemName {
font-size: 30rpx;
color: #000000;
margin-top: 14rpx;
}
.functionItem:nth-child(4n) {
margin-right: 0;
}
.line {
height: 20rpx;
width: 100%;
background: #F6F6FA;
}
.tabList2 {
padding-top: 30rpx;
}
.Tit span {
font-size: 26rpx;
color: #222222;
margin-left: 20rpx;
font-weight: 400;
}
.tabList {
display: flex;
align-items: center;
justify-content: space-between;
background-color: #fff;
padding: 0 20rpx;
padding-top: 30rpx;
flex-wrap: wrap;
}
.tabItem {
width: 226rpx;
height: 120rpx;
box-sizing: border-box;
padding-top: 7rpx;
padding-left: 18rpx;
font-weight: normal;
font-size: 28rpx;
color: #FF370B;
margin-bottom: 30rpx;
}
.tabItem1 {
background: url(http://192.168.0.172:5500/com_tabBg1.png);
background-size: cover;
}
.tabItem2 {
background: url(http://192.168.0.172:5500/com_tabBg2.png);
background-size: cover;
}
.tabItem3 {
background: url(http://192.168.0.172:5500/com_tabBg3.png);
background-size: cover;
}
.tabList3 {
padding-top: 30rpx;
}
.tabList3 .Tit {
margin-bottom: 30rpx;
}
.tabList4 {
padding-top: 30rpx;
}
.tabList4 .Tit {
margin-bottom: 30rpx;
}
.tabList5 {
padding-top: 30rpx;
}
.tabList5 .Tit {
margin-bottom: 30rpx;
}

View File

@ -1,250 +0,0 @@
<template>
<view class="container">
<div class="tabList1">
<div class="Tit">物业导航</div>
<div class="functionList">
<div class="functionItem" v-for="item in functionList" @click="desc(item)">
<image mode="heightFix" :src="item.icon" />
<div class="functionItemName">{{ item.name }}</div>
</div>
</div>
</div>
<div class="line"></div>
<div class="tabList2">
<div class="Tit">特色主题 <span>本小区已开通的特色服务</span></div>
<div class="tabList">
<div class="tabItem tabItem1">
门禁通行
</div>
<div class="tabItem tabItem2">
人人爱净水
</div>
<div class="tabItem tabItem3">
馒头领取
</div>
<div class="tabItem tabItem3">
健康驿站
</div>
</div>
</div>
<div class="line"></div>
<div class="tabList3">
<div class="Tit">上门服务</div>
<div class="functionList">
<div class="functionItem" v-for="item in localList" @click="desc(item)">
<image mode="heightFix" :src="item.icon" />
<div class="functionItemName">{{ item.name }}</div>
</div>
</div>
</div>
<div class="line"></div>
<div class="tabList4">
<div class="Tit">电商购物</div>
<div class="functionList">
<div class="functionItem" v-for="item in shopList" @click="desc(item)">
<image mode="heightFix" :src="item.icon" />
<div class="functionItemName">{{ item.name }}</div>
</div>
</div>
</div>
<div class="line"></div>
<div class="tabList5">
<div class="Tit">积分卡券</div>
<div class="functionList">
<div class="functionItem" v-for="item in shopList" @click="desc(item)">
<image mode="heightFix" :src="item.icon" />
<div class="functionItemName">{{ item.name }}</div>
</div>
</div>
</div>
</view>
</template>
<script>
import { request } from '../../../utils';
import { apiArr } from '../../../api/community';
export default {
data() {
return {
functionList: [
{
icon: "http://192.168.0.172:5500/com_serverIcon1.png",
name: "业主入驻",
url: ""
},
{
icon: "http://192.168.0.172:5500/com_serverIcon2.png",
name: "我的房产",
url: ""
},
{
icon: "http://192.168.0.172:5500/com_serverIcon3.png",
name: "生活缴费",
url: "weixin://dl/business/?t=WvQ1ZJv0J5Z"
},
{
icon: "http://192.168.0.172:5500/com_serverIcon4.png",
name: "便民服务",
url: ""
},
{
icon: "http://192.168.0.172:5500/com_serverIcon5.png",
name: "物业公积金",
url: ""
},
{
icon: "http://192.168.0.172:5500/com_serverIcon6.png",
name: "社区互动",
url: ""
},
{
icon: "http://192.168.0.172:5500/com_serverIcon7.png",
name: "物业公积金",
url: ""
},
{
icon: "http://192.168.0.172:5500/com_serverIcon8.png",
name: "物业服务",
url: ""
},
{
icon: "http://192.168.0.172:5500/com_serverIcon9.png",
name: "报事报修",
url: ""
},
{
icon: "http://192.168.0.172:5500/com_serverIcon10.png",
name: "物业缴费",
url: ""
},
{
icon: "http://192.168.0.172:5500/com_serverIcon11.png",
name: "纠纷调解",
url: ""
},
{
icon: "http://192.168.0.172:5500/com_serverIcon12.png",
name: "社区管家",
url: ""
},
],
localList: [
{
icon: "http://192.168.0.172:5500/com_localIcon1.png",
name: "美食",
url: ""
},
{
icon: "http://192.168.0.172:5500/com_localIcon2.png",
name: "家教",
url: ""
},
{
icon: "http://192.168.0.172:5500/com_localIcon3.png",
name: "超市",
url: ""
},
{
icon: "http://192.168.0.172:5500/com_localIcon4.png",
name: "健身",
url: ""
},
],
shopList: [
{
icon: "http://192.168.0.172:5500/com_shopIcon1.png",
name: "电商购物",
url: ""
},
{
icon: "http://192.168.0.172:5500/com_shopIcon2.png",
name: "社区团购",
url: ""
},
{
icon: "http://192.168.0.172:5500/com_shopIcon3.png",
name: "本地优选",
url: ""
},
{
icon: "http://192.168.0.172:5500/com_shopIcon4.png",
name: "社区拼团",
url: ""
},
],
cardList: [
{
icon: "http://192.168.0.172:5500/com_cardIcon1.png",
name: "我的积分",
url: ""
},
{
icon: "http://192.168.0.172:5500/com_cardIcon2.png",
name: "积分兑换",
url: ""
},
{
icon: "http://192.168.0.172:5500/com_cardIcon3.png",
name: "我的优惠卡",
url: ""
},
{
icon: "http://192.168.0.172:5500/com_cardIcon4.png",
name: "我的会员卡",
url: ""
},
]
}
},
methods: {
desc(e) {
if (e.url && e.url.startsWith('weixin://')) {
// UniApp
if (uni.getSystemInfoSync().platform === 'android') {
plus.runtime.openURL(e.url, function (err) {
uni.showToast({
title: '跳转失败,请手动打开微信',
icon: 'none'
});
});
} else {
// iOS使universal link
uni.showModal({
title: '提示',
content: '请在微信中打开生活缴费功能',
confirmText: '打开微信',
success(res) {
if (res.confirm) {
plus.runtime.openURL('weixin://');
}
}
});
}
} else {
console.log(e);
//
}
},
},
onLoad(options) {
},
onReachBottom() {
},
}
</script>
<style>
@import url("./index.css");
</style>

View File

@ -121,9 +121,10 @@
"pages": [{ "pages": [{
"path": "index/index", "path": "index/index",
"style": { "style": {
"navigationStyle": "custom", "navigationBarTitleText": "社区列表",
"usingComponents": { "usingComponents": {
"tabularCard": "/components/tabularCard/tabularCard", "tabularCard": "/components/tabularCard/tabularCard",
"search": "/components/search/search",
"nav-footer": "/components/nav/nav" "nav-footer": "/components/nav/nav"
} }
} }
@ -131,29 +132,25 @@
{ {
"path": "communityDetail/index", "path": "communityDetail/index",
"style": { "style": {
"navigationStyle": "custom",
"navigationBarBackgroundColor": "#F9F9F9" "navigationBarBackgroundColor": "#F9F9F9"
} }
}, },
{ {
"path": "notice/index", "path": "notice/index",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": ""
"navigationStyle": "custom"
} }
}, },
{ {
"path": "noticeDesc/index", "path": "desc/desc",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": ""
"navigationStyle": "custom"
} }
}, },
{ {
"path": "applyOwer/index", "path": "applyOwer/index",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": ""
"navigationBarBackgroundColor": "#fff"
} }
}, },
{ {
@ -165,45 +162,31 @@
{ {
"path": "oneRepair/index", "path": "oneRepair/index",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "报事报修"
"navigationStyle": "custom"
} }
}, },
{ {
"path": "repairList/index", "path": "repairList/index",
"style": { "style": {
"navigationStyle": "custom", "navigationBarTitleText": ""
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#F9F9F9"
} }
}, },
{ {
"path": "repairDetail/index", "path": "repairDetail/index",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": ""
"navigationStyle": "custom"
} }
}, },
{ {
"path": "chooseMsg/index", "path": "chooseMsg/index",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": ""
"navigationBarBackgroundColor": "#fff"
} }
}, },
{ {
"path": "chooseMsgInfo/index", "path": "addCar/index",
"style": { "style": {
"navigationStyle": "custom", "navigationBarBackgroundColor": "#F9F9F9"
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#fff"
}
},
{
"path": "serverList/index",
"style": {
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#fff"
} }
}, },
{ {

File diff suppressed because one or more lines are too long

View File

@ -42,15 +42,14 @@
"index/index", "index/index",
"communityDetail/index", "communityDetail/index",
"notice/index", "notice/index",
"noticeDesc/index", "desc/desc",
"applyOwer/index", "applyOwer/index",
"mycar/index", "mycar/index",
"oneRepair/index", "oneRepair/index",
"repairList/index", "repairList/index",
"repairDetail/index", "repairDetail/index",
"chooseMsg/index", "chooseMsg/index",
"chooseMsgInfo/index", "addCar/index",
"serverList/index",
"ownerList/index" "ownerList/index"
] ]
}, },

View File

@ -1,259 +1,259 @@
@charset "UTF-8"; @charset "UTF-8";
/** /**
* 这里是uni-app内置的常用样式变量 * 这里是uni-app内置的常用样式变量
* *
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量 * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
* *
*/ */
/** /**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能 * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
* *
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/ */
/* 颜色变量 */ /* 颜色变量 */
/* 行为相关颜色 */ /* 行为相关颜色 */
/* 文字基本颜色 */ /* 文字基本颜色 */
/* 背景颜色 */ /* 背景颜色 */
/* 边框颜色 */ /* 边框颜色 */
/* 尺寸变量 */ /* 尺寸变量 */
/* 文字尺寸 */ /* 文字尺寸 */
/* 图片尺寸 */ /* 图片尺寸 */
/* Border Radius */ /* Border Radius */
/* 水平间距 */ /* 水平间距 */
/* 垂直间距 */ /* 垂直间距 */
/* 透明度 */ /* 透明度 */
/* 文章场景相关 */ /* 文章场景相关 */
/* 注意要写在第一行同时给style标签加入lang="scss"属性 */ /* 注意要写在第一行同时给style标签加入lang="scss"属性 */
.u-line-1 { .u-line-1 {
display: -webkit-box !important; display: -webkit-box !important;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
word-break: break-all; word-break: break-all;
-webkit-line-clamp: 1; -webkit-line-clamp: 1;
-webkit-box-orient: vertical !important; -webkit-box-orient: vertical !important;
} }
.u-line-2 { .u-line-2 {
display: -webkit-box !important; display: -webkit-box !important;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
word-break: break-all; word-break: break-all;
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
-webkit-box-orient: vertical !important; -webkit-box-orient: vertical !important;
} }
.u-line-3 { .u-line-3 {
display: -webkit-box !important; display: -webkit-box !important;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
word-break: break-all; word-break: break-all;
-webkit-line-clamp: 3; -webkit-line-clamp: 3;
-webkit-box-orient: vertical !important; -webkit-box-orient: vertical !important;
} }
.u-line-4 { .u-line-4 {
display: -webkit-box !important; display: -webkit-box !important;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
word-break: break-all; word-break: break-all;
-webkit-line-clamp: 4; -webkit-line-clamp: 4;
-webkit-box-orient: vertical !important; -webkit-box-orient: vertical !important;
} }
.u-line-5 { .u-line-5 {
display: -webkit-box !important; display: -webkit-box !important;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
word-break: break-all; word-break: break-all;
-webkit-line-clamp: 5; -webkit-line-clamp: 5;
-webkit-box-orient: vertical !important; -webkit-box-orient: vertical !important;
} }
.u-border { .u-border {
border-width: 0.5px !important; border-width: 0.5px !important;
border-color: #dadbde !important; border-color: #dadbde !important;
border-style: solid; border-style: solid;
} }
.u-border-top { .u-border-top {
border-top-width: 0.5px !important; border-top-width: 0.5px !important;
border-color: #dadbde !important; border-color: #dadbde !important;
border-top-style: solid; border-top-style: solid;
} }
.u-border-left { .u-border-left {
border-left-width: 0.5px !important; border-left-width: 0.5px !important;
border-color: #dadbde !important; border-color: #dadbde !important;
border-left-style: solid; border-left-style: solid;
} }
.u-border-right { .u-border-right {
border-right-width: 0.5px !important; border-right-width: 0.5px !important;
border-color: #dadbde !important; border-color: #dadbde !important;
border-right-style: solid; border-right-style: solid;
} }
.u-border-bottom { .u-border-bottom {
border-bottom-width: 0.5px !important; border-bottom-width: 0.5px !important;
border-color: #dadbde !important; border-color: #dadbde !important;
border-bottom-style: solid; border-bottom-style: solid;
} }
.u-border-top-bottom { .u-border-top-bottom {
border-top-width: 0.5px !important; border-top-width: 0.5px !important;
border-bottom-width: 0.5px !important; border-bottom-width: 0.5px !important;
border-color: #dadbde !important; border-color: #dadbde !important;
border-top-style: solid; border-top-style: solid;
border-bottom-style: solid; border-bottom-style: solid;
} }
.u-reset-button { .u-reset-button {
padding: 0; padding: 0;
background-color: transparent; background-color: transparent;
font-size: inherit; font-size: inherit;
line-height: inherit; line-height: inherit;
color: inherit; color: inherit;
} }
.u-reset-button::after { .u-reset-button::after {
border: none; border: none;
} }
.u-hover-class { .u-hover-class {
opacity: 0.7; opacity: 0.7;
} }
.u-primary-light { .u-primary-light {
color: #ecf5ff; color: #ecf5ff;
} }
.u-warning-light { .u-warning-light {
color: #fdf6ec; color: #fdf6ec;
} }
.u-success-light { .u-success-light {
color: #f5fff0; color: #f5fff0;
} }
.u-error-light { .u-error-light {
color: #fef0f0; color: #fef0f0;
} }
.u-info-light { .u-info-light {
color: #f4f4f5; color: #f4f4f5;
} }
.u-primary-light-bg { .u-primary-light-bg {
background-color: #ecf5ff; background-color: #ecf5ff;
} }
.u-warning-light-bg { .u-warning-light-bg {
background-color: #fdf6ec; background-color: #fdf6ec;
} }
.u-success-light-bg { .u-success-light-bg {
background-color: #f5fff0; background-color: #f5fff0;
} }
.u-error-light-bg { .u-error-light-bg {
background-color: #fef0f0; background-color: #fef0f0;
} }
.u-info-light-bg { .u-info-light-bg {
background-color: #f4f4f5; background-color: #f4f4f5;
} }
.u-primary-dark { .u-primary-dark {
color: #398ade; color: #398ade;
} }
.u-warning-dark { .u-warning-dark {
color: #f1a532; color: #f1a532;
} }
.u-success-dark { .u-success-dark {
color: #53c21d; color: #53c21d;
} }
.u-error-dark { .u-error-dark {
color: #e45656; color: #e45656;
} }
.u-info-dark { .u-info-dark {
color: #767a82; color: #767a82;
} }
.u-primary-dark-bg { .u-primary-dark-bg {
background-color: #398ade; background-color: #398ade;
} }
.u-warning-dark-bg { .u-warning-dark-bg {
background-color: #f1a532; background-color: #f1a532;
} }
.u-success-dark-bg { .u-success-dark-bg {
background-color: #53c21d; background-color: #53c21d;
} }
.u-error-dark-bg { .u-error-dark-bg {
background-color: #e45656; background-color: #e45656;
} }
.u-info-dark-bg { .u-info-dark-bg {
background-color: #767a82; background-color: #767a82;
} }
.u-primary-disabled { .u-primary-disabled {
color: #9acafc; color: #9acafc;
} }
.u-warning-disabled { .u-warning-disabled {
color: #f9d39b; color: #f9d39b;
} }
.u-success-disabled { .u-success-disabled {
color: #a9e08f; color: #a9e08f;
} }
.u-error-disabled { .u-error-disabled {
color: #f7b2b2; color: #f7b2b2;
} }
.u-info-disabled { .u-info-disabled {
color: #c4c6c9; color: #c4c6c9;
} }
.u-primary { .u-primary {
color: #3c9cff; color: #3c9cff;
} }
.u-warning { .u-warning {
color: #f9ae3d; color: #f9ae3d;
} }
.u-success { .u-success {
color: #5ac725; color: #5ac725;
} }
.u-error { .u-error {
color: #f56c6c; color: #f56c6c;
} }
.u-info { .u-info {
color: #909399; color: #909399;
} }
.u-primary-bg { .u-primary-bg {
background-color: #3c9cff; background-color: #3c9cff;
} }
.u-warning-bg { .u-warning-bg {
background-color: #f9ae3d; background-color: #f9ae3d;
} }
.u-success-bg { .u-success-bg {
background-color: #5ac725; background-color: #5ac725;
} }
.u-error-bg { .u-error-bg {
background-color: #f56c6c; background-color: #f56c6c;
} }
.u-info-bg { .u-info-bg {
background-color: #909399; background-color: #909399;
} }
.u-main-color { .u-main-color {
color: #303133; color: #303133;
} }
.u-content-color { .u-content-color {
color: #606266; color: #606266;
} }
.u-tips-color { .u-tips-color {
color: #909193; color: #909193;
} }
.u-light-color { .u-light-color {
color: #c0c4cc; color: #c0c4cc;
} }
.u-safe-area-inset-top { .u-safe-area-inset-top {
padding-top: 0; padding-top: 0;
padding-top: constant(safe-area-inset-top); padding-top: constant(safe-area-inset-top);
padding-top: env(safe-area-inset-top); padding-top: env(safe-area-inset-top);
} }
.u-safe-area-inset-right { .u-safe-area-inset-right {
padding-right: 0; padding-right: 0;
padding-right: constant(safe-area-inset-right); padding-right: constant(safe-area-inset-right);
padding-right: env(safe-area-inset-right); padding-right: env(safe-area-inset-right);
} }
.u-safe-area-inset-bottom { .u-safe-area-inset-bottom {
padding-bottom: 0; padding-bottom: 0;
padding-bottom: constant(safe-area-inset-bottom); padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom); padding-bottom: env(safe-area-inset-bottom);
} }
.u-safe-area-inset-left { .u-safe-area-inset-left {
padding-left: 0; padding-left: 0;
padding-left: constant(safe-area-inset-left); padding-left: constant(safe-area-inset-left);
padding-left: env(safe-area-inset-left); padding-left: env(safe-area-inset-left);
} }
::-webkit-scrollbar { ::-webkit-scrollbar {
display: none; display: none;
width: 0 !important; width: 0 !important;
height: 0 !important; height: 0 !important;
-webkit-appearance: none; -webkit-appearance: none;
background: transparent; background: transparent;
} }

View File

@ -21730,7 +21730,94 @@ exports.default = _default;
/* 657 */, /* 657 */,
/* 658 */, /* 658 */,
/* 659 */, /* 659 */,
/* 660 */, /* 660 */
/*!************************************************************************************!*\
!*** D:/project/uniapp-ZHSQ/uni_modules/uview-ui/components/u-notice-bar/props.js ***!
\************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _default = {
props: {
// 显示的内容,数组
text: {
type: [Array, String],
default: uni.$u.props.noticeBar.text
},
// 通告滚动模式row-横向滚动column-竖向滚动
direction: {
type: String,
default: uni.$u.props.noticeBar.direction
},
// direction = row时是否使用步进形式滚动
step: {
type: Boolean,
default: uni.$u.props.noticeBar.step
},
// 是否显示左侧的音量图标
icon: {
type: String,
default: uni.$u.props.noticeBar.icon
},
// 通告模式link-显示右箭头closable-显示右侧关闭图标
mode: {
type: String,
default: uni.$u.props.noticeBar.mode
},
// 文字颜色,各图标也会使用文字颜色
color: {
type: String,
default: uni.$u.props.noticeBar.color
},
// 背景颜色
bgColor: {
type: String,
default: uni.$u.props.noticeBar.bgColor
},
// 水平滚动时的滚动速度即每秒滚动多少px(px),这有利于控制文字无论多少时,都能有一个恒定的速度
speed: {
type: [String, Number],
default: uni.$u.props.noticeBar.speed
},
// 字体大小
fontSize: {
type: [String, Number],
default: uni.$u.props.noticeBar.fontSize
},
// 滚动一个周期的时间长单位ms
duration: {
type: [String, Number],
default: uni.$u.props.noticeBar.duration
},
// 是否禁止用手滑动切换
// 目前HX2.6.11只支持App 2.5.5+、H5 2.5.5+、支付宝小程序、字节跳动小程序
disableTouch: {
type: Boolean,
default: uni.$u.props.noticeBar.disableTouch
},
// 跳转的页面路径
url: {
type: String,
default: uni.$u.props.noticeBar.url
},
// 页面跳转的类型
linkType: {
type: String,
default: uni.$u.props.noticeBar.linkType
}
}
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
/***/ }),
/* 661 */, /* 661 */,
/* 662 */, /* 662 */,
/* 663 */, /* 663 */,
@ -21842,7 +21929,143 @@ exports.default = _default;
/* 673 */, /* 673 */,
/* 674 */, /* 674 */,
/* 675 */, /* 675 */,
/* 676 */, /* 676 */
/*!**********************************************************************************!*\
!*** D:/project/uniapp-ZHSQ/uni_modules/uview-ui/components/u-textarea/props.js ***!
\**********************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _default = {
props: {
// 输入框的内容
value: {
type: [String, Number],
default: uni.$u.props.textarea.value
},
// 输入框为空时占位符
placeholder: {
type: [String, Number],
default: uni.$u.props.textarea.placeholder
},
// 指定placeholder的样式类注意页面或组件的style中写了scoped时需要在类名前写/deep/
placeholderClass: {
type: String,
default: uni.$u.props.input.placeholderClass
},
// 指定placeholder的样式
placeholderStyle: {
type: [String, Object],
default: uni.$u.props.input.placeholderStyle
},
// 输入框高度
height: {
type: [String, Number],
default: uni.$u.props.textarea.height
},
// 设置键盘右下角按钮的文字仅微信小程序App-vue和H5有效
confirmType: {
type: String,
default: uni.$u.props.textarea.confirmType
},
// 是否禁用
disabled: {
type: Boolean,
default: uni.$u.props.textarea.disabled
},
// 是否显示统计字数
count: {
type: Boolean,
default: uni.$u.props.textarea.count
},
// 是否自动获取焦点nvue不支持H5取决于浏览器的实现
focus: {
type: Boolean,
default: uni.$u.props.textarea.focus
},
// 是否自动增加高度
autoHeight: {
type: Boolean,
default: uni.$u.props.textarea.autoHeight
},
// 如果textarea是在一个position:fixed的区域需要显示指定属性fixed为true
fixed: {
type: Boolean,
default: uni.$u.props.textarea.fixed
},
// 指定光标与键盘的距离
cursorSpacing: {
type: Number,
default: uni.$u.props.textarea.cursorSpacing
},
// 指定focus时的光标位置
cursor: {
type: [String, Number],
default: uni.$u.props.textarea.cursor
},
// 是否显示键盘上方带有”完成“按钮那一栏,
showConfirmBar: {
type: Boolean,
default: uni.$u.props.textarea.showConfirmBar
},
// 光标起始位置自动聚焦时有效需与selection-end搭配使用
selectionStart: {
type: Number,
default: uni.$u.props.textarea.selectionStart
},
// 光标结束位置自动聚焦时有效需与selection-start搭配使用
selectionEnd: {
type: Number,
default: uni.$u.props.textarea.selectionEnd
},
// 键盘弹起时,是否自动上推页面
adjustPosition: {
type: Boolean,
default: uni.$u.props.textarea.adjustPosition
},
// 是否去掉 iOS 下的默认内边距,只微信小程序有效
disableDefaultPadding: {
type: Boolean,
default: uni.$u.props.textarea.disableDefaultPadding
},
// focus时点击页面的时候不收起键盘只微信小程序有效
holdKeyboard: {
type: Boolean,
default: uni.$u.props.textarea.holdKeyboard
},
// 最大输入长度,设置为 -1 的时候不限制最大长度
maxlength: {
type: [String, Number],
default: uni.$u.props.textarea.maxlength
},
// 边框类型surround-四周边框bottom-底部边框
border: {
type: String,
default: uni.$u.props.textarea.border
},
// 用于处理或者过滤输入框内容的方法
formatter: {
type: [Function, null],
default: uni.$u.props.textarea.formatter
},
// 是否忽略组件内对文本合成系统事件的处理
ignoreCompositionEvent: {
type: Boolean,
default: true
}
}
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
/***/ }),
/* 677 */, /* 677 */,
/* 678 */, /* 678 */,
/* 679 */, /* 679 */,
@ -23095,7 +23318,79 @@ exports.default = _default;
/* 746 */, /* 746 */,
/* 747 */, /* 747 */,
/* 748 */, /* 748 */,
/* 749 */, /* 749 */
/*!***************************************************************************************!*\
!*** D:/project/uniapp-ZHSQ/uni_modules/uview-ui/components/u-column-notice/props.js ***!
\***************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _default = {
props: {
// 显示的内容,字符串
text: {
type: [Array],
default: uni.$u.props.columnNotice.text
},
// 是否显示左侧的音量图标
icon: {
type: String,
default: uni.$u.props.columnNotice.icon
},
// 通告模式link-显示右箭头closable-显示右侧关闭图标
mode: {
type: String,
default: uni.$u.props.columnNotice.mode
},
// 文字颜色,各图标也会使用文字颜色
color: {
type: String,
default: uni.$u.props.columnNotice.color
},
// 背景颜色
bgColor: {
type: String,
default: uni.$u.props.columnNotice.bgColor
},
// 字体大小单位px
fontSize: {
type: [String, Number],
default: uni.$u.props.columnNotice.fontSize
},
// 水平滚动时的滚动速度即每秒滚动多少px(px),这有利于控制文字无论多少时,都能有一个恒定的速度
speed: {
type: [String, Number],
default: uni.$u.props.columnNotice.speed
},
// direction = row时是否使用步进形式滚动
step: {
type: Boolean,
default: uni.$u.props.columnNotice.step
},
// 滚动一个周期的时间长单位ms
duration: {
type: [String, Number],
default: uni.$u.props.columnNotice.duration
},
// 是否禁止用手滑动切换
// 目前HX2.6.11只支持App 2.5.5+、H5 2.5.5+、支付宝小程序、字节跳动小程序
disableTouch: {
type: Boolean,
default: uni.$u.props.columnNotice.disableTouch
}
}
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
/***/ }),
/* 750 */, /* 750 */,
/* 751 */, /* 751 */,
/* 752 */, /* 752 */,
@ -23103,7 +23398,63 @@ exports.default = _default;
/* 754 */, /* 754 */,
/* 755 */, /* 755 */,
/* 756 */, /* 756 */,
/* 757 */, /* 757 */
/*!************************************************************************************!*\
!*** D:/project/uniapp-ZHSQ/uni_modules/uview-ui/components/u-row-notice/props.js ***!
\************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _default = {
props: {
// 显示的内容,字符串
text: {
type: String,
default: uni.$u.props.rowNotice.text
},
// 是否显示左侧的音量图标
icon: {
type: String,
default: uni.$u.props.rowNotice.icon
},
// 通告模式link-显示右箭头closable-显示右侧关闭图标
mode: {
type: String,
default: uni.$u.props.rowNotice.mode
},
// 文字颜色,各图标也会使用文字颜色
color: {
type: String,
default: uni.$u.props.rowNotice.color
},
// 背景颜色
bgColor: {
type: String,
default: uni.$u.props.rowNotice.bgColor
},
// 字体大小单位px
fontSize: {
type: [String, Number],
default: uni.$u.props.rowNotice.fontSize
},
// 水平滚动时的滚动速度即每秒滚动多少px(rpx),这有利于控制文字无论多少时,都能有一个恒定的速度
speed: {
type: [String, Number],
default: uni.$u.props.rowNotice.speed
}
}
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
/***/ }),
/* 758 */, /* 758 */,
/* 759 */, /* 759 */,
/* 760 */, /* 760 */,

View File

@ -1,4 +1,3 @@
<<<<<<< HEAD
{ {
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
"projectname": "uniapp-ZHSQ", "projectname": "uniapp-ZHSQ",
@ -18,12 +17,4 @@
] ]
} }
} }
=======
{
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
"projectname": "uniapp-ZHSQ",
"setting": {
"compileHotReLoad": true
}
>>>>>>> 121f7dc398a1c6254ecb995a9ed19a1617ed422c
} }

View File

@ -1,80 +1,80 @@
@charset "UTF-8"; @charset "UTF-8";
/** /**
* 这里是uni-app内置的常用样式变量 * 这里是uni-app内置的常用样式变量
* *
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量 * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
* *
*/ */
/** /**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能 * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
* *
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/ */
/* 颜色变量 */ /* 颜色变量 */
/* 行为相关颜色 */ /* 行为相关颜色 */
/* 文字基本颜色 */ /* 文字基本颜色 */
/* 背景颜色 */ /* 背景颜色 */
/* 边框颜色 */ /* 边框颜色 */
/* 尺寸变量 */ /* 尺寸变量 */
/* 文字尺寸 */ /* 文字尺寸 */
/* 图片尺寸 */ /* 图片尺寸 */
/* Border Radius */ /* Border Radius */
/* 水平间距 */ /* 水平间距 */
/* 垂直间距 */ /* 垂直间距 */
/* 透明度 */ /* 透明度 */
/* 文章场景相关 */ /* 文章场景相关 */
@font-face { @font-face {
font-family: 'uicon-iconfont'; font-family: 'uicon-iconfont';
src: url("https://at.alicdn.com/t/font_2225171_8kdcwk4po24.ttf") format("truetype"); src: url("https://at.alicdn.com/t/font_2225171_8kdcwk4po24.ttf") format("truetype");
} }
.u-icon.data-v-2ee87dc9 { .u-icon.data-v-2ee87dc9 {
display: flex; display: flex;
align-items: center; align-items: center;
} }
.u-icon--left.data-v-2ee87dc9 { .u-icon--left.data-v-2ee87dc9 {
flex-direction: row-reverse; flex-direction: row-reverse;
align-items: center; align-items: center;
} }
.u-icon--right.data-v-2ee87dc9 { .u-icon--right.data-v-2ee87dc9 {
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
} }
.u-icon--top.data-v-2ee87dc9 { .u-icon--top.data-v-2ee87dc9 {
flex-direction: column-reverse; flex-direction: column-reverse;
justify-content: center; justify-content: center;
} }
.u-icon--bottom.data-v-2ee87dc9 { .u-icon--bottom.data-v-2ee87dc9 {
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
} }
.u-icon__icon.data-v-2ee87dc9 { .u-icon__icon.data-v-2ee87dc9 {
font-family: uicon-iconfont; font-family: uicon-iconfont;
position: relative; position: relative;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
} }
.u-icon__icon--primary.data-v-2ee87dc9 { .u-icon__icon--primary.data-v-2ee87dc9 {
color: #3c9cff; color: #3c9cff;
} }
.u-icon__icon--success.data-v-2ee87dc9 { .u-icon__icon--success.data-v-2ee87dc9 {
color: #5ac725; color: #5ac725;
} }
.u-icon__icon--error.data-v-2ee87dc9 { .u-icon__icon--error.data-v-2ee87dc9 {
color: #f56c6c; color: #f56c6c;
} }
.u-icon__icon--warning.data-v-2ee87dc9 { .u-icon__icon--warning.data-v-2ee87dc9 {
color: #f9ae3d; color: #f9ae3d;
} }
.u-icon__icon--info.data-v-2ee87dc9 { .u-icon__icon--info.data-v-2ee87dc9 {
color: #909399; color: #909399;
} }
.u-icon__img.data-v-2ee87dc9 { .u-icon__img.data-v-2ee87dc9 {
height: auto; height: auto;
will-change: transform; will-change: transform;
} }
.u-icon__label.data-v-2ee87dc9 { .u-icon__label.data-v-2ee87dc9 {
line-height: 1; line-height: 1;
} }