|
...
|
...
|
@@ -11,6 +11,7 @@ Page({ |
|
|
|
*/
|
|
|
|
data: {
|
|
|
|
threeText: '今天', //今天、明天、后天
|
|
|
|
barHeight:'',
|
|
|
|
date: '',
|
|
|
|
date1: '',
|
|
|
|
week: '',
|
|
...
|
...
|
@@ -45,14 +46,14 @@ Page({ |
|
|
|
onLoad(options) {
|
|
|
|
console.log('options---', options);
|
|
|
|
let obj = {}
|
|
|
|
if (options) {
|
|
|
|
if (options.seller_id) util.cache('sellerid', options.seller_id)
|
|
|
|
if (options.seller_id && options.manager_id && options.seller_openid) {
|
|
|
|
obj = {
|
|
|
|
seller_id: options.seller_id,
|
|
|
|
manager_id: options.manager_id,
|
|
|
|
seller_openid: options.seller_openid,
|
|
|
|
}
|
|
|
|
util.cache('enter_params', obj)
|
|
|
|
if (options.seller_id) util.cache('sellerid', options.seller_id)
|
|
|
|
}
|
|
|
|
this.getDateBox = this.selectComponent("#getDate");
|
|
|
|
this.getBook = this.selectComponent("#getBook");
|
|
...
|
...
|
@@ -62,6 +63,20 @@ Page({ |
|
|
|
let role_name = res.data.seller_user.role_name;
|
|
|
|
util.cache('roleName', role_name)
|
|
|
|
})
|
|
|
|
let systemInfo = wx.getSystemInfoSync();
|
|
|
|
let reg = /ios/i;
|
|
|
|
let pt = 20; //导航状态栏上内边距
|
|
|
|
let h = 44; //导航状态栏高度
|
|
|
|
if (reg.test(systemInfo.system)) {
|
|
|
|
pt = systemInfo.statusBarHeight;
|
|
|
|
h = 44;
|
|
|
|
} else {
|
|
|
|
pt = systemInfo.statusBarHeight;
|
|
|
|
h = 48;
|
|
|
|
}
|
|
|
|
this.setData({
|
|
|
|
barHeight: pt + h,
|
|
|
|
})
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
* 生命周期函数--监听页面显示
|
...
|
...
|
|