index.vue 4.9 KB

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