fix: 健康档案统计,样式优化完善。

This commit is contained in:
tianyongbao
2025-11-26 02:19:19 +08:00
parent 2006eb22e4
commit aa2b470219
62 changed files with 16320 additions and 4930 deletions

View File

@@ -1,10 +1,9 @@
<template>
<view>
<movable-area class="movable-area">
<movable-view class="movable-view" :x="x" :y="y" direction="all">
<movable-view class="movable-view" :x="x" :y="y" direction="all" :style="{opacity: showButton ? 1 : 0}">
<view class="refreshPages" @click="refreshPages">
<image src="../../static/images/tabbar/refresh.png"></image>
<!-- <text></text> -->
<uni-icons type="reload" size="32" color="#52c41a"></uni-icons>
</view>
</movable-view>
</movable-area>
@@ -15,10 +14,16 @@
export default {
data() {
return {
x: 1000, // x大于默认的值就会在最右边
y: 1000
x: 600,
y: 800,
showButton: false
};
},
mounted() {
setTimeout(() => {
this.showButton = true;
}, 100);
},
computed: {
},
@@ -48,30 +53,23 @@
z-index: 99999999;
pointer-events: none; //此处要加,鼠标事件可以渗透
.movable-view {
width: 60rpx;
height: 60rpx;
width: 88rpx;
height: 88rpx;
pointer-events: auto; //恢复鼠标事件
.refreshPages {
width: 60rpx;
height: 60rpx;
width: 88rpx;
height: 88rpx;
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
background: #ffffff;
border-radius: 50%;
border: 1px solid #a6a6a6;
image {
width: 30rpx;
height: 30rpx;
}
text {
margin-top: 10rpx;
font-size: 16rpx;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #000000;
box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.12);
transition: transform 0.3s ease, box-shadow 0.3s ease;
&:active {
transform: scale(0.92) rotate(180deg);
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.08);
}
}
}

View File

@@ -1,10 +1,9 @@
<template>
<view>
<movable-area class="movable-area">
<movable-view class="movable-view" :x="x" :y="y" direction="all">
<movable-view class="movable-view" :x="x" :y="y" direction="all" :style="{opacity: showButton ? 1 : 0}">
<view class="newProblem" @click="newProblem">
<image src="../../static/images/tabbar/work.png"></image>
<!-- <text></text> -->
<uni-icons type="map-pin-ellipse" size="32" color="#667eea"></uni-icons>
</view>
</movable-view>
</movable-area>
@@ -15,10 +14,16 @@
export default {
data() {
return {
x: 1000, // x大于默认的值就会在最右边
y: 1000
x: 600,
y: 800,
showButton: false
};
},
mounted() {
setTimeout(() => {
this.showButton = true;
}, 100);
},
computed: {
},
@@ -34,7 +39,7 @@
<style lang="less">
.movable-area {
// 保持在右下角
margin-top: 200rpx;
margin-top: 230rpx;
margin-left: 100rpx;
height: calc(100vh - 300rpx);
width: calc(100vw - 150rpx);
@@ -46,30 +51,23 @@
z-index: 99999999;
pointer-events: none; //此处要加,鼠标事件可以渗透
.movable-view {
width: 60rpx;
height: 60rpx;
width: 88rpx;
height: 88rpx;
pointer-events: auto; //恢复鼠标事件
.newProblem {
width: 60rpx;
height: 60rpx;
width: 88rpx;
height: 88rpx;
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
background: #ffffff;
border-radius: 50%;
border: 1px solid #a6a6a6;
image {
width: 30rpx;
height: 30rpx;
}
text {
margin-top: 10rpx;
font-size: 16rpx;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #000000;
box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.12);
transition: transform 0.3s ease, box-shadow 0.3s ease;
&:active {
transform: scale(0.92);
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.08);
}
}
}