Commit 5f744cf2 by 张立顺

修改首页待补录订单判断

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