|
@@ -888,7 +888,6 @@ func (this *ActivityNoLoginController) Detail() {
|
|
|
}
|
|
|
detailResp.SignupType = mapActivitySignup[activityId]
|
|
|
resp.Detail = detailResp
|
|
|
- resp.GoodsList = make([]*order.CygxGoodsResp, 0)
|
|
|
} else {
|
|
|
hasPermission, sellerName, sellerMobile, popupMsg, err := services.GetUserHasPermission(user)
|
|
|
if err != nil {
|
|
@@ -902,16 +901,6 @@ func (this *ActivityNoLoginController) Detail() {
|
|
|
resp.SellerName = sellerName
|
|
|
resp.SellerMobile = sellerMobile
|
|
|
|
|
|
- if (!activityInfo.IsResearchPoints && activityInfo.IsLimitPeople == 0) || activityInfo.YidongActivityId != "" { //易董的活动 或者(不扣点且不限制人数)走月卡日卡逻辑
|
|
|
- resp.GoodsList = services.GetUserGoodsCardList() //日卡月卡商品信息
|
|
|
- } else {
|
|
|
- resp.GoodsList = services.GetGoodsInfoByActivity(activityInfo) //单场活动信息
|
|
|
- fmt.Println("activityId", activityId)
|
|
|
- resp.OrderCode, resp.PayTimeCountdown = services.GetHaverEquallyOrderByUser10MinByActivty(uid, activityId) //截止支付时间倒计时
|
|
|
- }
|
|
|
- for _, v := range resp.GoodsList {
|
|
|
- resp.PopupPriceMsg += v.PopupPriceMsg //价格弹窗信息
|
|
|
- }
|
|
|
resp.IsShowWxPay = utils.IS_SHOW_WX_PAY //是否展示微信支付按钮
|
|
|
resp.IsCompanyApply = services.GetUserApplyRecordCountByCompanyIdPay(user.CompanyId) //获取客户是否有过历史申请记录
|
|
|
resp.IsNeedBusinessCard = services.GetCygxUserBusinessCardCount(user.UserId, user.CompanyId) //是否需要上传名片
|
|
@@ -921,6 +910,20 @@ func (this *ActivityNoLoginController) Detail() {
|
|
|
resp.IsResearch = true
|
|
|
}
|
|
|
|
|
|
+ if (!activityInfo.IsResearchPoints && activityInfo.IsLimitPeople == 0) || activityInfo.YidongActivityId != "" { //易董的活动 或者(不扣点且不限制人数)走月卡日卡逻辑
|
|
|
+ resp.GoodsList = services.GetUserGoodsCardList() //日卡月卡商品信息
|
|
|
+ } else {
|
|
|
+ resp.GoodsList = services.GetGoodsInfoByActivity(activityInfo) //单场活动信息
|
|
|
+ resp.OrderCode, resp.PayTimeCountdown = services.GetHaverEquallyOrderByUser10MinByActivty(uid, activityId) //截止支付时间倒计时
|
|
|
+ }
|
|
|
+
|
|
|
+ if len(resp.GoodsList) == 0 {
|
|
|
+ resp.GoodsList = make([]*order.CygxGoodsResp, 0)
|
|
|
+ } else {
|
|
|
+ for _, v := range resp.GoodsList {
|
|
|
+ resp.PopupPriceMsg += v.PopupPriceMsg //价格弹窗信息
|
|
|
+ }
|
|
|
+ }
|
|
|
if uid == 0 {
|
|
|
resp.HasPermission = 1
|
|
|
}
|
|
@@ -2518,7 +2521,6 @@ func (this *ActivityController) Check() {
|
|
|
//如果通过点数的校验,就来校验邮箱
|
|
|
resp.CheckEmail, resp.PopupMsg = services.CheckActivityUserEmail(activityInfo, user)
|
|
|
} else {
|
|
|
- resp.IsShowWxPay = utils.IS_SHOW_WX_PAY
|
|
|
resp.GoodsList = services.GetGoodsInfoByActivity(activityInfo) //单场活动信息
|
|
|
for _, v := range resp.GoodsList {
|
|
|
resp.PopupPriceMsg += v.PopupPriceMsg //价格弹窗信息
|