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 @@