diff --git a/server/api/staff.go b/server/api/staff.go index cac90ce..6ffa25b 100644 --- a/server/api/staff.go +++ b/server/api/staff.go @@ -99,28 +99,28 @@ func (s *StaffUser) From(m *model.StaffUser) { s.PayeeAlipayAuthUrl = fmt.Sprintf("https://openauth.alipay.com/oauth2/publicAppAuthorize.htm?app_id=2021004108682468&scope=auth_user&state=%d&redirect_uri=https://e.batiao8.com/api/payment/auth/alipay", m.Id) s.PayeeAlipayAuthQrcode, _ = butil.CreateQrcodeBase64V2(s.PayeeAlipayAuthUrl, qrcode.Low, 300) - tags := make([]*Tag, 0) + tags := make([]*Tag, 0) //| 'primary' | 'success' | 'info' | 'danger' | 'warning' | 'text' payChannel := m.GetConfig().PayChannel if payChannel == "" { - tags = append(tags, &Tag{Name: "未填工资发放渠道", Type: "warning"}) + tags = append(tags, &Tag{Name: "未填工资发放渠道", Type: "danger"}) } else { if payChannel == model.StaffSalaryPaymentAlipay { tags = append(tags, &Tag{Name: "支付宝", Type: "success"}) } else { - tags = append(tags, &Tag{Name: "银行卡", Type: "success"}) + tags = append(tags, &Tag{Name: "银行卡", Type: "info"}) } } if payee.BankName == "" || payee.BankCard == "" { - tags = append(tags, &Tag{Name: "未填银行卡", Type: "warning"}) + tags = append(tags, &Tag{Name: "未填银行卡", Type: "danger"}) } if payee.AlipayUid == "" { tags = append(tags, &Tag{Name: "未绑支付宝", Type: "warning"}) } if m.Phone == "" { - tags = append(tags, &Tag{Name: "未填手机号", Type: "warning"}) + tags = append(tags, &Tag{Name: "未填手机号", Type: "danger"}) } if m.Idno == "" { - tags = append(tags, &Tag{Name: "未填身份证号", Type: "warning"}) + tags = append(tags, &Tag{Name: "未填身份证号", Type: "danger"}) } s.Tags = tags