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