terminate.uvue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <template>
  2. <view class="page-container">
  3. <!-- 头部 -->
  4. <view class="header">
  5. <view class="header-left" @click="goBack">
  6. <u-icon name="arrow-left" size="24" color="#333"/>
  7. </view>
  8. <view class="header-title">
  9. 解约
  10. </view>
  11. <view class="header-right"></view>
  12. </view>
  13. <!-- 内容区域 -->
  14. <view class="content">
  15. <!-- 解约月份 -->
  16. <view class="form-item">
  17. <text class="label">解约月份</text>
  18. <view class="value">2014-10</view>
  19. <u-icon name="arrow-right" size="16" color="#999"/>
  20. </view>
  21. <!-- 解约日期 -->
  22. <view class="form-item">
  23. <text class="label">解约日期</text>
  24. <view class="value">20号</view>
  25. <u-icon name="arrow-right" size="16" color="#999"/>
  26. </view>
  27. <!-- 申请原因 -->
  28. <view class="reason-section">
  29. <text class="section-title">申请原因</text>
  30. <textarea class="reason-input" placeholder="请填写解约原因(100字以内)"></textarea>
  31. </view>
  32. <!-- 温馨提示 -->
  33. <view class="tips-section">
  34. <text class="tips-title">温馨提示:</text>
  35. <view class="tips-list">
  36. <text class="tips-item">1、需至少提前15天进行申请。</text>
  37. <text class="tips-item">2、固定时间为每月5号和20号。</text>
  38. <text class="tips-item">3、申请通过后,需在15天后到公司行政处办理解约手续。</text>
  39. <text class="tips-item">4、申请通过后,解约日期之后开始不能接单。</text>
  40. </view>
  41. </view>
  42. <!-- 提交按钮 -->
  43. <view class="button-section">
  44. <button class="submit-btn" @click="submitApplication">提交申请</button>
  45. <button class="record-btn" @click="viewRecords">解约记录</button>
  46. </view>
  47. </view>
  48. </view>
  49. </template>
  50. <script setup lang="ts">
  51. const goBack = () => {
  52. uni.navigateBack();
  53. };
  54. const submitApplication = () => {
  55. uni.showToast({ title: '提交申请成功', icon: 'success' });
  56. };
  57. const viewRecords = () => {
  58. uni.showToast({ title: '查看解约记录', icon: 'none' });
  59. };
  60. </script>
  61. <style scoped>
  62. .page-container {
  63. background-color: #f5f5f5;
  64. min-height: 100vh;
  65. }
  66. .header {
  67. display: flex;
  68. align-items: center;
  69. justify-content: space-between;
  70. padding: 20rpx;
  71. background-color: #ffffff;
  72. border-bottom: 1rpx solid #f0f0f0;
  73. }
  74. .header-left, .header-right {
  75. width: 60rpx;
  76. }
  77. .header-title {
  78. font-size: 32rpx;
  79. font-weight: bold;
  80. color: #333;
  81. }
  82. .content {
  83. padding: 30rpx;
  84. }
  85. .form-item {
  86. display: flex;
  87. align-items: center;
  88. justify-content: space-between;
  89. padding: 20rpx;
  90. background-color: #ffffff;
  91. border-radius: 16rpx;
  92. margin-bottom: 20rpx;
  93. }
  94. .label {
  95. font-size: 28rpx;
  96. color: #333;
  97. }
  98. .value {
  99. font-size: 28rpx;
  100. color: #666;
  101. }
  102. .reason-section {
  103. background-color: #ffffff;
  104. border-radius: 16rpx;
  105. padding: 20rpx;
  106. margin-bottom: 30rpx;
  107. }
  108. .section-title {
  109. font-size: 28rpx;
  110. color: #333;
  111. margin-bottom: 15rpx;
  112. }
  113. .reason-input {
  114. width: 100%;
  115. min-height: 120rpx;
  116. font-size: 26rpx;
  117. color: #333;
  118. line-height: 1.5;
  119. }
  120. .tips-section {
  121. background-color: #ffffff;
  122. border-radius: 16rpx;
  123. padding: 20rpx;
  124. margin-bottom: 40rpx;
  125. }
  126. .tips-title {
  127. font-size: 28rpx;
  128. color: #ff6b35;
  129. font-weight: bold;
  130. margin-bottom: 15rpx;
  131. display: block;
  132. }
  133. .tips-list {
  134. display: flex;
  135. flex-direction: column;
  136. gap: 10rpx;
  137. }
  138. .tips-item {
  139. font-size: 26rpx;
  140. color: #666;
  141. line-height: 1.4;
  142. }
  143. .button-section {
  144. display: flex;
  145. flex-direction: column;
  146. gap: 20rpx;
  147. }
  148. .submit-btn {
  149. background-color: #ffc107;
  150. color: #333;
  151. font-size: 30rpx;
  152. font-weight: bold;
  153. border-radius: 50rpx;
  154. padding: 20rpx;
  155. border: none;
  156. }
  157. .record-btn {
  158. background-color: transparent;
  159. color: #666;
  160. font-size: 28rpx;
  161. border-radius: 50rpx;
  162. padding: 20rpx;
  163. border: none;
  164. }
  165. </style>