index.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. <template>
  2. <view>
  3. <!-- 头部导航 -->
  4. <view class="tesx">
  5. <view :class="tobu == 1 ? 'con' : ''" @click="to(1)" style="margin-right: 20rpx;">需要观察</view>
  6. <view :class="tobu == 2 ? 'con' : ''" @click="to(2)">处置记录</view>
  7. </view>
  8. <!-- 搜索框 -->
  9. <view class="sou">
  10. <input class="inp" placeholder="搜索"/>
  11. <u-icon class="inp-img" name="search" color="#8C8C8C" size="49rpx"></u-icon>
  12. </view>
  13. <u-swipe-action>
  14. <u-swipe-action-item
  15. :options="swipe"
  16. >
  17. <!-- 任务分块部分 -->
  18. <view class="chunking" @click="toDetails()">
  19. <view style="overflow: hidden;">
  20. <view class="img-no"></view>
  21. <!-- 图片替代 -->
  22. <!-- 基本信息 -->
  23. <view class="chunking-text">
  24. <view class="top"><text style="font-size: 32rpx;">Messi</text> . <text style="margin-left: 10rpx;">男</text> </view>
  25. <view class="bottom">十岁 <text style="margin-left: 10rpx;">一年级</text></view>
  26. </view>
  27. <!-- 时间 -->
  28. <view class="chunking-time">2022.12.01 12:01</view>
  29. </view>
  30. <!-- 简略信息 -->
  31. <view class="brief">
  32. <view style="color: #6241D5; font-weight: 600; margin-bottom: 10rpx;">伤情:</view>
  33. 外伤左手指尖利器划伤2cm
  34. </view>
  35. <!-- 底部 -->
  36. <view class="block-end">
  37. <!-- 处理人信息 -->
  38. <view class="handle">
  39. 处理人: {{handle}}
  40. </view>
  41. <!-- 跟踪处置 - 按钮 -->
  42. <view class="ann" style="float: right;" @click="track">
  43. 跟踪处置
  44. </view>
  45. </view>
  46. </view>
  47. </u-swipe-action-item>
  48. </u-swipe-action>
  49. <!-- 功能不明确,暂时 -->
  50. <view @click="toFace">
  51. 人脸识别跳转
  52. </view>
  53. <!-- 悬浮按钮 -->
  54. <view class="suspension" @click="toAdd">
  55. <image src="../../static/icon.svg"></image>
  56. </view>
  57. </view>
  58. </template>
  59. <script>
  60. export default {
  61. data() {
  62. return {
  63. providerList: [],
  64. version: '',
  65. handle: 'Mba',
  66. tobu: '1',
  67. swipe: [{
  68. text: '取消跟踪',
  69. style: {
  70. backgroundColor: '#FA541C',
  71. }
  72. }]
  73. }
  74. },
  75. onLoad() {
  76. },
  77. methods: {
  78. save() {
  79. },
  80. // 跟踪处置
  81. track(){
  82. console.log('跟踪处置按钮触发')
  83. },
  84. // 点击改变是否观察或者处理记录
  85. to(data){
  86. this.tobu = data
  87. },
  88. //跳转详情
  89. toDetails(data){
  90. console.log('w')
  91. uni.navigateTo({
  92. url: '/pages/details/index'
  93. })
  94. },
  95. // 跳转新增
  96. toAdd(){
  97. uni.navigateTo({
  98. url: '/pages/addHandle/index'
  99. })
  100. },
  101. toFace(){
  102. uni.navigateTo({
  103. url: '/pages/face/index'
  104. })
  105. }
  106. }
  107. }
  108. </script>
  109. <style lang="scss" scoped>
  110. page{
  111. padding: 0 32rpx;
  112. /* background-color: #D9D9D9; */
  113. background-color: #F5F5F5 !important;
  114. }
  115. .tesx{
  116. display: flex;
  117. align-items: center;
  118. font-size: 32rpx;
  119. color: rgba(0,0,0,0.60);
  120. height: 128rpx;
  121. margin-bottom: 16rpx;
  122. }
  123. .con{
  124. font-size: 40rpx;
  125. font-weight: 600;
  126. color: #000;
  127. }
  128. .sou{
  129. margin-bottom: 30rpx;
  130. position: relative;
  131. overflow: hidden;
  132. }
  133. .inp{
  134. height: 72rpx;
  135. border: 2rpx solid #D9D9D9;
  136. border-radius: 50px;
  137. box-sizing: border-box;
  138. padding-left: 60rpx;
  139. }
  140. .inp-img{
  141. position: absolute;
  142. top: 10rpx;
  143. left: 10rpx;
  144. }
  145. .chunking{
  146. height: 400rpx;
  147. border-radius: 32rpx;
  148. background-color: #fff;
  149. box-sizing: border-box;
  150. padding: 32rpx;
  151. position: relative;
  152. }
  153. .img-no{
  154. width: 83rpx;
  155. height: 83rpx;
  156. background-color: #D9D9D9;
  157. border-radius: 50rpx;
  158. margin-right: 15rpx;
  159. float: left;
  160. }
  161. .chunking-text{
  162. float: left;
  163. font-size: 25rpx;
  164. display: flex;
  165. flex-direction: column;
  166. justify-content: center;
  167. }
  168. .chunking-text .top{}
  169. .chunking-text .buttom{}
  170. .chunking-time{
  171. float: right;
  172. font-size: 28rpx;
  173. color: rgba(0,0,0,0.60);
  174. height: 83rpx;
  175. line-height: 83rpx;
  176. }
  177. .brief{
  178. width: 622rpx;
  179. height: 136rpx;
  180. background: #fafafa;
  181. border-radius: 16rpx;
  182. margin-top: 33rpx;
  183. box-sizing: border-box;
  184. padding: 16rpx 23rpx;
  185. font-size: 28rpx;
  186. color: rgba(0,0,0,0.60);
  187. font-weight: 500;
  188. }
  189. .block-end{
  190. height: 56rpx;
  191. font-size: 28rpx;
  192. color: #000;
  193. font-weight: 500;
  194. margin-top: 32rpx;
  195. }
  196. .handle{
  197. float: left;
  198. line-height: 58rpx;
  199. }
  200. .ann{
  201. float: right;
  202. border: 1px solid #fa8c16;
  203. box-sizing: border-box;
  204. padding: 15rpx 25rpx;
  205. color: #FA8C16;
  206. border-radius: 40rpx;
  207. position: relative;
  208. z-index: 9;
  209. }
  210. .suspension{
  211. width: 96rpx;
  212. height: 96rpx;
  213. border-radius: 50px;
  214. background-color: #7b5df0;
  215. position:fixed;
  216. right: 32rpx;
  217. bottom: 168rpx;
  218. }
  219. .suspension image{
  220. width: 100%;
  221. height: 100%;
  222. }
  223. /* 滑块单元格样式 */
  224. .u-swipe-action-item{
  225. border-radius: 32rpx;
  226. }
  227. .swipe-action {
  228. &__content {
  229. padding: 25rpx 0;
  230. &__text {
  231. font-size: 28rpx;
  232. color: #fff;
  233. padding-left: 30rpx;
  234. }
  235. }
  236. }
  237. </style>