| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277 |
- <template>
- <view>
- <!-- 头部导航 -->
- <view class="tesx">
- <view :class="tobu == 1 ? 'con' : ''" @click="to(1)" style="margin-right: 20rpx;">需要观察</view>
- <view :class="tobu == 2 ? 'con' : ''" @click="to(2)">处置记录</view>
- </view>
-
- <!-- 搜索框 -->
- <view class="sou">
- <input class="inp" placeholder="搜索"/>
- <u-icon class="inp-img" name="search" color="#8C8C8C" size="49rpx"></u-icon>
- </view>
-
- <u-swipe-action>
- <u-swipe-action-item
- :options="swipe"
- >
-
- <!-- 任务分块部分 -->
- <view class="chunking" @click="toDetails()">
- <view style="overflow: hidden;">
- <view class="img-no"></view>
- <!-- 图片替代 -->
-
- <!-- 基本信息 -->
- <view class="chunking-text">
- <view class="top"><text style="font-size: 32rpx;">Messi</text> . <text style="margin-left: 10rpx;">男</text> </view>
- <view class="bottom">十岁 <text style="margin-left: 10rpx;">一年级</text></view>
- </view>
-
- <!-- 时间 -->
- <view class="chunking-time">2022.12.01 12:01</view>
- </view>
-
- <!-- 简略信息 -->
- <view class="brief">
- <view style="color: #6241D5; font-weight: 600; margin-bottom: 10rpx;">伤情:</view>
- 外伤左手指尖利器划伤2cm
- </view>
-
- <!-- 底部 -->
- <view class="block-end">
- <!-- 处理人信息 -->
- <view class="handle">
- 处理人: {{handle}}
- </view>
-
- <!-- 跟踪处置 - 按钮 -->
- <view class="ann" style="float: right;" @click="track">
- 跟踪处置
- </view>
- </view>
- </view>
- </u-swipe-action-item>
- </u-swipe-action>
- <!-- 功能不明确,暂时 -->
- <view @click="toFace">
- 人脸识别跳转
- </view>
-
- <!-- 悬浮按钮 -->
- <view class="suspension" @click="toAdd">
- <image src="../../static/icon.svg"></image>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- providerList: [],
- version: '',
- handle: 'Mba',
- tobu: '1',
- swipe: [{
- text: '取消跟踪',
- style: {
- backgroundColor: '#FA541C',
- }
- }]
-
- }
- },
- onLoad() {
-
- },
- methods: {
- save() {
-
- },
-
- // 跟踪处置
- track(){
- console.log('跟踪处置按钮触发')
- },
-
- // 点击改变是否观察或者处理记录
- to(data){
- this.tobu = data
- },
-
- //跳转详情
- toDetails(data){
- console.log('w')
- uni.navigateTo({
- url: '/pages/details/index'
- })
- },
-
- // 跳转新增
- toAdd(){
- uni.navigateTo({
- url: '/pages/addHandle/index'
- })
- },
-
- toFace(){
- uni.navigateTo({
- url: '/pages/face/index'
- })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- page{
- padding: 0 32rpx;
- /* background-color: #D9D9D9; */
- background-color: #F5F5F5 !important;
- }
-
- .tesx{
- display: flex;
- align-items: center;
- font-size: 32rpx;
- color: rgba(0,0,0,0.60);
- height: 128rpx;
- margin-bottom: 16rpx;
- }
-
- .con{
- font-size: 40rpx;
- font-weight: 600;
- color: #000;
- }
-
- .sou{
- margin-bottom: 30rpx;
- position: relative;
- overflow: hidden;
- }
-
- .inp{
- height: 72rpx;
- border: 2rpx solid #D9D9D9;
- border-radius: 50px;
- box-sizing: border-box;
- padding-left: 60rpx;
- }
-
- .inp-img{
- position: absolute;
- top: 10rpx;
- left: 10rpx;
- }
-
- .chunking{
- height: 400rpx;
- border-radius: 32rpx;
- background-color: #fff;
- box-sizing: border-box;
- padding: 32rpx;
- position: relative;
- }
-
- .img-no{
- width: 83rpx;
- height: 83rpx;
- background-color: #D9D9D9;
- border-radius: 50rpx;
- margin-right: 15rpx;
- float: left;
- }
-
- .chunking-text{
- float: left;
- font-size: 25rpx;
- display: flex;
- flex-direction: column;
- justify-content: center;
- }
-
- .chunking-text .top{}
-
- .chunking-text .buttom{}
-
- .chunking-time{
- float: right;
- font-size: 28rpx;
- color: rgba(0,0,0,0.60);
- height: 83rpx;
- line-height: 83rpx;
- }
-
- .brief{
- width: 622rpx;
- height: 136rpx;
- background: #fafafa;
- border-radius: 16rpx;
- margin-top: 33rpx;
- box-sizing: border-box;
- padding: 16rpx 23rpx;
- font-size: 28rpx;
- color: rgba(0,0,0,0.60);
- font-weight: 500;
- }
-
- .block-end{
- height: 56rpx;
- font-size: 28rpx;
- color: #000;
- font-weight: 500;
- margin-top: 32rpx;
- }
-
- .handle{
- float: left;
- line-height: 58rpx;
- }
-
- .ann{
- float: right;
- border: 1px solid #fa8c16;
- box-sizing: border-box;
- padding: 15rpx 25rpx;
- color: #FA8C16;
- border-radius: 40rpx;
- position: relative;
- z-index: 9;
- }
-
- .suspension{
- width: 96rpx;
- height: 96rpx;
- border-radius: 50px;
- background-color: #7b5df0;
- position:fixed;
- right: 32rpx;
- bottom: 168rpx;
- }
-
- .suspension image{
- width: 100%;
- height: 100%;
- }
-
- /* 滑块单元格样式 */
- .u-swipe-action-item{
- border-radius: 32rpx;
- }
- .swipe-action {
- &__content {
- padding: 25rpx 0;
-
- &__text {
- font-size: 28rpx;
- color: #fff;
- padding-left: 30rpx;
- }
- }
- }
- </style>
|