index.vue 5.0 KB

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