|
|
|
// 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')
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
...
|
...
|
|