Commit 5f744cf2 by 张立顺

修改首页待补录订单判断

1 parent 69039c7d
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* 2测试 * 2测试
* 3生产环境 * 3生产环境
*/ */
let index = 2 let index = 3
const accountInfo = wx.getAccountInfoSync() const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync() const systemInfo = wx.getSystemInfoSync()
......
...@@ -258,8 +258,8 @@ Page({ ...@@ -258,8 +258,8 @@ Page({
// console.log('isStaff', isStaff) // console.log('isStaff', isStaff)
let thisPage = wx.$router.getPageInstance() let thisPage = wx.$router.getPageInstance()
console.log(thisPage.route, ' thisPage.route') console.log(thisPage.route, ' thisPage.route')
thisPage.route == 'tabIndex/pages/index/index' && // thisPage.route == 'tabIndex/pages/index/index' &&
isStaff && isStaff &&
api api
.waitinputorder() .waitinputorder()
.then(result => { .then(result => {
...@@ -431,6 +431,9 @@ Page({ ...@@ -431,6 +431,9 @@ Page({
*/ */
onShow: function (options) { onShow: function (options) {
// console.log(options, 'options') // console.log(options, 'options')
this.setData({
isStaff: app.globalData.isStaff
})
let userInfo = wx.$util.getUserInfo() let userInfo = wx.$util.getUserInfo()
// console.log(userInfo) // console.log(userInfo)
// 如果是员工 开启订单补录轮询 // 如果是员工 开启订单补录轮询
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!