mpvue实现类似通讯录锚点

2023-12-29 08:08

本文主要是介绍mpvue实现类似通讯录锚点,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

<template> <!-- <div :class="questionLess['questionPage-box']"><div :class="questionLess['questionPage-bg']"><div v-if="typeName==='门店收入'"><div :class="questionLess['questionPage-bg-title']">门店收入</div><div :style="{margin:'20rpx 0'}">以下数据均为固化数据:</div><div :style="{marginBottom:'20rpx'}">门店收入:过夜审时门店发生的消费总和,包括房费,会员卡,餐饮,小商品等科目。</div><div :style="{marginBottom:'20rpx'}">间夜数:过夜审时产生的间夜数,包括时租房和正常入住。</div><div :style="{marginBottom:'20rpx'}">出租率=间夜数/客房数*100%,客房数包含维修房和自用房。</div><div :style="{marginBottom:'20rpx'}">平均房价=总房费/间夜数。</div><div>注:以上数据,来源自“JY01 酒店综合统计日报表(固化)”。</div></div><div v-if="typeName==='门店收入明细'"><div :class="questionLess['questionPage-bg-title']">门店收入明细</div><div :style="{margin:'20rpx 0'}">以下数据均为固化数据:</div><div :style="{marginBottom:'20rpx'}">饼图:当天发生消费的一级科目和对应的金额,按金额从大到小顺时针排序。</div><div>注:以上数据,来源自“JY01 酒店综合统计日报表(固化)”。</div></div><div v-if="typeName==='数据维度day'"><div :class="questionLess['questionPage-bg-title']">数据维度</div><div :style="{margin:'20rpx 0'}">以下数据均为固化数据</div><div> <span :style="{width:'5px',height:'10px',verticalAlign:'middle',display:'inline-block',marginRight:'3px',background:'black'}"></span><span :style="{verticalAlign:'middle',display:'inline-block'}">总房费</span></div><div :style="{marginBottom:'20rpx',paddingLeft:'8px'}">房型:各房型产生的房费及排名,如果房型数量大于5,取前5个产生房费最多的房型;如果房型数量小于等于5,则显示产生房费的全部房型。查询1家门店时,有房型排行;查询超过1家门店时,无房型数据。</div><div :style="{marginBottom:'20rpx',paddingLeft:'8px'}">客源:各客源产生的房费以及排名,不产生房费的客源不显示。</div><div :style="{marginBottom:'20rpx',paddingLeft:'8px'}">渠道:各渠道产生的房费以及排名,不产生房费的渠道不显示。</div><div :style="{marginBottom:'3px'}"> <span :style="{width:'5px',height:'10px',verticalAlign:'middle',display:'inline-block',marginRight:'3px',background:'black'}"></span><span :style="{verticalAlign:'middle',display:'inline-block'}">“间夜数”,“出租率”,“平均房价”同“总房费”</span></div><div>注:以上数据,来源自“JY01 酒店综合统计日报表(固化)”。</div></div><div v-if="typeName==='数据维度month'"><div :class="questionLess['questionPage-bg-title']">数据维度</div><div :style="{margin:'20rpx 0'}">以下数据均为固化数据</div><div> <span :style="{width:'5px',height:'10px',verticalAlign:'middle',display:'inline-block',marginRight:'3px',background:'black'}"></span><span :style="{verticalAlign:'middle',display:'inline-block'}">总房费</span></div><div :style="{marginBottom:'20rpx',paddingLeft:'8px'}">当月趋势:当月每天总房费的趋势图,如果当月营业日已全部发生,则显示当月房费趋势;如果当月营业日未全部发生,则显示近30天的房费趋势。</div><div :style="{marginBottom:'20rpx',paddingLeft:'8px'}">房型:各房型产生的房费及排名,如果房型数量大于5,取前5个产生房费最多的房型;如果房型数量小于等于5,则显示产生房费的全部房型。查询1家门店时,有房型排行;查询超过1家门店时,无房型数据。</div><div :style="{marginBottom:'20rpx',paddingLeft:'8px'}">客源:各客源产生的房费以及排名,不产生房费的客源不显示。</div><div :style="{marginBottom:'20rpx',paddingLeft:'8px'}">渠道:各渠道产生的房费以及排名,不产生房费的渠道不显示。</div><div :style="{marginBottom:'3px'}"> <span :style="{width:'5px',height:'10px',verticalAlign:'middle',display:'inline-block',marginRight:'3px',background:'black'}"></span><span :style="{verticalAlign:'middle',display:'inline-block'}">“间夜数”,“出租率”,“平均房价”同“总房费”</span></div><div>注:以上数据,来源自“JY03 酒店综合统计月报表(固化)”。</div></div><div v-if="typeName==='数据维度year'"><div :class="questionLess['questionPage-bg-title']">数据维度</div><div :style="{margin:'20rpx 0'}">以下数据均为固化数据</div><div> <span :style="{width:'5px',height:'10px',verticalAlign:'middle',display:'inline-block',marginRight:'3px',background:'black'}"></span><span :style="{verticalAlign:'middle',display:'inline-block'}">总房费</span></div><div :style="{marginBottom:'20rpx',paddingLeft:'8px'}">当年趋势:当年每月总房费的趋势图,如果当年已全部发生,则显示12个月房费趋势;如果当年未全部发生,则显示已发生月份的房费趋势。</div><div :style="{marginBottom:'20rpx',paddingLeft:'8px'}">房型:各房型产生的房费及排名,如果房型数量大于5,取前5个产生房费最多的房型;如果房型数量小于等于5,则显示产生房费的全部房型。查询1家门店时,有房型排行;查询超过1家门店时,无房型数据。</div><div :style="{marginBottom:'20rpx',paddingLeft:'8px'}">客源:各客源产生的房费以及排名,不产生房费的客源不显示。</div><div :style="{marginBottom:'20rpx',paddingLeft:'8px'}">渠道:各渠道产生的房费以及排名,不产生房费的渠道不显示。</div><div :style="{marginBottom:'3px'}"> <span :style="{width:'5px',height:'10px',verticalAlign:'middle',display:'inline-block',marginRight:'3px',background:'black'}"></span><span :style="{verticalAlign:'middle',display:'inline-block'}">“间夜数”,“出租率”,“平均房价”同“总房费”</span></div><div>注:以上数据,来源自“JY03 酒店综合统计月报表(固化)”。</div></div><div v-if="typeName==='客房指标'"><div :class="questionLess['questionPage-bg-title']">客房指标</div><div :style="{margin:'20rpx 0'}">以下数据均为固化数据:</div><div :style="{marginBottom:'20rpx'}">总房量:过夜审时的物理客房数。</div><div :style="{marginBottom:'20rpx'}">过夜房:过夜审时的在住客房数。</div><div :style="{marginBottom:'20rpx'}">维修房:过夜审时的维修客房数。</div><div :style="{marginBottom:'20rpx'}">过夜房出租率=过夜房/总房量*100%,非出租率。</div><div>注:以上数据,来源自“JY01 酒店综合统计日报表(固化)”。</div></div><div v-if="typeName==='工作台数据'"><div :class="questionLess['questionPage-bg-title']">工作台数据</div><div :style="{margin:'20rpx 0'}">以下数据均为实时数据</div><div :style="{marginBottom:'20rpx',paddingLeft:'8px'}">总客房:同PMS实时房态下全部客房数,包含维修房,可用房。</div><div :style="{marginBottom:'20rpx',paddingLeft:'8px'}">可订房数=总客房数-维修房-今日预抵客房数-实时在住+今日预离。</div><div :style="{marginBottom:'20rpx',paddingLeft:'8px'}">今日预离=今日应离未离的客房数。</div><div :style="{marginBottom:'20rpx',paddingLeft:'8px'}">今日预抵=今日应到未到的预定客房数。</div><div :style="{marginBottom:'20rpx',paddingLeft:'8px'}">自用房:同PMS工作台,自用房数的合计。</div><div :style="{marginBottom:'20rpx',paddingLeft:'8px'}">维修房:同PMS实时房态,“按房态”的“维修”。</div></div><div v-if="typeName==='实时看板客房数'"><div :class="questionLess['questionPage-bg-title']">客房数</div><div :style="{margin:'20rpx 0'}">以下数据均为实时数据</div><div :style="{marginBottom:'20rpx',paddingLeft:'8px'}">实时在住客房数:同PMS工作台,在住-合计。</div><div :style="{marginBottom:'20rpx',paddingLeft:'8px'}">预计出租客房数=实时在住客房数+今日预抵客房数-自用房-今日预离客房数。</div></div><div v-if="typeName==='实时看板出租率'"><div :class="questionLess['questionPage-bg-title']">出租率</div><div :style="{margin:'20rpx 0'}">以下数据均为实时数据</div><div :style="{marginBottom:'20rpx',paddingLeft:'8px'}">实时出租率=(实时在住客房数-自用房)/(总客房-维修房-自用房)*100%。</div><div :style="{marginBottom:'20rpx',paddingLeft:'8px'}">预计出租率=(实时在住客房数+今日预抵客房数-自用房-今日预离客房数)/(总客房-维修房-自用房)*100%。</div></div><div v-if="typeName==='实时看板总房费'"><div :class="questionLess['questionPage-bg-title']">总房费</div><div :style="{margin:'20rpx 0'}">以下数据均为实时数据</div><div :style="{marginBottom:'20rpx',paddingLeft:'8px'}">实时总房费=(实时在住客房-今日预离房)房价累计,只看同住主单房价。</div><div :style="{marginBottom:'20rpx',paddingLeft:'8px'}">预计总房费=实时房费收入+今日预抵客房房价累计。</div></div><div v-if="typeName==='实时看板平均房价'"><div :class="questionLess['questionPage-bg-title']">平均房价</div><div :style="{margin:'20rpx 0'}">以下数据均为实时数据</div><div :style="{marginBottom:'20rpx',paddingLeft:'8px'}">实时平均房价=实时房费/(实时在住-今日预离房-自用房)。</div><div :style="{marginBottom:'20rpx',paddingLeft:'8px'}">预计平均房价=预计总房费/(实时在住客房数+今日预抵客房数-自用房-今日预离客房数)。</div></div><div :style="{textAlign:'right'}"><vanButton round :class="questionLess['questionPage-button']" type="danger" @click="closePopup">关闭</vanButton></div></div></div> --><div :style="{position:'relative',height:'100%'}"><div :class="questionLess['questionPage-tab']"><div :class="[questionLess['questionPage-tab-item'],index===0?'active':'']" @click="tab(0)">门店收入</div><div :class="[questionLess['questionPage-tab-item'],index===1?'active':'']" @click="tab(1)">门店收入明细</div><div :class="[questionLess['questionPage-tab-item'],index===2?'active':'']" @click="tab(2)">数据维度</div><div :class="[questionLess['questionPage-tab-item'],index===3?'active':'']" @click="tab(3)">客房指标</div></div><div class="questionPage-scroll"><scroll-view :style="{height:'100%'}" scroll-y="true" :scroll-top="scrollTop" @scroll="scrollContent"><dl class="questionPage-part"><dt :class="questionLess['questionPage-part-title']">门店收入明细0</dt><dd :class="questionLess['questionPage-part-content']"><div :class="questionLess['questionPage-part-content-subtitle']">以下数据均为固化数据:</div><div><div>饼图:当天发生消费的一级科目和对应的金额,按金额从大到小顺时针排序。</div><div>注:以上数据,来源自“JY01 酒店综合统计日报表(固化)”。</div></div></dd></dl><dl class="questionPage-part"><dt :class="questionLess['questionPage-part-title']">门店收入明细1</dt><dd :class="questionLess['questionPage-part-content']"><div :class="questionLess['questionPage-part-content-subtitle']">以下数据均为固化数据:</div><div><div>饼图:当天发生消费的一级科目和对应的金额,按金额从大到小顺时针排序。</div><div>注:以上数据,来源自“JY01 酒店综合统计日报表(固化)”。</div></div></dd></dl><dl class="questionPage-part"><dt :class="questionLess['questionPage-part-title']">门店收入明细2</dt><dd :class="questionLess['questionPage-part-content']"><div :class="questionLess['questionPage-part-content-subtitle']">以下数据均为固化数据:</div><div><div>饼图:当天发生消费的一级科目和对应的金额,按金额从大到小顺时针排序。</div><div>注:以上数据,来源自“JY01 酒店综合统计日报表(固化)”。</div></div></dd></dl><dl class="questionPage-part"><dt :class="questionLess['questionPage-part-title']">门店收入明细3</dt><dd :class="questionLess['questionPage-part-content']"><div :class="questionLess['questionPage-part-content-subtitle']">以下数据均为固化数据:</div><div><div>饼图:当天发生消费的一级科目和对应的金额,按金额从大到小顺时针排序。</div><div>注:以上数据,来源自“JY01 酒店综合统计日报表(固化)”。</div></div></dd></dl><dl class="questionPage-part"><dt :class="questionLess['questionPage-part-title']">门店收入明细4</dt><dd :class="questionLess['questionPage-part-content']"><div :class="questionLess['questionPage-part-content-subtitle']">以下数据均为固化数据:</div><div><div>饼图:当天发生消费的一级科目和对应的金额,按金额从大到小顺时针排序。</div><div>注:以上数据,来源自“JY01 酒店综合统计日报表(固化)”。</div></div></dd></dl><dl class="questionPage-part"><dt :class="questionLess['questionPage-part-title']">门店收入明细4</dt><dd :class="questionLess['questionPage-part-content']"><div :class="questionLess['questionPage-part-content-subtitle']">以下数据均为固化数据:</div><div><div>饼图:当天发生消费的一级科目和对应的金额,按金额从大到小顺时针排序。</div><div>注:以上数据,来源自“JY01 酒店综合统计日报表(固化)”。</div></div></dd></dl><dl class="questionPage-part"><dt :class="questionLess['questionPage-part-title']">门店收入明细4</dt><dd :class="questionLess['questionPage-part-content']"><div :class="questionLess['questionPage-part-content-subtitle']">以下数据均为固化数据:</div><div><div>饼图:当天发生消费的一级科目和对应的金额,按金额从大到小顺时针排序。</div><div>注:以上数据,来源自“JY01 酒店综合统计日报表(固化)”。</div></div></dd></dl><dl class="questionPage-part"><dt :class="questionLess['questionPage-part-title']">门店收入明细4</dt><dd :class="questionLess['questionPage-part-content']"><div :class="questionLess['questionPage-part-content-subtitle']">以下数据均为固化数据:</div><div><div>饼图:当天发生消费的一级科目和对应的金额,按金额从大到小顺时针排序。</div><div>注:以上数据,来源自“JY01 酒店综合统计日报表(固化)”。</div></div></dd></dl></scroll-view></div></div>
</template>
<script>
import {navigateBack} from '../../utils/commUtil'
import questionLess from './questionPage.less'
export default {data () {return {questionLess,showCatergory: '',typeName: '',dataArr: '',index: 0,scrollTop: 0}},methods: {closePopup () {this.show = falsenavigateBack()wx.showTabBar()},scrollContent (e) {this.dataArr.forEach((ele, index) => {if (ele.top <= e.target.scrollTop && e.target.scrollTop <= ele.top + ele.height) {this.index = indexconsole.log(this.index)}})},tab (x) {this.scrollTop = this.dataArr[x].top}},onLoad: function (options) {console.log('options', options)this.typeName = options.typeName},onShow () {const query = wx.createSelectorQuery()let self = thisquery.selectAll('.questionPage-part').boundingClientRect(function (res) {res.forEach(ele => {ele.top = ele.top - 64})self.dataArr = res}).exec()}
}
</script>

