|
|
|
|
@ -60,7 +60,8 @@ Page({
|
|
|
|
|
shareListImg: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/detail830-1.png",
|
|
|
|
|
shareDetailImg: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/posterbg1.1.png",
|
|
|
|
|
posterImg: "",
|
|
|
|
|
safeBottom:wx.getWindowInfo().screenHeight - wx.getWindowInfo().safeArea.height+'px'
|
|
|
|
|
safeBottom:wx.getWindowInfo().screenHeight - wx.getWindowInfo().safeArea.height+'px',
|
|
|
|
|
swiperHeight:0
|
|
|
|
|
},
|
|
|
|
|
showdialog() {
|
|
|
|
|
this.setData({
|
|
|
|
|
@ -91,6 +92,18 @@ Page({
|
|
|
|
|
} else {
|
|
|
|
|
this.wxLogin();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var query = wx.createSelectorQuery();
|
|
|
|
|
query.select(".page-section").boundingClientRect();
|
|
|
|
|
query.exec(function (res) {
|
|
|
|
|
//res就是 所有标签为v1的元素的信息 的数组
|
|
|
|
|
console.log(res);
|
|
|
|
|
//取高度
|
|
|
|
|
console.log(res[0].height);
|
|
|
|
|
that.setData({
|
|
|
|
|
swiperHeight: res[0].height,
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
that.searchAnimate();
|
|
|
|
|
|
|
|
|
|
console.log(that.data.userInfo);
|
|
|
|
|
@ -223,7 +236,8 @@ Page({
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
searchAnimate() {
|
|
|
|
|
let that = this;
|
|
|
|
|
let that = this;
|
|
|
|
|
|
|
|
|
|
wx.createSelectorQuery()
|
|
|
|
|
.select("#listBox")
|
|
|
|
|
.fields(
|
|
|
|
|
@ -247,7 +261,7 @@ Page({
|
|
|
|
|
scrollSource: "#listBox",
|
|
|
|
|
timeRange: 1000,
|
|
|
|
|
startScrollOffset: 0,
|
|
|
|
|
endScrollOffset: 120,
|
|
|
|
|
endScrollOffset: that.data.swiperHeight - 34,
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
this.animate(
|
|
|
|
|
@ -274,7 +288,20 @@ Page({
|
|
|
|
|
.exec();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// onReady() {
|
|
|
|
|
// let that = this;
|
|
|
|
|
// var query = wx.createSelectorQuery();
|
|
|
|
|
// query.select(".page-section").boundingClientRect();
|
|
|
|
|
// query.exec(function (res) {
|
|
|
|
|
// //res就是 所有标签为v1的元素的信息 的数组
|
|
|
|
|
// console.log(res);
|
|
|
|
|
// //取高度
|
|
|
|
|
// console.log(res[0].height);
|
|
|
|
|
// that.setData({
|
|
|
|
|
// swiperHeight: res[0].height,
|
|
|
|
|
// });
|
|
|
|
|
// });
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
|
|
getAgencyInfo(job) {
|
|
|
|
|
var that = this;
|
|
|
|
|
|