//
|
// MeVC.swift
|
// XQMuse
|
//
|
// Created by 无故事王国 on 2024/8/12.
|
//
|
|
import UIKit
|
import QMUIKit
|
import JQTools
|
|
class MeVC: BaseVC {
|
|
@IBOutlet weak var scrollView: UIScrollView!
|
@IBOutlet weak var btn_collect: QMUIButton!
|
@IBOutlet weak var btn_record: QMUIButton!
|
@IBOutlet weak var btn_history: QMUIButton!
|
@IBOutlet weak var btn_account: QMUIButton!
|
@IBOutlet weak var btn_buy: QMUIButton!
|
@IBOutlet weak var btn_customer: QMUIButton!
|
@IBOutlet weak var btn_setting: QMUIButton!
|
@IBOutlet weak var btn_share: QMUIButton!
|
@IBOutlet weak var view_rank: GradientView!
|
|
override func viewDidLoad() {
|
super.viewDidLoad()
|
|
let tap = UITapGestureRecognizer(target: self, action: #selector(rankAction))
|
view_rank.isUserInteractionEnabled = true
|
view_rank.addGestureRecognizer(tap)
|
}
|
|
override func setUI() {
|
super.setUI()
|
view.backgroundColor = UIColor(hexString: "#fafafa")
|
scrollView.contentInset = UIEdgeInsets(top: 0, left: 0, bottom: 20, right: 0)
|
scrollView.showsVerticalScrollIndicator = false
|
btn_collect.imagePosition = .top
|
btn_record.imagePosition = .top
|
btn_history.imagePosition = .top
|
btn_account.imagePosition = .top
|
|
btn_buy.imagePosition = .top
|
btn_customer.imagePosition = .top
|
btn_setting.imagePosition = .top
|
btn_share.imagePosition = .top
|
}
|
|
@objc func rankAction(){
|
let vc = WebVC()
|
vc.title = "爱心榜单"
|
push(vc: vc)
|
}
|
|
@IBAction func vipCenterAction(_ sender: Any) {
|
let vc = VIPCenterVC()
|
push(vc: vc)
|
}
|
|
|
@IBAction func userProfileAction(_ sender: UIButton) {
|
let profileVC = UserProfileVC()
|
jq_push(vc: profileVC)
|
}
|
|
@IBAction func studyLevelAction(_ sender: TapBtn) {
|
let vc = LevelVC()
|
push(vc: vc)
|
}
|
|
@IBAction func systemMessageAction(_ sender: UIButton) {
|
let vc = NoticeCenterVC()
|
push(vc: vc)
|
}
|
|
@IBAction func settingAction(_ sender: UIButton) {
|
let vc = SettingVC()
|
push(vc: vc)
|
}
|
|
//学习记录
|
@IBAction func studyAction(_ sender: UIButton) {
|
let vc = StudyListVC()
|
push(vc: vc)
|
}
|
|
|
//我的账户
|
@IBAction func myAccountAction(_ sender: QMUIButton) {
|
let vc = WalletVC()
|
push(vc: vc)
|
}
|
|
//观看历史
|
@IBAction func watchHistoryAction(_ sender: QMUIButton) {
|
|
}
|
|
//我的收藏
|
@IBAction func myColletAction(_ sender: QMUIButton) {
|
|
}
|
|
/// 我的已购
|
@IBAction func paymentCourseAction(_ sender: QMUIButton) {
|
|
}
|
|
/// 联系客服
|
@IBAction func customerAction(_ sender: QMUIButton) {
|
|
}
|
|
///分享
|
@IBAction func shareAction(_ sender: QMUIButton) {
|
|
}
|
}
|
|
class GradientView:UIView{
|
|
override init(frame: CGRect) {
|
super.init(frame: frame)
|
|
jq_gradientColor(colorArr: [UIColor(hexString: "#F3FFF8")!.cgColor,UIColor.white.cgColor])
|
}
|
|
required init?(coder: NSCoder) {
|
super.init(coder: coder)
|
|
}
|
|
override func awakeFromNib() {
|
super.awakeFromNib()
|
jq_gradientColor(colorArr: [UIColor(hexString: "#F3FFF8")!.cgColor,UIColor.white.cgColor], cornerRadius: 10, startPoint: CGPoint(x: 0, y: 0), endPoint: CGPoint(x: 0, y: 1), bounds: nil, locations: nil)
|
}
|
}
|