Browse Source

首页页面修改

master
wangrongrong 4 years ago
parent
commit
9b795cf2d0
  1. 162
      package-lock.json
  2. 39
      src/App.vue
  3. 25
      src/components/HeadNav/HeadNav.vue
  4. 58
      src/components/Index/IndexNewList.vue
  5. 8
      src/components/Rotation/Rotation.vue
  6. 9
      src/router/index.js
  7. 302
      src/views/FirstPage/FirstPage.vue
  8. 433
      src/views/FirstPages/FirstPage.vue
  9. BIN
      src/views/FirstPages/img/bottom.png
  10. BIN
      src/views/FirstPages/img/creation.png
  11. BIN
      src/views/FirstPages/img/exhibition.png
  12. BIN
      src/views/FirstPages/img/notice.png
  13. BIN
      src/views/FirstPages/img/popularCreation.png
  14. BIN
      src/views/FirstPages/img/right.png
  15. BIN
      src/views/FirstPages/img/top.png
  16. 11
      src/views/NewPlatform/components/HNav.vue
  17. 2
      src/views/User/ForgetPassword.vue

162
package-lock.json

@ -1808,16 +1808,6 @@
"integrity": "sha1-/q7SVZc9LndVW4PbwIhRpsY1IPo=", "integrity": "sha1-/q7SVZc9LndVW4PbwIhRpsY1IPo=",
"dev": true "dev": true
}, },
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"cacache": { "cacache": {
"version": "13.0.1", "version": "13.0.1",
"resolved": "https://registry.npm.taobao.org/cacache/download/cacache-13.0.1.tgz?cache=0&sync_timestamp=1594427999421&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcacache%2Fdownload%2Fcacache-13.0.1.tgz", "resolved": "https://registry.npm.taobao.org/cacache/download/cacache-13.0.1.tgz?cache=0&sync_timestamp=1594427999421&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcacache%2Fdownload%2Fcacache-13.0.1.tgz",
@ -1850,34 +1840,6 @@
"integrity": "sha1-48mzFWnhBoEd8kL3FXJaH0xJQyA=", "integrity": "sha1-48mzFWnhBoEd8kL3FXJaH0xJQyA=",
"dev": true "dev": true
}, },
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"css-loader": { "css-loader": {
"version": "3.6.0", "version": "3.6.0",
"resolved": "https://registry.npm.taobao.org/css-loader/download/css-loader-3.6.0.tgz?cache=0&sync_timestamp=1604507107408&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcss-loader%2Fdownload%2Fcss-loader-3.6.0.tgz", "resolved": "https://registry.npm.taobao.org/css-loader/download/css-loader-3.6.0.tgz?cache=0&sync_timestamp=1604507107408&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcss-loader%2Fdownload%2Fcss-loader-3.6.0.tgz",
@ -1931,13 +1893,6 @@
"universalify": "^0.1.0" "universalify": "^0.1.0"
} }
}, },
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"icss-utils": { "icss-utils": {
"version": "4.1.1", "version": "4.1.1",
"resolved": "https://registry.npm.taobao.org/icss-utils/download/icss-utils-4.1.1.tgz?cache=0&sync_timestamp=1602527330977&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ficss-utils%2Fdownload%2Ficss-utils-4.1.1.tgz", "resolved": "https://registry.npm.taobao.org/icss-utils/download/icss-utils-4.1.1.tgz?cache=0&sync_timestamp=1602527330977&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ficss-utils%2Fdownload%2Ficss-utils-4.1.1.tgz",
@ -2052,16 +2007,6 @@
"minipass": "^3.1.1" "minipass": "^3.1.1"
} }
}, },
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
},
"terser-webpack-plugin": { "terser-webpack-plugin": {
"version": "2.3.8", "version": "2.3.8",
"resolved": "https://registry.npm.taobao.org/terser-webpack-plugin/download/terser-webpack-plugin-2.3.8.tgz?cache=0&sync_timestamp=1603881757308&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fterser-webpack-plugin%2Fdownload%2Fterser-webpack-plugin-2.3.8.tgz", "resolved": "https://registry.npm.taobao.org/terser-webpack-plugin/download/terser-webpack-plugin-2.3.8.tgz?cache=0&sync_timestamp=1603881757308&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fterser-webpack-plugin%2Fdownload%2Fterser-webpack-plugin-2.3.8.tgz",
@ -2078,32 +2023,6 @@
"terser": "^4.6.12", "terser": "^4.6.12",
"webpack-sources": "^1.4.3" "webpack-sources": "^1.4.3"
} }
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.5.0",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.5.0.tgz",
"integrity": "sha512-WXh+7AgFxGTgb5QAkQtFeUcHNIEq3PGVQ8WskY5ZiFbWBkOwcCPRs4w/2tVyTbh2q6TVRlO3xfvIukUtjsu62A==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
},
"dependencies": {
"loader-utils": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz",
"integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==",
"dev": true,
"optional": true,
"requires": {
"big.js": "^5.2.2",
"emojis-list": "^3.0.0",
"json5": "^2.1.2"
}
}
}
} }
} }
}, },
@ -12738,6 +12657,87 @@
} }
} }
}, },
"vue-loader-v16": {
"version": "npm:vue-loader@16.5.0",
"resolved": "https://registry.nlark.com/vue-loader/download/vue-loader-16.5.0.tgz",
"integrity": "sha1-CcTgcSRmiZ40uZpoZSTxkWX7KJI=",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
},
"dependencies": {
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.nlark.com/ansi-styles/download/ansi-styles-4.3.0.tgz?cache=0&sync_timestamp=1618995778321&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fansi-styles%2Fdownload%2Fansi-styles-4.3.0.tgz",
"integrity": "sha1-7dgDYornHATIWuegkG7a00tkiTc=",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.nlark.com/chalk/download/chalk-4.1.2.tgz?cache=0&sync_timestamp=1627646697260&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fchalk%2Fdownload%2Fchalk-4.1.2.tgz",
"integrity": "sha1-qsTit3NKdAhnrrFr8CqtVWoeegE=",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.nlark.com/color-convert/download/color-convert-2.0.1.tgz",
"integrity": "sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM=",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npm.taobao.org/color-name/download/color-name-1.1.4.tgz",
"integrity": "sha1-wqCah6y95pVD3m9j+jmVyCbFNqI=",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.nlark.com/has-flag/download/has-flag-4.0.0.tgz?cache=0&sync_timestamp=1626715907927&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fhas-flag%2Fdownload%2Fhas-flag-4.0.0.tgz",
"integrity": "sha1-lEdx/ZyByBJlxNaUGGDaBrtZR5s=",
"dev": true,
"optional": true
},
"loader-utils": {
"version": "2.0.0",
"resolved": "https://registry.npm.taobao.org/loader-utils/download/loader-utils-2.0.0.tgz",
"integrity": "sha1-5MrOW4FtQloWa18JfhDNErNgZLA=",
"dev": true,
"optional": true,
"requires": {
"big.js": "^5.2.2",
"emojis-list": "^3.0.0",
"json5": "^2.1.2"
}
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.nlark.com/supports-color/download/supports-color-7.2.0.tgz",
"integrity": "sha1-G33NyzK4E4gBs+R4umpRyqiWSNo=",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
}
}
},
"vue-quill-editor": { "vue-quill-editor": {
"version": "3.0.6", "version": "3.0.6",
"resolved": "https://registry.npmjs.org/vue-quill-editor/-/vue-quill-editor-3.0.6.tgz", "resolved": "https://registry.npmjs.org/vue-quill-editor/-/vue-quill-editor-3.0.6.tgz",

39
src/App.vue

@ -32,33 +32,32 @@ export default {
updated() { updated() {
window.scroll(0, 0); window.scroll(0, 0);
}, },
beforeCreate(){ beforeCreate() {
let flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i) let flag = navigator.userAgent.match(
let ismobile = flag ? 1 : 0 /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i,
if (ismobile == 1) { );
window.location.href = "http://www.sxgreenvalley.com/green-phone" let ismobile = flag ? 1 : 0;
} if (ismobile == 1) {
window.location.href = 'http://www.sxgreenvalley.com/green-phone';
}
}, },
methods: {
methods: {
...mapActions('user', ['getUserId']), ...mapActions('user', ['getUserId']),
_isMobile(){ _isMobile() {
let flag = navigator.userAgent.match(
/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i,
);
let flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i) console.log('======>', flag);
let ismobile = flag ? 1 : 0;
console.log("======>",flag)
let ismobile = flag ? 1 : 0
if (ismobile == 1) { if (ismobile == 1) {
console.log("ismobile2",flag) console.log('ismobile2', flag);
window.location.href = "http://www.sxgreenvalley.com/green-phone"
}
},
window.location.href = 'http://www.sxgreenvalley.com/green-phone';
}
}, },
},
}; };
</script> </script>

