|
|
@@ -14,11 +14,15 @@ enum QSLVipJumpType: Int {
|
|
|
case add // 添加好友
|
|
|
case friendRoad // 好友列表查看轨迹
|
|
|
case contact // 添加紧急联系人
|
|
|
- case mine //
|
|
|
+ case mine //
|
|
|
+ case guideComments // 引导评论
|
|
|
}
|
|
|
|
|
|
class QSLVipController: QSLBaseController {
|
|
|
|
|
|
+ // 购买人数
|
|
|
+ static let record_non_member_clicks_to_claim = "RECORD_NON_MEMBER_CLIKS_CLAIM"
|
|
|
+
|
|
|
struct UX {
|
|
|
static let mostCellHeight = 113.0.rpx
|
|
|
static let collectionRowHeight = 137.0.rpx
|
|
|
@@ -371,7 +375,7 @@ class QSLVipController: QSLBaseController {
|
|
|
]
|
|
|
|
|
|
let textArray = goodInfo.text.components(separatedBy: goodInfo.keys.key)
|
|
|
- if textArray.count > 0 {
|
|
|
+ if textArray.count > 0 && goodInfo.text.count > 0{
|
|
|
bottomTopView.isHidden = false
|
|
|
let inputtr = NSMutableAttributedString()
|
|
|
let titleOneAttr = NSAttributedString(string: textArray.first ?? "", attributes: darkGrayAttributes)
|
|
|
@@ -469,6 +473,8 @@ class QSLVipController: QSLBaseController {
|
|
|
gravityInstance?.track(QSLGravityConst.vip_show, properties: ["id": 1004])
|
|
|
case .mine:
|
|
|
gravityInstance?.track(QSLGravityConst.vip_show, properties: ["id": 1006])
|
|
|
+ case .guideComments:
|
|
|
+ print("")
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -626,6 +632,8 @@ extension QSLVipController {
|
|
|
gravityInstance?.track(QSLGravityConst.vip_success_page, properties: ["id": 1004])
|
|
|
case .mine:
|
|
|
gravityInstance?.track(QSLGravityConst.vip_success_page, properties: ["id": 1006])
|
|
|
+ case .guideComments:
|
|
|
+ print("")
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -712,8 +720,18 @@ extension QSLVipController {
|
|
|
|
|
|
// 请求商品列表
|
|
|
func requestItemList() {
|
|
|
+ // 定义并赋值 itemListDict(根据条件变化)
|
|
|
+ var itemListDict: [String: Any] = ["itemListType": 2]
|
|
|
+ if UserDefaults.standard.string(forKey: QSLVipController.record_non_member_clicks_to_claim) == nil && self.type == .guideComments {
|
|
|
+ itemListDict = ["itemListType": 2, "showExtraText": true]
|
|
|
+ // 记录非会员点击领取
|
|
|
+ UserDefaults.standard.set("YES", forKey: QSLVipController.record_non_member_clicks_to_claim)
|
|
|
+ UserDefaults.standard.synchronize()
|
|
|
+ }
|
|
|
|
|
|
- QSLNetwork().request(.vipItemList(dict: ["itemListType": 2])) { response in
|
|
|
+ // 网络请求时使用 itemListDict 作为参数(关键修复)
|
|
|
+ QSLNetwork().request(.vipItemList(dict: itemListDict)) { response in
|
|
|
+ // 后续逻辑不变...
|
|
|
let list = response.mapArray(QSLGoodModel.self, modelKey: "data>list")
|
|
|
self.goodList = list
|
|
|
|