123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273 |
- <template>
- <view>
- <!-- 第一种样式 人员管理-->
- <block v-if="datainfo.length>0">
- <!-- 历史账单 -->
- <block v-if="type=='moneybill'">
- <view class="carlist peolist" v-for="(ite,idx) in datainfo" :key="idx">
- <view class="ctop flexc" style="padding: 26rpx 24rpx 24rpx;">
- <image :src="time" class="imgs"></image>
- <view class="tit">2024/01 -2024/12</view>
- <view class="btn btnbgb" v-if="ite.type==1">已缴费</view>
- <view class="btn btnbgc" v-else>未缴费</view>
- <view class="flex1"></view>
- <view class="txta">1号楼3单元1102</view>
- </view>
- <view class="clists flexc">
- <view class="mlistl">
- <view class="mltit">应缴总额 /元</view>
- <view class="mltxt">4307.20</view>
- </view>
- <view class="mlistr">
- <view class="clist"><view class="tit">物业费用:</view>3247.20元</view>
- <view class="clist"><view class="tit">车位费用:</view>960.00元</view>
- <view class="clist"><view class="tit">能耗费用:</view>100.00元</view>
- </view>
- </view>
- </view>
- </block>
- <view class="shax" v-if="wtdt">{{wtdt}}</view>
- </block>
- <!-- 无数据 -->
- <view class="nodata" v-else>
- <image :src="noiconpimg"></image>
- <view>
- 暂无数据
- </view>
- </view>
- </view>
- </template>
- <script>
- import config from '@/config'
- import {selectDictValue} from "@/utils/common.js"
- import {checkPermi,checkRole} from "@/utils/permission"; // 权限判断函数
- export default{
- props:{
- datainfo: {
- type: Array,
- default () {
- return []
- }
- },
- wtdt:{
- type:String,
- default () {
- return ''
- }
- },
- type:{
- type:String,
- default () {
- return 0
- }
- },
- bxztList:{
- type:Array,
- default () {
- return []
- }
- },
- fkztList:{
- type:Array,
- default () {
- return []
- }
- },
- bxlbList:{
- type:Array,
- default () {
- return []
- }
- }
- },
- data(){
- return{
- noiconpimg:require("@/static/images/nodata.png"),
- rimg:require('@/static/images/rimg.png'),
- baseUrl:config.baseUrl,
- delBtnWidth:66,//左滑默认宽度
- }
- },
- mounted() {
-
- },
- methods:{
- checkPermi,checkRole,
- kaType(data, list) {
- return selectDictValue(list, data);
- },
- getDetail(e){
- this.$emit('getDetail',e)
- },
- getPut(e,type){
- if(type>1){
- this.$emit('getDetail',e)
- }else{
- this.$emit('getPut',e)
- }
-
- },
- getDelFn(id){
- var that=this;
- uni.showModal({
- title: '确认删除',
- content: "是否确认删除",
- cancelText: '取消',
- confirmText: '确认',
- success: function(res) {
- if (res.confirm) {
- that.$emit('getDelFn',id)
- } else if (res.cancel) {
- }
- }
- });
- },
- getPreview(idx,arr) {
- var newArr=[];
- arr.forEach(ite=>{
- var ds=this.baseUrl+ite
- newArr.push(ds)
- })
- uni.previewImage({
- urls: newArr,
- current:idx,
- success: function(data) {},
- fail: function(err) {}
- });
- },
- //开始触摸滑动
- drawStart(e) {
- // console.log("开始触发");
- var touch = e.touches[0];
- this.startX = touch.clientX;
- },
- //触摸滑动
- drawMove(e) {
- // console.log("滑动");
- for (var index in this.datainfo) {
- // this.csListArrl[index].right=0
- this.$set(this.datainfo[index],'right',0);
- }
- var idx=e.currentTarget.dataset.idx
- var touch = e.touches[0];
- var item = this.datainfo[idx];
- var disX = this.startX - touch.clientX;
- if (disX >= 20) {
- if (disX > this.delBtnWidth) {
- disX = this.delBtnWidth;
- }
- // this.csListArrl[idx].right=disX
- this.$set(this.datainfo[idx],'right',disX);
- } else {
- // this.csListArrl[idx].right=0
- this.$set(this.datainfo[idx],'right',0);
- }
- },
- //触摸滑动结束
- drawEnd(e) {
- // console.log("滑动结束");
- var idx=e.currentTarget.dataset.idx
- var item = this.datainfo[idx];
- if (item.right >= this.delBtnWidth / 2) {
- // this.datainfo[idx].right=this.delBtnWidth
- this.$set(this.datainfo[idx],'right',this.delBtnWidth);
- } else {
- this.datainfo[idx].right=0
- }
- },
- }
- }
- </script>
- <style lang="scss" scoped>
- .flex{display: flex;}
- .flexc{display: flex;align-items: center;}
- .mb10{margin-bottom: 20rpx;}
- // 报修
- .walists{background: #FFFFFF;border-radius: 20rpx;margin-bottom: 24rpx; position: relative;
- .watop{
- padding: 0 36rpx 8rpx 38rpx;
- .watit{padding: 24rpx 0;margin-bottom: 4rpx;display: flex;
- .tit{font-weight: bold;font-size: 28rpx;color: #272727;flex: 1;
- .cir{width: 14rpx;margin-left: 8rpx;margin-bottom: 10rpx;height: 14rpx;display: inline-block;background: #FF6969;border-radius: 8rpx;}
- }
- .txt{font-weight: bold;font-size: 26rpx;flex: 0 0 auto;
- }
- }
- }
- .walist{display: flex;font-weight: 500;font-size: 24rpx;color: #666666;margin-bottom: 16rpx;
- .tit{min-width: 100rpx;text-align-last: justify}
- }
- .wabtn{display: flex;align-items: center;justify-content: space-between;border-top: 2rpx solid #E5E5E5;height: 80rpx;padding: 0 38rpx;
- view{font-weight: 500;font-size: 24rpx;color: #666666;}
- image{width: 16rpx;height: 28rpx;}
- }
- }
- .vislist{background: #FFFFFF;border-radius: 20rpx;margin-bottom: 24rpx;padding: 26rpx 38rpx 12rpx;
- .vistop{
- .tit{font-size: 28rpx;color: #272727;font-weight: bold;}
- .btns{min-width: 70rpx;font-weight: 500;
- font-size: 20rpx;padding: 0 8rpx;box-sizing: border-box;text-align: center;margin-left: 18rpx;color: #00B861;border-radius: 16rpx;border: 2rpx solid #0AC86E;}
- .txt{font-weight: bold;font-size: 26rpx;margin-left: 18rpx;}
- }
- .vlist{
- view{font-weight: 500;font-size: 24rpx;color: #666666;margin-bottom: 16rpx;flex: 0 1 auto;min-width: 50%;}
- }
- }
- .carlist{background: #FFFFFF;border-radius: 20rpx;margin-bottom: 24rpx;
- .carltop{min-height: 154rpx;border-bottom: 2rpx solid #E5E5E5;
- .tit{font-weight: bold;font-size: 32rpx;}
- .txt{font-weight: 500;font-size: 26rpx;color: #272727;}
- .txtbtn{min-width: 82rpx;
- height: 32rpx;font-weight: 500;font-size: 20rpx;color: #45CB99;
- border-radius: 16rpx;border: 1px solid #45CB99;margin-left: 12rpx;}
- .cara{flex: 0 0 auto;width: 232rpx;height: 74rpx;margin-right: 40rpx;}
- .carb{flex: 0 0 auto;width: 278rpx;height: 130rpx;}
- }
- .carlf{padding:26rpx 0 10rpx;
- .clflist{font-weight: 500;font-size: 26rpx;color: #666666;margin-bottom: 16rpx;}
- }
- .ctop{border-bottom: 2rpx solid #E5E5E5;padding:26rpx 24rpx;
- .imgs{width: 40rpx;height: 42rpx;margin-right: 30rpx;}
- .tit{font-size: 32rpx;color: #272727;font-weight: bold;margin-right: 14rpx;}
- .txt{font-weight: 500;font-size: 26rpx;
- &.ca{color: #3565ED;}
- &.cb{color: #FE5A0E;}
- &.cc{color: #28C529;}
- }
- .txta{font-weight: 500;font-size: 24rpx;color: #AAAAAA;}
- .num{font-size: 24rpx;color: #AAAAAA;}
- }
- .btn{height: 34rpx;border-radius: 18rpx;display: flex;align-items: center;justify-content: center;padding: 0 10rpx;font-size: 22rpx;margin-right: 24rpx;
- &.btna{border: 2rpx solid #06C770;color: #06C770;}
- &.btnb{border: 2rpx solid #3565ED;color: #3565ED;}
- &.btnc{border: 2rpx solid #FE5A0E;color: #FE5A0E;}
- &.btnbga{border: 1px solid #0156FE;color: #3565ED;background: #DFEAFF;height: 36rpx;}
- &.btnbgb{border: 1px solid #C1C1C1;color: #666666;background: #F1F1F1;height: 36rpx;}
- &.btnbgc{border: 1px solid #FE5A0E;color:#FE5A0E;background:#FFEEE6;height: 36rpx;}
- }
- .clists{padding: 24rpx 24rpx 8rpx;
- .clist{font-weight: 500;margin-bottom: 16rpx;
- font-size: 26rpx;color: #272727;display: flex;line-height: 34rpx;
- .tit{font-size: 26rpx;color: #AAAAAA;flex: 0 0 auto;margin-right: 16rpx;min-width: 108rpx;text-align-last: justify;}
- .imgas{display: flex;align-items: center;flex-wrap: wrap;
- image{width: 142rpx;height: 142rpx;margin-right: 30rpx;margin-top: 8rpx;}
- }
- }
- .w50{
- .clist{width: 50%;}
- }
- }
- }
- // 物业费
- .mlistl{width: 40%;display: flex;flex-direction: column;align-items: center;flex: 0 0 auto;
- .mltit{font-weight: 500;font-size: 26rpx;color: #666666;margin-bottom: 18rpx;}
- .mltxt{font-weight: bold;font-size: 32rpx;color: #0156FE;}
- }
- // 无数据
- .nodata{display: flex;flex-direction: column;align-items: center;
- image{width: 440rpx;height: 440rpx;}
- view{font-size: 30rpx;color: #666666;font-weight: bold;}
- }
- </style>
|