From 0cdad3e244a078eef555fa1b13cfa1d77950a0b4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BC=A0=E6=96=87=E6=B6=9B?= <1909118034@qq.com>
Date: Fri, 25 Oct 2024 17:20:58 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages.json | 3 +-
pages/home/home.vue | 275 +++++++++++------------------
pages/home/oldHome.vue | 250 ++++++++++++++++++++++++++
pages/news/cpns/topic-list.vue | 4 +
static/img/demo/gengduo.png | Bin 0 -> 578 bytes
static/img/demo/jineng-select.png | Bin 0 -> 975 bytes
static/img/demo/jineng.png | Bin 0 -> 966 bytes
static/img/demo/kecheng-select.png | Bin 0 -> 700 bytes
static/img/demo/kecheng.png | Bin 0 -> 681 bytes
static/img/demo/winter1.jpeg | Bin 0 -> 37674 bytes
static/img/demo/zhaopin-select.png | Bin 0 -> 1242 bytes
static/img/demo/zhaopin.png | Bin 0 -> 1190 bytes
static/img/jineng.png | Bin 0 -> 861 bytes
13 files changed, 362 insertions(+), 170 deletions(-)
create mode 100644 pages/home/oldHome.vue
create mode 100644 static/img/demo/gengduo.png
create mode 100644 static/img/demo/jineng-select.png
create mode 100644 static/img/demo/jineng.png
create mode 100644 static/img/demo/kecheng-select.png
create mode 100644 static/img/demo/kecheng.png
create mode 100644 static/img/demo/winter1.jpeg
create mode 100644 static/img/demo/zhaopin-select.png
create mode 100644 static/img/demo/zhaopin.png
create mode 100644 static/img/jineng.png
diff --git a/pages.json b/pages.json
index d366b6d..9059d9c 100644
--- a/pages.json
+++ b/pages.json
@@ -4,7 +4,8 @@
{ // 首页
"path": "pages/home/home",
"style": {
- "navigationStyle": "custom" // 隐藏系统导航栏
+ "navigationStyle": "custom", // 隐藏系统导航栏
+ "navigationBarTextStyle": "white"
}
},
// #endif
diff --git a/pages/home/home.vue b/pages/home/home.vue
index 2830a2f..0d1935a 100644
--- a/pages/home/home.vue
+++ b/pages/home/home.vue
@@ -1,62 +1,26 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
@@ -76,6 +40,9 @@
},
data() {
return {
+ keyword: "",
+ currect: 0,
+
// 导航标签
tabIndex: 1,
tabList: [{
@@ -99,152 +66,122 @@
topicList: {
swiper: [ // 轮播图
{
- image: '/static/img/demo/winter.png',
- title: '迷人的春天是令人欢欣鼓舞的。'
- },
- {
- image: '/static/img/demo/winter.png',
- title: '一道残阳铺水中,半江瑟瑟半江红。'
- },
- {
- image: '/static/img/demo/winter.png',
- title: '金秋的阳光温馨恬静,金秋的微风和煦轻柔。'
- },
- {
- image: '/static/img/demo/winter.png',
- title: '风吹过,寒气直侵入骨头。'
+ image: '/static/img/demo/winter1.jpeg',
}
],
list: topicList[1].list
- }
+ },
+ tabsList: [{
+ img: '/static/img/demo/zhaopin.png',
+ imgSelect: '/static/img/demo/zhaopin-select.png',
+ title: '招聘',
+ },
+ {
+ img: '/static/img/demo/jineng.png',
+ imgSelect: '/static/img/demo/jineng-select.png',
+ title: '技能',
+ },
+ {
+ img: '/static/img/demo/kecheng.png',
+ imgSelect: '/static/img/demo/kecheng-select.png',
+ title: '课程',
+ }
+ ]
}
},
onLoad() {
- // 设置swiperHeight
- uni.getSystemInfo({
- success: (res) => {
- // 屏幕高度(screenHeight) = 手机状态栏的高度(statusBarHeight) + 导航栏高度(44px) + 可使用窗口高度(windowHeight)
- // 可使用窗口高度 = swiper高度 + 自定义导航栏高度
- this.swiperHeight = res.windowHeight - 44
- }
- })
+
},
methods: {
- // tabbar点击
- changeTab(index) {
- this.tabIndex = index
- },
// swiper滑动
changeSwiper(e) {
this.tabIndex = e.detail.current
},
- // scroll-view触底
- reachBottom() {
- // 是否可加载
- if (this.followList.loadStatus !== 'loadmore') return;
- // 加载更多
- this.followList.loadStatus = "loading"
- setTimeout(() => {
- this.getList()
- }, 1000);
- },
- // 获取列表
- getList(idx) {
- // 随机添加5条数据
- for (let i = 0; i < 5; i++) {
- let index = this.$u.random(0, this.followList.list.length - 1)
- let data = JSON.parse(JSON.stringify(this.followList.list[index]))
- this.followList.list.push(data)
- }
- // 更新加载状态
- this.followList.loadStatus = "nomore"
- },
- // 搜索
- goSearch() {
- this.$u.route('/pages/home/search', {
- type: 'topic'
- })
+ btntabs(index) {
+ this.currect = index
}
}
}
-
\ No newline at end of file
diff --git a/pages/home/oldHome.vue b/pages/home/oldHome.vue
new file mode 100644
index 0000000..2830a2f
--- /dev/null
+++ b/pages/home/oldHome.vue
@@ -0,0 +1,250 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/news/cpns/topic-list.vue b/pages/news/cpns/topic-list.vue
index 2b13f4a..3caf7d8 100644
--- a/pages/news/cpns/topic-list.vue
+++ b/pages/news/cpns/topic-list.vue
@@ -65,6 +65,10 @@