Browse Source

Merge branch 'master' of http://git.cc-lotus.info/service-platform/web-test

wuhongyu 5 năm trước cách đây
mục cha
commit
a9927ae2b1

+ 2 - 2
src/layout/market/context.vue

@@ -53,7 +53,7 @@
           <p>服务范围:</p>
           <p class="moreScope" v-if="scope != ''">{{ detailInfo.scope || '暂无' }}</p>
           <p class="moreScope1" v-else>{{ detailInfo.scope || '暂无' }}</p>
-          <span v-if="detailInfo.scope">
+          <span v-if="detailInfo.scope != null && detailInfo.scope.length > 420">
             <el-button size="mini" @click="scopeMore()" v-if="scope != ''">更多</el-button>
             <el-button size="mini" @click="scopeMore1()" v-else>收起</el-button>
           </span>
@@ -63,7 +63,7 @@
           <p>产品简介:</p>
           <p class="introduction" v-if="introduction != ''">{{ detailInfo.introduction || '暂无' }}</p>
           <p class="introduction1" v-else>{{ detailInfo.introduction || '暂无' }}</p>
-          <el-button size="mini" v-if="detailInfo.introduction != null">
+          <el-button size="mini" v-if="detailInfo.introduction != null && detailInfo.introduction.length > 420">
             <span v-if="introduction != ''" @click="introductionMore()">更多</span>
             <span v-else @click="introductionMore1()">收起</span>
           </el-button>

+ 1 - 5
src/layout/market/zhuanjia.vue

@@ -43,7 +43,7 @@
           <p>工作简介:</p>
           <p class="resume" v-if="resume != ''">{{ zhuanjiainfo.resume || '暂无' }}</p>
           <p class="resume1" v-else>{{ zhuanjiainfo.resume || '暂无' }}</p>
-          <el-button size="mini" v-if="zhuanjiainfo.resume != null">
+          <el-button size="mini" style="float: right;" v-if="zhuanjiainfo.resume != null && zhuanjiainfo.resume.length > 408">
             <span v-if="resume != ''" @click="resumeMore()">更多</span>
             <span v-else @click="resumeMore1()">收起</span>
           </el-button>
@@ -182,10 +182,6 @@ p {
     }
     p:first-child {
       font-size: 16px;
-
-      padding: 20px 0;
-    }
-    p:nth-child(2) span:last-child {
     }
   }
 

+ 2 - 3
src/layout/technical/detail.vue

@@ -16,7 +16,7 @@
           <div class="detailcontext">
             <p v-html="detailinfo.content"></p>
           </div>
-          <div class="development">
+          <div class="development" v-if="detailinfo.column_name == '专家问诊'">
             <p>功能开发中</p>
             <p>功能实现流程:<span>问诊记录展示</span>-<span>在线咨询</span>-<span>专家在线问诊</span></p>
           </div>
