Преглед изворни кода

Merge branch 'dev-majunjie' into dev

ccf пре 4 година
родитељ
комит
43a76463a9

+ 11 - 3
pages/frontend/requirements/components/Form_recommend.vue

@@ -102,11 +102,16 @@ export default {
             firstUser: {},
             firstUser: {},
             secondUser: {},
             secondUser: {},
             recommend: {},
             recommend: {},
-            isShow: true,
+            isShow: false,
+        }
+    },
+    watch: {
+        'projectid': function () {
+            this.fetchData()
         }
         }
     },
     },
     mounted() {
     mounted() {
-        this.fetchData()
+
     },
     },
     computed: {
     computed: {
         RateUser() {
         RateUser() {
@@ -157,8 +162,11 @@ export default {
         close() {
         close() {
             this.isShow = false
             this.isShow = false
         },
         },
+        show() {
+            this.isShow = true
+        },
         submit() {
         submit() {
-            if(!this.firstUser.uid && !this.secondUser.uid){
+            if (!this.firstUser.uid && !this.secondUser.uid) {
                 this.$message.error("请选择开发者")
                 this.$message.error("请选择开发者")
                 return
                 return
             }
             }

+ 0 - 1
pages/frontend/requirements/components/Form_yunduan.vue

@@ -332,7 +332,6 @@ export default {
                 .then(res => {
                 .then(res => {
                     // console.log(res)
                     // console.log(res)
                     let aa = cityDataParse(res.data.list);
                     let aa = cityDataParse(res.data.list);
-                    console.log(aa)
                     this.cityData = [...aa]
                     this.cityData = [...aa]
                 })
                 })
         },
         },

+ 12 - 4
pages/frontend/requirements/index.vue

@@ -46,7 +46,7 @@
         <FormYunDuan v-if="isFormYunDuanShow" v-on:formChange="formChange" v-on:formSubmit="formSubmit"></FormYunDuan>
         <FormYunDuan v-if="isFormYunDuanShow" v-on:formChange="formChange" v-on:formSubmit="formSubmit"></FormYunDuan>
         <StepEnd v-if="isStepEndShow"></StepEnd>
         <StepEnd v-if="isStepEndShow"></StepEnd>
 
 
-        <FormRecomment v-if="isShowFormRecomment" :projectid="projectid"></FormRecomment>
+        <FormRecomment ref="FormRecomment"  :projectid="projectid"></FormRecomment>
     </div>
     </div>
 </div>
 </div>
 </template>
 </template>
@@ -93,7 +93,6 @@ export default {
             // wait process finish
             // wait process finish
             activeStatus: "wait",
             activeStatus: "wait",
 
 
-            isShowFormRecomment: false,
             projectid: ""
             projectid: ""
         };
         };
     },
     },
@@ -231,6 +230,14 @@ export default {
             } else {
             } else {
                 this.type = 0;
                 this.type = 0;
             }
             }
+
+            if (val.type == 1 && val.step == 3 && val.projectid) {
+                this.projectid = val.projectid
+                this.$nextTick(() => {
+                    this.$refs['FormRecomment'].show()
+                })
+            }
+
             this.activeStatus = "wait";
             this.activeStatus = "wait";
         }
         }
     },
     },
@@ -246,10 +253,11 @@ export default {
         } else {
         } else {
             this.type = 0;
             this.type = 0;
         }
         }
-
         if (query.type == 1 && query.step == 3 && query.projectid) {
         if (query.type == 1 && query.step == 3 && query.projectid) {
-            this.isShowFormRecomment = true
             this.projectid = query.projectid
             this.projectid = query.projectid
+            this.$nextTick(() => {
+                this.$refs['FormRecomment'].show()
+            })
         }
         }
         this.baseUrl = this.$store.state.domainConfig.siteUrl;
         this.baseUrl = this.$store.state.domainConfig.siteUrl;
         this.isWeixinApp = navigator.userAgent.indexOf("miniProgram") > -1;
         this.isWeixinApp = navigator.userAgent.indexOf("miniProgram") > -1;