Browse Source

修改日历展示页面

master
王健 4 years ago
parent
commit
3de448dd98
  1. 20
      pages/calendar/calendar.js

20
pages/calendar/calendar.js

@ -35,8 +35,8 @@ Page({
calendarDisplayTime: '',
calendarSelectedDate: new Date().toString(),
calendarSelectedDateStr: '',
region: ["500000", "500100"],
cityName: '重庆',
region: ["500000", "500100","500104"],
cityName: '重庆',
timeValue: '',
year: '',
month: '',
@ -95,7 +95,7 @@ Page({
},
bindAddressChange(res) {
let cityName = res.detail.value[1]
let cityName = res.detail.value[2]
if (cityName) {
this.setData({
cityName
@ -106,7 +106,6 @@ Page({
// 跳转
navigate(e) {
let id = e.currentTarget.dataset.id;
console.log(e.currentTarget.dataset.id)
wx.navigateTo({
url: '/pages/look-detail/look-detail?id=' + id,
})
@ -142,14 +141,15 @@ Page({
timer
})
}
$api.getLandlistedList({ annoDate: timer, city: this.data.cityName }).then(res => {
console.log(this.data.cityName);
$api.getLandlistedList({ annoDate: timer, canton: this.data.cityName }).then(res => {
console.log(res);
this.setData({
info: res.data.records
})
})
$api.getLandlistedList2({ auctionDate: timer, city: this.data.cityName }).then(res => {
$api.getLandlistedList2({ auctionDate: timer, canton: this.data.cityName }).then(res => {
// console.log(res.data)
this.setData({
infoT: res.data.records
@ -165,8 +165,10 @@ Page({
},
getCalendar() {
// 获取日历列表数据
let date =this.data.calendarDisplayTime.substring(0,7);
$api.AJAX("GET", 'applets/landlisted/calendar', {
date: this.data.calendarDisplayTime
date: date,
canton: this.data.cityName
}, true).then(res => {
let auctionCount = [];// 拍卖数量的
let listedCount = [];//挂牌数量的
@ -183,8 +185,6 @@ Page({
)
}
})
// console.log(auctionCount);
// console.log(listedCount);
this.setData({
auctionCount: auctionCount,

Loading…
Cancel
Save