|
@@ -30,14 +30,15 @@ Page({
|
|
myActive:'/pages/images/people_fill.png'
|
|
myActive:'/pages/images/people_fill.png'
|
|
},
|
|
},
|
|
// 热门产品
|
|
// 热门产品
|
|
- productList: [{
|
|
|
|
- "pic": '/pages/images/cooperation01.png',
|
|
|
|
- title: '热门产品'
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- "pic": '/pages/images/cooperation01.png',
|
|
|
|
- title: '热门产品'
|
|
|
|
- }
|
|
|
|
|
|
+ productList: [
|
|
|
|
+ // {
|
|
|
|
+ // "pic": '/pages/images/cooperation01.png',
|
|
|
|
+ // title: '热门产品'
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // "pic": '/pages/images/cooperation01.png',
|
|
|
|
+ // title: '热门产品'
|
|
|
|
+ // }
|
|
],
|
|
],
|
|
// 政策解读
|
|
// 政策解读
|
|
policyList: [],
|
|
policyList: [],
|
|
@@ -78,17 +79,19 @@ Page({
|
|
// 热门产品跳转
|
|
// 热门产品跳转
|
|
|
|
|
|
productListDetail: function (e) {
|
|
productListDetail: function (e) {
|
|
- console.log(e.currentTarget.id)
|
|
|
|
|
|
+ console.log('productListDetail',e.currentTarget.id)
|
|
wx.navigateTo({
|
|
wx.navigateTo({
|
|
- // url: '/pages/policyDetail/index?id=' + e.currentTarget.id // 希望跳转过去的页面
|
|
|
|
|
|
+ url: '/pages/productListDetail/index?id=' + e.currentTarget.id // 希望跳转过去的页面
|
|
})
|
|
})
|
|
},
|
|
},
|
|
// 无id,模拟数据跳转
|
|
// 无id,模拟数据跳转
|
|
- productListDetail: function () {
|
|
|
|
- wx.navigateTo({
|
|
|
|
- // url: '/pages/policyDetail/index'
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
|
|
+ // productListDetail: function () {
|
|
|
|
+ // wx.navigateTo({
|
|
|
|
+ // // url: '/pages/policyDetail/index'
|
|
|
|
+ // })
|
|
|
|
+ // },
|
|
|
|
+
|
|
|
|
+
|
|
// 切换菜单
|
|
// 切换菜单
|
|
onChange(event) {
|
|
onChange(event) {
|
|
this.setData({
|
|
this.setData({
|
|
@@ -116,6 +119,25 @@ Page({
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ topNews: function () {
|
|
|
|
+ wx.request({
|
|
|
|
+ method:"POST",
|
|
|
|
+ url: app.globalData.publicUrl + 'api/financial/financeclaims/top',
|
|
|
|
+ success:(e) => {
|
|
|
|
+ console.log('success',e);
|
|
|
|
+ if(e.data.errcode == 0){
|
|
|
|
+ let arr = [];
|
|
|
|
+ e.data.data.forEach((item) => {
|
|
|
|
+ // console.log('success',item.name.substring(0,5));
|
|
|
|
+ arr.push({_id:item._id,pic: app.globalData.imageUrl+item.innew.logo, title: item.name.substring(0,5)+'...'});
|
|
|
|
+ });
|
|
|
|
+ this.setData({
|
|
|
|
+ productList:arr
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
loadPolicyList: function () {
|
|
loadPolicyList: function () {
|
|
request.query({
|
|
request.query({
|
|
url: 'api/financial/tPolicyInterpretation/select',
|
|
url: 'api/financial/tPolicyInterpretation/select',
|
|
@@ -142,6 +164,7 @@ Page({
|
|
* 生命周期函数--监听页面加载
|
|
* 生命周期函数--监听页面加载
|
|
*/
|
|
*/
|
|
onLoad: function (options) {
|
|
onLoad: function (options) {
|
|
|
|
+ this.topNews();
|
|
this.loadPolicyList();
|
|
this.loadPolicyList();
|
|
|
|
|
|
},
|
|
},
|
|
@@ -150,7 +173,7 @@ Page({
|
|
* 生命周期函数--监听页面初次渲染完成
|
|
* 生命周期函数--监听页面初次渲染完成
|
|
*/
|
|
*/
|
|
onReady: function () {
|
|
onReady: function () {
|
|
-
|
|
|
|
|
|
+ console.log(JSON.stringify(wx.getStorageSync('user')))
|
|
},
|
|
},
|
|
|
|
|
|
/**
|
|
/**
|