阅读并同意
@@ -35,15 +34,15 @@ export default {
       isChecked: false,
     };
   },
-  onLoad() {
-    // 0未认证 1认证中 2已认证 3认证失败
-    let {partyStatusForWX} = this.user
-    if (partyStatusForWX == 2) {
-      uni.redirectTo({url: "./partyAuthInfo"})
-    } else if (partyStatusForWX == 0) {
+  onShow() {
+    // 0未认证  1认证中  2已认证  3认证失败
+    let { partyStatusForWX } = this.user
+    if (partyStatusForWX == 0) {
       // 停留此页
     } else if(partyStatusForWX == 1) {
       uni.redirectTo({url: "./partyAuthSuccess"})
+    } else if (partyStatusForWX == 2) {
+      uni.redirectTo({url: "./partyAuthInfo"})
     } else if(partyStatusForWX == 3) {
       uni.redirectTo({url: "./partyAuthSuccess"})
     }
@@ -60,7 +59,6 @@ export default {
       if (!idNumber) {
         return this.$u.toast('请填写身份证号码')
       }
-
       if (!this.$idCardNoUtil.checkIdCardNo(idNumber)) {
         return this.$u.toast('请输入正确的身份证号码')
       }
diff --git a/src/project/pingchang/AppPartyAuth/partyAuthApply.vue b/src/project/pingchang/AppPartyAuth/partyAuthApply.vue
index 677245a..96ce34f 100644
--- a/src/project/pingchang/AppPartyAuth/partyAuthApply.vue
+++ b/src/project/pingchang/AppPartyAuth/partyAuthApply.vue
@@ -117,12 +117,15 @@ export default {
     ...mapState(['user'])
   },
 
-  onLoad(query) {
-    this.$dict.load(['partyType']).then(()=> {
-      this.form.reportUserId = query.id
-      this.form.name = query.name
-      this.form.idNumber = query.idNumber
-    })
+  onShow(query) {
+    // this.$dict.load(['partyType']).then(()=> {
+    //   this.form.reportUserId = query.id
+    //   this.form.name = query.name
+    //   this.form.idNumber = query.idNumber
+    // })
+    if(this.user.partyId) {
+      this.getDetail()
+    }
     uni.setNavigationBarTitle({
       title: '申请党员'
     });
@@ -138,6 +141,14 @@ export default {
       this.form.partyOrgName = v.name
     },
 
+    getDetail() {
+      this.$instance.post(`/app/appparty/detail?id=${this.user.partyId}`).then(res=> {
+        if(res?.data) {
+          this.form = res.data
+        }
+      })
+    },
+
     submit() {
 
       if (!this.form.name) {
diff --git a/src/project/pingchang/AppPartyAuth/partyAuthInfo.vue b/src/project/pingchang/AppPartyAuth/partyAuthInfo.vue
index 41237c2..545af4c 100644
--- a/src/project/pingchang/AppPartyAuth/partyAuthInfo.vue
+++ b/src/project/pingchang/AppPartyAuth/partyAuthInfo.vue
@@ -7,9 +7,9 @@
       
         
           
-          
+          
{{ $dict.getLabel('sex', detail.sex) }} {{detail.age}}
          
-        
户主
+        
       
 
      
     
+    
+    
   
 
 
@@ -44,45 +44,41 @@ export default {
     return {
       detail: {},
       baseInfo: [
+        // {label: "年龄", prop: "age"},
         {label: "身份证号", prop: "idNumber"},
-        {label: "籍贯", prop: "birthplaceAreaName"},
-        {label: "民族", prop: "nation", dict: "nation"},
-        {label: "文化程度", prop: "education", dict: "education"},
-        {label: "政治面貌", prop: "politicsStatus", dict: "politicsStatus"},
-        {label: "兵役状况", prop: "militaryStatus", dict: "militaryStatus"},
-        {label: "宗教信仰", prop: "faithType", dict: "faithType"},
-        {label: "职业", prop: "job", dict: "job"},
-      ],
-      contract: [
         {label: "联系方式", prop: "phone"},
-        {label: "现住址", prop: "currentAreaName"},
-        {label: "详细住址", prop: "currentAddress", topLabel: true},
-        {label: "户籍地址", prop: "householdAreaName"},
-        {label: "详细地址", prop: "householdAddress", topLabel: true},
-      ]
+        {label: "党组织", prop: "partyOrgName"},
+        {label: "入党时间", prop: "joinPartyTime"},
+        {label: "党员类型", prop: "partyType", dict: "partyType"},
+      ],
+      // contract: [
+      //   {label: "联系方式", prop: "phone"},
+      //   {label: "现住址", prop: "currentAreaName"},
+      //   {label: "详细住址", prop: "currentAddress", topLabel: true},
+      //   {label: "户籍地址", prop: "householdAreaName"},
+      //   {label: "详细地址", prop: "householdAddress", topLabel: true},
+      // ]
     }
   },
   computed: {
     ...mapState(['user']),
-    sexAge() {
-      let {idNumber, gender} = this.$idCardNoUtil.getIdCardInfo(this.user.idNumber), age = this.$calcAge(idNumber)
-      return `${this.$dict.getLabel("sex", gender) || ""} ${age ? age + "岁" : ""}`
-    },
-    isOwner() {
-      return this.detail.householdName == 1
-    }
+    // sexAge() {
+    //   let {idNumber, gender} = this.$idCardNoUtil.getIdCardInfo(this.user.idNumber), age = this.$calcAge(idNumber)
+    //   return `${this.$dict.getLabel("sex", gender) || ""} ${age ? age + "岁" : ""}`
+    // },
+    // isOwner() {
+    //   return this.detail.householdName == 1
+    // }
   },
   onLoad() {
-    this.$dict.load("sex", "nation", "education", "politicsStatus", "militaryStatus", "faithType", "job")
-    this.getResident()
+    this.$dict.load('partyType','sex')
+    this.getDetail()
   },
   methods: {
-    getResident() {
-      this.$instance.post("/app/appresident/detailForWx", null, {
-        params: {id: this.user.residentId}
-      }).then(res => {
-        if (res?.data) {
-          this.detail = res.data.resident
+    getDetail() {
+      this.$instance.post(`/app/appparty/detail?id=${this.user.partyId}`).then(res=> {
+        if(res?.data) {
+          this.detail = res.data
         }
       })
     },
@@ -97,7 +93,6 @@ export default {
 .partyAuthInfo {
   background: #F3F6F9;
   min-height: 100vh;
-  padding-bottom: 280px;
 
   .avatar {
     display: inline-block;
diff --git a/src/project/pingchang/AppPartyAuth/partyAuthSuccess.vue b/src/project/pingchang/AppPartyAuth/partyAuthSuccess.vue
index cdd24db..7f0456a 100644
--- a/src/project/pingchang/AppPartyAuth/partyAuthSuccess.vue
+++ b/src/project/pingchang/AppPartyAuth/partyAuthSuccess.vue
@@ -43,31 +43,10 @@ export default {
     },
   },
   onShow() {
-    // let titles = ''
-    // if(this.user.partyStatusForWX == 1){
-    //   titles = '认证中'
-    // } else if(this.user.partyStatusForWX == 2) {
-    //   titles = '认证成功'
-    // } else if(this.user.partyStatusForWX == 3) {
-    //   titles = '认证失败'
-    // }
     uni.setNavigationBarTitle({
       title: '党员认证'
     });
   },
-  onLoad() {
-    let title = ''
-    if(this.user.partyStatusForWX == 1){
-      title = '认证中'
-    } else if(this.user.partyStatusForWX == 2) {
-      title = '认证成功'
-    } else if(this.user.partyStatusForWX == 3) {
-      title = '认证失败'
-    }
-    uni.setNavigationBarTitle({
-      title: title
-    });
-  },
   methods: {
     rewrite() {
       uni.redirectTo({url: "./partyAuthApply"})
From 045ef0fe5b1ddba083cadd2f2b3499bf989596b4 Mon Sep 17 00:00:00 2001
From: shijingjing <1789544664@qq.com>
Date: Mon, 14 Nov 2022 14:59:36 +0800
Subject: [PATCH 05/10] =?UTF-8?q?=E5=85=9A=E5=91=98=E8=AE=A4=E8=AF=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
 .../pingchang/AppPartyAuth/AppPartyAuth.vue   | 10 ++------
 .../pingchang/AppPartyAuth/partyAuthApply.vue | 20 +++++++---------
 .../AppPartyAuth/partyAuthSuccess.vue         | 23 +++++++++++--------
 3 files changed, 23 insertions(+), 30 deletions(-)
diff --git a/src/project/pingchang/AppPartyAuth/AppPartyAuth.vue b/src/project/pingchang/AppPartyAuth/AppPartyAuth.vue
index 2ea9ea5..f8bd76a 100644
--- a/src/project/pingchang/AppPartyAuth/AppPartyAuth.vue
+++ b/src/project/pingchang/AppPartyAuth/AppPartyAuth.vue
@@ -69,15 +69,9 @@ export default {
         idNumber, name
       }).then(res => {
         if (res.code == 0) {
+          this.$store.dispatch('getUserInfo')
           if (res.data == 2 || res.data == 0) {
-            this.$store.dispatch('getUserInfo')
-            uni.redirectTo({
-              url: `./partyAuthApply?status=${res.data}`, success: () => {
-                if (res.data == 0) {
-                  uni.setStorageSync("authForm", {idNumber, name})
-                }
-              }
-            })
+            uni.redirectTo({url: `./partyAuthApply`})
           } else {
             uni.redirectTo({url: "./partyAuthSuccess"})
           }
diff --git a/src/project/pingchang/AppPartyAuth/partyAuthApply.vue b/src/project/pingchang/AppPartyAuth/partyAuthApply.vue
index 96ce34f..1a15b47 100644
--- a/src/project/pingchang/AppPartyAuth/partyAuthApply.vue
+++ b/src/project/pingchang/AppPartyAuth/partyAuthApply.vue
@@ -117,18 +117,13 @@ export default {
     ...mapState(['user'])
   },
 
-  onShow(query) {
-    // this.$dict.load(['partyType']).then(()=> {
-    //   this.form.reportUserId = query.id
-    //   this.form.name = query.name
-    //   this.form.idNumber = query.idNumber
-    // })
-    if(this.user.partyId) {
-      this.getDetail()
-    }
+  onLoad() {
     uni.setNavigationBarTitle({
       title: '申请党员'
     });
+    if(this.user.partyId.length > 0) {
+      this.getDetail()
+    }
   },
 
   methods: {
@@ -144,7 +139,7 @@ export default {
     getDetail() {
       this.$instance.post(`/app/appparty/detail?id=${this.user.partyId}`).then(res=> {
         if(res?.data) {
-          this.form = res.data
+          this.form = {...res.data}
         }
       })
     },
@@ -182,10 +177,11 @@ export default {
         if (res.code == 0) {
           uni.$emit('update')
           this.$toast('提交成功')
+          this.$store.dispatch('getUserInfo')
+          uni.clearStorageSync('lastSelectedParty');
           setTimeout(() => {
-            this.$store.dispatch('getUserInfo')
             uni.redirectTo({url: "./partyAuthSuccess"})
-          }, 400)
+          }, 500)
         }
         this.$hideLoading()
       })
diff --git a/src/project/pingchang/AppPartyAuth/partyAuthSuccess.vue b/src/project/pingchang/AppPartyAuth/partyAuthSuccess.vue
index 7f0456a..fceb35f 100644
--- a/src/project/pingchang/AppPartyAuth/partyAuthSuccess.vue
+++ b/src/project/pingchang/AppPartyAuth/partyAuthSuccess.vue
@@ -9,7 +9,7 @@
       
       
       
-        审核意见:{{}}
+        审核意见:{{details.auditOpinion}}
       
       重新提交
     
@@ -26,7 +26,7 @@ import {mapState} from "vuex";
 export default {
   data() {
     return {
-      info: {}
+      details: {}
     }
   },
   computed: {
@@ -46,6 +46,9 @@ export default {
     uni.setNavigationBarTitle({
       title: '党员认证'
     });
+    if(this.user.partyStatusForWX == 3) {
+      this.getDetail()
+    }
   },
   methods: {
     rewrite() {
@@ -54,15 +57,13 @@ export default {
     goBack() {
       uni.navigateBack({})
     },
-    getAuthResult() {
-      this.$instance.post(`/app/appresident/detailForWx`, null, {
-        params: {id: this.user.residentId}
-      }).then(res => {
-        if (res?.data) {
-          this.info = res.data
+    getDetail() {
+      this.$instance.post(`/app/appparty/detail?id=${this.user.partyId}`).then(res=> {
+        if(res?.data) {
+          this.details = res.data
         }
       })
-    }
+    },
   }
 }
 
@@ -92,8 +93,10 @@ export default {
 
   .feedback {
     width: 80vw;
-    margin-left: 10vw;
+    margin: 0 auto;
     min-height: 192px;
+    max-height: 600px;
+    overflow-y: scroll;
     background: #EFF5FA;
     border-radius: 0 8px 8px 0;
     text-align: left;
From 0df80b87fb61b1b881e44941b7a98265487a37ef Mon Sep 17 00:00:00 2001
From: shijingjing <1789544664@qq.com>
Date: Mon, 14 Nov 2022 16:45:22 +0800
Subject: [PATCH 06/10] =?UTF-8?q?=E9=80=89=E6=8B=A9=E5=85=9A=E7=BB=84?=
 =?UTF-8?q?=E7=BB=87?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
 src/project/pingchang/AppPartyAuth/partyAuthApply.vue | 2 +-
 src/project/pingchang/AppPartyAuth/selectPartyOrg.vue | 8 ++++++--
 2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/project/pingchang/AppPartyAuth/partyAuthApply.vue b/src/project/pingchang/AppPartyAuth/partyAuthApply.vue
index 1a15b47..8a2154f 100644
--- a/src/project/pingchang/AppPartyAuth/partyAuthApply.vue
+++ b/src/project/pingchang/AppPartyAuth/partyAuthApply.vue
@@ -42,7 +42,7 @@
             
党组织