Commit ce3ee73d66681df05693da0aa89facbfb26e4428

Authored by vking
1 parent 4b6175bb

fix desk bug

// pages/book/b_addnew.js
import util from '../../../utils/util';
import App from '../../../utils/api';
import PubSub from '../../../utils/PubSub'
const formTpl = {
rid: '',
pnum: 6,
... ... @@ -55,6 +56,10 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: async function (options) {
PubSub.on('arrangeDesk',(res)=>{
console.log('arrangeDesk',res)
this.getTables();
})
this.options=options
this.sellerid = util.cache('enter_params')['seller_id'];
this.getCustomRemark();
... ... @@ -98,7 +103,7 @@ Page({
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
PubSub.off('arrangeDesk')
},
/**
... ...
... ... @@ -57,10 +57,10 @@ Page({
wx.removeStorage({
key:'tableid'
})
PubSub.emit('arrangeDesk',{
tableid:this.checked_tids
})
}
PubSub.emit('arrangeDesk',{
tableid:this.checked_tids
})
wx.navigateBack();
},
getdesklist: function () {
... ...
// pages/book/b_addnew.js
import util from '../../../utils/util';
import App from '../../../utils/api';
import PubSub from '../../../utils/PubSub'
const formTpl = {
rid: '',
pnum: 6,
... ... @@ -55,6 +56,10 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: async function (options) {
PubSub.on('arrangeDesk',(res)=>{
console.log('arrangeDesk',res)
this.getTables();
})
this.options=options
this.sellerid = util.cache('enter_params')['seller_id'];
this.getCustomRemark();
... ... @@ -98,7 +103,7 @@ Page({
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
PubSub.off('arrangeDesk')
},
/**
... ...