|
|
|
var util = require('../../utils/util.js')
|
|
|
|
var uri=require('../../utils/uri.js')
|
|
|
|
var bookOrder=require('../../utils/bookCommon.js')
|
|
|
|
import App from '../../utils/api';
|
|
|
|
const {regeneratorRuntime} = global
|
|
|
|
Page({
|
|
|
|
data:{
|
|
|
|
isloading:false,
|
|
...
|
...
|
@@ -13,15 +15,18 @@ Page({ |
|
|
|
var radio=750/util.getsystem().windowWidth;
|
|
|
|
var contentHeight=util.getsystem().windowHeight-Math.ceil(165/radio)
|
|
|
|
this.setData({
|
|
|
|
sellerid:opt.sellerid ? opt.sellerid : util.cache('sellerid'),
|
|
|
|
sellerid:opt.seller_id ? opt.seller_id : util.cache('sellerid'),
|
|
|
|
systemInfo:util.getsystem(),
|
|
|
|
contentHeight:contentHeight,
|
|
|
|
listHeight:contentHeight-Math.ceil(140/radio)
|
|
|
|
})
|
|
|
|
util.cache('sellerid',opt.sellerid)
|
|
|
|
util.cache('sellerid',opt.seller_id)
|
|
|
|
util.cache('enter_params',opt)
|
|
|
|
console.log(this.data.sellerid)
|
|
|
|
util.setBarTitle('预定本');
|
|
|
|
|
|
|
|
App.Reserve.SellerInfo(opt).then(res=>{
|
|
|
|
util.cache('sellerInfo',res.data)
|
|
|
|
})
|
|
|
|
},
|
|
|
|
onShow:function(){
|
|
|
|
var that=this;
|
...
|
...
|
|