|
|
@@ -6,6 +6,8 @@ Page({ |
|
|
|
market: app.globalData.market, |
|
|
|
list: [], |
|
|
|
swiperCurrent: 0, |
|
|
|
title:'', |
|
|
|
desc:'', |
|
|
|
scrollTop: 0, |
|
|
|
page: 1 // 刷新进入页面时已经加载了第一页数据,onReachBottom时 page++,从第2页开始加载 |
|
|
|
}, |
|
|
@@ -28,11 +30,26 @@ Page({ |
|
|
|
var scene = decodeURIComponent(options.scene); |
|
|
|
that.setData({ |
|
|
|
scene:scene |
|
|
|
}) |
|
|
|
}); |
|
|
|
console.log(that.data.scene) |
|
|
|
console.log(scene); |
|
|
|
app.getLocation(); |
|
|
|
that.userLogin(); |
|
|
|
Http.get({ |
|
|
|
url: config.api.getWeapNote, |
|
|
|
data: { |
|
|
|
appId: config.weapp.AppId, |
|
|
|
} |
|
|
|
}) |
|
|
|
.then(res=>{ |
|
|
|
console.log(res.data.weapNote); |
|
|
|
let weapNote = JSON.parse(res.data.weapNote); |
|
|
|
console.log(weapNote.firstpage); |
|
|
|
that.setData({ |
|
|
|
desc: weapNote.firstpage.desc, |
|
|
|
title: weapNote.firstpage.title |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
onShow:function(){ |
|
|
|
let num = wx.getStorageSync('couponNum'); |
|
|
@@ -40,7 +57,7 @@ Page({ |
|
|
|
wx.showTabBarRedDot({ |
|
|
|
index: 2 |
|
|
|
}) |
|
|
|
} |
|
|
|
}; |
|
|
|
}, |
|
|
|
/** |
|
|
|
* 下拉刷新 |
|
|
@@ -232,8 +249,8 @@ Page({ |
|
|
|
// 用户点击右上角分享 |
|
|
|
onShareAppMessage: function() { |
|
|
|
return { |
|
|
|
title: "富茂链客", |
|
|
|
desc: "分享个小程序,希望你喜欢", |
|
|
|
title: this.data.title, |
|
|
|
desc: this.data.desc, |
|
|
|
success: function(res) { |
|
|
|
wx.showToast({ |
|
|
|
title: "分享成功", |
|
|
|