这篇关于mpvue实现类似通讯录锚点的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/548878

相关文章

AJAX请求上传下载进度监控实现方式

《AJAX请求上传下载进度监控实现方式》在日常Web开发中,AJAX(AsynchronousJavaScriptandXML)被广泛用于异步请求数据,而无需刷新整个页面,:本文主要介绍AJAX请... 目录1. 前言2. 基于XMLHttpRequest的进度监控2.1 基础版文件上传监控2.2 增强版多

Redis分片集群的实现

《Redis分片集群的实现》Redis分片集群是一种将Redis数据库分散到多个节点上的方式,以提供更高的性能和可伸缩性,本文主要介绍了Redis分片集群的实现,具有一定的参考价值,感兴趣的可以了解一... 目录1. Redis Cluster的核心概念哈希槽(Hash Slots)主从复制与故障转移2.

springboot+dubbo实现时间轮算法

《springboot+dubbo实现时间轮算法》时间轮是一种高效利用线程资源进行批量化调度的算法,本文主要介绍了springboot+dubbo实现时间轮算法,文中通过示例代码介绍的非常详细,对大家... 目录前言一、参数说明二、具体实现1、HashedwheelTimer2、createWheel3、n

使用Python实现一键隐藏屏幕并锁定输入

《使用Python实现一键隐藏屏幕并锁定输入》本文主要介绍了使用Python编写一个一键隐藏屏幕并锁定输入的黑科技程序,能够在指定热键触发后立即遮挡屏幕,并禁止一切键盘鼠标输入,这样就再也不用担心自己... 目录1. 概述2. 功能亮点3.代码实现4.使用方法5. 展示效果6. 代码优化与拓展7. 总结1.

