|
|
@@ -7,8 +7,7 @@ Component({ |
|
|
|
selected: null, |
|
|
|
"color": "#abb1be", |
|
|
|
"selectedColor": "#6c5535", |
|
|
|
list: [ |
|
|
|
{ |
|
|
|
list: [{ |
|
|
|
"pagePath": "/index/index", |
|
|
|
"text": "首页", |
|
|
|
"iconPath": "../../assets/images/home.png", |
|
|
@@ -33,7 +32,7 @@ Component({ |
|
|
|
"selectedIconPath": "../../assets/images/user_a.png" |
|
|
|
} |
|
|
|
], |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
properties: { |
|
|
|
|
|
|
@@ -53,15 +52,15 @@ Component({ |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
navigateTo(e) { |
|
|
|
|
|
|
|
|
|
|
|
// this.setData({ |
|
|
|
// list: this.data.home_a_img |
|
|
|
// }) |
|
|
|
// console.log(this.data.home_a_img) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const data = e.currentTarget.dataset; |
|
|
|
if(app.globalData.selected==data.index){ |
|
|
|
if (app.globalData.selected == data.index) { |
|
|
|
return |
|
|
|
} |
|
|
|
// tt.hideLoading(); |
|
|
@@ -69,16 +68,16 @@ Component({ |
|
|
|
title: "加载中" |
|
|
|
}); |
|
|
|
app.globalData.selected = data.index |
|
|
|
|
|
|
|
|
|
|
|
console.log(app.globalData.selected); |
|
|
|
const url = data.path; |
|
|
|
if (data.index == 0 || data.index == 3) { |
|
|
|
this.setWxMessage() |
|
|
|
} |
|
|
|
if(data.index == 2){ |
|
|
|
app.globalData.ifshowtab=true |
|
|
|
}else{ |
|
|
|
app.globalData.ifshowtab=false |
|
|
|
if (data.index == 2) { |
|
|
|
app.globalData.ifshowtab = true |
|
|
|
} else { |
|
|
|
app.globalData.ifshowtab = false |
|
|
|
} |
|
|
|
// tt.reLaunch({ |
|
|
|
// url |
|
|
@@ -119,7 +118,7 @@ Component({ |
|
|
|
// }) |
|
|
|
// }, |
|
|
|
setWxMessage() { |
|
|
|
if(app.globalData.templateId.length<0)return |
|
|
|
if (app.globalData.templateId && app.globalData.templateId.length < 0) return |
|
|
|
console.log(app.globalData.templateId); |
|
|
|
let tmplIds = [] |
|
|
|
app.globalData.templateId.map(res => { |
|
|
@@ -128,7 +127,7 @@ Component({ |
|
|
|
tt.requestSubscribeMessage({ |
|
|
|
tmplIds: tmplIds, |
|
|
|
success(res) { |
|
|
|
console.log("我重复订阅",res) |
|
|
|
console.log("我重复订阅", res) |
|
|
|
let _statue = null |
|
|
|
tmplIds.map((item, index) => { //判读用户是否点击了确定 |
|
|
|
if (res[item] == "accept") { |
|
|
|