Commit 11662018f8775f95fbd5dce167798384b7a8b9d1

Authored by wangfan
1 parent 76bc50d3

录入调整

... ... @@ -64,16 +64,20 @@ Page({
*/
reserve_id:'',
onLoad: async function (options) {
this.reserve_id=options.id||'';
this.setDateStr();
this.initLoad(options)
},
async initLoad(options={}){
this.reserve_id=options.id||'';
this.setDateStr();
this.sellerid=util.cache('sellerid');
let timePickerArray= await comm.getDayTimeSpace();
this.setData({
timePickerArray: timePickerArray,
})
if(this.reserve_id>0){
this.initModify(this.reserve_id);
}
let timePickerArray= await comm.getDayTimeSpace();
this.setData({
timePickerArray: timePickerArray,
})
if(this.reserve_id>0){
this.initModify(this.reserve_id);
}
this.getTables();
},
/**
*
... ... @@ -117,7 +121,8 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function () {
if(!this.reserve_id || util.cache('tableid').length>0){
//if(!this.reserve_id || util.cache('tableid').length>0){
if(util.cache('tableid').length>0){
this.getTables();
}
setTimeout(()=>{
... ... @@ -323,9 +328,10 @@ Page({
if(res.ret==200){
let _id=(res.data.id || res.data)
this.setData({
form:JSON.parse(JSON.stringify(formTpl)),
tablesed:null,
form:JSON.parse(JSON.stringify(formTpl)),
tables:[],
})
this.initLoad();
App.Reserve.Detail({rid:_id,openid:''},'clear')
wx.navigateTo({
url:'b_detail?id='+_id,
... ...
{
"description": "项目配置文件。",
"setting": {
"urlCheck": false,
"urlCheck": true,
"es6": true,
"postcss": true,
"minified": true,
... ...