Mybatis 传参与排序模糊查询功能实现

《Mybatis传参与排序模糊查询功能实现》:本文主要介绍Mybatis传参与排序模糊查询功能实现,本文通过实例代码给大家介绍的非常详细,感兴趣的朋友跟随小编一起看看吧... 目录一、#{ }和${ }传参的区别二、排序三、like查询四、数据库连接池五、mysql 开发企业规范一、#{ }和${ }传参的

Docker镜像修改hosts及dockerfile修改hosts文件的实现方式

《Docker镜像修改hosts及dockerfile修改hosts文件的实现方式》:本文主要介绍Docker镜像修改hosts及dockerfile修改hosts文件的实现方式,具有很好的参考价... 目录docker镜像修改hosts及dockerfile修改hosts文件准备 dockerfile 文

基于SpringBoot+Mybatis实现Mysql分表

《基于SpringBoot+Mybatis实现Mysql分表》这篇文章主要为大家详细介绍了基于SpringBoot+Mybatis实现Mysql分表的相关知识,文中的示例代码讲解详细,感兴趣的小伙伴可... 目录基本思路定义注解创建ThreadLocal创建拦截器业务处理基本思路1.根据创建时间字段按年进

SpringBoot3实现Gzip压缩优化的技术指南

《SpringBoot3实现Gzip压缩优化的技术指南》随着Web应用的用户量和数据量增加,网络带宽和页面加载速度逐渐成为瓶颈,为了减少数据传输量,提高用户体验,我们可以使用Gzip压缩HTTP响应,... 目录1、简述2、配置2.1 添加依赖2.2 配置 Gzip 压缩3、服务端应用4、前端应用4.1 N

SpringBoot实现数据库读写分离的3种方法小结

《SpringBoot实现数据库读写分离的3种方法小结》为了提高系统的读写性能和可用性,读写分离是一种经典的数据库架构模式,在SpringBoot应用中,有多种方式可以实现数据库读写分离,本文将介绍三... 目录一、数据库读写分离概述二、方案一:基于AbstractRoutingDataSource实现动态

Python FastAPI+Celery+RabbitMQ实现分布式图片水印处理系统

《PythonFastAPI+Celery+RabbitMQ实现分布式图片水印处理系统》这篇文章主要为大家详细介绍了PythonFastAPI如何结合Celery以及RabbitMQ实现简单的分布式... 实现思路FastAPI 服务器Celery 任务队列RabbitMQ 作为消息代理定时任务处理完整