25
src/components/HeadNav/HeadNav.vue

@ -1,12 +1,6 @@
<template> <template>
<div class="white d-flex flex-row flex-nowrap px-10 align-center"> <div class="white d-flex flex-row flex-nowrap px-10 align-center">
<img <img @click="jumUrl('/', 0)" alt class="logo-img" src="@/assets/logo.png" style="cursor: pointer" />
@click="jumUrl('/',0)"
alt
class="logo-img"
src="@/assets/logo.png"
style="cursor: pointer"
/>
<div class="flex-1 ml-8"> <div class="flex-1 ml-8">
<a-dropdown <a-dropdown
:class="activeItem === a ? 'list-down-active' : ''" :class="activeItem === a ? 'list-down-active' : ''"
@ -15,18 +9,13 @@
class="list-down" class="list-down"
v-for="(item, a) in list" v-for="(item, a) in list"
> >
<a @click="jumUrl(item.url,a)" class="ant-dropdown-link"> <a @click="jumUrl(item.url, a)" class="ant-dropdown-link">
{{ item.name }}&nbsp;&nbsp; {{ item.name }}&nbsp;&nbsp;
<a-icon type="down" v-show="item.children.length > 0" /> <a-icon type="down" v-show="item.children.length > 0" />
</a> </a>
<a-menu slot="overlay"> <a-menu slot="overlay">
<a-menu-item <a-menu-item :key="b" class="px-6 py-3" style="text-align: center" v-for="(con, b) in item.children">
:key="b" <a @click="jumUrl(con.url, a)">{{ con.title }}</a>
class="px-6 py-3"
style="text-align: center"
v-for="(con, b) in item.children"
>
<a @click="jumUrl(con.url,a)">{{ con.title }}</a>
</a-menu-item> </a-menu-item>
</a-menu> </a-menu>
</a-dropdown> </a-dropdown>
@ -37,11 +26,7 @@
<template slot="title"> <template slot="title">
<span>点击查看购物车</span> <span>点击查看购物车</span>
</template> </template>
<a-icon <a-icon @click="$router.push('/Cart')" class="baseColor icon-head icon-head-right pointer" type="shopping-cart" />
@click="$router.push('/Cart')"
class="baseColor icon-head icon-head-right pointer"
type="shopping-cart"
/>
</a-tooltip> </a-tooltip>
<router-link tag="span" to="/login" v-if="!nickName"> <router-link tag="span" to="/login" v-if="!nickName">
<a-icon class="icon-head pointer" style="right: 50px" type="user" /> <a-icon class="icon-head pointer" style="right: 50px" type="user" />

