Browse Source

修改图片 入驻孵化器

zs 8 months ago
parent
commit
d5f178f555
2 changed files with 26 additions and 11 deletions
  1. 25 10
      src/views/center/basic.vue
  2. 1 1
      src/views/detail/expert.vue

+ 25 - 10
src/views/center/basic.vue

@@ -3,10 +3,7 @@
     <el-row>
       <el-col :span="24" class="main animate__animated animate__backInRight" v-loading="loading">
         <div class="thr" v-if="companyInfo && companyInfo.id">
-          <el-select size="large" style="width: 350px" clearable v-model="incubator_id" filterable remote reserve-keyword placeholder="请输入想要选择的孵化器" :remote-method="remoteMethod" :loading="searchLoading">
-            <el-option v-for="item in searchList" :key="item.id" :label="item.name" :value="item.id" />
-          </el-select>
-          <el-button class="button" size="large" @click="toSave" type="primary">确定</el-button>
+          <el-button class="button" size="large" @click="toJoin" type="primary">入驻孵化器</el-button>
         </div>
         <el-col :span="24" class="one">基本信息 </el-col>
         <el-col :span="24" class="two">
@@ -64,6 +61,16 @@
         </el-col>
       </el-col>
     </el-row>
+    <el-dialog v-model="dialog.show" :title="dialog.title" :destroy-on-close="false" @close="toClose">
+      <el-row>
+        <el-col :span="24" v-if="dialog.type == '1'" class="dialog_one">
+          <el-select size="large" style="width: 350px" clearable v-model="incubator_id" filterable remote reserve-keyword placeholder="请输入想要选择的孵化器" :remote-method="remoteMethod" :loading="searchLoading">
+            <el-option v-for="item in searchList" :key="item.id" :label="item.name" :value="item.id" />
+          </el-select>
+          <el-button class="button" size="large" @click="toSave" type="primary">确定</el-button>
+        </el-col>
+      </el-row>
+    </el-dialog>
   </div>
 </template>
 
@@ -120,6 +127,7 @@ const loading = ref(false)
 // 字典
 const genderList = ref([])
 const plateList = ref([])
+const dialog = ref({ type: '1', show: false, title: '入驻孵化器' })
 // 请求
 onMounted(async () => {
   loading.value = true
@@ -200,6 +208,10 @@ const toSave = () => {
     })
     .catch(() => {})
 }
+// 入驻孵化器
+const toJoin = () => {
+  dialog.value = { type: '1', show: true, title: '入驻孵化器' }
+}
 </script>
 <style scoped lang="scss">
 .main {
@@ -215,12 +227,15 @@ const toSave = () => {
     }
   }
   .thr {
-    display: flex;
-    align-items: center;
-    margin: 0 0 10px 0;
-    .button {
-      margin: 0 0 0 5px;
-    }
+    margin: 10px 0;
+  }
+}
+.dialog_one {
+  display: flex;
+  align-items: center;
+  margin: 0 0 10px 0;
+  .button {
+    margin: 0 0 0 5px;
   }
 }
 </style>

+ 1 - 1
src/views/detail/expert.vue

@@ -31,7 +31,7 @@
 
 <script setup>
 // 图片引入
-import lists from '/images/expert.png'
+import lists from '/images/bg-xqk.jpg'
 const $checkRes = inject('$checkRes')
 // 接口
 import { ExpertStore } from '@/store/api/user/expert'