| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191 |
- <template>
- <view class="page-container">
- <!-- 头部 -->
- <view class="header">
- <view class="header-left" @click="goBack">
- <u-icon name="arrow-left" size="24" color="#333"/>
- </view>
- <view class="header-title">
- 解约
- </view>
- <view class="header-right"></view>
- </view>
-
- <!-- 内容区域 -->
- <view class="content">
- <!-- 解约月份 -->
- <view class="form-item">
- <text class="label">解约月份</text>
- <view class="value">2014-10</view>
- <u-icon name="arrow-right" size="16" color="#999"/>
- </view>
-
- <!-- 解约日期 -->
- <view class="form-item">
- <text class="label">解约日期</text>
- <view class="value">20号</view>
- <u-icon name="arrow-right" size="16" color="#999"/>
- </view>
-
- <!-- 申请原因 -->
- <view class="reason-section">
- <text class="section-title">申请原因</text>
- <textarea class="reason-input" placeholder="请填写解约原因(100字以内)"></textarea>
- </view>
-
- <!-- 温馨提示 -->
- <view class="tips-section">
- <text class="tips-title">温馨提示:</text>
- <view class="tips-list">
- <text class="tips-item">1、需至少提前15天进行申请。</text>
- <text class="tips-item">2、固定时间为每月5号和20号。</text>
- <text class="tips-item">3、申请通过后,需在15天后到公司行政处办理解约手续。</text>
- <text class="tips-item">4、申请通过后,解约日期之后开始不能接单。</text>
- </view>
- </view>
-
- <!-- 提交按钮 -->
- <view class="button-section">
- <button class="submit-btn" @click="submitApplication">提交申请</button>
- <button class="record-btn" @click="viewRecords">解约记录</button>
- </view>
- </view>
- </view>
- </template>
- <script setup lang="ts">
- const goBack = () => {
- uni.navigateBack();
- };
-
- const submitApplication = () => {
- uni.showToast({ title: '提交申请成功', icon: 'success' });
- };
-
- const viewRecords = () => {
- uni.showToast({ title: '查看解约记录', icon: 'none' });
- };
- </script>
- <style scoped>
- .page-container {
- background-color: #f5f5f5;
- min-height: 100vh;
- }
-
- .header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 20rpx;
- background-color: #ffffff;
- border-bottom: 1rpx solid #f0f0f0;
- }
-
- .header-left, .header-right {
- width: 60rpx;
- }
-
- .header-title {
- font-size: 32rpx;
- font-weight: bold;
- color: #333;
- }
-
- .content {
- padding: 30rpx;
- }
-
- .form-item {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 20rpx;
- background-color: #ffffff;
- border-radius: 16rpx;
- margin-bottom: 20rpx;
- }
-
- .label {
- font-size: 28rpx;
- color: #333;
- }
-
- .value {
- font-size: 28rpx;
- color: #666;
- }
-
- .reason-section {
- background-color: #ffffff;
- border-radius: 16rpx;
- padding: 20rpx;
- margin-bottom: 30rpx;
- }
-
- .section-title {
- font-size: 28rpx;
- color: #333;
- margin-bottom: 15rpx;
- }
-
- .reason-input {
- width: 100%;
- min-height: 120rpx;
- font-size: 26rpx;
- color: #333;
- line-height: 1.5;
- }
-
- .tips-section {
- background-color: #ffffff;
- border-radius: 16rpx;
- padding: 20rpx;
- margin-bottom: 40rpx;
- }
-
- .tips-title {
- font-size: 28rpx;
- color: #ff6b35;
- font-weight: bold;
- margin-bottom: 15rpx;
- display: block;
- }
-
- .tips-list {
- display: flex;
- flex-direction: column;
- gap: 10rpx;
- }
-
- .tips-item {
- font-size: 26rpx;
- color: #666;
- line-height: 1.4;
- }
-
- .button-section {
- display: flex;
- flex-direction: column;
- gap: 20rpx;
- }
-
- .submit-btn {
- background-color: #ffc107;
- color: #333;
- font-size: 30rpx;
- font-weight: bold;
- border-radius: 50rpx;
- padding: 20rpx;
- border: none;
- }
-
- .record-btn {
- background-color: transparent;
- color: #666;
- font-size: 28rpx;
- border-radius: 50rpx;
- padding: 20rpx;
- border: none;
- }
- </style>
|