|
@@ -6,25 +6,25 @@ Component({
|
|
selectedColor: "#00B760",
|
|
selectedColor: "#00B760",
|
|
list: [
|
|
list: [
|
|
{
|
|
{
|
|
- "pagePath": "pages/index/resume",
|
|
|
|
|
|
+ "pagePath": "/pages/index/resume",
|
|
"text": "简历",
|
|
"text": "简历",
|
|
"iconPath": "/static/img/resume.png",
|
|
"iconPath": "/static/img/resume.png",
|
|
"selectedIconPath": "/static/img/resume-fill.png"
|
|
"selectedIconPath": "/static/img/resume-fill.png"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- "pagePath": "pages/index/position",
|
|
|
|
- "text": "求职",
|
|
|
|
|
|
+ "pagePath": "/pages/index/position",
|
|
|
|
+ "text": "职位",
|
|
"iconPath": "/static/img/position.png",
|
|
"iconPath": "/static/img/position.png",
|
|
"selectedIconPath": "/static/img/position-fill.png"
|
|
"selectedIconPath": "/static/img/position-fill.png"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- "pagePath": "pages/index/communicate",
|
|
|
|
|
|
+ "pagePath": "/pages/index/communicate",
|
|
"text": "沟通",
|
|
"text": "沟通",
|
|
"iconPath": "/static/img/message.png",
|
|
"iconPath": "/static/img/message.png",
|
|
"selectedIconPath": "/static/img/message-fill.png"
|
|
"selectedIconPath": "/static/img/message-fill.png"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- "pagePath": "pages/index/my",
|
|
|
|
|
|
+ "pagePath": "/pages/index/my",
|
|
"text": "企业",
|
|
"text": "企业",
|
|
"iconPath": "/static/img/company.png",
|
|
"iconPath": "/static/img/company.png",
|
|
"selectedIconPath": "/static/img/company-fill.png"
|
|
"selectedIconPath": "/static/img/company-fill.png"
|
|
@@ -33,17 +33,12 @@ Component({
|
|
},
|
|
},
|
|
lifetimes: {
|
|
lifetimes: {
|
|
|
|
|
|
- },
|
|
|
|
- created(){
|
|
|
|
- console.log(11111111111111111111)
|
|
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
switchTab(e) {
|
|
switchTab(e) {
|
|
- console.log(e, '======================')
|
|
|
|
const data = e.currentTarget.dataset
|
|
const data = e.currentTarget.dataset
|
|
- const url = data.path
|
|
|
|
wx.switchTab({
|
|
wx.switchTab({
|
|
- url
|
|
|
|
|
|
+ url: data.path
|
|
})
|
|
})
|
|
this.setData({
|
|
this.setData({
|
|
selected: data.index
|
|
selected: data.index
|