58
src/components/Index/IndexNewList.vue

@ -8,22 +8,23 @@
<div :class="i === 1 ? 'index-wrap' : 'index-wrap1'"> <div :class="i === 1 ? 'index-wrap' : 'index-wrap1'">
<div class="d-flex flex-column" v-if="i === 0"> <div class="d-flex flex-column" v-if="i === 0">
<div class="d-flex flex-nowrap align-center baseColor"> <div class="d-flex flex-nowrap align-center baseColor">
<span class="font-bold-24">行业资讯</span> <span class="font-bold-20">行业资讯</span>
<img class="bullhorn ml-3" src="@/assets/bullhorn.png" /> <!-- <img class="bullhorn ml-3" src="@/assets/bullhorn.png" /> -->
<div class="flex-1"></div> <div class="flex-1"></div>
<a-button <a-button
@click="$router.push('/ItInformation')" @click="$router.push('/ItInformation')"
class="d-flex align-end font-16 baseColor pa-0" class="d-flex align-end font-16 baseColor pa-0"
style="display: inline-block;" style="display: inline-block; font-size: 12px"
type="link" type="link"
> >
more 更多
<a-icon style="font-size:12px" type="right" /> <img src="../../views/FirstPages/img/right.png" style="width: 7px; height: 10px; margin: 0 10px" />
<!-- <a-icon style="font-size: 12px" type="right" /> -->
</a-button> </a-button>
</div> </div>
<a-divider class="my-3" /> <a-divider class="my-3" />
</div> </div>
<div class="d-flex flex-column" v-if="i === 1"> <!-- <div class="d-flex flex-column" v-if="i === 1">
<div class="d-flex flex-nowrap align-center baseColor"> <div class="d-flex flex-nowrap align-center baseColor">
<span class="font-bold-24">活动公告</span> <span class="font-bold-24">活动公告</span>
<img class="bullhorn ml-4" src="@/assets/bullhorn.png" /> <img class="bullhorn ml-4" src="@/assets/bullhorn.png" />
@ -39,36 +40,36 @@
</a-button> </a-button>
</div> </div>
<a-divider class="my-3" /> <a-divider class="my-3" />
</div> </div> -->
<div class="d-flex flex-column" v-if="i === 2"> <div class="d-flex flex-column" v-if="i === 2">
<div class="d-flex flex-nowrap align-center baseColor"> <div class="d-flex flex-nowrap align-center baseColor">
<span class="font-bold-24">企业简报</span> <span class="font-bold-20">企业简报</span>
<img class="bullhorn ml-3" src="@/assets/bullhorn.png" /> <!-- <img class="bullhorn ml-3" src="@/assets/bullhorn.png" /> -->
<div class="flex-1"></div> <div class="flex-1"></div>
<a-button <a-button
@click="$router.push('/Briefing')" @click="$router.push('/Briefing')"
class="d-flex align-end font-16 baseColor pa-0" class="d-flex align-end font-16 baseColor pa-0"
style="display: inline-block;" style="display: inline-block; font-size: 12px"
type="link" type="link"
> >
more 更多
<a-icon style="font-size:12px" type="right" /> <img src="../../views/FirstPages/img/right.png" style="width: 7px; height: 10px; margin: 0 10px" />
</a-button> </a-button>
</div> </div>
<a-divider class="my-3" /> <a-divider class="my-3" />
</div> </div>
<div class="policy-box" v-if="lists && lists[i].news && lists[i].news.length>0"> <div class="policy-box" v-if="lists && lists[i].news && lists[i].news.length > 0">
<div :key="index" class="div-box mb-2" v-for="(item, index) in lists[i].news"> <div :key="index" class="div-box" v-for="(item, index) in lists[i].news">
<div @click="jumpDetails(item,i)" class="d-flex flex-nowrap" style="cursor: pointer"> <div @click="jumpDetails(item, i)" class="d-flex flex-nowrap" style="cursor: pointer">
<div class="d-flex flex-1 flex-column"> <div class="d-flex flex-row justify-center align-center" style="margin-bottom: 5px">
<div class="item-title">{{ item.title }}</div>
<div class="original"></div> <div class="original"></div>
<div class="item-content" v-if="i === 1"> <div class="item-title" style="font-size: 12px; color: #a8a8a8">{{ item.title }}</div>
<!-- <div class="item-content" v-if="i === 1">
<span v-dompurify-html="item.intro"></span> <span v-dompurify-html="item.intro"></span>
</div> </div> -->
<div class="item-content1" v-else> <!-- <div class="item-content1" v-else>
<span v-dompurify-html="item.content || '暂无内容'"></span> <span v-dompurify-html="item.content || '暂无内容'"></span>
</div> </div> -->
</div> </div>
</div> </div>
</div> </div>
@ -108,7 +109,7 @@ export default {
} }
if (i === 2) { if (i === 2) {
this.$router.push('/BriefingDetails'); this.$router.push('/BriefingDetails');
} }
if (i === 1) { if (i === 1) {
this.$router.push('/ActDetails'); this.$router.push('/ActDetails');
} }
@ -140,8 +141,8 @@ export default {
.policy-box { .policy-box {
.div-box { .div-box {
position: relative; position: relative;
background: #fff;
// background: #fff;
.time { .time {
color: rgba(0, 0, 0, 0.25); color: rgba(0, 0, 0, 0.25);
@ -156,7 +157,7 @@ export default {
.item-title { .item-title {
overflow: hidden; overflow: hidden;
display: -webkit-box; display: -webkit-box;
font-size: 16px; font-size: 14px;
color: rgba(0, 0, 0, 0.65); color: rgba(0, 0, 0, 0.65);
font-family: Microsoft YaHei; font-family: Microsoft YaHei;
-webkit-line-clamp: 1; -webkit-line-clamp: 1;
@ -164,18 +165,19 @@ export default {
} }
.original { .original {
margin: 0 10px 0 10px;
position: relative; position: relative;
top: 1px; top: 1px;
left: 0; left: 0;
width: 30px; width: 5px;
height: 2px; height: 5px;
background: #13ACC4; border-radius: 5px;
background: #2fb5ca;
} }
.item-content { .item-content {
overflow: hidden; overflow: hidden;
display: -webkit-box; display: -webkit-box;
margin-top: 8px;
line-height: 25px; line-height: 25px;
font-size: 12px; font-size: 12px;
color: rgba(0, 0, 0, 0.45); color: rgba(0, 0, 0, 0.45);

8
src/components/Rotation/Rotation.vue

@ -1,10 +1,6 @@
<template> <template>
<div class="head"> <div class="head">
<img <img @click="$router.push('/IncubationPlatform/MakerSpace')" class="settle-in pointer" src="~assets/settleIn.png" />
@click="$router.push('/IncubationPlatform/MakerSpace')"
class="settle-in pointer"
src="~assets/settleIn.png"
/>
<a-carousel :autoplay-speed="time" autoplay> <a-carousel :autoplay-speed="time" autoplay>
<div :key="item.id" class="img-box" v-for="item in lists"> <div :key="item.id" class="img-box" v-for="item in lists">
<img :src="item.url" alt /> <img :src="item.url" alt />
@ -28,7 +24,7 @@ export default {
methods: { methods: {
async getData() { async getData() {
try { try {
const params = { param: { showPage: 0,showPosition:1 } }; const params = { param: { showPage: 0, showPosition: 1 } };
const res = await queryRotation(params); const res = await queryRotation(params);
const { code, data, msg } = res.data; const { code, data, msg } = res.data;
if (code === 200) { if (code === 200) {

9
src/router/index.js

@ -1,6 +1,7 @@
import Vue from 'vue'; import Vue from 'vue';
import VueRouter from 'vue-router'; import VueRouter from 'vue-router';
import Home from 'views/FirstPage/FirstPage.vue'; import Home from 'views/FirstPages/FirstPage.vue';
// import Homes from 'views/FirstPages/FirstPages.vue';
Vue.use(VueRouter); Vue.use(VueRouter);
@ -11,6 +12,12 @@ const routes = [
name: 'Home', name: 'Home',
component: Home, component: Home,
}, },
// // 首页
// {
// path: '/',
// name: 'Home',
// component: Home,
// },
// 登录界面 // 登录界面
{ {
path: '/login', path: '/login',

302
src/views/FirstPage/FirstPage.vue

@ -1,302 +0,0 @@
<!--
Copyright (c) 2020.
author: bin
email: binbin0314@126.com
-->
<template>
<div>
<rotation />
<div class="inner">
<a-row>
<a-col :span="24">
<a-row>
<a-col :key="platform.id" :span="6" v-for="platform in platforms">
<div @click="$router.push(platform.path)" class="mr-4 d-flex pointer">
<div class="server-box d-flex fill-width">
<img :src="platform.url" style="width:100%" />
</div>
</div>
</a-col>
<a-col :span="6" style="color: #13acc4;font-size: 24px;padding-left: 15px;">
<p @click="showIntro" class="pointer">
服务需求
<span>>>></span>
</p>
<p @click="$router.push('/Challenge/Solicitation')" class="pointer">
创新挑战
<span>>>></span>
</p>
</a-col>
</a-row>
<a-row class="mt-4">
<a-col :key="server.id" :span="6" v-for="server in services">
<div @click="$router.push(server.path)" class="mr-4 d-flex pointer">
<div class="server-box d-flex fill-width" id="hy-news">
<img :src="server.url" style="width:100%" />
</div>
</div>
</a-col>
<a-col
:span="6"
:style="{ height: height + 'px' }"
class="hd-news"
style="overflow: hidden"
>
<div class="white d-flex flex-column justify-center">
<index-new-list :i="1" :lists="lists" />
</div>
</a-col>
</a-row>
<a-row class="mt-4 flex-1">
<a-col :span="12">
<div class="white d-flex flex-column justify-center mr-4">
<index-new-list :i="0" :lists="lists" />
</div>
</a-col>
<a-col :span="12">
<div class="white d-flex flex-column justify-center">
<index-new-list :i="2" :lists="lists" />
</div>
</a-col>
</a-row>
</a-col>
</a-row>
</div>
<service-demand :model-intro="modelIntro" :source="source" ref="child" />
</div>
</template>
<script>
import { mapState, mapActions } from 'vuex';
import Rotation from 'components/Rotation/Rotation.vue';
import IndexNewList from 'components/Index/IndexNewList.vue';
import { frontSearchFriend, frontSearchCompany } from 'config/api';
import ServiceDemand from 'components/ServiceDemand/ServiceDemand.vue';
export default {
components: { Rotation, IndexNewList, ServiceDemand },
data() {
return {
platforms: [
{
id: '04',
path: '/NewPlatform/NewCore',
url: 'https://www.sxgreenvalley.com/gateway/greenvalley/uploads/2021-07-06/04.png',
},
{
id: '05',
path: '/IncubationPlatform/MakerSpace',
url: 'https://www.sxgreenvalley.com/gateway/greenvalley/uploads/2021-07-06/05.png',
},
{
id: '06',
path: '/Industry/Products',
url: 'https://www.sxgreenvalley.com/gateway/greenvalley/uploads/2021-07-06/06.png',
},
],
services: [
{
id: '01',
chinese: '创新服务',
english: 'INNOVATIVE',
path: '/NewPlatform/NewService',
url: 'https://www.sxgreenvalley.com/gateway/greenvalley/uploads/2021-07-06/01.png',
},
{
id: '02',
chinese: '创业服务',
english: 'INCUBATION',
path: '/IncubationPlatform/Services',
url: 'https://www.sxgreenvalley.com/gateway/greenvalley/uploads/2021-07-06/02.png',
},
{
id: '03',
chinese: '产业服务',
english: 'INDUSTRIAL',
path: '/Industry/Serve',
url: 'https://www.sxgreenvalley.com/gateway/greenvalley/uploads/2021-07-06/03.png',
},
],
lists: [
{
id: 1,
name: '行业资讯',
news: [],
},
{
id: 2,
name: '活动公告',
news: [],
},
{
id: 3,
name: '企业简报',
news: [],
},
],
height: 150,
timer: null,
modelIntro: '',
source: 'index',
};
},
computed: mapState('home', ['actList', 'actIpCon', 'actCurrent']),
created() {
this.getData1();
this.getData2();
this.getIndustryInfoLists();
this.getFrontListInfoLists();
},
mounted() {
var oDiv = document.getElementById('hy-news');
if (!oDiv.offsetHeight || oDiv.offsetHeight === 0) {
this.timer = setInterval(() => {
oDiv = document.getElementById('hy-news');
if (oDiv.offsetHeight) {
this.height = oDiv.offsetHeight;
this.getFrontLists();
}
}, 1000);
} else {
this.height = oDiv.offsetHeight;
this.getFrontLists();
}
},
methods: {
...mapActions('home', ['getIndustryInfoList', 'getFrontList', 'getFrontInfoList']),
//
async getData1() {
const params = {
param: {
pageNum: 1,
pageSize: 5,
type: 1,
typeOfPlatform: 1,
},
};
const res = await frontSearchFriend(params);
const { data, code, msg } = res.data;
if (code === 200) {
// console.log(data);
} else {
// console.log(msg);
}
},
//
async getData2() {
const params = {
param: {
pageNum: 1,
pageSize: 5,
type: 2,
typeOfPlatform: 2,
},
};
const res = await frontSearchCompany(params);
const { data, code, msg } = res.data;
if (code === 200) {
// console.log(data);
} else {
// console.log(msg);
}
},
//
async getIndustryInfoLists() {
const params = {
param: {
pageNum: 1,
pageSize: 3,
},
};
const res = await this.getIndustryInfoList(params);
this.lists[0].news = res.list;
},
//
async getFrontListInfoLists() {
const params = {
param: {
pageNum: 1,
pageSize: 3,
},
};
const res = await this.getFrontInfoList(params);
this.lists[2].news = res.list;
},
//
async getFrontLists() {
clearInterval(this.timer);
const pageSize = parseInt((this.height - 76) / 40);
const params = {
param: {
activityType: [],
pageNum: 1,
pageSize,
title: '',
},
};
const res = await this.getFrontList(params);
this.lists[1].news = res.list;
},
//
showIntro() {
// this.$refs.child.showModel();
this.modelIntro = '服务需求';
this.$refs.child.setTypeDataId(0);
},
},
};
</script>
<style lang="less" scoped>
.inner {
margin: 20px auto;
}
.platform-box {
width: 25%;
.platform-txt {
font-size: 14px;
}
@media only screen and (max-width: 1400px) {
.platform-txt {
font-size: 12px;
}
}
}
.platform-box div {
transition: all 0.2s ease 0s;
}
.platform-box:hover div {
transform: translate(0, -3px);
}
.server-box:hover img {
transform: translate(0, -3px);
}
.server-box img {
transition: all 0.2s ease 0s;
}
// .hy-news {
// height: 746px;
// }
.hd-news {
background: white;
}
</style>

433
src/views/FirstPages/FirstPage.vue

@ -0,0 +1,433 @@
<!--
Copyright (c) 2020.
author: bin
email: binbin0314@126.com
-->
<template>
<div>
<rotation />
<div class="inner">
<a-row>
<a-col :span="24">
<a-row class="d-flex justify-center">
<a-col id="hy-news">
<img src="./img/notice.png" />
</a-col>
<a-col class="down-arrow d-flex flex-column-reverse">
<a-button
@click="$router.push('/Activity')"
class="d-flex align-end font-16 baseColor pa-0"
style="display: inline-block"
type="link"
>
<img src="./img/bottom.png" style="width: 16px; height: 16px" />
</a-button>
</a-col>
<a-col :span="6" :style="{ height: height + 'px' }" style="overflow: hidden">
<div class="d-flex flex-row justify-center align-center">
<index-new-list :i="1" :lists="lists" />
</div>
</a-col>
<a-col class="up-arrow">
<a-button
@click="$router.push('/Activity')"
class="d-flex align-end font-16 baseColor pa-0"
style="display: inline-block"
type="link"
>
<img src="./img/top.png" style="width: 16px; height: 16px" />
</a-button>
</a-col>
</a-row>
<a-row class="demands d-flex justify-center">
<a-col class="d-flex align-center">
<div class="demand" @click="showIntro">需求征集</div>
<img src="./img/right.png" style="width: 7px; height: 10px; margin-right: 50px" />
</a-col>
<a-col class="d-flex align-center">
<div class="demand" @click="$router.push('/Challenge/Solicitation')">创新挑战</div>
<img src="./img/right.png" style="width: 7px; height: 10px; margin-right: 50px" />
</a-col>
<a-col class="d-flex align-center">
<div class="demand">交流社区</div>
<img src="./img/right.png" style="width: 7px; height: 10px; margin-right: 50px" />
</a-col>
</a-row>
<div class="d-flex justify-space-between">
<div :key="platform.id" style="width: 30%; min-width: 250px" v-for="platform in platforms">
<div @click="$router.push(platform.path)" class="d-flex pointer">
<div class="white server-box d-flex flex-column fill-width justify-center" style="padding: 15px">
<div>
<img :src="platform.url" style="width: 50px; height: 50px; margin: 10px auto" />
</div>
<p style="font-weight: bold">{{ platform.description }}</p>
<div class="descriptions d-flex flex-column justify-center">
<p>{{ platform.descriptionOne }}</p>
<p>{{ platform.descriptionTow }}</p>
<p>{{ platform.descriptionThree }}</p>
<p>{{ platform.descriptionFour }}</p>
</div>
<div class="titles d-flex justify-center align-center">
{{ platform.title }}
</div>
</div>
</div>
</div>
</div>
<div class="d-flex justify-space-between" style="margin-top: 80px">
<div class="server" :key="server.id" style="width: 30%; min-width: 250px" v-for="server in services">
<div class="server-box pointer d-flex fill-width flex-column" id="hy-news" @click="$router.push(server.path)">
<div style="border-radius: 10px; overflow: hidden">
<img class="d-flex justify-end flex-1" style="width: 100%" :src="server.url" />
</div>
<div style="padding: 15px 0; font-weight: bold">{{ server.chinese }}</div>
</div>
</div>
</div>
<a-row class="d-flex justify-center">
<a-col>
<div class="divider-text d-flex justify-center">绿谷动态</div>
<a-divider class="dividers">GREEN VALLER DYNAMICS</a-divider>
</a-col>
</a-row>
<a-row class="mt-4 flex-1">
<a-col :span="12">
<div class="white d-flex flex-column justify-center mr-4">
<index-new-list :i="0" :lists="lists" />
</div>
</a-col>
<a-col :span="12">
<div class="white d-flex flex-column justify-center">
<index-new-list :i="2" :lists="lists" />
</div>
</a-col>
</a-row>
</a-col>
</a-row>
</div>
<service-demand :model-intro="modelIntro" :source="source" ref="child" />
</div>
</template>
<script>
import { mapState, mapActions } from 'vuex';
import Rotation from 'components/Rotation/Rotation.vue';
import IndexNewList from 'components/Index/IndexNewList.vue';
import { frontSearchFriend, frontSearchCompany } from 'config/api';
import ServiceDemand from 'components/ServiceDemand/ServiceDemand.vue';
export default {
components: { Rotation, IndexNewList, ServiceDemand },
data() {
return {
platforms: [
{
id: '04',
path: '/NewPlatform/NewCore',
url: require('./img/creation.png'),
description: 'COLLABORATIVE ININOVATION',
descriptionOne: '依托“山西绿谷大健康协同创新研',
descriptionTow: '究院”和“功能食品与生物医药协同',
descriptionThree: '创新联盟”,在整合高校...',
title: '协同创作中心',
},
{
id: '05',
path: '/IncubationPlatform/MakerSpace',
url: require('./img/popularCreation.png'),
description: 'THE SPACE OF CREATION',
descriptionOne: '以建设专业化、市场化、网络化、品',
descriptionTow: '牌化双创孵化基地为目标,致力打造',
descriptionThree: '以公共技术服务平台为支撑,以创',
descriptionFour: '新创业服务为主导,以创新创业...',
title: '专业化众创空间',
},
{
id: '06',
path: '/Industry/Products',
url: require('./img/exhibition.png'),
description: 'PRODUCT DEMONSTRATION',
descriptionOne: '产品类目:',
descriptionTow: '功能食品 生物医药 数字健康',
title: '企业产品展示',
},
],
services: [
{
id: '01',
chinese: '创新服务',
english: 'INNOVATIVE',
path: '/NewPlatform/NewService',
url: 'https://www.sxgreenvalley.com/gateway/greenvalley/uploads/upload/20210818/726a3b5e63931f749943e91fb644ffa.jpg',
},
{
id: '02',
chinese: '孵化服务',
english: 'INCUBATION',
path: '/IncubationPlatform/Services',
url: 'https://www.sxgreenvalley.com/gateway/greenvalley/uploads/upload/20210818/7195657085673f68a805bdc6298de2a.jpg',
},
{
id: '03',
chinese: '产业服务',
english: 'INDUSTRIAL',
path: '/Industry/Serve',
url: 'https://www.sxgreenvalley.com/gateway/greenvalley/uploads/upload/20210818/5d3b846e13f7a3d534b8f86f36ed0e0.jpg',
},
],
lists: [
{
id: 1,
name: '行业资讯',
news: [],
},
{
id: 2,
name: '活动公告',
news: [],
},
{
id: 3,
name: '企业简报',
news: [],
},
],
height: 150,
timer: null,
modelIntro: '',
source: 'index',
};
},
computed: mapState('home', ['actList', 'actIpCon', 'actCurrent']),
created() {
this.getData1();
this.getData2();
this.getIndustryInfoLists();
this.getFrontListInfoLists();
},
mounted() {
var oDiv = document.getElementById('hy-news');
if (!oDiv.offsetHeight || oDiv.offsetHeight === 0) {
this.timer = setInterval(() => {
oDiv = document.getElementById('hy-news');
if (oDiv.offsetHeight) {
this.height = oDiv.offsetHeight;
this.getFrontLists();
}
}, 1000);
} else {
this.height = oDiv.offsetHeight;
this.getFrontLists();
}
},
methods: {
...mapActions('home', ['getIndustryInfoList', 'getFrontList', 'getFrontInfoList']),
//
async getData1() {
const params = {
param: {
pageNum: 1,
pageSize: 5,
type: 1,
typeOfPlatform: 1,
},
};
const res = await frontSearchFriend(params);
const { data, code, msg } = res.data;
if (code === 200) {
// console.log(data);
} else {
// console.log(msg);
}
},
//
async getData2() {
const params = {
param: {
pageNum: 1,
pageSize: 5,
type: 2,
typeOfPlatform: 2,
},
};
const res = await frontSearchCompany(params);
const { data, code, msg } = res.data;
if (code === 200) {
// console.log(data);
} else {
// console.log(msg);
}
},
//
async getIndustryInfoLists() {
const params = {
param: {
pageNum: 1,
pageSize: 3,
},
};
const res = await this.getIndustryInfoList(params);
this.lists[0].news = res.list;
},
//
async getFrontListInfoLists() {
const params = {
param: {
pageNum: 1,
pageSize: 3,
},
};
const res = await this.getFrontInfoList(params);
this.lists[2].news = res.list;
},
//
async getFrontLists() {
clearInterval(this.timer);
const pageSize = parseInt((this.height - 76) / 40);
const params = {
param: {
activityType: [],
pageNum: 1,
pageSize,
title: '',
},
};
const res = await this.getFrontList(params);
this.lists[1].news = res.list;
console.log(this.lists[1].news);
},
//
showIntro() {
// this.$refs.child.showModel();
this.modelIntro = '服务需求';
this.$refs.child.setTypeDataId(0);
},
},
};
</script>
<style lang="less" scoped>
.inner {
margin: 20px auto;
}
.down-arrow {
margin: 30px;
}
.up-arrow {
margin-top: 10px;
}
.demands {
margin: 20px auto 50px auto;
}
.demand {
margin-right: 15px;
color: #13acc4;
font-size: 16px;
}
.descriptions {
font-size: 12px;
height: 170px;
}
.titles {
background: #13acc4;
color: white;
width: 60%;
height: 54px;
font-size: 18px;
position: relative;
top: 35px;
left: 20%;
}
.divider-text {
margin-top: 20px;
font-size: 22px;
color: #24bad1;
font-weight: bold;
}
.dividers {
width: 500px;
}
/deep/.ant-divider-horizontal.ant-divider-with-text-center::before,
.ant-divider-horizontal.ant-divider-with-text-left::before,
.ant-divider-horizontal.ant-divider-with-text-right::before,
.ant-divider-horizontal.ant-divider-with-text-center::after,
.ant-divider-horizontal.ant-divider-with-text-left::after,
.ant-divider-horizontal.ant-divider-with-text-right::after {
top: 25%;
border-top: 1px solid #99e7fa;
}
/deep/.ant-divider-horizontal.ant-divider-with-text-center,
.ant-divider-horizontal.ant-divider-with-text-left,
.ant-divider-horizontal.ant-divider-with-text-right {
margin: 0 auto 30px auto;
color: #9be3f5;
font-size: 12px;
}
.platform-box {
width: 25%;
.platform-txt {
font-size: 14px;
}
@media only screen and (max-width: 1400px) {
.platform-txt {
font-size: 12px;
}
}
}
.platform-box div {
transition: all 0.2s ease 0s;
}
.platform-box:hover div {
transform: translate(0, -3px);
}
.server {
transition: all 0.2s ease 0s;
border-radius: 10px;
overflow: hidden;
}
.server:hover {
width: 33% !important;
}
.server-box:hover {
transform: translate(0, -3px);
background: #c1e5ea;
}
.server-box {
transition: all 0.2s ease 0s;
}
.hy-news {
height: 746px;
}
.hd-news {
background: white;
}
</style>

BIN
src/views/FirstPages/img/bottom.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 959 B

BIN
src/views/FirstPages/img/creation.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
src/views/FirstPages/img/exhibition.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
src/views/FirstPages/img/notice.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

BIN
src/views/FirstPages/img/popularCreation.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

BIN
src/views/FirstPages/img/right.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

BIN
src/views/FirstPages/img/top.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 954 B

11
src/views/NewPlatform/components/HNav.vue

@ -1,11 +1,8 @@
<template> <template>
<div class="nav-box d-flex"> <div class="nav-box d-flex">
<div <div :class="activeNum === index ? 'nav-box-active' : ''" :key="index" @click="jump(item.url)" v-for="(item, index) in list">
:class="activeNum === index ? 'nav-box-active' : ''" {{ item.title }}
:key="index" </div>
@click="jump(item.url)"
v-for="(item, index) in list"
>{{ item.title }}</div>
</div> </div>
</template> </template>
@ -37,7 +34,7 @@ export default {
}; };
}, },
created() { created() {
console.log(); // console.log();
if (this.$route.fullPath === '/NewPlatform/News') { if (this.$route.fullPath === '/NewPlatform/News') {
this.activeNum = 1; this.activeNum = 1;
} else if (this.$route.fullPath === '/NewPlatform/Share/Institute') { } else if (this.$route.fullPath === '/NewPlatform/Share/Institute') {

2
src/views/User/ForgetPassword.vue

@ -133,7 +133,7 @@ export default {
await this.changePassword(params); await this.changePassword(params);
this.$router.push('/login'); this.$router.push('/login');
} catch (error) { } catch (error) {
console.error(error); console.log(error);
} }
} }
}); });

Loading…
Cancel
Save