Commit 64c97a8f631ce1661ba77ea52eab573ce4fa8113

Authored by wangfan
1 parent 2714e15a

快速预定

... ... @@ -162,8 +162,20 @@
.hasListModel .price .opt{
position: absolute;
right:20rpx;
top:-12rpx;
top:-16rpx;
height: 40rpx;
line-height: 40rpx;
}
.hasListModel .t-align-c{
margin: 0 10rpx;
font-size: 36rpx;
font-weight: bold;
padding: 0;
width: 50rpx;
overflow-x: hidden;
text-align: center;
}
.hasListModel .food-clear-content{
color:#DA331D;
background-color: #F4DCD9;
... ... @@ -192,12 +204,4 @@
height: 40rpx;
}
.hasListModel .t-align-c{
margin: 0 10rpx;
font-size: 36rpx;
font-weight: bold;
padding: 0;
width: 50rpx;
overflow: hidden;
text-align: center;
}
... ...
... ... @@ -237,7 +237,7 @@ Component({
type: 1,
});
//this.matchArray(cookbookid,1,countTotal,countPirce)
App.Advance.AddCart({
let params={
orderid: this.data.orderid,
openid: util.cache('openid'),
cookbookid: cookbookid,
... ... @@ -246,12 +246,19 @@ Component({
request_uri: this.data.request_uri == true ? 1 : '',//服务员通过消息通知进来 又加菜的标识
fromSoucre: this.data.fromSoucre ? this.data.fromSoucre : '',
identity: this.data.identity
});
}
if(this.data.item.specid>0){
params.specid=this.data.item.specid;
}
if(this.data.item.practiceid>0){
params.practiceid=this.data.item.practiceid;
}
App.Advance.AddCart(params);
});
},
//减菜面板
subtractCook(){
console.log('addFunction', this.data.item);
console.log('subtractCook', this.data.item);
var cookbookid = this.data.item.identity>=0?this.data.item.cookbookid:this.data.item.id
var price = this.data.item.price;
this.initKindMenu().then(res => {
... ... @@ -266,8 +273,7 @@ Component({
cookbookid: cookbookid,
type: -1,
});
App.Advance.ReduceOrder({
let params={
orderid: this.data.orderid,
openid: getApp().openid,
cookbookid: cookbookid,
... ... @@ -278,7 +284,14 @@ Component({
status: this.data.fromSoucre != '' ? 2 : '',//只查没有下单的
source: 2,
identity: this.data.identity
});
}
if(this.data.item.specid>0){
params.specid=this.data.item.specid;
}
if(this.data.item.practiceid>0){
params.practiceid=this.data.item.practiceid;
}
App.Advance.ReduceOrder(params);
});
},
//减菜面板加菜按钮
... ...
... ... @@ -111,7 +111,7 @@
}
.column { display: flex; flex-direction: column; width: 50%; max-width:50%; }
.column-space { width: 20px; }
.column .item{margin-bottom: 20px;width:100%; overflow: hidden; border-radius: 10rpx;}
.column .item{width:100%; overflow: hidden; border-radius: 10rpx;}
/**
列表模式
... ... @@ -125,8 +125,6 @@
.list-model .item{
border-radius: 0rpx;
border-bottom: 2rpx solid #F5F5F5;
padding-bottom: 28rpx;
margin-top: 14rpx;
}
.list-layout-buttom-opt{
background-color: #353535;
... ...
... ... @@ -119,7 +119,7 @@ export default {
/**提前点餐**/
'App.Advance.CreateOrder':{
silence: false,
//silence: false,
},
//菜品列表
'App.Advance.GetCookbookByClass': null,
... ...