punish.vue 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. <template>
  2. <view class="content">
  3. <view class="main" v-for="(item,index) in 10" :key="index">
  4. <view class="main-top flex">
  5. <view class="main-title ">
  6. 旷工处罚
  7. </view>
  8. <view class="main-type" :class="{red:index%3==1}">
  9. {{index%3 ==1?'待处理':index%3 ==2?'已反对':'已完成'}}
  10. </view>
  11. </view>
  12. <view class="main-time">
  13. 处罚日期:2023年10月10日
  14. </view>
  15. <view class="main-info">
  16. <view class="main-info-item">
  17. <text
  18. class="main-info-title">处罚说明:</text>处罚理由处罚理由处罚理由处罚理由处罚理由处罚理由处罚理由处罚理由处罚理由处罚理由处罚理由处罚理由处罚理由处罚理由处罚理由处罚理由处罚理由处罚理由处罚理由处罚理由处罚理由处罚理由
  19. </view>
  20. <view class="main-info-item" v-if="index%3 !=1">
  21. <text
  22. class="main-info-title">领导处理说明:</text>领导处理说明领导处理说明领导处理说明领导处理说明领导处理说明领导处理说明领导处理说明领导处理说明领导处理说明领导处理说明领导处理说明领导处理说明领导处理说明领导处理说明
  23. </view>
  24. </view>
  25. <view class="main-name flex">
  26. <view class="main-name-left">
  27. 扣款人:李丹丹
  28. </view>
  29. <view class="main-name-right">
  30. ¥200
  31. </view>
  32. </view>
  33. <view class="btn-box" @click="open()">
  34. <view class="btn1">
  35. 修改处罚
  36. </view>
  37. <view class="btn2">
  38. 撤销处罚
  39. </view>
  40. </view>
  41. </view>
  42. <view class="add-box" @click="navTo('/pages/leader/addpunish')">
  43. <image class="add-icon" src="../../static/icon/add.png" mode=""></image>
  44. <view class="add-font">
  45. 添加处罚
  46. </view>
  47. </view>
  48. <uni-popup ref="popup" type="center">
  49. <view class="popup-box">
  50. <view class="popup-title">
  51. 撤销说明
  52. </view>
  53. <view class="popup-main">
  54. <textarea placeholder="请点击输入..." class="popup-main-font" name="" id="" cols="30"
  55. rows="10"></textarea>
  56. </view>
  57. <view class="popup-btn-box flex">
  58. <view class="popup-btn-item qx" @click="cancel()">
  59. 取消
  60. </view>
  61. <view class="popup-btn-item qd">
  62. 确定
  63. </view>
  64. </view>
  65. </view>
  66. </uni-popup>
  67. </view>
  68. </template>
  69. <script>
  70. export default {
  71. data() {
  72. return {};
  73. },
  74. onLoad() {},
  75. onShow() {},
  76. onReachBottom() {},
  77. onReady() {},
  78. methods: {
  79. open() {
  80. this.$refs.popup.open()
  81. },
  82. cancel() {
  83. this.$refs.popup.close()
  84. },
  85. navTo(url) {
  86. uni.navigateTo({
  87. url
  88. })
  89. }
  90. }
  91. };
  92. </script>
  93. <style lang="scss">
  94. page,
  95. .content {
  96. min-height: 100%;
  97. height: auto;
  98. }
  99. .main {
  100. margin: 20rpx auto 0;
  101. width: 706rpx;
  102. background: #FFFFFF;
  103. border-radius: 15rpx;
  104. padding: 34rpx 20rpx 0rpx;
  105. .main-top {
  106. padding: 0 16rpx;
  107. .main-title {
  108. font-size: 30rpx;
  109. font-family: PingFang SC;
  110. font-weight: bold;
  111. color: #333333;
  112. }
  113. .main-type {
  114. font-size: 26rpx;
  115. font-family: PingFang SC;
  116. font-weight: 500;
  117. color: #999999;
  118. }
  119. .red {
  120. color: #FF4C4C;
  121. }
  122. }
  123. .main-time {
  124. margin-top: 20rpx;
  125. padding: 0 16rpx;
  126. font-size: 26rpx;
  127. font-family: PingFang SC;
  128. font-weight: 500;
  129. color: #666666;
  130. }
  131. .main-info {
  132. padding: 0 14rpx;
  133. margin-top: 20rpx;
  134. padding: 26rpx 26rpx 26rpx 20rpx;
  135. background: #f2f2f2;
  136. .main-info-item {
  137. .main-info-title {
  138. color: #333333;
  139. }
  140. margin-top: 24rpx;
  141. font-size: 24rpx;
  142. font-family: PingFang SC;
  143. font-weight: bold;
  144. color: #666666;
  145. }
  146. .main-info-item:first-child {
  147. margin-top: 0;
  148. }
  149. }
  150. .main-name {
  151. padding: 28rpx 16rpx;
  152. .main-name-left {
  153. font-size: 24rpx;
  154. font-family: PingFang SC;
  155. font-weight: bold;
  156. color: #333333;
  157. }
  158. .main-name-right {
  159. font-size: 30rpx;
  160. font-family: PingFang SC;
  161. font-weight: bold;
  162. color: #FF4C4C;
  163. }
  164. }
  165. .btn-box {
  166. border-top: 1px solid #f6f6f6;
  167. padding: 28rpx 12rpx 20rpx;
  168. display: flex;
  169. justify-content: flex-end;
  170. .btn1 {
  171. display: flex;
  172. justify-content: center;
  173. align-items: center;
  174. width: 144rpx;
  175. height: 55rpx;
  176. border: 2px solid #EBEBEB;
  177. border-radius: 28rpx;
  178. font-size: 26rpx;
  179. font-family: PingFang SC;
  180. font-weight: 500;
  181. color: #999999;
  182. }
  183. .btn2 {
  184. margin-left: 20rpx;
  185. display: flex;
  186. justify-content: center;
  187. align-items: center;
  188. width: 144rpx;
  189. height: 55rpx;
  190. border: 2px solid #FF4C4C;
  191. border-radius: 28rpx;
  192. font-size: 26rpx;
  193. font-family: PingFang SC;
  194. font-weight: 500;
  195. color: #FF4C4C;
  196. }
  197. }
  198. }
  199. .add-box {
  200. margin: 100rpx auto 0;
  201. width: 622rpx;
  202. height: 85rpx;
  203. background: #069CFA;
  204. border-radius: 15rpx;
  205. display: flex;
  206. justify-content: center;
  207. align-items: center;
  208. .add-icon {
  209. width: 38rpx;
  210. height: 38rpx;
  211. }
  212. .add-font {
  213. margin-left: 10rpx;
  214. font-size: 32rpx;
  215. font-family: PingFang SC;
  216. font-weight: bold;
  217. color: #FFFFFF;
  218. }
  219. }
  220. .popup-box {
  221. width: 582rpx;
  222. background: #FFFFFF;
  223. border-radius: 7rpx;
  224. padding: 64rpx 32rpx 54rpx;
  225. .popup-title {
  226. text-align: center;
  227. font-size: 42rpx;
  228. font-family: PingFang SC;
  229. font-weight: bold;
  230. color: #2D2D2D;
  231. }
  232. .popup-main {
  233. margin-top: 42rpx;
  234. width: 100%;
  235. height: 194rpx;
  236. background: #F4F4F4;
  237. border-radius: 10rpx;
  238. padding: 20rpx;
  239. .popup-main-font {
  240. width: 100%;
  241. height: 100%;
  242. font-size: 34rpx;
  243. font-family: PingFang SC;
  244. font-weight: 500;
  245. color: #999999;
  246. }
  247. }
  248. .popup-btn-box {
  249. margin-top: 50rpx;
  250. .popup-btn-item {
  251. display: flex;
  252. justify-content: center;
  253. align-items: center;
  254. width: 248rpx;
  255. height: 78rpx;
  256. border-radius: 5rpx;
  257. font-size: 34rpx;
  258. font-family: PingFang SC;
  259. font-weight: 500;
  260. }
  261. .qx {
  262. color: #333333;
  263. background: #FFFFFF;
  264. border: 1px solid #999999;
  265. }
  266. .qd {
  267. background: #069CFA;
  268. color: #FFFFFF;
  269. }
  270. }
  271. }
  272. </style>