|
@@ -14,8 +14,7 @@ Page({
|
|
|
shoopingtext: '',
|
|
|
// 采购申请审核
|
|
|
list: [
|
|
|
- { order_num: 'Ygj4757945hdFueu', receive_user_name: '胡英俊', mech_name: '翻斗幼儿园-小豆班', status_name: '待供货单位确认', status: '0', user_name: '采购人员', user_phone: '12345678901', money: '3344', receive_user_phone: '98765432109', receive_address: '翻斗大街翻斗花园2号楼1001室', },
|
|
|
- { order_num: 'Hgj4757945hdFueu', receive_user_name: '胡图图', mech_name: '翻斗幼儿园-小豆班', status_name: '待供货单位确认', status: '1', user_name: '采购人员', user_phone: '12345678901', money: '3344', receive_user_phone: '98765432109', receive_address: '翻斗大街翻斗花园2号楼1001室', order: [{ name: '小洋人', num: '123', money: '3000' }, { name: '娃哈哈', num: '123', money: '344' }] }
|
|
|
+
|
|
|
],
|
|
|
// 弹框
|
|
|
dialog: { title: '详细信息', show: false, type: '1' },
|
|
@@ -49,9 +48,31 @@ Page({
|
|
|
* 生命周期函数--监听页面加载
|
|
|
*/
|
|
|
onLoad: function (options) {
|
|
|
+ this.watchLogin();
|
|
|
// 计算高度
|
|
|
this.searchHeight();
|
|
|
},
|
|
|
+ // 监听用户是否登录
|
|
|
+ watchLogin: function () {
|
|
|
+ let data = [
|
|
|
+ { order_num: 'Ygj4757945hdFueu', receive_user_name: '胡英俊', mech_name: '翻斗幼儿园-小豆班', status_name: '待供货单位确认', status: '0', user_name: '采购人员', user_phone: '12345678901', money: '3344', receive_user_phone: '98765432109', receive_address: '翻斗大街翻斗花园2号楼1001室', },
|
|
|
+ { order_num: 'Hgj4757945hdFueu', receive_user_name: '胡图图', mech_name: '翻斗幼儿园-小豆班', status_name: '待供货单位确认', status: '1', user_name: '采购人员', user_phone: '12345678901', money: '3344', receive_user_phone: '98765432109', receive_address: '翻斗大街翻斗花园2号楼1001室', order: [{ name: '小洋人', num: '123', money: '3000' }, { name: '娃哈哈', num: '123', money: '344' }] }]
|
|
|
+ this.setData({ list: data })
|
|
|
+ // wx.getStorage({
|
|
|
+ // key: 'user',
|
|
|
+ // success: res => {
|
|
|
+ // if (res.data) {
|
|
|
+ // // 查询菜单
|
|
|
+ // if (res.data) this.searchRouter(res.data);
|
|
|
+ // res.data.type = type.find((i) => i.value == res.data.type).label;
|
|
|
+ // if (res.data) this.setData({ userInfo: res.data });
|
|
|
+ // if (res.data && res.data.avatarUrl) this.setData({ avatarUrl: res.data.avatarUrl });
|
|
|
+ // } else {
|
|
|
+ // wx.redirectTo({ url: '/pages/login/index', })
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ },
|
|
|
// 计算高度
|
|
|
searchHeight: function () {
|
|
|
let frameStyle = this.data.frameStyle;
|