From 373159149175a59d71b21967520789000257fc96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=B8=85?= <6581896+oncream@user.noreply.gitee.com> Date: Fri, 11 Apr 2025 17:21:20 +0800 Subject: [PATCH] =?UTF-8?q?feat(1.0.4):=E4=BF=AE=E5=A4=8D=E5=89=8D?= =?UTF-8?q?=E7=AB=AF=E8=AE=A2=E5=8D=95=E9=87=91=E9=A2=9D=E5=9B=9B=E8=88=8D?= =?UTF-8?q?=E4=BA=94=E5=85=A5=EF=BC=9B=E4=BF=AE=E5=A4=8D=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E5=AE=9E=E4=BD=93created=E6=98=A0=E5=B0=84=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 2 +- internal/domain/order/entity.go | 2 +- ui/src/app/home/confirm-order/confirm-order.page.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index f95b409..6055fca 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ all: frontend build tar image: frontend docker-build save-image -TAG=v1.0.3 +TAG=v1.0.4 frontend: cd ui && yarn run build diff --git a/internal/domain/order/entity.go b/internal/domain/order/entity.go index 1ecf5ab..0570fe5 100644 --- a/internal/domain/order/entity.go +++ b/internal/domain/order/entity.go @@ -32,7 +32,7 @@ type Order struct { Coupon uint64 //优惠券 Status OrderStatus `json:"status"` // 订单状态 Description string `json:"description"` // 商品描述 - CreatedAt time.Time `xorm:"creaed" ` // 创建时间 + CreatedAt time.Time `xorm:"created" ` // 创建时间 UpdatedAt time.Time `xorm:"updated" ` // 更新时间 DeletedAt *time.Time `xorm:"deleted"` // 删除时间 } diff --git a/ui/src/app/home/confirm-order/confirm-order.page.ts b/ui/src/app/home/confirm-order/confirm-order.page.ts index 549bda5..598fa83 100644 --- a/ui/src/app/home/confirm-order/confirm-order.page.ts +++ b/ui/src/app/home/confirm-order/confirm-order.page.ts @@ -31,7 +31,7 @@ export class ConfirmOrderPage implements OnInit { return; } this.order = order as Order; - this.order.amount = Number((this.order.amount * 100).toFixed(0)) + this.order.amount = Number(Math.round(this.order.amount * 100)) } ngOnInit() {