|
@@ -23,6 +23,7 @@ const conf = {
|
|
curDate: '',
|
|
curDate: '',
|
|
fromDate:'',
|
|
fromDate:'',
|
|
toDate:'',
|
|
toDate:'',
|
|
|
|
+ userInfo:{},
|
|
calendarConfig: {
|
|
calendarConfig: {
|
|
theme: 'elegant',
|
|
theme: 'elegant',
|
|
showHolidays: false,
|
|
showHolidays: false,
|
|
@@ -125,6 +126,7 @@ const conf = {
|
|
url: '/pages/index/index',
|
|
url: '/pages/index/index',
|
|
})
|
|
})
|
|
}else{
|
|
}else{
|
|
|
|
+ this.setData({userInfo: res})
|
|
this.loadData()
|
|
this.loadData()
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -257,6 +259,13 @@ const conf = {
|
|
duration: 1500
|
|
duration: 1500
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ onShareAppMessage: function () {
|
|
|
|
+ let {nickname} = this.data.userInfo
|
|
|
|
+ return {
|
|
|
|
+ title: `【${nickname}】向您推荐莅临外出小程序`,
|
|
|
|
+ path: `/pages/rili/index`
|
|
|
|
+ }
|
|
|
|
+ },
|
|
generateRandomDate(type) {
|
|
generateRandomDate(type) {
|
|
let random = ~~(Math.random() * 10)
|
|
let random = ~~(Math.random() * 10)
|
|
switch (type) {
|
|
switch (type) {
|