fix: 合并master

This commit is contained in:
mayubo@gmail.com 2025-06-16 15:42:33 +08:00
commit 5c1458d5b8
32 changed files with 5026 additions and 3338 deletions

View File

@ -1,88 +0,0 @@
.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

@ -1,119 +0,0 @@
<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,85 +1,101 @@
.title { page {
font-weight: bold; background-color: #FFFFFF;
font-size: 28rpx; min-height: calc(100vh - 120rpx);
color: #222222; }
margin-top: 30rpx;
margin-left: 20rpx; .container_body {
} height: 100%;
}
.item {
margin: 0 50rpx; .container {
height: 90rpx; height: 100%;
border-bottom: 1rpx solid #E6E6E6; }
display: flex;
align-items: center; .title {
justify-content: space-between; font-weight: bold;
} font-size: 28rpx;
color: #222222;
.left { margin-top: 30rpx;
display: flex; margin-left: 20rpx;
} }
.left_pic {
width: 30rpx;
height: 30rpx; .right_pic {
margin-right: 20rpx; width: 40rpx;
} height: 40rpx;
}
.item_desc {
font-weight: 400; .line {
font-size: 26rpx; height: 20rpx;
color: #999999; background: #F9F9F9;
} }
.right_input { .tips {
flex: 1; font-size: 26rpx;
text-align: right; color: #999999;
} margin: 0 80rpx;
}
.right_pic {
width: 40rpx;
height: 40rpx; .desc {
} font-weight: 400;
font-size: 24rpx;
.line { color: #999999;
height: 20rpx; margin-top: 24rpx;
background: #F9F9F9;
} }
.tips { .desc:last-child {
padding: 30rpx 0 0 20rpx margin-top: 20rpx;
} }
.tip { .btn {
display: inline-block; height: 80rpx;
font-weight: 400; line-height: 80rpx;
font-size: 26rpx; margin: 80rpx 50rpx 0;
color: #FFFFFF; font-weight: 400;
background: #FF512A; font-size: 36rpx;
border-radius: 100rpx 100rpx 100rpx 100rpx; color: #FFFFFF;
padding: 4rpx 14rpx; background: #FF512A;
} border-radius: 100rpx 100rpx 100rpx 100rpx;
text-align: center;
.desc { }
font-weight: 400;
font-size: 24rpx;
color: #999999; image {
margin-top: 24rpx; width: 100%;
height: 100%;
} object-fit: cover;
}
.desc:last-child {
margin-top: 20rpx; .userAva {
} width: 180rpx;
height: 180rpx;
.btn { border-radius: 50%;
height: 80rpx; overflow: hidden;
line-height: 80rpx; margin: 0 auto;
margin: 80rpx 50rpx 0; margin-top: 12rpx;
font-weight: 400; }
font-size: 36rpx;
color: #FFFFFF; .Name {
background: #FF512A; font-size: 40rpx;
border-radius: 100rpx 100rpx 100rpx 100rpx; color: #000000;
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,236 +1,112 @@
<template> <template>
<view class="container_body"> <view class="container_body">
<view class="container"> <view class="container">
<view class="header">
<view class="title">请填写基本信息</view> <div class="userAva">
<view class="item"> <image src="http://192.168.0.172:5500/com_MsgImg1.png" alt="" mode="aspectFill" />
<view class="left"> </div>
<image class="left_pic" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/apply_icon1.png" mode="heightFix"/> <div class="Name">MarrekoZhang</div>
<view class="item_desc">入驻小区</view>
</view> <view class="item">
<input :value="communityName" class="right_input" disabled type="text" placeholder="请输入入驻小区名称"/> <view class="label">
</view> <view class="item_desc">房产</view>
</view>
<view class="item">
<view class="left"> <input :value="communityName" @click="chooseMsg" class="right_input" disabled type="text" placeholder="请选择您要入驻的房产" />
<image class="left_pic" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/apply_icon2.png" mode="heightFix"/> </view>
<view class="item_desc">楼宇号</view>
</view>
<input class="right_input" :value="FacName" disabled type="text" placeholder="请选择楼宇号" @click.stop="choose" data-type="1"/> <view class="item">
</view> <view class="label">
<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_icon3.png" mode="heightFix"/> <input :value="communityName" class="right_input" type="text" placeholder="请输入您的姓名" />
<view class="item_desc">房间号</view> </view>
</view>
<input class="right_input" :value="RoomName" disabled type="text" placeholder="请选择房间" @click.stop="choose" data-type="2"/> <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_icon4.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" placeholder="请选择入驻类型" @click="changeShow" disabled :value="typeName"/>
</view> <view class="item">
<view class="item"> <view class="label">
<view class="left"> <view class="item_desc">身份</view>
<image class="left_pic" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/apply_icon5.png" mode="heightFix"/> </view>
<view class="item_desc">您的姓名</view>
</view> <input :value="communityName" class="right_input" type="text" placeholder="请输入您的身份" />
<input class="right_input" type="text" :value="name" data-name='name' @input="headerInputChange" placeholder="请输入您的姓名"/> </view>
</view>
<view class="item"> <view class="tips ">
<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>
<input class="right_input" type="number" maxlength="11" :value="phone" data-name='phone' @input="headerInputChange" placeholder="请输入您的手机号"/> <view class="btn" @click="submit">确定</view>
</view> </view>
<view class="line"></view>
<view class="tips "> <u-picker :show="show" :columns="columns" keyName="text" @confirm='confirm' @close='onClose' @cancel='onClose'
<view class="tip">小提示</view> closeOnClickOverlay></u-picker>
<view class="desc">请您一定要认真填写相关信息</view> </view>
<view class="desc">若查无房屋号请联系物业运营人员添加</view> </template>
</view>
<view class="btn" @click="submit">提交申请</view> <script>
</view> import { request, picUrl, NavgateTo } from '../../../utils';
</view> import { apiArr } from '../../../api/community';
export default {
<u-picker :show="show" :columns="columns" keyName="text" @confirm='confirm' @close='onClose' @cancel='onClose' closeOnClickOverlay ></u-picker> data() {
</view> return {
</template>
show: false, //
<script> columns: [
import { request, picUrl, NavgateTo } from '../../../utils'; [
import { apiArr } from '../../../api/community'; { text: "业主", type: 1 },
export default { { text: "家属", type: 2 },
data() { { text: "租户", type: 3 },
return { { text: "访客", type: 4 },
show:false, // ]
]
FacName:"", }
FacId:"", },
RoomName:"", methods: {
RoomId:"", changeShow() {
this.show = !this.show;
communityName:"", },
communityId:"",
name:"", onClose() {
phone:"", this.show = false;
type:"",// 访 },
typeName:"",// 访
room_id:"", confirm(e) {
console.log('eee', e);
columns:[ this.typeName = e.value[0].text;
[ this.type = e.value[0].type;
{text:"业主",type:1}, this.show = false;
{text:"家属",type:2}, },
{text:"租户",type:3},
{text:"访客",type:4},
] chooseMsg(){
] uni.navigateTo({
} url:"../chooseMsg/index"
}, })
methods: { },
choose(e){ },
console.log('eee' ,e);
const { type } = e.currentTarget.dataset; onLoad(options) {
if(type == '1'){ },
NavgateTo(`/packages/community/chooseMsg/index?type=${type}&id=${this.communityId}`);
}else{ onShow() {
if(this.FacId){
NavgateTo(`/packages/community/chooseMsg/index?type=${type}&id=${this.communityId}&FacId=${this.FacId}`); },
}
}else{ </script>
uni.showToast({
title: '请先选择楼宇号', <style>
icon:"none" @import url("./index.css");
}) </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,17 +1,88 @@
.title { image {
font-weight: bold; width: 100%;
font-size: 28rpx; height: 100%;
color: #222222; }
margin-top: 30rpx;
margin-left: 20rpx; .searchBox {
} width: 710rpx;
height: 70rpx;
.item { background: #F6F6FA;
margin: 0 50rpx; border-radius: 100rpx 100rpx 100rpx 100rpx;
height: 90rpx; margin: 0 auto;
border-bottom: 1rpx solid #E6E6E6; margin-top: 30rpx;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; padding: 0 30rpx;
} }
.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,125 +1,65 @@
<template> <template>
<view class="container"> <view class="container">
<view class="header" v-if="type == '1'"> <div class="searchBox">
<view class="title">社区楼宇信息</view> <img src="http://192.168.0.172:5500/com_communitySearchIcon.png" alt="" />
<view class="item" v-for="(item, index) in facList" :key="index" :data-id="item.facility_id" :data-name="item.name" @click="chooseFac"> <input placeholder="请输入小区名称" type="text">
<view class="left"> </div>
{{item.name}}
</view> <div class="communityList">
</view> <div class="communityItem" v-for="item in 5" @click="chooseCommunityInfo">
</view> <div class="communityItem_img">
<img src="http://192.168.0.172:5500/com_act2Img.png" alt="" />
</div>
<view class="header" v-if="type == '2'">
<view class="title">房间列表</view> <div class="communityItem_msg">
<view class="item" v-for="(item, index ) in RoomList" :key="index" :data-id="item.room_id" :data-name="item.name" @click="chooseRoom"> <div>
<view class="left"> <div class="communityItem_msg_title">岸芷汀兰(东区)</div>
{{item.name}} <div class="communityItem_msg_addr">
<!-- {{item.location}} --> 河北省衡水市桃城区红旗大街与河
</view> 阳路交叉口西北300米东车辆入口
</view> </div>
</view> </div>
</view>
</template> <div class="communityItem_msg_more">
<img src="http://192.168.0.172:5500/com_communityMore.png" alt="" />
<script> </div>
import { request } from '../../../utils';
import { apiArr } from '../../../api/community'; </div>
export default { </div>
data() { </div>
return { <div class="addBtn">新建小区</div>
type:"",
communityId:"", </view>
facList:[], </template>
flag:false, <script>
page_num:1, import { request } from '../../../utils';
page_size:10, import { apiArr } from '../../../api/community';
RoomList:[], export default {
FacId:"", data() {
} return {
},
methods: { }
async getFacList(id){ },
const res = await request(apiArr.getFacilityList, 'POST', { methods: {
community_id:Number(id) chooseCommunityInfo() {
}); uni.navigateTo({
console.log('12313131', res); url: '../chooseMsgInfo/index'
this.facList = res?.rows || []; });
}, }
async getRoomList(id, facId){ },
const res = await request(apiArr.getRoomList, "POST", {
facility_id: Number(facId), onLoad(options) {
community_id: Number(id),
page_num: this.page_num, },
page_size: this.page_size
}) onReachBottom() {
console.log('getRoomList res', res);
},
if(res?.rows){ }
let flag = false </script>
if(res.rows.length == this.page_size){
flag = true <style>
}else{ @import url("./index.css");
flag = false </style>
}
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

@ -0,0 +1,278 @@
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

@ -0,0 +1,337 @@
<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,87 +1,777 @@
.banner { page {
width: 710rpx; background-color: #F6F6FA;
height: 300rpx; }
border-radius: 0rpx 0rpx 0rpx 0rpx;
margin: 30rpx auto 0; .container {
} display: flex;
flex-direction: column;
.banner_item { min-height: calc(100vh - 120rpx);
width: 710rpx; width: 100%;
height: 300rpx; }
}
.nav { .searchBox {
margin: 48rpx 20rpx 0; display: flex;
} align-items: center;
padding: 0 20rpx;
.sub_nav { /* margin-top: 35rpx; */
display: flex; justify-content: space-between;
flex-wrap: wrap; background-color: #fff;
margin: 30rpx 20rpx 0; }
justify-content: right;
.searchBox_add {
} display: flex;
align-items: center;
.sub_nav_item { font-weight: 400;
width: 345rpx; font-size: 30rpx;
background: #FFF5E2; color: #000000;
border-radius: 30rpx 30rpx 30rpx 30rpx; }
margin-right: 15rpx;
} .searchBox_add image {
width: 30rpx;
.wy_pay { height: 30rpx;
background: #FFF4EF; margin-right: 16rpx;
margin-right: 0; }
}
.myRealEstate {
.wy_pay2 { font-weight: 700;
background: #FFFCEB; padding-top: 36rpx;
margin-right: 20rpx; font-weight: normal;
margin-top: 20rpx; font-size: 36rpx;
} color: #222222;
text-align: center;
.tel_leave { background-color: #fff;
background: #F5F5F5; padding-bottom: 22rpx;
margin-top: 20rpx; }
margin-right: 0;
}
.myRealEstate .btn {
.sub_nav_item_desc { width: 600rpx;
margin: 29rpx 0 0 39rpx; height: 90rpx;
font-weight: bold; background: linear-gradient(91deg, #FF7658 0%, #FF370B 100%);
font-size: 28rpx; border-radius: 100rpx 100rpx 100rpx 100rpx;
color: #222222; font-weight: normal;
} font-size: 36rpx;
color: #FFFFFF;
.sub_nav_item_right { font-weight: 700;
display: flex; display: flex;
justify-content: flex-end; align-items: center;
} justify-content: center;
margin: 0 auto;
.sub_nav_item_pic { margin-top: 30rpx;
width: 90rpx; }
height: 90rpx;
margin: 0 15rpx 19rpx 0; .nearby {
} padding: 0 20rpx;
margin-top: 20rpx;
.line { background-color: #fff;
height: 20rpx; padding-top: 20rpx;
background: #F9F9F9; box-sizing: border-box;
border-radius: 0rpx 0rpx 0rpx 0rpx; flex: 1;
} }
.main { .nearbyTit {
margin: 30rpx 20rpx 0; display: flex;
} justify-content: space-between;
.grid_Pic { }
width: 54rpx;
height: 46rpx; .nearbyTit_left {
margin-bottom: 20rpx; font-size: 36rpx;
} color: #222222;
font-weight: 700;
.uicon-volume { }
font-size: 28rpx !important;
} .nearbyTit_right {
.u-grid-item { font-size: 26rpx;
margin-bottom: 43rpx; 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;
}
.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,248 +1,360 @@
<template> <template>
<view class="container"> <view class="container">
<u-notice-bar v-if="tipsList.length !== 0" :text="tipsList[0].title" :fontSize='28' @click="headerTipsClick" /> <view class="searchBox" :style="{ height: localHeight + 'px', paddingTop: top + 'px' }">
<view class="searchBox_add">
<view v-if="info.swiperList && info.swiperList.length !== 0"> <img src="http://192.168.0.172:5500/com_communityIcon.png" alt="" />
<swiper class="banner" indicator-dots autoplay circular> 我的房产
<swiper-item v-for="(item, index) in info.swiperList" :key="index"> </view>
<image class="banner_item" :src="item" mode="aspectFill" /> </view>
</swiper-item>
</swiper> <div class="myRealEstate">
</view> <div class="myRealEstates">
<view class="nav"> <image src="http://192.168.0.172:5500/com_communityNav.png" mode="aspectFill"></image>
<u-grid col="4" :border="false"> <div class="name">滏阳锦苑</div>
<u-grid-item <div class="Visitor">访客身份 点击立即入驻本社区</div>
v-for="(item, index) in navList" </div>
@click="headerNavClick(item)"
:key="index"
> <div class="Announcement">
<image class="grid_Pic" :src="item.pic" mode=""></image> <image src="http://192.168.0.172:5500/com_Announcement.png" mode="aspectFill"></image>
<text>{{item.desc}}</text> <div class="line"></div>
</u-grid-item> <div class="msg" @click="notice">
</u-grid> <div>asdasdasd</div>
</view> <image src="http://192.168.0.172:5500/com_more.png" mode="aspectFill"></image>
<view class="line"></view> </div>
</div>
<view class="sub_nav"> </div>
<view class="sub_nav_item" @click="repair">
<view class="sub_nav_item_desc">报事保修</view> <div class="navList">
<view class="sub_nav_item_right"> <div class="navItem">
<image class="sub_nav_item_pic" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group%203022.png" mode=""/> <image src="http://192.168.0.172:5500/com_NavIcon1.png" mode="aspectFill"></image>
</view> 物业服务
</view> </div>
<view class="sub_nav_item wy_pay" @click="NotOpen">
<view class="sub_nav_item_desc">物业缴费</view> <div class="navItem" @click="repair">
<view class="sub_nav_item_right"> <image src="http://192.168.0.172:5500/com_NavIcon2.png" mode="aspectFill"></image>
<image class="sub_nav_item_pic" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_366.png" mode=""/> 在线报修
</view> </div>
</view>
<div class="navItem">
<view class="sub_nav_item wy_pay2" @click="ReparirList"> <image src="http://192.168.0.172:5500/com_NavIcon3.png" mode="aspectFill"></image>
<view class="sub_nav_item_desc">报修列表</view> 物业缴费
<view class="sub_nav_item_right"> </div>
<image class="sub_nav_item_pic" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/indexSubcontract/_assets/Repairwithone.png" mode=""/>
</view> <div class="navItem">
</view> <image src="http://192.168.0.172:5500/com_NavIcon4.png" mode="aspectFill"></image>
物业公积
<view v-if="!isJoin" class="sub_nav_item tel_leave" @click="NotOpen"> </div>
<view class="sub_nav_item_desc">手机通行</view>
<view class="sub_nav_item_right"> <div class="navItem">
<image class="sub_nav_item_pic" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_302.png" mode=""/> <image src="http://192.168.0.172:5500/com_NavIcon5.png" mode="aspectFill"></image>
</view> 社区管家
</view> </div>
<div class="navItem" @click="mores">
</view> <image src="http://192.168.0.172:5500/com_NavIconMore.png" mode="aspectFill"></image>
</view> 更多
</template> </div>
</div>
<script>
import { request, picUrl, NavgateTo } from '../../../utils'; <div class="tabList">
import { apiArr } from '../../../api/community'; <div class="tabItem tabItem1">
门禁通行
export default { </div>
data () { <div class="tabItem tabItem2">
return { 人人爱净水
pageTitle: '', </div>
id: '', // id <div class="tabItem tabItem3">
navList: [ 馒头领取
{ </div>
pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_345.png', </div>
url: '/packages/community/applyOwer/index',
desc: '申请业主' <div class="nearbyTit">
}, <div>周边补贴公积金商家</div>
{
pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_346.png', <div class="more">更多>>></div>
desc: '我的车辆' </div>
},
{
pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_348.png', <div class="nearbyList">
desc: '社区活动' <div class="emptys" v-if="false">
}, <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',
desc: '呼叫管家' <div class="emptysBtn">
}, 商户申请入驻
{ </div>
pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_350.png', </div>
desc: '访客登记'
}, <div class="nearbyList_left">
{ <div class="nearbyList_leftItem">
pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_351.png', <image src="http://192.168.0.172:5500/com_nearbyImg1.png" mode="aspectFill"></image>
desc: '便民信息' </div>
}, <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_352.png', </div>
desc: '物业缴费' </div>
}, <div class="nearbyList_right">
{ <div class="nearbyList_rightItem">
pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_356.png', <image src="http://192.168.0.172:5500/com_nearbyImg2.png" mode="aspectFill"></image>
desc: '便捷挪车' </div>
}, <div class="nearbyList_rightItem">
], <image src="http://192.168.0.172:5500/com_nearbyImg2.png" mode="aspectFill"></image>
mainList: [ </div>
{ <div class="nearbyList_rightItem">
pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_349.png', <image src="http://192.168.0.172:5500/com_nearbyImg2.png" mode="aspectFill"></image>
desc: '报事报修', </div>
url:"/community/oneRepair/index" </div>
}, </div>
{
pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_350.png',
desc: '访客登记' <div class="tabCard">
}, <div @click="changeTab" data-active="0" :class="active == 0 ? 'active tabCardItem' : 'tabCardItem'">社区互动
{ </div>
pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_351.png', <div @click="changeTab" data-active="1" :class="active == 1 ? 'active tabCardItem' : 'tabCardItem'">社区团购
desc: '便民信息' </div>
}, <div @click="changeTab" data-active="2" :class="active == 2 ? 'active tabCardItem' : 'tabCardItem'">上门服务
{ </div>
pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_352.png', <div @click="changeTab" data-active="3" :class="active == 3 ? 'active tabCardItem' : 'tabCardItem'">本地优选
desc: '物业缴费' </div>
}, </div>
{
pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_353.png', <div class="MsgList">
desc: '生活缴费'
},
{ <div v-if="active == 0" class="act1">
pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_354.png', <div class="empty" >
desc: '社区投票' <image src="http://192.168.0.172:5500/com_empty.png" mode="aspectFill"></image>
}, 暂无信息
{
pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_355.png', <div class="emptyAdd">发布社区互动信息</div>
desc: '租售信息' </div>
},
{ <div class="MsgList_left" v-if="false">
pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_356.png', <div class="MsgList_leftItem">
desc: '便捷挪车' <div class="MsgList_leftItemImg">
}, <image src="http://192.168.0.172:5500/com_MsgImg1.png" mode="widthFix"></image>
{ </div>
pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_357.png', <div class="MsgList_leftItemName">我家的小猫丢了谁看见了请联系我~</div>
desc: '一键报警' <div class="MsgList_leftItemMsg">
}, <div class="MsgList_leftItemMsg_like">
{ <image src="http://192.168.0.172:5500/com_likeIcon.png" mode="aspectFill"></image>
pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_358.png', 134
desc: '更多服务' </div>
}, <div class="MsgList_leftItemMsg_like">
], <image src="http://192.168.0.172:5500/com_comIcon.png" mode="aspectFill"></image>
info: {}, 134
tipsList: [], </div>
isJoin: false, // <div class="MsgList_leftItemMsg_like">
} <image src="http://192.168.0.172:5500/com_shareIcon.png" mode="aspectFill"></image>
}, 134
onLoad (options) { </div>
this.pageTitle = options.title; </div>
this.id = Number(options.id); </div>
this.init(options.id);
}, </div>
<div class="MsgList_right" v-if="false">
methods: { <div class="MsgList_rightItem">
async getInfo (id) { <div class="MsgList_rightItemImg">
const res = await request(apiArr.info, "POST", { <image src="http://192.168.0.172:5500/com_MsgImg2.png" mode="widthFix"></image>
community_id: Number(id) </div>
}, { silent: false });
return res; <div class="MsgList_rightItemName">
}, 这几天准备去春游小区有人一起去么
</div>
async getIsJoin (id) {
const res = await request(apiArr.isJoin, "POST", { <div class="MsgList_leftItemMsg">
community_id: Number(id) <div class="MsgList_leftItemMsg_like">
}, { silent: false }); <image src="http://192.168.0.172:5500/com_likeIcon.png" mode="aspectFill"></image>
return res; 134
}, </div>
<div class="MsgList_leftItemMsg_like">
async init(id) { <image src="http://192.168.0.172:5500/com_comIcon.png" mode="aspectFill"></image>
uni.showLoading({ 134
title: '加载中', </div>
mask: true <div class="MsgList_leftItemMsg_like">
}) <image src="http://192.168.0.172:5500/com_shareIcon.png" mode="aspectFill"></image>
const [res, isJoinRes] = await Promise.all([ 134
this.getInfo(id), </div>
this.getIsJoin(id), </div>
]) </div>
const newInfo = {
...res, <div class="MsgList_rightItem">
swiperList: res?.swiper_img ? res?.swiper_img.split(',').map((item) => picUrl+item): [],
} <div class="MsgList_rightItemName">
console.log('newInfo', newInfo); 这几天准备去春游小区有人一起去么
let navList = this.navList </div>
navList[0].url = `/packages/community/applyOwer/index?id=${Number(id)}&title=${res.name}`;
navList[1].url = `/packages/community/mycar/index?id=${Number(id)}&title=${res.name}`; <div class="MsgList_leftItemMsg">
this.info = newInfo; <div class="MsgList_leftItemMsg_like">
this.navList = navList; <image src="http://192.168.0.172:5500/com_likeIcon.png" mode="aspectFill"></image>
this.isJoin = isJoinRes.is_join; 134
uni.hideLoading(); </div>
uni.setNavigationBarTitle({ <div class="MsgList_leftItemMsg_like">
title: newInfo.name, <image src="http://192.168.0.172:5500/com_comIcon.png" mode="aspectFill"></image>
}) 134
</div>
// <div class="MsgList_leftItemMsg_like">
const tipsRes = await request(apiArr.tipsList, 'POST', { <image src="http://192.168.0.172:5500/com_shareIcon.png" mode="aspectFill"></image>
community_id: Number(id), 134
page_num: 1, </div>
page_size: 10, </div>
}) </div>
this.tipsList = tipsRes?.rows || [] </div>
}, </div>
NotOpen() { <div v-if="active == 1" class="act2">
uni.showModal({
title: '提示', <div class="empty" >
content: '此功能暂未开通!', <image src="http://192.168.0.172:5500/com_empty.png" mode="aspectFill"></image>
showCancel: false, 暂无信息
})
return <div class="emptyAdd">发布社区互动信息</div>
}, </div>
<div class="act2Item" v-for="itme in 3">
// <div class="act2Item_left">
headerTipsClick() { <image src="http://192.168.0.172:5500/com_act2Img.png" mode="widthFix"></image>
NavgateTo(`/packages/community/notice/index?id=${this.id}&title=${this.pageTitle}`, { isLogin: false }) </div>
}, <div class="act2Item_right">
<div class="act2Item_right_Name">约1.7~2.3/ 软糯甜香新鲜水果 玉米</div>
// item <div class="act2Item_right_Msg">
headerNavClick(event) { 本社区已抢购 <span>1536</span>
const { pageTitle } = this; </div>
if(!event.url) {
this.NotOpen(); <div class="act2Item_right_Btn">
return <div class="act2Item_right_Btn_left">
} <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(){
NavgateTo(`/packages/community/oneRepair/index`) <div class="act2Item_right_Btn_right">
}, 立即抢购
</div>
ReparirList(){
NavgateTo(`/packages/community/repairList/index?id=${this.id}&title=${this.info.name}`) </div>
},
</div>
</div>
</div>
}, <div v-if="active == 2" class="act2">
}
</script> <div class="empty" >
<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

@ -1,51 +0,0 @@
<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,12 +1,322 @@
.container { page {
background: #F9F9F9; background-color: #F6F6FA;
overflow: hidden; }
}
.banner { .container {
margin: 0 20rpx; display: flex;
} flex-direction: column;
.main { min-height: calc(100vh - 120rpx);
background: #FFFFFF; width: 100%;
/* 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,186 +1,139 @@
<template> <template>
<view class="container"> <view class="container">
<search @search="headerSearch" />
<view v-if="pageType"> <view class="addRealEstateList" :style="{paddingTop: 54 + top + 'px'}">
<swiper class="banner" indicator-dots autoplay circular> <div class="addRealEstate" @click="apply">
<swiper-item v-for="(item, index) in bannerList" :key="index"> 申请入驻 / 新增房产
<image class="banner_item" :src="item.pic" mode="" /> </div>
</swiper-item> </view>
</swiper>
</view> <view class="searchBox" :style="{height: localHeight + 'px',paddingTop: top + 'px'}" v-if="false">
<view class="main"> <view class="searchBox_add">
<tabularCard <img src="http://192.168.0.172:5500/com_communityIcon.png" alt="" />
v-for="(item,index) in list" 我的房产
:key="index" </view>
:item="item" </view>
:type="pageType"
:isLast="index === list.length -1" <view class="searchBox" >
:joinType="joinType" <view class="searchBox_add2">
@chooseCommunity="chooseCommunity" 我的房产
/> </view>
</view> </view>
<nav-footer />
</view> <div class="myRealEstate">
</template> <div class="myRealEstateEmpty" v-if="false">
抱歉您尚未绑定任何房产
<script> <div class="btn" @click="apply">
import { request, picUrl, uniqueByField } from '../../../utils'; 商户申请入驻
import { apiArr } from '../../../api/community'; </div>
export default { </div>
data() {
return { <div class="myRealEstates">
pageType: 2, <image src="http://192.168.0.172:5500/com_communityNav.png" mode="aspectFill"></image>
page_num: 1, <div class="name">滏阳锦苑</div>
page_size: 10, <div class="Visitor" v-if="false">访客身份 点击立即入驻本社区</div>
list: [], <div class="Householder">
bannerList: [{ 3号楼 2单元 17 1706 | 1 | 物业公积金55.68
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>
},
{ <div class="nearby">
pic: 'https://wechat-img-file.oss-cn-beijing.aliyuncs.com/community/_assets/Group_62.png' <div class="nearbyTit">
}, <div class="nearbyTit_left">附近已开通的小区</div>
], <div class="nearbyTit_right">
blurdesc: '', // <image src="http://192.168.0.172:5500/com_searchIcon.png" alt="" mode="aspectFill" />
flag: false, 搜索
choose: true, </div>
joinType: "2" </div>
}
}, <div class="empty" v-if="false">
onLoad(options) { <image src="http://192.168.0.172:5500/com_empty.png" alt="" mode="aspectFill" />
console.log('1231', options); 暂无信息
// </div>
uni.setNavigationBarTitle({
title: options.title || '社区列表'
}) <div class="communityList">
<div class="communityItem" v-for="item in 3">
this.pageType = options?.type || ''; <div class="communityItem_Box">
this.joinType = options?.joinType || '2' <div class="communityItem_Box_left">
<image src="http://192.168.0.172:5500/test.png" alt="" mode="aspectFill" />
// types === 2 </div>
if(options?.types == 2){ <div class="communityItem_Box_right">
this.init(options?.type || ''); <div class="communityItem_Box_right_tit">滏阳锦苑</div>
}else{ <div class="communityItem_Box_right_com">物业公司河北锦绣繁华物业管理有限公司物 业管理有限公司</div>
this.getUserCommunity() <div class="communityItem_Box_right_msg">
} <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>
导航
methods: { </div>
<div class="communityItem_Box_right_msg_left2">
// <image src="http://192.168.0.172:5500/com_phoneIconIcon.png" mode="aspectFill"></image>
headerSearch(item) { 电话
console.log('1', item); </div>
let value = item.detail.__args__[0].value;
console.log('12112313221', value) </div>
this.blurdesc = value; <div class="communityItem_Box_right_msg_right" @click="desc">进入小区</div>
this.page_num = 1; </div>
this.flag = false, </div>
this.list = [], </div>
this.init(); <div class="communityItem_msg">
}, 河北省衡水市桃城区红旗大街与河阳路交叉口西北300米东车辆入口
</div>
</div>
async init(type) { </div>
console.log('12313', this);
const { </div>
list, </view>
page_num,
page_size, </template>
blurdesc
} = this; <script>
import {
let url; request,
// type picUrl,
if (type) { uniqueByField,
url = 'bianming' menuButtonInfo
} else { } from '../../../utils';
url = apiArr.list import {
} apiArr
const res = await request(url, 'POST', { } from '../../../api/community';
page_num,
page_size,
name: blurdesc || '' export default {
}); data() {
console.log('11231321', res); return {
top: "",
let flag = false; localHeight: "",
if (res?.rows && res?.rows?.length == this.page_size) { }
flag = true },
} else { onLoad(options) {
flag = false const meun = menuButtonInfo();
} this.top = meun.top;
res?.rows && res?.rows.forEach(item => { // this.top = meun.height + meun.top;
item.pic = picUrl + item.pic this.localHeight = meun.height;
}); },
console.log('变更后的', res);
this.list = list.concat(res.rows || []), methods: {
this.page_num = this.page_num + 1; desc(){
this.flag = flag; uni.navigateTo({
}, url:"../communityDetail/index"
})
async getUserCommunity() { },
const { page_num, page_size, blurdesc } = this; apply(){
let param = { uni.navigateTo({
page_num, url:"../applyOwer/index"
page_size, })
}; },
if (blurdesc !== '') { },
param = {
page_num,
page_size, }
name: blurdesc, </script>
};
} <style>
const res = await request(apiArr.getUserCommunity, 'POST', param); @import url("./index.css");
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,73 +1,385 @@
.container { page {
background: #F9F9F9; background-color: #F6F6FA;
overflow: hidden; }
}
.main { .container {
margin-top: 7rpx; display: flex;
margin-bottom: 50rpx; flex-direction: column;
background: #FFFFFF; min-height: calc(100vh - 120rpx);
} width: 100%;
}
.item {
height: 129rpx;
display: flex; .searchBox {
align-items: center; display: flex;
margin: 0 20rpx; align-items: center;
border-bottom: 1rpx solid #E6E6E6; padding: 0 20rpx;
} /* margin-top: 35rpx; */
.no_border { justify-content: space-between;
border-bottom: none; background-color: #fff;
} }
.left_pic { .searchBox_add {
width: 60rpx; display: flex;
height: 60rpx; align-items: center;
margin-right: 21rpx; font-weight: 400;
} font-size: 30rpx;
color: #000000;
.center { }
width: 428rpx;
} .searchBox_add image {
width: 30rpx;
.title { height: 30rpx;
white-space: nowrap; /* 强制文本在一行内显示 */ margin-right: 16rpx;
overflow: hidden; /* 隐藏超出容器的文本 */ }
text-overflow: ellipsis;
font-weight: 400; .myRealEstate {
font-size: 26rpx; font-weight: 700;
color: #222222; padding-top: 36rpx;
} font-weight: normal;
font-size: 36rpx;
.center_bottom { color: #222222;
margin-top: 10rpx; text-align: center;
display: flex; background-color: #fff;
justify-content: space-between; padding-bottom: 27rpx;
} }
.center_bottom_item {
display: flex; .myRealEstate .btn {
align-items: center; width: 600rpx;
} height: 90rpx;
background: linear-gradient(91deg, #FF7658 0%, #FF370B 100%);
.center_bottom_item_pic { border-radius: 100rpx 100rpx 100rpx 100rpx;
width: 24rpx; font-weight: normal;
height: 24rpx; font-size: 36rpx;
margin-right: 10rpx; color: #FFFFFF;
font-weight: 700;
} display: flex;
align-items: center;
.center_bottom_item_desc { justify-content: center;
font-weight: 400; margin: 0 auto;
font-size: 22rpx; margin-top: 30rpx;
color: #999999; }
}
.right { .nearby {
flex: 1; padding: 0 20rpx;
display: flex; margin-top: 20rpx;
justify-content: flex-end; background-color: #fff;
} padding-top: 20rpx;
.right_pic { box-sizing: border-box;
width: 12rpx; flex: 1;
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,104 +1,99 @@
<template> <template>
<view class="container"> <view class="container">
<view class="main"> <view class="searchBox" :style="{ height: localHeight + 'px', paddingTop: top + 'px' }">
<view :class="['item', index === tipsList.length - 1 && 'no_border']" v-for="(item, index ) in tipsList" :key="index" :data-item="item" @click="headerNoticeClick"> <view class="searchBox_add">
<image class="left_pic" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/ConvenServer/_assets/Group_476.png" mode=""/> <u-icon bold color="#000" size="40" name="arrow-left" @click="back"></u-icon>
<view class="center"> </view>
<view class="title">{{item.title}}</view> </view>
<view class="center_bottom">
<view class="center_bottom_item"> <div class="myRealEstate">
<image class="center_bottom_item_pic" src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/User/_assets/location.png" mode=""/> <div class="myRealEstates">
<view class="center_bottom_item_desc">{{title}}</view> <image src="http://192.168.0.172:5500/com_communityNav.png" mode="aspectFill"></image>
</view> <div class="name">滏阳锦苑</div>
<view class="center_bottom_item"> <div class="Visitor">访客身份 点击立即入驻本社区</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> </div>
</view>
</view> <div class="tabList">
</view> <div @click="changeTab(0)" :class="active == 0 ? 'active' : ''">全部公告</div>
<view class="right"> <div @click="changeTab(1)" :class="active == 1 ? '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(2)" :class="active == 2 ? 'active' : ''">小区通知</div>
</view> <div @click="changeTab(3)" :class="active == 3 ? 'active' : ''">社区活动</div>
</view> <div @click="changeTab(4)" :class="active == 4 ? 'active' : ''">党建</div>
</view> </div>
</view>
</template> <div class="ConList">
<div class="ConItem" v-for="item in 3" @click="desc">
<script> <div class="ConItem_left">
import { request, NavgateTo } from '../../../utils'; <image src="http://192.168.0.172:5500/com_act2Img.png" mode="aspectFill"></image>
import { apiArr } from '../../../api/community'; </div>
<div class="ConItem_right">
export default { <div class="ConItem_right_tit">关于小区停车场治理通告</div>
data() { <div class="ConItem_right_time">2025年5月27日 11:14:29</div>
return { <div class="ConItem_right_msg">
isOnshow: false, <div class="ConItem_right_msg2">
noticeList: [], 最新
page_num: 1, </div>
tipsList: [], <div class="ConItem_right_msg1">
title: '', 置顶
id: '', </div>
} </div>
}, </div>
methods: { </div>
async init(id) { </div>
const res = await request(apiArr.tipsList, 'POST', {
community_id: Number(id), </view>
page_num: this.page_num || 1,
page_size: 10, </template>
});
<script>
let flag = false; import {
if (res?.rows && res?.rows?.length == this.page_size) { request,
flag = true picUrl,
} else { uniqueByField,
flag = false menuButtonInfo
} } from '../../../utils';
import {
console.log('ressss', res); apiArr
this.tipsList = this.tipsList.concat(res?.rows || []); } from '../../../api/community';
this.page_num = this.page_num + 1;
this.flag = flag;
this.isOnshow = true; export default {
}, data() {
return {
top: "",
headerNoticeClick(event) { localHeight: "",
const { item } = event.currentTarget.dataset; active: 0
NavgateTo(`/packages/community/desc/desc?id=${item.news_id}&title=${item.title}`) }
}, },
onLoad(options) {
}, const meun = menuButtonInfo();
this.top = meun.top;
onLoad(options) { // this.top = meun.height + meun.top;
// this.localHeight = meun.height;
uni.setNavigationBarTitle({ },
title: options.title,
})
this.title = options?.title; methods: {
this.id = options?.id; changeTab(index) {
this.init(options.id); this.active = index;
}, },
back() {
onShow() { uni.navigateBack({
if (this.isOnshow) { delta: 1
this.page_num = 1; });
this.tipsList = []; },
this.flag = false; desc(){
this.init(this.id); uni.navigateTo({
} url: '../noticeDesc/index'
}, });
},
/** },
* 页面上拉触底事件的处理函数
*/
onReachBottom() { }
if (this.flag) { </script>
this.init(this.id);
} <style>
}, @import url("./index.css");
} </style>
</script>
<style>
@import url("./index.css");
</style>

View File

@ -0,0 +1,306 @@
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

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

View File

@ -1,422 +1,185 @@
<template> <template>
<view class="container"> <div class="container">
<view class="box"> <div class="searchBox" :style="{ height: localHeight + 'px', paddingTop: top + 'px' }">
<!-- 报修 --> <div class="searchBox_add">
<view v-if="sucess"> <div class="searchBox_left">
<view class="rows"> <u-icon bold color="#000" size="40" name="arrow-left" @click="back"></u-icon>
<view class="rows_tit">报修小区</view> </div>
<view class="rows_con"> <div class="searchBox_mid">报修信息</div>
<input type="text" placeholder="请选择报修小区" disabled @click="chooseCom" :value="CommunityInfo.name" /> <div class="searchBox_right"></div>
</view> </div>
</view> </div>
<view class="rows">
<view class="rows_tit">楼宇号</view> <div class="repairMsg">
<view class="rows_con"> <div class="repairTit">
<input type="text" :value="FacName" placeholder="请选择楼宇号" @click="chooseFac" data-type="1" disabled /> <span>*</span>报修信息
</view> </div>
</view>
<view class="rows"> <div class="label">选择房源信息</div>
<view class="rows_tit">房间号</view> <div class="roomList">
<view class="rows_con"> <div :class="active == '1'?'roomItem active':'roomItem'" @click="changeAct(1)">1号楼1单位101</div>
<input type="text" :value="RoomName" placeholder="请选择房间号" @click="chooseFac" data-type="2" disabled /> <div :class="active == '2'?'roomItem active':'roomItem'" @click="changeAct(2)">1号楼1单位101</div>
</view> <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>
</div>
<view class="rows">
<view class="rows_tit">提交类型</view> <div class="row">
<view class="rows_con"> <div class="row_label">报修类型</div>
<input type="text" :value="currentType.text" placeholder="请选择提交类型" @click="changeShow" disabled /> <div class="row_con" @click="chose">
</view> <input type="text" placeholder="请选择报修类型" disabled>
</view> <u-icon bold color="#999999" size="30" name="arrow-right"></u-icon>
</div>
<view class="rows"> </div>
<view class="rows_tit">报修人</view>
<view class="rows_con"> <div class="row">
<input type="text" placeholder="请输入报修人" :value="Name" data-name='Name' @input="headerInputClick" /> <div class="row_label">问题描述</div>
</view> <div class="row_con">
</view> <input type="text" placeholder="请描述故障">
<view class="rows"> </div>
<view class="rows_tit">报修人电话</view> </div>
<view class="rows_con">
<input type="number" maxlength="11" placeholder="请输入报修人电话" :value="Phone" data-name='Phone' @input="headerInputClick" /> <div class="row">
</view> <div class="row_label">联系人</div>
</view> <div class="row_con">
<input type="text" placeholder="请输入您的姓名">
<view class="information"> </div>
<view class="containerMsg" v-if="currentType.value && currentType.value == 1"> </div>
<view class="title">报修内容</view>
<u--textarea :value="Msg" @input="headerInputClick2" data-name="Msg" placeholder="请输入留言" maxlength='50' count border="none" /> <div class="row">
</view> <div class="row_label">联系电话</div>
<div class="row_con">
<view class="containerMsg" v-if="currentType.value && currentType.value == 2"> <input type="text" placeholder="请输入您的联系方式">
<view class="title">意见反馈</view> </div>
<u-textarea :value="Msg" @input="headerInputClick2" data-name="Msg" autoHeight placeholder="请输入留言" maxlength='50' count border="none" /> </div>
</view>
<div class="row noneBorder">
<view class="gray"></view> <div class="row_label">上门时间</div>
<view class="uploadImg"> <div class="row_con" @click="choseTime">
<view class="title">图片上传</view> <input type="text" placeholder="请选择上门时间" disabled>
<view style="margin-top: 20rpx;"> <u-icon bold color="#999999" size="30" name="arrow-right"></u-icon>
<u-upload </div>
:fileList="fileList" </div>
maxCount="6" </div>
@beforeRead="beforeRead"
@afterRead="beforeRead" <div class="repairMedia">
@delete="deleteImg" <div class="row df">
uploadIcon="plus" <div class="row_label">上传图片</div>
/> <div class="row_con2">
</view> <u-upload :fileList="imgList" @afterRead="afterReadImg" @delete="deletePic" name="1" multiple
</view> :maxCount="10">
<div class="imgCon">
<view class="gray"></view> <image src="http://192.168.0.172:5500/com_imageImg.png" mode="widthFix"></image>
<view class="information_row noneBorder"> 上传图片
<view class="information_tit">期望上门时间</view> </div>
</u-upload>
<view class="timeBox" @click="switchShow"> </div>
</div>
<view class="information_ipt" v-if="time">
{{time}} <div class="row df">
</view> <div class="row_label">上传视频</div>
<u-icon name="arrow-right" size="32" color="#D5AC66" /> <div class="row_con2">
</view> <u-upload :fileList="videoList" @afterRead="afterReadVideo" @delete="deletePic" name="1"
:maxCount="1" accept="video">
<div class="videoCon">
</view> <image src="http://192.168.0.172:5500/com_videoImg.png" mode="widthFix"></image>
</view> 上传视频
</div>
<view class="btn" @click="submit">提交</view> </u-upload>
</view> </div>
<!-- 报修成功 --> </div>
<view v-if="!sucess" class="sucess"> </div>
<image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/maintenance_sucess.png"
mode="widthFix" id="sucess" /> <u-picker :show="show" :columns="columns" @confirm="confirm1" @cancel="cancel1"></u-picker>
<view class="sucess_msgTit">提交成功</view>
<view class="sucess_msg">1条报修内容已提交成功</view> <u-datetime-picker :show="show2" v-model="time" mode="datetime" @confirm="confirm2"
<!-- <image src="https://wechat-img-file.oss-cn-beijing.aliyuncs.com/water_filter/maintennace_msg.png" mode="widthFix" id="msg"/> --> @cancel="cancel2"></u-datetime-picker>
<!-- <view id="msg" bind:tap="desc">
查看报修详情>> <div class="btn">确认报修</div>
</view> -->
</view> </div>
</view> </template>
<u-datetime-picker <script>
:show="DoorTimeShow" import {
mode="datetime" request,
:minDate="minDate" picUrl,
:formatter="formatter" NavgateTo,
@confirm="onInput" upload,
@cancel="onClose" isPhone,
/> menuButtonInfo
} from '../../../utils';
import {
<u-picker :show="show" :columns="columns" keyName="name" @confirm="confirm" @cancel="onClose" /> apiArr
} from '../../../api/community';
export default {
</view> data() {
</template> return {
active:"1",
<script> top: "",
import { localHeight: "",
request, columns: ["家具维修"],
picUrl, show: false,
NavgateTo, show2: false,
upload, time: new Date().getTime(),
isPhone, imgList: [],
} from '../../../utils'; videoList: [],
import { }
apiArr },
} from '../../../api/community'; methods: {
export default { back() {
data() { uni.navigateBack({
return { delta: 1
value: '', });
fileList: [], },
fileList2: [], chose() {
console.log(123);
CommunityInfo: {}, // this.show = true;
FacId: "", // },
FacName: "", cancel1() {
RoomId: "", this.show = false;
RoomName: "", },
Name: "", // confirm1(e) {
Phone: "", // console.log(e);
Msg: "", // this.show = false;
time: "", // },
DoorTimeShow: false, choseTime() {
sucess: true, // this.show2 = true;
},
minDate: new Date().getTime(),
formatter(type, value) { cancel2() {
if (type === 'year') { this.show2 = false;
return `${value}`; },
} confirm2(e) {
if (type === 'month') { console.log(e);
return `${value}`; this.show2 = false;
} },
if (type === 'day') {
return `${value}`; afterReadImg(e){
} console.log(e);
return value;
}, console.log(123);
},
columns: [ afterReadVideo(){},
[{
name: "报事报修", changeAct(e){
type: 1 this.active = e;
}, },
{
name: "意见反馈", },
type: 2
}, onLoad(options) {
] const meun = menuButtonInfo();
], this.top = meun.top;
show: false, this.localHeight = meun.height;
currentType: {} },
}
}, onShow() {
methods: {
chooseCom(){ },
NavgateTo(`/packages/community/index/index?joinType=3`)
}, }
</script>
chooseFac(e){
console.log('eeee', e); <style>
const { type } = e.currentTarget.dataset; @import url("./index.css");
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,306 +1,119 @@
.box { page {
background-color: #F9F9F9; background-color: #f6f7fb;
min-height: 100vh;
} }
.nav-box { .searchBox {
box-sizing: border-box; padding-bottom: 24rpx;
width: 100%; background-color: #fff;
z-index: 2; }
background: #F9F9F9;
padding-bottom: 25rpx; .searchBox_add {
} height: 100%;
width: 100%;
.nav-box .nav-bar { display: flex;
display: flex; }
align-items: center;
} .searchBox_left {
flex: 1;
.nav-box .nav-bar .nav-bar-left, display: flex;
.nav-box .nav-bar .nav-bar-right { align-items: center;
padding: 0 20rpx; padding-left: 20rpx;
min-width: 36rpx; }
}
.searchBox_mid {
.nav-box .nav-bar .nav-bar-left van-icon { flex: 1;
vertical-align: sub; font-size: 40rpx;
color: #333333; color: #222222;
} text-align: center;
display: flex;
.nav-box .nav-bar .nav-bar-title { align-items: center;
flex: 1; justify-content: center;
text-align: center; }
font-weight: 400;
font-size: 36rpx; .searchBox_right {
color: #000000; flex: 1;
} }
.tabItem { .repairMsg {
font-weight: 400; margin: 20rpx;
font-size: 28rpx; box-sizing: border-box;
color: #555555; padding: 25rpx 20rpx;
flex: 1; border-radius: 20rpx 20rpx 20rpx 20rpx;
display: flex; background-color: #fff;
align-items: center;
justify-content: center; }
}
.active { page {
position: relative; padding-bottom: 60rpx;
font-weight: bold; }
font-size: 32rpx;
color: #222222;
}
.orderItemTit {
.active::after { display: flex;
content: ''; background: linear-gradient(304deg, #FFFFFF 0%, #FFF6E6 100%);
width: 130rpx; border-radius: 20rpx 20rpx 0rpx 0rpx;
height: 10rpx; height: 85rpx;
background: #FF512A; justify-content: space-between;
border-radius: 0rpx 0rpx 0rpx 0rpx; padding: 0 20rpx;
position: absolute; align-items: center;
left: 50%; box-sizing: border-box;
transform: translateX(-50%); }
bottom: -8rpx;
} .orderItemTit_state1 {
background: linear-gradient(304deg, #FFFFFF 0%, #FFF6E6 100%);
.active::before { }
content: '';
width: 120rpx; .orderItemTit_state2 {
height: 4rpx; background: linear-gradient(280deg, #FFFFFF 0%, #FFE7E7 100%);
background: #FF5D73; }
border-radius: 0rpx 0rpx 0rpx 0rpx;
filter: blur(12rpx); .orderItemTit_state3 {
position: absolute; background: linear-gradient(290deg, #FFFFFF 0%, #EDEDED 100%);
left: 50%; }
transform: translateX(-50%);
bottom: -18rpx; .orderItemTit_state4 {
} background: linear-gradient(280deg, #FFFFFF 0%, #FFE7E7 100%);
}
.InfoMsg { .row {
background-color: #fff; display: flex;
margin-bottom: 20rpx; padding: 0 20rpx;
} justify-content: center;
padding-top: 30rpx;
.InfoMsg { }
padding-left: 20rpx;
padding-right: 20rpx; .row_label {
padding-top: 30rpx; font-size: 28rpx;
padding-bottom: 4rpx; color: #999999;
} width: 190rpx;
}
.InfoMsg_tit {
font-weight: bold; .row_con {
font-size: 32rpx; font-size: 28rpx;
color: #222222; color: #222222;
margin-bottom: 40rpx; padding-bottom: 30rpx;
} border-bottom: 1rpx solid #EBEBEB;
flex: 1;
.InfoMsg_info { display: flex;
display: flex; align-items: center;
align-items: center; flex-wrap: wrap;
font-weight: 400; }
font-size: 26rpx;
color: #999999; .row_con image {
margin-bottom: 30rpx; width: 120rpx;
} height: 120rpx;
border-radius: 10rpx 10rpx 10rpx 10rpx;
.InfoMsg_info text { margin-right: 20rpx;
color: #222222; }
margin-left: 30rpx;
} .noneBor{
border-bottom: none;
.InfoItem { }
background-color: #fff; .df{
padding-top: 30rpx; display: flex;
padding-left: 20rpx; align-items: center;
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,91 +1,176 @@
<template> <template>
<view class="box"> <div class="container">
<view class="tabList"> <div class="searchBox" :style="{ height: localHeight + 'px', paddingTop: top + 'px' }">
</view> <div class="searchBox_add">
<div class="searchBox_left">
<!-- 维修进度 --> <u-icon bold color="#000" size="40" name="arrow-left" @click="back"></u-icon>
</div>
<!-- 维修详情 --> <div class="searchBox_mid">报修信息</div>
<view class="InfoList"> <div class="searchBox_right"></div>
<view class="InfoMsg"> </div>
<view class="InfoMsg_tit">基本信息</view> </div>
<view class="InfoMsg_info">联系人: <text>{{info.user_name}}</text> </view>
<view class="InfoMsg_info">联系电话: <text>{{info.mobile}}</text> </view> <div class="repairMsg">
<view class="InfoMsg_info">期望上门时间: <text>{{info.hope_order_time}}</text> </view> <div class="orderItemTit orderItemTit_state1" v-if="false">
</view> <div class="orderItemTit_left">工单编号123456789145</div>
<view class="InfoItem"> <div class="orderItemTit_right">2025-06-04 16:27:35</div>
<view class="InfoItem_tit">报修内容</view> </div>
<div class="orderItemTit orderItemTit_state2" v-if="true">
<!-- <view class="InfoItem_msg"><text>故障描述</text>净水机不出水</view> --> <div class="orderItemTit_left">工单编号123456789145</div>
<view class="InfoItem_msg"><text>故障小区</text> {{info.community.name}}/{{info.facility.name }}/{{info.room.name}} <div class="orderItemTit_right">2025-06-04 16:27:35</div>
</view> </div>
<view class="InfoItem_msg"><text>报修内容</text> <div class="orderItemTit orderItemTit_state3" v-if="false">
{{Info.details}} <div class="orderItemTit_left">工单编号123456789145</div>
</view> <div class="orderItemTit_right">2025-06-04 16:27:35</div>
<view class="InfoItem_msg"><text>故障图片</text> </div>
<div class="orderItemTit orderItemTit_state4" v-if="false">
<view class="imgList"> <div class="orderItemTit_left">工单编号123456789145</div>
<image :src="item" mode='' v-for="(item, index) in imgList" @click="lookMore" :data-url="item" :key="index" /> <div class="orderItemTit_right">2025-06-04 16:27:35</div>
</view> </div>
</view>
</view> <div class="row">
</view> <div class="row_label">小区房源名称</div>
</view> <div class="row_con">世纪名城1号楼1单元101</div>
</template> </div>
<script> <div class="row">
import { request, picUrl } from '../../../utils'; <div class="row_label">报修类型</div>
import { <div class="row_con">家具维修</div>
apiArr </div>
} from '../../../api/community';
export default { <div class="row">
data() { <div class="row_label">问题描述</div>
return { <div class="row_con">门坏了</div>
id: "", </div>
info: "",
imgList: [] <div class="row">
} <div class="row_label">联系人</div>
}, <div class="row_con">高尚</div>
methods: { </div>
async init() {
const res = await request(apiArr.getInfoById, 'POST', { <div class="row">
feed_id: this.id <div class="row_label">联系电话</div>
}); <div class="row_con">15901518415</div>
let imgList = [] </div>
imgList = this.processApiData(res.photos);
this.info = res; <div class="row">
this.imgList = imgList; <div class="row_label">上门时间</div>
}, <div class="row_con">2025-06-12 12:00</div>
</div>
</div>
lookMore(e) {
uni.previewImage({ <div class="repairMsg">
urls: this.imgList, <div class="row">
current: e.currentTarget.dataset.url <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>
processApiData(apiData) { </div>
let arr = apiData.split(','); </div>
console.log('123131 arr', arr);
for (let index = 0; index < arr.length; index++) { <div class="row">
arr[index] = picUrl + arr[index] <div class="row_label df">视频</div>
} <div class="row_con">
return arr <image src="http://192.168.0.172:5500/com_communityNav.png" mode="aspectFill"></image>
}, </div>
</div>
},
<div class="row">
onLoad(options) { <div class="row_label">指派时间</div>
this.id = Number(options.id); <div class="row_con noneBor">2025-06-12 12:00</div>
uni.setNavigationBarTitle({ </div>
title: options.title, </div>
});
this.init() <div class="repairMsg">
}, <div class="row">
} <div class="row_label">维修师傅</div>
</script> <div class="row_con">
刘师傅
<style> </div>
@import url("./index.css"); </div>
<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,215 +1,161 @@
.box { .searchBox {
background-color: #F9F9F9; padding-bottom: 24rpx;
display: flex; background-color: #fff;
flex-direction: column; }
min-height: 90vh;
} .searchBox_add {
height: 100%;
.nav-box { width: 100%;
box-sizing: border-box; display: flex;
width: 100%; }
z-index: 2;
background: #F9F9F9; .searchBox_left {
padding-bottom: 25rpx; flex: 1;
} display: flex;
align-items: center;
.nav-box .nav-bar { padding-left: 20rpx;
display: flex; }
align-items: center;
} .searchBox_mid {
flex: 1;
.nav-box .nav-bar .nav-bar-left, font-size: 40rpx;
.nav-box .nav-bar .nav-bar-right { color: #222222;
padding: 0 20rpx; text-align: center;
min-width: 36rpx; display: flex;
} align-items: center;
justify-content: center;
.nav-box .nav-bar .nav-bar-left van-icon { }
vertical-align: sub;
color: #333333; .searchBox_right {
} flex: 1;
}
.nav-box .nav-bar .nav-bar-title {
flex: 1; .tabList {
text-align: center; display: flex;
font-weight: 400; align-items: center;
font-size: 36rpx; justify-content: space-between;
color: #000000; margin: 0 20rpx;
} padding-top: 38rpx;
padding-bottom: 26rpx;
.nav-bar-right { }
display: none;
} .tab {
font-size: 30rpx;
.van-tab { color: #222222;
font-size: 28rpx !important; }
color: #555555 !important;
} .tab span {
color: 30rpx;
}
.tabList {
display: flex; .active {
align-items: center; font-weight: 700;
margin-left: 20rpx; position: relative;
background-color: #fff; }
padding-top: 40rpx;
padding-bottom: 20rpx; .active::after {
box-sizing: border-box; content: '';
} width: 52rpx;
height: 22rpx;
background: url(http://192.168.0.172:5500/com_active.png);
.tabItem { background-size: cover;
font-weight: 400; position: absolute;
font-size: 28rpx; left: 50%;
color: #555555; bottom: -20rpx;
margin-right: 70rpx; transform: translateX(-50%);
} }
.active {
position: relative; .orderList {
font-weight: bold; margin-top: 20rpx;
} }
.active::after { .orderItem {
content: ''; width: 710rpx;
width: 64rpx; height: 435rpx;
height: 10rpx; background-color: #fff;
background: #FF512A; margin: 0 auto;
border-radius: 0rpx 0rpx 0rpx 0rpx; border-radius: 20rpx;
position: absolute; }
left: 50%;
bottom: -8rpx; page {
transform: translateX(-50%); background-color: #f6f7fb;
} min-height: 100vh;
padding: 0;
.active::before { }
content: '';
width: 54rpx; .orderItemTit {
height: 4rpx; display: flex;
background: #FF5D73; background: linear-gradient(304deg, #FFFFFF 0%, #FFF6E6 100%);
border-radius: 0rpx 0rpx 0rpx 0rpx; border-radius: 20rpx 20rpx 0rpx 0rpx;
filter: blur(12rpx); width: 710rpx;
position: absolute; height: 85rpx;
left: 50%; justify-content: space-between;
bottom: -18rpx; padding: 0 20rpx;
transform: translateX(-50%); align-items: center;
} box-sizing: border-box;
}
.recordList { .orderItemTit_state1{
background-color: #fff; background: linear-gradient(304deg, #FFFFFF 0%, #FFF6E6 100%);
padding-top: 10rpx; }
} .orderItemTit_state2{
background: linear-gradient( 280deg, #FFFFFF 0%, #FFE7E7 100%);
.recordItem { }
display: flex; .orderItemTit_state3{
align-items: center; background: linear-gradient( 290deg, #FFFFFF 0%, #EDEDED 100%);
justify-content: center; }
margin-left: 20rpx; .orderItemTit_state4{
margin-right: 20rpx; background: linear-gradient( 280deg, #FFFFFF 0%, #FFE7E7 100%);
padding-top: 30rpx; }
padding-bottom: 30rpx;
border-bottom: 2rpx solid #E6E6E6; .orderItemTit_left {
} font-size: 28rpx;
color: #222222;
.recordItem_img { font-weight: 600;
width: 180rpx; }
height: 180rpx;
border-radius: 30rpx 30rpx 30rpx 30rpx; .orderItemTit_right {
overflow: hidden; font-size: 24rpx;
} color: #999999;
}
.recordItem_img image {
width: 100%; .orderItem_row {
height: 100%; display: flex;
} align-items: center;
padding: 0 20rpx;
.recordItem_Msg { box-sizing: border-box;
display: flex; font-size: 26rpx;
align-items: center; color: #999999;
justify-content: space-between; margin-top: 20rpx;
flex: 1; justify-content: space-between;
margin-left: 30rpx; }
}
.orderItem_row_label {
.recordItem_Msg_right_state1 { width: 200rpx;
width: 150rpx; }
height: 50rpx;
background: #999999; .orderItem_row_state {
border-radius: 100rpx 100rpx 100rpx 100rpx; font-size: 28rpx;
display: flex; color: #FFA600;
align-items: center; font-weight: 600;
justify-content: center; }
color: #fff;
} .df {
display: flex;
.recordItem_Msg_right_state2 { align-items: center;
width: 150rpx; justify-content: space-between;
height: 50rpx; }
background: #FF512A;
border-radius: 100rpx 100rpx 100rpx 100rpx; .addBtn {
display: flex; font-size: 36rpx;
align-items: center; color: #FFFFFF;
justify-content: center; width: 600rpx;
color: #fff; height: 90rpx;
} background: linear-gradient(91deg, #FF7658 0%, #FF370B 100%);
border-radius: 100rpx 100rpx 100rpx 100rpx;
.recordItem_Msg_right_state3 { display: flex;
width: 150rpx; align-items: center;
height: 50rpx; justify-content: center;
background: #D5AC66; margin: 0 auto;
border-radius: 100rpx 100rpx 100rpx 100rpx; margin-top: 200rpx;
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,116 +1,121 @@
<template> <template>
<view class="box"> <view class="box">
<div class="searchBox" :style="{ height: localHeight + 'px', paddingTop: top + 'px' }">
<view class="tabList"> <div class="searchBox_add">
<view :class="['tabItem', status == 0 ? 'active' : '']" @click="changeTab" data-index="0">全部</view> <div class="searchBox_left">
<view :class="['tabItem', status == 1 ? 'active' : '']" @click="changeTab" data-index="1">待处理</view> <u-icon bold color="#000" size="40" name="arrow-left" @click="back"></u-icon>
<view :class="['tabItem', status == 2 ? 'active' : '']" @click="changeTab" data-index="2">处理中</view> </div>
<view :class="['tabItem', status == 3 ? 'active' : '']" @click="changeTab" data-index="3">已完成</view> <div class="searchBox_mid">我的报修</div>
</view> <div class="searchBox_right"></div>
</div>
</div>
<view class="recordList" v-if="list.length != 0">
<view class="recordItem" v-for="(item, index) in list" @click="headerRepairDetailClick" :data-id="item.feed_id"> <div class="tabList">
<view class="recordItem_Msg"> <div :class="active == '1' ? 'tab active' : 'tab'">待指派 <span>(1)</span></div>
<view class="recordItem_Msg_left"> <div :class="active == '2' ? 'tab active' : 'tab'">进行中 <span>(1)</span></div>
<view class="recordItem_Msg_left_tit">{{item.details}}</view> <div :class="active == '3' ? 'tab active' : 'tab'">已作废 <span>(1)</span></div>
<div :class="active == '4' ? 'tab active' : 'tab'">已完成 <span>(1)</span></div>
<view class="recordItem_Msg_left_msg"> </div>
联系人{{item.user_name}}
</view> <div class="orderList">
<view class="recordItem_Msg_left_msg"> <div class="orderItem" @click="desc">
联系人电话{{item.mobile}} <div class="orderItemTit orderItemTit_state1" v-if="false">
</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.hope_order_time}} </div>
</view> <div class="orderItemTit orderItemTit_state2" v-if="true">
<view class="recordItem_Msg_left_msg"> <div class="orderItemTit_left">工单编号123456789145</div>
提交时间{{item.create_time}} <div class="orderItemTit_right">2025-06-04 16:27:35</div>
</view> </div>
</view> <div class="orderItemTit orderItemTit_state3" v-if="false">
<!-- <view class="recordItem_Msg_right_state1" wx:if="{{item.status == 0}}">待处理</view> <div class="orderItemTit_left">工单编号123456789145</div>
<view class="recordItem_Msg_right_state2" wx:if="{{item.status == 1}}">已完成</view> <div class="orderItemTit_right">2025-06-04 16:27:35</div>
<view class="recordItem_Msg_right_state3" wx:if="{{item.status == 2}}">处理中</view> --> </div>
</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>
</div>
<view v-if="list.length == 0" class="emplty">
<u-empty iconSize="180" textSize='28' text="暂无内容" /> <div class="orderItem_row">
</view> <div class="df">
<div class="orderItem_row_label">小区房源名称</div>
<view class="btn" @click="headerRepairClick">我要报修</view> <div class="orderItem_row_con">世纪名城1号楼1单元101</div>
</div>
</view>
</template> <div class="orderItem_row_state">
待指派
<script> </div>
import { request, NavgateTo } from '../../../utils'; </div>
import { apiArr } from '../../../api/community';
export default { <div class="orderItem_row">
data() { <div class="orderItem_row_label">报修类型</div>
return { <div class="orderItem_row_con">家具维修</div>
page_num: 1, </div>
page_size: 10,
flag: false, <div class="orderItem_row">
list: [], <div class="orderItem_row_label">问题描述</div>
id: "", <div class="orderItem_row_con">门坏了</div>
title: '', </div>
status: 0
} <div class="orderItem_row">
}, <div class="orderItem_row_label">上门时间</div>
methods: { <div class="orderItem_row_con">2025-06-12 12:00</div>
async init() { </div>
const res = await request(apiArr.getListByRepair, 'POST', {
community_id: this.id, <div class="orderItem_row">
page_num: this.page_num, <div class="orderItem_row_label">联系人</div>
page_size: this.page_size, <div class="orderItem_row_con">高尚</div>
status: this.status </div>
})
if (res.rows) { <div class="orderItem_row">
let flag = false <div class="orderItem_row_label">联系人手机号</div>
if (res.rows.length == this.page_size) { <div class="orderItem_row_con">15901518415</div>
flag = true </div>
} else { </div>
flag = false </div>
}
<div class="addBtn" @click="oneRepair">
this.flag = flag; 在线报修
this.page_num = this.page_num + 1; </div>
this.list = this.list.concat(res.rows || []);
} </view>
}, </template>
headerRepairClick(e){ <script>
NavgateTo(`/packages/community/oneRepair/index`) import { request, NavgateTo, menuButtonInfo } from '../../../utils';
}, import { apiArr } from '../../../api/community';
headerRepairDetailClick(e){ export default {
const { id } = e.currentTarget.dataset data() {
NavgateTo(`/packages/community/repairDetail/index?id=${id}&title=${this.title}`) return {
}, top: "",
localHeight: "",
changeTab(e){ active: "1"
this.status = Number(e.currentTarget.dataset.index); }
this.flag = false; },
this.page_num = 1; methods: {
this.list = []; oneRepair(){
uni.navigateTo({
this.init() url: '../oneRepair/index'
}, });
},
},
desc(){
onLoad(options) { uni.navigateTo({
this.id = Number(options.id); url: '../repairDetail/index'
this.title = options.title; });
uni.setNavigationBarTitle({ },
title: options.title,
});
this.init() },
},
} onLoad(options) {
</script> const meun = menuButtonInfo();
this.top = meun.top;
<style> this.localHeight = meun.height;
@import url("./index.css"); },
}
</script>
<style>
@import url("./index.css");
</style> </style>

View File

@ -0,0 +1,126 @@
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

@ -0,0 +1,250 @@
<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,10 +121,9 @@
"pages": [{ "pages": [{
"path": "index/index", "path": "index/index",
"style": { "style": {
"navigationBarTitleText": "社区列表", "navigationStyle": "custom",
"usingComponents": { "usingComponents": {
"tabularCard": "/components/tabularCard/tabularCard", "tabularCard": "/components/tabularCard/tabularCard",
"search": "/components/search/search",
"nav-footer": "/components/nav/nav" "nav-footer": "/components/nav/nav"
} }
} }
@ -132,25 +131,29 @@
{ {
"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": "desc/desc", "path": "noticeDesc/index",
"style": { "style": {
"navigationBarTitleText": "" "navigationBarTitleText": "",
"navigationStyle": "custom"
} }
}, },
{ {
"path": "applyOwer/index", "path": "applyOwer/index",
"style": { "style": {
"navigationBarTitleText": "" "navigationBarTitleText": "",
"navigationBarBackgroundColor": "#fff"
} }
}, },
{ {
@ -162,31 +165,45 @@
{ {
"path": "oneRepair/index", "path": "oneRepair/index",
"style": { "style": {
"navigationBarTitleText": "报事报修" "navigationBarTitleText": "",
"navigationStyle": "custom"
} }
}, },
{ {
"path": "repairList/index", "path": "repairList/index",
"style": { "style": {
"navigationBarTitleText": "" "navigationStyle": "custom",
"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": "addCar/index", "path": "chooseMsgInfo/index",
"style": { "style": {
"navigationBarBackgroundColor": "#F9F9F9" "navigationStyle": "custom",
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#fff"
}
},
{
"path": "serverList/index",
"style": {
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#fff"
} }
}, },
{ {

File diff suppressed because one or more lines are too long

View File

@ -42,14 +42,15 @@
"index/index", "index/index",
"communityDetail/index", "communityDetail/index",
"notice/index", "notice/index",
"desc/desc", "noticeDesc/index",
"applyOwer/index", "applyOwer/index",
"mycar/index", "mycar/index",
"oneRepair/index", "oneRepair/index",
"repairList/index", "repairList/index",
"repairDetail/index", "repairDetail/index",
"chooseMsg/index", "chooseMsg/index",
"addCar/index", "chooseMsgInfo/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,94 +21730,7 @@ 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 */,
@ -21929,143 +21842,7 @@ 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 */,
@ -23318,79 +23095,7 @@ 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 */,
@ -23398,63 +23103,7 @@ 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,3 +1,4 @@
<<<<<<< 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",
@ -17,4 +18,12 @@
] ]
} }
} }
=======
{
"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;
} }