Selaa lähdekoodia

老人自助注册2.0.1

XhuiCoder 1 vuosi sitten
vanhempi
commit
3e8b55bfd7
4 muutettua tiedostoa jossa 26 lisäystä ja 13 poistoa
  1. 0 1
      api/kh.js
  2. 24 10
      pages/createInfo/createInfo.vue
  3. 1 1
      pages/entryPage/entryPage.vue
  4. 1 1
      pages/searchState/searchState.vue

+ 0 - 1
api/kh.js

@@ -40,7 +40,6 @@ export function createInfoBySelf(data) {
 
 // 老人自主注册修改
 export function editInfoBySelf(data) {
-  data.source = '1'
   return request({
     url: '/api/lnst/lrxx/editSb',
     method: 'post',

+ 24 - 10
pages/createInfo/createInfo.vue

@@ -471,7 +471,7 @@
 
 
               if (this.baseFormData.lrTx) this.src = config.baseUrl + this.baseFormData.lrTx
- 
+
               if (res.data && res.data.sfzzpb) this.zjcaijianSrcFan = res.data.sfzzpb
               if (res.data && res.data.tkzm) this.tkzmList = [res.data.tkzm]
               if (res.data && res.data.dbzm) this.dbzmList = [res.data.dbzm]
@@ -505,7 +505,7 @@
           }
         }
       },
-      
+
       paizhao(type) {
         this.type = type
         if (this.type == 'back' && !this.ocrXm) {
@@ -519,7 +519,7 @@
       },
       preSave() {
         if (this.baseFormData.lzzt != 0 && this.baseFormData.lzzt != 3 && this.baseFormData.lzzt != 6) {
-          showConfirm('信息正在审核,请审核后重试')
+          showConfirm('信息正在审核,请勿重复提交')
           return
         }
         if (!this.ocrXm) {
@@ -655,13 +655,27 @@
               }
 
               that.$refs['baseForm'].validate().then(res => {
-                createInfoBySelf(that.baseFormData).then(r => {
-                  uni.hideLoading()
-                  if (r.code == 200) {
-                    toast('申请已提交,等待审核中...')
-                    uni.navigateBack()
-                  }
-                })
+                if (that.updateFlag) {
+                  editInfoBySelf(that.baseFormData).then(r => {
+                    uni.hideLoading()
+                    if (r.code == 200) {
+                      toast('修改已提交,等待审核中...')
+                      setTimeout(() => {
+                        uni.navigateBack()
+                      }, 1000)
+                    }
+                  })
+                } else {
+                  createInfoBySelf(that.baseFormData).then(r => {
+                    uni.hideLoading()
+                    if (r.code == 200) {
+                      toast('申请已提交,等待审核中...')
+                      setTimeout(() => {
+                        uni.navigateBack()
+                      }, 1000)
+                    }
+                  })
+                }
               }).catch(err => {
                 uni.hideLoading()
               })

+ 1 - 1
pages/entryPage/entryPage.vue

@@ -29,7 +29,7 @@
     height: 100vh;
     overflow: hidden;
     background-image: linear-gradient(to top, #68b7e7 0%, #ffffff 100%);
-    animation: fadeIn 1.5s linear;
+    animation: fadeIn 1s linear;
   }
 
   .btn-group {

+ 1 - 1
pages/searchState/searchState.vue

@@ -107,7 +107,7 @@
     height: 100vh;
     overflow: hidden;
     background-image: linear-gradient(to top, #68b7e7 0%, #ffffff 100%);
-    animation: fadeIn 1.5s linear;
+    animation: fadeIn 1s linear;
   }
 
   .container {