@@ -52,10 +52,9 @@ export default {
   methods: {
     ...news(['fetch']),
     async search() {
-      console.log(this.newsid);
-
       const res = await this.fetch(this.newsid);
       this.$set(this, `detailinfo`, res.data);
+      console.log(res.data);
     },
   },
   computed: {

+ 0 - 5
src/router/index.js

@@ -78,11 +78,6 @@ const live = [
       },
 
       //科技超市列表
-      {
-        path: '/market/list',
-        name: 'marketlists',
-        component: () => import('../views/market/list.vue'),
-      },
       {
         path: '/market/marketlists',
         name: 'marketlist_index',

+ 27 - 75
src/views/market/index.vue

@@ -117,62 +117,25 @@
             </el-col>
             <el-col :span="24">
               <el-col :span="24" class="downRightList" v-for="(item, index) in expertsList" :key="index" @click.native="zhuanjiaDetail(item.id)">
-                <el-col :span="6"><el-image :src="item.img_path"></el-image></el-col>
-                <el-col :span="18"
-                  ><p>{{ item.name || '暂无' }}</p>
-
-                  <p></p>
+                <el-col :span="6">
+                  <el-image :src="item.img_path"></el-image>
+                </el-col>
+                <el-col :span="18" class="infos">
+                  <p>{{ item.name || '暂无' }}</p>
                   <p>
-                    <el-col :span="13">
-                      <span>学历:{{ item.xl || '暂无' }}</span></el-col
-                    >
-                    <el-col :span="11">
-                      <span>专业:{{ item.major || '暂无' }}</span>
-                    </el-col>
+                    <span class="textOver">院校:{{ item.school }} </span>
+                    <span class="textOver">学位:{{ item.xw || '暂无' }}</span>
                   </p>
                   <p>
-                    <el-col :span="13">
-                      <span> 院校:{{ item.school }} </span>
-                    </el-col>
-                    <el-col :span="11">
-                      <span>学位:{{ item.xw || '暂无' }}</span>
-                    </el-col>
+                    <span class="textOver">学历:{{ item.xl || '暂无' }}</span>
+                    <span class="textOver">专业:{{ item.major || '暂无' }}</span>
                   </p>
-
-                  <p><!-- 展样式位误删 --></p>
                 </el-col>
               </el-col>
             </el-col>
           </el-col>
         </el-col>
       </el-col>
-      <!-- <el-col :span="24" class="marketNew">
-        <el-col :span="24" class="downLeftTop">
-          <el-image :src="downLeftTopImage"></el-image>
-          <span class="topTexts">
-            <span>最新发布</span>
-            <span
-              ><p>N</p>
-              <p>ewing</p></span
-            >
-            <span @click="fabu()">我要发布</span>
-          </span>
-          <el-col :span="24" class="downLeftInfos">
-            <el-col :span="12" class="bankingLists" v-for="(item, index) in newList" :key="index" @click.native="productDetail(item.id)">
-              <el-col :span="10">
-                <template v-if="item.image.length > 0">
-                  <el-image :src="item.image[0].url"></el-image>
-                </template>
-                <template v-else>暂无图片</template>
-              </el-col>
-              <el-col :span="12">
-                <span class="textOvers">{{ item.name || '暂无' }}</span>
-                <span>{{ item.introduction || '暂无' }}</span>
-              </el-col>
-            </el-col>
-          </el-col>
-        </el-col>
-      </el-col> -->
       <el-col :span="24" class="marketPublish" @click.native="fabu()"> <span @click="fabu()">我要发布</span></el-col>
     </el-col>
   </div>
@@ -508,7 +471,7 @@ export default {
 }
 
 .topText {
-  width: 89%;
+  width: 94%;
   border-bottom: 2.5px solid #044b79;
   display: inline-block;
   position: relative;
@@ -521,6 +484,7 @@ export default {
   color: #000000;
   padding: 0 10px;
   top: 4px;
+  padding: 0 10px 0 0;
 }
 .topText span p:first-child {
   font-weight: 800;
@@ -612,45 +576,33 @@ export default {
   font-weight: 400;
 }
 .downRightList {
-  width: 49%;
-  margin: 10px 0;
-  height: 130px;
-  font-size: 16px;
-  display: inline-block;
+  width: 50%;
   cursor: pointer;
-  border-bottom: 1px solid #044b79;
+  border-bottom: 1px dashed #044b79;
+  padding: 15px 0;
+  margin: 0 0 22px 0;
 }
 .downRightList .el-image {
-  width: 100%;
-  height: 100px;
-  border-radius: 100%;
+  height: 95px;
+  border-radius: 90px;
 }
-.downRightList p {
-  padding-left: 10px;
+.downRightList .infos {
+  padding: 0 10px;
+}
+.downRightList .infos p {
+  float: left;
   width: 100%;
   font-size: 16px;
+  padding: 0 0 10px 0;
 }
-.downRightList p:first-child {
+.downRightList .infos p:first-child {
   font-size: 18px;
-  height: 40px;
   font-weight: bold;
 }
-
-.downRightList p span:nth-child(2n) {
-  width: 40px;
-}
-.downRightList p:last-child {
-  width: 90%;
-  font-size: 16px;
-  overflow: hidden;
-  text-overflow: ellipsis;
-  -webkit-line-clamp: 5;
-  word-break: break-all;
-  display: -webkit-box;
-  -webkit-box-orient: vertical;
-  height: auto;
+.downRightList .infos p span {
+  display: inline-block;
+  width: 50%;
 }
-
 .marketNew {
   float: none;
   width: 80%;

+ 0 - 461
src/views/market/list.vue

@@ -1,461 +0,0 @@
-<template>
-  <div id="list">
-    <el-col :span="24" class="main">
-      <el-col :span="24">
-        <el-col :span="5" class="menu">
-          <el-image :src="squareImage"></el-image>
-          <span>Menu</span>
-          <el-col class="menuList" :span="24" v-for="(item, index) in menuList" :key="index">
-            <p @click="changeMenu(item.name, index)" :style="`color:${menuIndex == index ? menuColor : ''}`">{{ item.name }}</p>
-          </el-col>
-        </el-col>
-        <el-col :span="19" class="info" v-if="display == '1'">
-          <el-col v-if="menuIndex == '0'" class="leftInfo">
-            <el-col :span="24" class="leftTop">
-              <span>|</span> <span>{{ menuName }}</span>
-            </el-col>
-            <el-col class="infoLeftList" :span="24" v-for="(item, index) in zhuantiList" :key="index">
-              <p>{{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}</p>
-              <p>
-                <span class="textOver" @click="clickshanpin(item.id)">{{ item.name }} </span>
-                <span><el-button type="text" @click="fabu()">我要发布</el-button></span>
-                <span>{{ item.introduction }}</span>
-              </p>
-            </el-col>
-          </el-col>
-          <el-col v-if="menuIndex == '1'" class="leftInfo">
-            <el-col :span="24" class="leftTop">
-              <span>|</span> <span>{{ menuName }}</span>
-            </el-col>
-            <el-col class="infoRightList" :span="24" v-for="(item, index) in jishuList" :key="index">
-              <p>
-                <span class="textOver" @click="clickjishu(item.id)">{{ item.name }}</span>
-
-                <span><el-button type="text" @click="fabu()">我要发布</el-button></span>
-                <span class="textOver">{{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}</span>
-              </p>
-            </el-col>
-          </el-col>
-          <el-col v-if="menuIndex == '2'" class="leftInfo">
-            <el-col :span="24" class="leftTop">
-              <span>|</span> <span>{{ menuName }}</span>
-            </el-col>
-            <el-col class="infoRightList" :span="24" v-for="(item, index) in hangyeList" :key="index">
-              <p>
-                <span class="textOver" @click="clickfuwu(item.id)">{{ item.name }}</span>
-                <span><el-button type="text" @click="fabu()">我要发布</el-button></span>
-                <span class="textOver">{{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}</span>
-              </p>
-            </el-col>
-          </el-col>
-          <el-col v-if="menuIndex == '3'" class="leftInfo">
-            <el-col :span="24" class="leftTop">
-              <span>|</span> <span>{{ menuName }}</span>
-            </el-col>
-            <el-col class="infoLeftList" :span="24" v-for="(item, index) in jiaoyuList" :key="index">
-              <p>{{ item.meta && item.meta.createdAt ? new Date(item.meta.createdAt).toLocaleDateString() : '' || '' }}</p>
-              <p>
-                <span class="textOver" @click="clickzhuanjia(item.id)">{{ item.name }}</span>
-                <span><el-button type="text" @click="fabu()">我要发布</el-button></span>
-                <span>{{ item.job_profile }}</span>
-              </p>
-            </el-col>
-          </el-col>
-          <el-col class="page">
-            <el-pagination
-              background
-              @current-change="handleCurrentChange"
-              :current-page.sync="currentPage"
-              :page-size="pageSize"
-              layout="total,prev, pager, next, jumper"
-              :total="pageTotal"
-            >
-            </el-pagination>
-          </el-col>
-        </el-col>
-        <el-col :span="19" v-else-if="display == '2'" class="info">
-          <context :detailInfo="detailInfo" @onSubmit="onSubmit"></context>
-        </el-col>
-        <el-col :span="19" v-else-if="display == '3'" class="info">
-          <zhuanjia :zhuanjiainfo="zhuanjiainfo"></zhuanjia>
-        </el-col>
-      </el-col>
-    </el-col>
-  </div>
-</template>
-
-<script>
-import _ from 'lodash';
-import { mapState, createNamespacedHelpers } from 'vuex';
-const { mapActions: product } = createNamespacedHelpers('enterpriseproject');
-const { mapActions: talentExperts } = createNamespacedHelpers('talentExperts');
-const { mapActions: transaction } = createNamespacedHelpers('transaction');
-const { mapActions: tranaudit } = createNamespacedHelpers('tranaudit');
-import zhuanjia from '@/layout/market/zhuanjia.vue';
-import context from '@/layout/market/context.vue';
-
-export default {
-  name: 'list',
-  props: {},
-  components: {
-    context,
-    zhuanjia,
-  },
-  data: () => ({
-    squareImage: require('@/assets/live/square_big.png'),
-    menuList: [{ name: '科技产品' }, { name: '技术供求' }, { name: '服务供求' }, { name: '专家供求' }],
-    menuIndex: '0',
-    menuName: '科技产品',
-    menuColor: 'rgb(254, 149, 14)',
-    currentPage: 1,
-    pageTotal: 0,
-    pageSize: 10,
-    limit: 10,
-    zhuantiList: [],
-    jishuList: [],
-    hangyeList: [],
-    jiaoyuList: [],
-    display: '1',
-    detailInfo: {},
-    zhuanjiainfo: {},
-  }),
-  created() {
-    this.searchList();
-    this.search();
-    console.log(this.$route.query.display);
-  },
-  computed: {
-    ...mapState(['user']),
-    dispaly() {
-      return this.$route.query.display;
-    },
-
-    id() {
-      return this.$route.query.id;
-    },
-    pageTitle() {
-      return `${this.$route.meta.title}`;
-    },
-    totaltype() {
-      return this.$route.query.totaltype;
-    },
-  },
-  metaInfo() {
-    return { title: this.$route.meta.title };
-  },
-
-  methods: {
-    ...product({ list: 'newquery', newfetch: 'newfetch' }),
-    ...talentExperts({ lists: 'query', fetch: 'fetch' }),
-    ...transaction({ transactioncreate: 'create', transactionfetch: 'fetch' }),
-    ...tranaudit({ tranauditcreate: 'create' }),
-    async searchList({ skip = 0, limit = 10, ...info } = {}) {
-      if (this.$route.query.column_name == '科技产品') {
-        this.display = '1';
-        this.changeMenu(this.$route.query.column_name, 0);
-      } else if (this.$route.query.column_name == '技术供求') {
-        this.display = '1';
-        this.changeMenu(this.$route.query.column_name, 1);
-      } else if (this.$route.query.column_name == '服务供求') {
-        this.display = '1';
-        this.changeMenu(this.$route.query.column_name, 2);
-      } else if (this.$route.query.column_name == '专家供求') {
-        this.display = '1';
-        this.changeMenu(this.$route.query.column_name, 3);
-      }
-    },
-    async changeMenu(name, index) {
-      console.log(index, name);
-
-      this.menuIndex = index;
-      this.menuColor = 'rgb(254, 149, 14)';
-      this.menuName = name;
-      this.initList({ name });
-    },
-    async initList({ name, skip = 0, limit = 10, ...info } = {}) {
-      this.display = '1';
-      let res = [];
-      this.pageSize = 5;
-      if (name == '科技产品') {
-        let totaltype = '1';
-        console.log(totaltype);
-
-        res = await this.list({ skip, limit, totaltype, status: 1, ...info });
-
-        this.$set(this, `zhuantiList`, res.data);
-      } else if (name == '技术供求') {
-        let totaltype = '0';
-        console.log(totaltype);
-        res = await this.list({ skip, limit, totaltype, status: 1, ...info });
-        this.$set(this, `jishuList`, res.data);
-      } else if (name == '服务供求') {
-        let totaltype = '2';
-        console.log(totaltype);
-        res = await this.list({ skip, limit, totaltype, status: 1, ...info });
-        this.$set(this, `hangyeList`, res.data);
-      } else if (name == '专家供求') {
-        let totaltype = this.totaltype;
-        res = await this.lists({ skip, limit, status: 1, ...info });
-        this.$set(this, `jiaoyuList`, res.data);
-      }
-      this.$set(this, `pageTotal`, res.total);
-    },
-    handleCurrentChange(val) {
-      const name = this.menuName;
-      if (name == '科技产品' || name == '专家供求') {
-        this.limit = 5;
-      }
-      this.initList({ name: name, skip: (val - 1) * this.limit, limit: this.limit });
-    },
-    async clickshanpin(id) {
-      this.display = '2';
-      console.log(id);
-      const res = await this.newfetch(id);
-      console.log(res.data);
-      this.$set(this, `detailInfo`, res.data);
-    },
-
-    async clickjishu(id) {
-      this.display = '2';
-      console.log(id);
-      const res = await this.newfetch(id);
-      console.log(res.data);
-      this.$set(this, `detailInfo`, res.data);
-    },
-
-    async search() {
-      this.display = this.$route.query.display;
-      console.log(this.display);
-
-      if (this.display == '2') {
-        console.log(this.id);
-        const res = await this.newfetch(this.id);
-        console.log(res.data);
-        this.$set(this, `detailInfo`, res.data);
-      }
-      // else if (this.dispaly == '1') {
-      //   const res = await this.newquery(this.id);
-      //   console.log(res.data);
-      //   this.$set(this, `detailInfo`, res.data);
-      // }
-      else if (this.dispaly == '3') {
-        const res = await this.fetch(this.id);
-        console.log(res.data);
-        this.$set(this, `zhuanjiainfo`, res.data);
-      }
-    },
-
-    async clickfuwu(id) {
-      this.display = '2';
-      console.log(id);
-      const res = await this.newfetch(id);
-      console.log(res.data);
-      this.$set(this, `detailInfo`, res.data);
-    },
-
-    async clickzhuanjia(id) {
-      this.display = '3';
-      const res = await this.fetch(id);
-      console.log(res.data);
-      this.$set(this, `zhuanjiainfo`, res.data);
-    },
-
-    fabu() {
-      if (this.user.role == '2' || this.user.role == '3') {
-        this.$router.push({ path: '/market/marketfabu' });
-      } else if (this.user.uid == undefined) {
-        this.$router.push({ path: '/login' });
-      } else {
-      }
-    },
-    async onSubmit() {
-      console.log(this.user.uid);
-      let form = {};
-      form.userid = this.user.uid;
-      form.username = this.user.name;
-      form.product_id = this.detailInfo.id;
-      form.product_name = this.detailInfo.name;
-      form.market_userid = this.detailInfo.userid;
-      form.market_username = this.detailInfo.contact_user;
-      form.status = '0';
-      console.log(form);
-      let res = await this.transactioncreate(form);
-      this.$checkRes(res, '发起洽谈交易成功', '交易失败');
-      let shenhe = {};
-      shenhe.result = '0';
-      console.log(res.data.id);
-
-      shenhe.transaction_id = res.data.id;
-      shenhe.userid = this.detailInfo.userid;
-      shenhe.product_id = this.detailInfo.userid;
-      console.log(shenhe);
-      let ress = await this.tranauditcreate(shenhe);
-    },
-  },
-};
-</script>
-
-<style lang="less" scoped>
-.main {
-  width: 80%;
-  margin: 0 auto;
-  float: none;
-}
-.menu {
-  float: left;
-  min-height: 600px;
-  width: 20%;
-  background: no-repeat bottom right;
-  background-image: url(../../assets/live/menu_back.jpg);
-  margin: 30px 0;
-  padding: 10px 0 0 10px;
-  box-sizing: border-box;
-  box-shadow: 0 0 10px #bbbaba;
-}
-.menu .el-image {
-  width: 30px;
-  display: inline-table;
-  margin: 10px 5px;
-}
-.menu span {
-  font-size: 24px;
-  color: #92959a;
-  font-weight: 600;
-  margin-left: 3px;
-  position: relative;
-  top: 10px;
-}
-.menuList p {
-  line-height: 60px;
-  font-size: 18px;
-  cursor: pointer;
-  border-bottom: 1px solid #2d64b3;
-  color: #044b79;
-  font-weight: 600;
-}
-.info {
-  width: 77%;
-  float: right;
-  margin: 30px 0 30px 2px;
-  min-height: 600px;
-  box-shadow: 0 0 10px #2d64b3;
-  overflow: hidden;
-  right: 0px;
-  background: #ffffff;
-}
-.leftInfo {
-  height: 500px;
-  overflow: hidden;
-}
-.leftTop {
-  font-size: 18px;
-  width: 96%;
-  height: 41px;
-  line-height: 35px;
-  border-bottom: 1px solid #e5e5e5;
-  position: relative;
-  bottom: 1px;
-  margin: 10px;
-  font-weight: 600;
-  color: #22529a;
-}
-.infoLeftList {
-  float: left;
-  width: 95%;
-  border-bottom: 1px dashed #ccc;
-  padding: 10px 0 10px 10px;
-  height: 87px;
-  margin: 0 0 0 5px;
-}
-.infoLeftList:hover p:last-child span:first-child {
-  -webkit-transform: translateY(-3px);
-  -ms-transform: translateY(-3px);
-  transform: translateY(-3px);
-  -webkit-box-shadow: 0 0 6px #999;
-  box-shadow: 0 0 6px #999;
-  -webkit-transition: all 0.5s ease-out;
-  transition: all 0.5s ease-out;
-  color: #005293;
-  cursor: pointer;
-}
-.infoLeftList p:first-child {
-  float: left;
-  width: 20%;
-  font-size: 15px;
-  background: #044b79;
-  text-align: center;
-  color: #fff;
-  font-weight: bold;
-  padding: 4px 0px;
-  margin: 0 0 0 5px;
-}
-.infoLeftList p:last-child {
-  float: right;
-  width: 70%;
-  padding: 0 0 0 10px;
-}
-.infoLeftList p:last-child span:first-child {
-  float: left;
-  width: 90%;
-  font-size: 18px;
-}
-.infoLeftList p:last-child span:last-child {
-  float: left;
-  width: 90%;
-  font-size: 16px;
-  overflow: hidden;
-  text-overflow: ellipsis;
-  -webkit-line-clamp: 2;
-  word-break: break-all;
-  display: -webkit-box;
-  -webkit-box-orient: vertical;
-  margin: -20px 0 0 0;
-  color: #666;
-}
-.page {
-  text-align: center;
-  margin: 10px 0;
-}
-.infoRightList {
-  float: left;
-  width: 95%;
-  padding: 7px 0;
-  margin: 0 0 0 5px;
-}
-.infoRightList:nth-child(6) {
-  border-bottom: 1px solid #ccc;
-  padding: 0 0 17px 0;
-}
-.infoRightList:nth-child(7) {
-  padding: 15px 0 0 0;
-}
-.infoRightList:nth-child(11) {
-  border-bottom: 1px solid #ccc;
-  padding: 0 0 15px 0;
-}
-.infoRightList:hover p span:first-child {
-  -webkit-transform: translateY(-3px);
-  -ms-transform: translateY(-3px);
-  transform: translateY(-3px);
-  -webkit-box-shadow: 0 0 6px #999;
-  box-shadow: 0 0 6px #999;
-  -webkit-transition: all 0.5s ease-out;
-  transition: all 0.5s ease-out;
-  color: #005293;
-  cursor: pointer;
-}
-.infoRightList p {
-  font-size: 18px;
-}
-.infoRightList p span:first-child {
-  display: inline-block;
-  width: 70%;
-  margin: 0 20px 0 10px;
-}
-.infoRightList p span:last-child {
-  display: inline-block;
-  width: 21%;
-  text-align: center;
-  font-size: 16px;
-}
-</style>

+ 2 - 2
src/views/market/marketlists.vue

@@ -1,5 +1,5 @@
 <template>
-  <div id="list">
+  <div id="marketlists">
     <el-col :span="24" class="main">
       <el-col :span="24">
         <el-col :span="5" class="menu">
@@ -91,7 +91,7 @@ import zhuanjia from '@/layout/market/zhuanjia.vue';
 import context from '@/layout/market/context.vue';
 
 export default {
-  name: 'list',
+  name: 'marketlists',
   props: {},
   components: {
     context,

+ 0 - 1
src/views/technical/list.vue

@@ -73,7 +73,6 @@
       <el-col :span="19" v-if="display == 3" class="info">
         <detail :newsid="newsid"></detail>
       </el-col>
-
       <el-col :span="19" v-if="display == 4" class="info">
         <eduDetail :newsid="newsid"></eduDetail>
       </el-col>