|
|
|
@ -1,5 +1,6 @@ |
|
|
|
// pages/message/detail/index.js
|
|
|
|
import Scene from '../../index/scene' |
|
|
|
import Dialog from '../../../components/dialog/dialog' |
|
|
|
import { getFactoryPriceDetail, userPushFollowMill } from "../../../api/ztb" |
|
|
|
const event = require('../../../utils/event') |
|
|
|
const util = require('../../../utils/util') |
|
|
|
@ -96,6 +97,11 @@ Scene({ |
|
|
|
wx.navigateTo({ url: '/pages/login/index' }) |
|
|
|
return |
|
|
|
} |
|
|
|
if (!app.userInfo.type || app.userInfo.type.indexOf('ADMIN') < 0) { |
|
|
|
Dialog.alert({ title: '温馨提示', message: '您不是工厂管理员,无法预约代卖,请联系工厂管理员' }).then(() => { |
|
|
|
}) |
|
|
|
return |
|
|
|
} |
|
|
|
if(!this.data.factoryDetail.isOperations){ |
|
|
|
util.showToast(this.data.factoryDetail.manageNotifyMessage) |
|
|
|
return |
|
|
|
|