update
This commit is contained in:
parent
39f463ff2d
commit
d6125a3a1b
@ -34,7 +34,21 @@ func (s *SmithyView) CreateView(t *model.TestCase) fyne.CanvasObject {
|
||||
t.MainType,
|
||||
"jiaoyi",
|
||||
&pb.SmithySellReq{
|
||||
EquipIds: []string{},
|
||||
EquipIds: []string{},
|
||||
CustomerId: 1,
|
||||
},
|
||||
); err != nil {
|
||||
logrus.Error(err)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
//拒绝
|
||||
refuse := func() {
|
||||
if err := service.GetPttService().SendToClient(
|
||||
t.MainType,
|
||||
"refuse",
|
||||
&pb.SmithyRefuseReq{
|
||||
CustomerId: 1,
|
||||
},
|
||||
); err != nil {
|
||||
@ -43,9 +57,10 @@ func (s *SmithyView) CreateView(t *model.TestCase) fyne.CanvasObject {
|
||||
}
|
||||
}
|
||||
customerBtn := widget.NewButton("顾客", loadCustomer)
|
||||
refuseBtn := widget.NewButton("拒绝", refuse)
|
||||
jiaoyiBtn := widget.NewButton("交易", jiaoyi)
|
||||
|
||||
btns := container.NewHBox(customerBtn, jiaoyiBtn)
|
||||
btns := container.NewHBox(customerBtn, jiaoyiBtn, refuseBtn)
|
||||
c := container.NewBorder(btns, nil, nil, nil)
|
||||
return c
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user