From 83c8c25c1d7db2ca6e94a42f460325f6eff12dd2 Mon Sep 17 00:00:00 2001 From: jscyl13849007907 <13849007907@163.com> Date: Mon, 26 Feb 2024 11:35:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=B7=A6=E4=BE=A7=E9=94=9A?= =?UTF-8?q?=E7=82=B9=E6=BB=9A=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/type/type/index.js | 12 +++-- pages/type/type/index.wxml | 110 +++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 116 insertions(+), 6 deletions(-) diff --git a/pages/type/type/index.js b/pages/type/type/index.js index 739a62f..1c0c0ca 100644 --- a/pages/type/type/index.js +++ b/pages/type/type/index.js @@ -3,7 +3,7 @@ const app = getApp(); const commonUtil = require("../../../utils/commonUtil.js"); Page({ data: { - swiperHeight:0, + swiperHeight:0, toped: "1", chaShowed: false, isTrigger: false, @@ -334,6 +334,8 @@ Page({ } ], active:0, + + scrollInfoView:'category_0' }, // onPullDownRefresh:function(){ // this.getJobList(); @@ -347,9 +349,13 @@ Page({ // }, handleTab(e){ console.log('点击tab',e) + this.setData({ - active:e.currentTarget.dataset.active - }) + active:e.currentTarget.dataset.active,// tab切换 + scrollInfoView:'category_' + e.currentTarget.dataset.active // 右侧锚点滚动 + }); + console.log(this.data.scrollInfoView) + }, goLogin() { wx.setStorageSync("comeFromPage", "index"); diff --git a/pages/type/type/index.wxml b/pages/type/type/index.wxml index f01b73d..b395b4b 100644 --- a/pages/type/type/index.wxml +++ b/pages/type/type/index.wxml @@ -12,8 +12,112 @@ - - + + + + + + + + + + + 分类1--{{item.jobName || item.aliasName}} + {{item.salaryClassifyValue}} + + + + + + {{item.district == "" ?'':item.district}} + + {{ ' | ' + item.distanceKm}} + {{' | ' +item.age}} + + + + + + + {{item1}} + 暂无特色 + + + + 立即报名 + + + 立即报名 + + + + + + + + + + + + + + + + + + + + 分类2--{{item.jobName || item.aliasName}} + {{item.salaryClassifyValue}} + + + + + + {{item.district == "" ?'':item.district}} + + {{ ' | ' + item.distanceKm}} + {{' | ' +item.age}} + + + + + + + {{item1}} + 暂无特色 + + + + 立即报名 + + + 立即报名 + + + + + + + + + + + @@ -25,7 +129,7 @@ - {{item.jobName || item.aliasName}} + 分类3--{{item.jobName || item.aliasName}} {{item.salaryClassifyValue}}