Browse Source

页面问题修复

QAQ 陈 4 months ago
parent
commit
63ef91010d

+ 3 - 1
pages/baoxiuList/baoxiuList.wxml

@@ -1,7 +1,9 @@
 <view class="bxcontainer">
   <!-- 返回按钮 -->
   <view class="custom-nav">
-    <view class="fixed-back" bindtap="goBack">←</view>
+    <view bindtap="goBack">
+      <image src="/static_file/backcion.png" mode="aspectFit" class="back-icon"></image>
+    </view>
     <view class="nav-title">我的报修</view>
   </view>
 

+ 4 - 4
pages/baoxiuList/baoxiuList.wxss

@@ -20,10 +20,10 @@
   padding-top: 88rpx; 
 }
 
-.fixed-back {
-  font-size: 40rpx;
-  text-align: center;
-  color: #fff;
+.back-icon {
+  width: 16px;
+  height: 16px;
+  vertical-align: middle;
 }
 
 .nav-title {

+ 4 - 1
pages/baoxiudj/baoxiudj.wxml

@@ -3,7 +3,10 @@
 
   <!-- 返回按钮 -->
   <view class="custom-nav">
-    <view class="fixed-back" bindtap="goBack">←</view>
+    <view bindtap="goBack">
+      <image src="/static_file/backcion.png" mode="aspectFit" class="back-icon"></image>
+    </view>
+
     <view class="nav-title">{{isPreviewMode ? '报修详情' : '报修登记'}}</view>
   </view>
 

+ 9 - 4
pages/baoxiudj/baoxiudj.wxss

@@ -20,10 +20,10 @@
   padding-top: 44px; /* 适配iPhone状态栏 */
 }
 
-.fixed-back {
-  font-size: 40rpx;
-  text-align: center;
-  color: #fff;
+.back-icon {
+  width: 16px;
+  height: 16px;
+  vertical-align: middle;
 }
 
 .nav-title {
@@ -281,3 +281,8 @@
   color: #ff4d4f;
   margin-left: 4rpx;
 }
+
+.submit-button.submitting {
+  background-color: #cccccc;
+  color: #666666;
+}

+ 3 - 1
pages/huhaoguanli/huhaoguanli.wxml

@@ -6,7 +6,9 @@
   
   <!-- 导航栏 -->
   <view class="custom-nav">
-    <view class="fixed-back" bindtap="goBack">←</view>
+    <view bindtap="goBack">
+      <image src="/static_file/backcion.png" mode="aspectFit" class="back-icon"></image>
+    </view>
     <view class="nav-title">户号管理</view>
   </view>
   

+ 4 - 4
pages/huhaoguanli/huhaoguanli.wxss

@@ -36,10 +36,10 @@
   padding-top: 88rpx; /* 适配iPhone状态栏,44px转换为88rpx */
 }
 
-.fixed-back {
-  font-size: 40rpx;
-  text-align: center;
-  color: #fff;
+.back-icon {
+  width: 16px;
+  height: 16px;
+  vertical-align: middle;
 }
 
 .nav-title {

+ 3 - 1
pages/jiaofeiList/jiaofeiList.wxml

@@ -1,5 +1,7 @@
 <view class="container">
-  <view class="fixed-back" bindtap="goBack">←</view>
+  <view bindtap="goBack">
+      <image src="/static_file/backcion.png" mode="aspectFit" class="back-icon"></image>
+    </view>
   
   <!-- 固定顶部区域 -->
   <view class="header">

+ 4 - 8
pages/jiaofeiList/jiaofeiList.wxss

@@ -28,17 +28,13 @@
 }
 
 /* 固定返回按钮样式 */
-.fixed-back {
+.back-icon {
   position: fixed;
-  top: 50rpx;
+  top: 120rpx;
   left: 30rpx;
   z-index: 999;
-  border-radius: 50%;
-  width: 50rpx;
-  height: 200rpx;
-  display: flex;
-  align-items: center;
-  color: rgba(255, 255, 255, 1);
+  width: 16px;
+  height: 16px;
 }
 
 

+ 3 - 1
pages/jiaofeixiangqing/jiaofeixiangqing.wxml

@@ -2,7 +2,9 @@
 
   <!-- 返回按钮 -->
   <view class="custom-nav">
-    <view class="fixed-back" bindtap="goBack">←</view>
+    <view bindtap="goBack">
+      <image src="/static_file/backcion.png" mode="aspectFit" class="back-icon"></image>
+    </view>
     <view class="nav-title">缴费详情</view>
   </view>
 

+ 4 - 8
pages/jiaofeixiangqing/jiaofeixiangqing.wxss

@@ -19,17 +19,13 @@
 }
 
 /* 固定返回按钮样式 */
-.fixed-back {
+.back-icon {
   position: fixed;
-  top: 50rpx;
+  top: 100rpx;
   left: 30rpx;
   z-index: 999;
-  border-radius: 50%;
-  width: 50rpx;
-  height: 200rpx;
-  display: flex;
-  align-items: center;
-  color: rgba(255, 255, 255, 1);
+  width: 16px;
+  height: 16px;
 }
 .nav-title {
   flex: 1;

+ 3 - 1
pages/tongzhiList/tongzhiList.wxml

@@ -4,7 +4,9 @@
 <view class="container">
   <!-- 返回按钮 --> 
   <view class="custom-nav">
-    <view class="fixed-back" bindtap="goBack">←</view>
+    <view bindtap="goBack">
+      <image src="/static_file/backcion.png" mode="aspectFit" class="back-icon"></image>
+    </view>
     <view class="nav-title">通知公告</view>
   </view>
   <scroll-view scroll-y="true" class="notice-list">

+ 4 - 4
pages/tongzhiList/tongzhiList.wxss

@@ -20,10 +20,10 @@
   padding-top: 44px;
 }
 
-.fixed-back {
-  font-size: 40rpx;
-  text-align: center;
-  color: #fff;
+.back-icon {
+  width: 16px;
+  height: 16px;
+  vertical-align: middle;
 }
 
 .nav-title {

+ 25 - 10
pages/tousujianyi/tousujianyi.js

@@ -9,14 +9,19 @@ Page({
     countDown: 3,
     isFormValid: false,
     category: '投诉',
+    categoryValue: '1',
     isPreviewMode: false,
     title: '',
     content: '',
     replyTime: '',
     replyContent: '',
     formSubmitted: false,
-    isSubmitting: false, // 新增保存标志位
-    lastSubmitTime: 0, // 上次提交时间(通过防抖(Debounce)技术,限制用户在一定时间内只能提交一次。)
+    isSubmitting: false,
+    lastSubmitTime: 0,
+    categoryMap: [
+      {name: '投诉', value: '1'},
+      {name: '建议', value: '2'}
+    ],
   },
 
   onLoad: function (options) {
@@ -67,8 +72,12 @@ Page({
   },
 
   radioChange: function (e) {
+    const value = e.detail.value;
+    const selectedCategory = this.data.categoryMap.find(item => item.value === value || item.name === value);
+    
     this.setData({
-      category: e.detail.value
+      category: selectedCategory.name,
+      categoryValue: selectedCategory.value
     });
     this.checkFormValidity();
   },
@@ -242,9 +251,8 @@ Page({
       imgInfo.base64 = base64;
       return imgInfo;
     })
-    // 构建提交数据
     const submitData = {
-      category: this.data.category,
+      category: this.data.categoryValue,
       contact: this.data.contact,
       phone: this.data.phone,
       description: this.data.description,
@@ -309,7 +317,6 @@ debugger
 
     if (prevPage && prevPage.data.noticeList) {
       const item = prevPage.data.noticeList.find(item => item.id == id);
-      debugger
       if (item) {
         const formatTime = (timeString) => {
           if (!timeString) return ''; // 如果时间为空,返回空字符串
@@ -319,9 +326,16 @@ debugger
           const day = String(date.getDate()).padStart(2, '0'); // 日期补零
           return `${year}-${month}-${day}`;
         };
+        
+        let categoryName = '投诉';
+        const categoryItem = this.data.categoryMap.find(cat => cat.value === item.category);
+        if (categoryItem) {
+          categoryName = categoryItem.name;
+        }
+        
         this.setData({
-          category: item.category || '投诉',
-          description: item.description || '',
+          category: categoryName,
+          categoryValue: item.category || '1',
           contact: item.feedbackperson || '',
           description: item.replynote || '',
           phone: item.contactnumber || '',
@@ -333,13 +347,14 @@ debugger
     }
   },
 
-  // 添加重置表单的方法
   resetForm: function () {
     this.setData({
       contact: '',
       phone: '',
       description: '',
-      imageList: []
+      imageList: [],
+      category: '投诉',
+      categoryValue: '1'
     });
   }
 });

+ 3 - 1
pages/tousujianyi/tousujianyi.wxml

@@ -3,7 +3,9 @@
 
   <!-- 返回按钮 -->
   <view class="custom-nav">
-    <view class="fixed-back" bindtap="goBack">←</view>
+    <view bindtap="goBack">
+      <image src="/static_file/backcion.png" mode="aspectFit" class="back-icon"></image>
+    </view>
     <view class="nav-title">投诉建议</view>
   </view>
 

+ 11 - 10
pages/tousujianyi/tousujianyi.wxss

@@ -20,10 +20,10 @@
   padding-top: 44px; /* 适配iPhone状态栏 */
 }
 
-.fixed-back {
-  font-size: 40rpx;
-  text-align: center;
-  color: #fff;
+.back-icon {
+  width: 16px;
+  height: 16px;
+  vertical-align: middle;
 }
 
 .nav-title {
@@ -83,8 +83,9 @@
 
 .radio {
   margin-left: 30rpx;
-  font-size: 28rpx;
-  color: rgba(104, 108, 128, 1);
+  font-size: 32rpx;
+  color: #333;
+  font-weight: 500;
 }
 
 .divider {
@@ -116,6 +117,10 @@
   color: rgba(104, 108, 128, 1);
 }
 
+.preview-text {
+  color: #333;
+}
+
 .placeholder-style {
   color: #999;
   text-align: right;
@@ -256,10 +261,6 @@
   line-height: 1.5;
 }
 
-.preview-text {
-  color: rgba(104, 108, 128, 1);
-  font-size: 28rpx;
-}
 
 .reply-content {
   font-size: 28rpx;

+ 3 - 1
pages/tousujianyiList/tousujianyiList.wxml

@@ -1,7 +1,9 @@
 <view class="jfcontainer">
   <!-- 返回按钮 -->
   <view class="custom-nav">
-    <view class="fixed-back" bindtap="goBack">←</view>
+    <view bindtap="goBack">
+      <image src="/static_file/backcion.png" mode="aspectFit" class="back-icon"></image>
+    </view>
     <view class="nav-title">我的建议</view>
   </view>
 

+ 4 - 4
pages/tousujianyiList/tousujianyiList.wxss

@@ -20,10 +20,10 @@
   padding-top: 88rpx; 
 }
 
-.fixed-back {
-  font-size: 40rpx;
-  text-align: center;
-  color: #fff;
+.back-icon {
+  width: 16px;
+  height: 16px;
+  vertical-align: middle;
 }
 
 .nav-title {

+ 3 - 1
pages/tzxq/tzxq.wxml

@@ -6,7 +6,9 @@
   
   <!-- 导航栏 -->
   <view class="custom-nav">
-    <view class="fixed-back" bindtap="goBack">←</view>
+    <view bindtap="goBack">
+      <image src="/static_file/backcion.png" mode="aspectFit" class="back-icon"></image>
+    </view>
     <view class="nav-title">通知公告</view>
   </view>
 

+ 4 - 4
pages/tzxq/tzxq.wxss

@@ -35,10 +35,10 @@
   padding-top: 44px; /* 适配iPhone状态栏 */
 }
 
-.fixed-back {
-  font-size: 40rpx;
-  text-align: center;
-  color: #fff;
+.back-icon {
+  width: 16px;
+  height: 16px;
+  vertical-align: middle;
 }
 
 .nav-title {

+ 4 - 2
pages/zhangdanlist/zhangdanlist.wxml

@@ -1,6 +1,8 @@
 <view class="container">
-  <view class="fixed-back" bindtap="goBack">←</view>
-  
+  <view bindtap="goBack">
+      <image src="/static_file/backcion.png" mode="aspectFit" class="fixed-back"></image>
+    </view>
+
   <!-- 固定顶部区域 -->
   <view class="header">
     <image class="background" src="{{images.background}}" mode="widthFix" />

+ 3 - 7
pages/zhangdanlist/zhangdanlist.wxss

@@ -30,15 +30,11 @@
 /* 固定返回按钮样式 */
 .fixed-back {
   position: fixed;
-  top: 50rpx;
+  top: 120rpx;
   left: 30rpx;
   z-index: 999;
-  border-radius: 50%;
-  width: 50rpx;
-  height: 200rpx;
-  display: flex;
-  align-items: center;
-  color: rgba(255, 255, 255, 1);
+  width: 16px;
+  height: 16px;
 }
 
 

+ 3 - 1
pages/zhangdanxiangqing/zdxiangqing.wxml

@@ -3,7 +3,9 @@
 
   <!-- 返回按钮 -->
   <view class="custom-nav">
-    <view class="fixed-back" bindtap="goBack">←</view>
+    <view bindtap="goBack">
+      <image src="/static_file/backcion.png" mode="aspectFit" class="back-icon"></image>
+    </view>
     <view class="nav-title">账单详情</view>
   </view>
 

+ 4 - 8
pages/zhangdanxiangqing/zdxiangqing.wxss

@@ -21,17 +21,13 @@
 }
 
 /* 固定返回按钮样式 */
-.fixed-back {
+.back-icon {
   position: fixed;
-  top: 50rpx;
+  top: 100rpx;
   left: 30rpx;
   z-index: 999;
-  border-radius: 50%;
-  width: 50rpx;
-  height: 200rpx;
-  display: flex;
-  align-items: center;
-  color: rgba(255, 255, 255, 1);
+  width: 16px;
+  height: 16px;
 }
 .nav-title {
   flex: 1;