代码清理

master
zsk 2 years ago
parent 83c8c25c1d
commit 45aa956378

@ -1095,17 +1095,17 @@ Page({
}, },
onReady() { onReady() {
let that = this; let that = this;
var query = wx.createSelectorQuery(); // var query = wx.createSelectorQuery();
query.select(".navigatorBar").boundingClientRect(); // query.select(".navigatorBar").boundingClientRect();
query.exec(function (res) { // query.exec(function (res) {
//res就是 所有标签为v1的元素的信息 的数组 // //res就是 所有标签为v1的元素的信息 的数组
console.log(res); // console.log(res);
//取高度 // //取高度
console.log(res[0].height); // console.log(res[0].height);
that.setData({ // that.setData({
navigatorBarHeight: res[0].height, // navigatorBarHeight: res[0].height,
}); // });
}); // });
}, },
/** /**
* 智能匹配结束 * 智能匹配结束
@ -1476,17 +1476,17 @@ Page({
that.data.storeJobListSearchForm.pageNum = 1; that.data.storeJobListSearchForm.pageNum = 1;
wx.setStorageSync("BILLFROM", "firstBill"); wx.setStorageSync("BILLFROM", "firstBill");
var query = wx.createSelectorQuery(); // var query = wx.createSelectorQuery();
query.select(".toppic").boundingClientRect(); // query.select(".toppic").boundingClientRect();
query.exec(function (res) { // query.exec(function (res) {
//res就是 所有标签为v1的元素的信息 的数组 // //res就是 所有标签为v1的元素的信息 的数组
console.log(res); // console.log(res);
//取高度 // //取高度
console.log(res[0].height); // console.log(res[0].height);
that.setData({ // that.setData({
swiperHeight: res[0].height, // swiperHeight: res[0].height,
}); // });
}); // });
// wx.showTabBar({ // wx.showTabBar({
// success(e) {}, // success(e) {},

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save