city_card/pages/center/contact.js

43 lines
1.1 KiB
JavaScript
Raw Normal View History

2023-07-15 14:25:28 +08:00
var t = getApp();
Page({
data: {
token: t.globalData.token,
serviceUrl: t.baseUrls.serviceUrl,
baseImgUrl: t.baseUrls.baseImgUrl,
sourceUrl: t.baseUrls.sourceUrl,
gridList: []
},
getGridList: function() {
var e = this;
t.restAjax.get(t.restAjax.path(t.apis.getGridList, [ t.baseUrls.requestUrl ]), {
areaCode: wx.getStorageSync("areaCode")
}, {
headers: {
token: t.globalData.token
}
}, function(t, a) {
e.setData({
gridList: a
});
}, function(t, e) {
console.log(e);
});
},
contactGrid: function(t) {
var e = t.currentTarget.dataset.item;
wx.navigateTo({
url: "./contact/contactDetail?gridMiniId=" + e.cardSysId
});
},
onLoad: function(t) {
this.getGridList();
},
onReady: function() {},
onShow: function() {},
onHide: function() {},
onUnload: function() {},
onPullDownRefresh: function() {},
onReachBottom: function() {},
onShareAppMessage: function() {}
});