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