12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- //
- // YMConst.swift
- // MvpGoods
- //
- // Created by 小花 on 2019/3/18.
- // Copyright © 2019年 MVP. All rights reserved.
- //
- import Foundation
- import UIKit
- import SnapKit
- import MJExtension
- import ObjectMapper
- import MJRefresh
- /// 服务器地址
- let BASE_URL = "https://game.zhuadd.com"
- //渠道号
- let CHANNEL_ID = "5250"
- //appid
- let APP_ID = "1460375648"
- //阿里pid
- let ALBC_PID = "25904249"
- //友盟
- let YMKEY = "5cb99e3161f5647dd4000852"
- /// 屏幕的宽
- let SCREENW = UIScreen.main.bounds.size.width
- /// 屏幕的高
- let SCREENH = UIScreen.main.bounds.size.height
- let navBarHeight: CGFloat = {
- let statusBarHeight = UIApplication.shared.statusBarFrame.height
- if statusBarHeight == 20.0 {
- return 64
- }else {
- return 88
- }
- }()
- let bottomSafeHeight: CGFloat = {
- let statusBarHeight = UIApplication.shared.statusBarFrame.height
- if statusBarHeight == 20.0 {
- return 0
- }else {
- return 34
- }
- }()
- let KStatesBarHeight: CGFloat = {
- let statusBarHeight = UIApplication.shared.statusBarFrame.height
- if statusBarHeight == 20.0 {
- return 20
- }else {
- return 40
- }
- }()
- let tabBarHeight: CGFloat = {
- let statusBarHeight = UIApplication.shared.statusBarFrame.height
- if statusBarHeight == 20.0 {
- return 49.0
- }else {
- return 49.0+34.0
- }
- }()
- //网络请求成功状态码
- let RETURN_OK = 0
- func fitSize(x:CGFloat) -> CGFloat {
- return (SCREENW/375.0) * x
- }
|