| | |
| | | CODE_SIGN_IDENTITY = "Apple Development"; |
| | | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; |
| | | CODE_SIGN_STYLE = Manual; |
| | | CURRENT_PROJECT_VERSION = 1; |
| | | CURRENT_PROJECT_VERSION = 3; |
| | | DEVELOPMENT_TEAM = ""; |
| | | "DEVELOPMENT_TEAM[sdk=iphoneos*]" = M9T3KVL537; |
| | | ENABLE_USER_SCRIPT_SANDBOXING = NO; |
| | |
| | | "$(inherited)", |
| | | "@executable_path/Frameworks", |
| | | ); |
| | | MARKETING_VERSION = 1.0.0; |
| | | MARKETING_VERSION = 1.0.1; |
| | | OTHER_LDFLAGS = ( |
| | | "$(inherited)", |
| | | "-ObjC", |
| | |
| | | CODE_SIGN_IDENTITY = "Apple Development"; |
| | | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; |
| | | CODE_SIGN_STYLE = Manual; |
| | | CURRENT_PROJECT_VERSION = 1; |
| | | CURRENT_PROJECT_VERSION = 3; |
| | | DEVELOPMENT_TEAM = ""; |
| | | "DEVELOPMENT_TEAM[sdk=iphoneos*]" = M9T3KVL537; |
| | | ENABLE_USER_SCRIPT_SANDBOXING = NO; |
| | |
| | | "$(inherited)", |
| | | "@executable_path/Frameworks", |
| | | ); |
| | | MARKETING_VERSION = 1.0.0; |
| | | MARKETING_VERSION = 1.0.1; |
| | | OTHER_LDFLAGS = ( |
| | | "$(inherited)", |
| | | "-ObjC", |
| | |
| | | |
| | | override func awakeFromNib() { |
| | | super.awakeFromNib() |
| | | view_shadow.jq_gradientColor(colorArr: [UIColor.black.withAlphaComponent(0.3).cgColor,UIColor.clear.cgColor], cornerRadius: 0, startPoint: CGPoint(x: 1, y: 1), endPoint: CGPoint(x: 1, y: 0), bounds: nil, locations: nil) |
| | | |
| | | } |
| | | |
| | | override func layoutSubviews() { |
| | | super.layoutSubviews() |
| | | view_shadow.jq_gradientColor(colorArr: [UIColor.black.withAlphaComponent(0.3).cgColor,UIColor.clear.cgColor], cornerRadius: 0, startPoint: CGPoint(x: 1, y: 1), endPoint: CGPoint(x: 1, y: 0), bounds: CGRect(x: 0, y: 0, width: JQ_ScreenW, height: 100), locations: nil) |
| | | } |
| | | |
| | | |
| | | func setMeditationModel(_ model:MeditationModel,showType:DisplayType){ |
| | | self.showType = showType |
| | |
| | | private var viewModel = HomeViewModel() |
| | | private var timer:Timer? |
| | | private var needPopToTree:Bool = false //是否需跳转到树苗 |
| | | |
| | | private var cellularData:CTCellularData! |
| | | |
| | | override func viewDidAppear(_ animated: Bool) { |
| | |
| | | } |
| | | |
| | | |
| | | if AudioPlayer.getSharedInstance().scenePlayer?.timeControlStatus == .paused && UserDefaultSettingViewModel.getSetting()?.bgm != nil{ |
| | | AudioPlayer.getSharedInstance().playSceneAt(UserDefaultSettingViewModel.getSetting()!.bgm!.audioFile) |
| | | if AudioPlayer.getSharedInstance().scenePlayer?.timeControlStatus == .paused && UserDefaultSettingViewModel.getSetting()?.sceneMusicModel != nil{ |
| | | AudioPlayer.getSharedInstance().playSceneAt(UserDefaultSettingViewModel.getSetting()!.sceneMusicModel!.audioFile) |
| | | } |
| | | |
| | | if let meVC = (navigationController?.tabBarController?.viewControllers?.last as? BaseNav)?.viewControllers.first as? MeVC{ |
| | |
| | | titleItems.append(TitleItem(title: "私人订制", subTitle: "Private Customization",hasMore: true)) |
| | | titleItems.append(TitleItem(title: "新手冥想指南", subTitle: "Meditation guide")) |
| | | |
| | | if let setting = UserDefaultSettingViewModel.getSetting(){ |
| | | if let audioFile = setting.bgm?.audioFile{ |
| | | AudioPlayer.getSharedInstance().playSceneAt(audioFile) |
| | | } |
| | | } |
| | | |
| | | |
| | | tableView.mj_header = MJRefreshNormalHeader(refreshingBlock: { |
| | | self.getData() |
| | | }) |
| | | |
| | | if let m = UserDefaultSettingViewModel.getSetting()?.bgm { |
| | | topMenuView.image_top.sd_setImage(with: URL(string: m.imageUrl.jq_urlEncoded())) |
| | | } |
| | | |
| | | getData() |
| | | getBGMData() |
| | | |
| | | cellularData = CTCellularData() |
| | | cellularData.cellularDataRestrictionDidUpdateNotifier = {[weak self] state in |
| | |
| | | titleView.frame = CGRect(x: 0, y: 0, width: 100, height: 40) |
| | | let titleL = UILabel() |
| | | titleL.font = Def_SourceHanSansCN_Regular(fontSize: 21) |
| | | titleL.text = "心 泉 疗 愈" |
| | | titleL.text = "泉 疗 愈" |
| | | titleL.textAlignment = .center |
| | | titleL.textColor = UIColor(hexStr: "#252A23") |
| | | titleL.frame = CGRect(x: 0, y: 0, width: 100, height: 19) |
| | |
| | | subTitleL.font = Def_Agenda_Light(fontSize: 8) |
| | | subTitleL.text = "XIN QUAN" |
| | | subTitleL.textAlignment = .center |
| | | subTitleL.isHidden = true |
| | | subTitleL.textColor = UIColor(hexStr: "#252A23") |
| | | subTitleL.frame = CGRect(x: 0, y: 20, width: 100, height: 19) |
| | | |
| | |
| | | |
| | | NotificationCenter.default.rx.notification(SetBGMSuccess_Noti).take(until: self.rx.deallocated).subscribe(onNext: {data in |
| | | self.topMenuView.resetTopImage() |
| | | self.getBGMData() |
| | | }).disposed(by: disposeBag) |
| | | |
| | | NotificationCenter.default.rx.notification(PlantGuideQuit_Noti).take(until: self.rx.deallocated).subscribe(onNext: {[weak self]data in |
| | |
| | | }).disposed(by: disposeBag) |
| | | } |
| | | |
| | | private func getBGMData(){ |
| | | Services.quryUserSceneMusic().subscribe(onNext: {data in |
| | | if var userDefaultSettingModel = UserDefaultSettingViewModel.getSetting(){ |
| | | userDefaultSettingModel.sceneMusicModel = data.data |
| | | UserDefaultSettingViewModel.saveSetting(userDefaultSettingModel) |
| | | |
| | | if AudioPlayer.getSharedInstance().bgmPlayer != nil && PayMusicVC.getCurrentStatus() != .pause{ |
| | | AudioPlayer.getSharedInstance().bgmPlayer?.play() |
| | | return |
| | | } |
| | | |
| | | if AudioPlayer.getSharedInstance().scenePlayer == nil || AudioPlayer.getSharedInstance().scenePlayer?.timeControlStatus == .paused{ |
| | | AudioPlayer.getSharedInstance().playSceneAt(userDefaultSettingModel.sceneMusicModel!.audioFile) |
| | | } |
| | | |
| | | if let imageUrl = userDefaultSettingModel.sceneMusicModel?.imageUrl{ |
| | | self.topMenuView.image_top.sd_setImage(with: URL(string: imageUrl.jq_urlEncoded())) |
| | | } |
| | | } |
| | | }).disposed(by: disposeBag) |
| | | } |
| | | |
| | | @objc func autoUpdate() { |
| | | guard let endPlayTime = viewModel.todyModel?.endPlayTime, !endPlayTime.isEmpty else { return } |
| | |
| | | override func awakeFromNib() { |
| | | super.awakeFromNib() |
| | | selectionStyle = .none |
| | | view_shadow.jq_gradientColor(colorArr: [UIColor.black.withAlphaComponent(0.2).cgColor,UIColor.clear.cgColor], cornerRadius: 0, startPoint: CGPoint(x: 1, y: 1), endPoint: CGPoint(x: 1, y: 0), bounds: nil, locations: nil) |
| | | selectionStyle = .none |
| | | } |
| | | |
| | | override func layoutSubviews() { |
| | | super.layoutSubviews() |
| | | view_shadow.jq_gradientColor(colorArr: [UIColor.black.withAlphaComponent(0.2).cgColor,UIColor.clear.cgColor], cornerRadius: 0, startPoint: CGPoint(x: 1, y: 1), endPoint: CGPoint(x: 1, y: 0), bounds: nil, locations: nil) |
| | | } |
| | | } |
| | |
| | | |
| | | DispatchQueue.main.asyncAfter(delay: 0.8) { |
| | | for (index,v) in m.enumerated(){ |
| | | if v.id == self.settingModel?.bgm?.id{ |
| | | if v.id == self.settingModel?.sceneMusicModel?.id{ |
| | | self.playAtIndex = IndexPath(row: index, section: 0) |
| | | self.collectionView.scrollToItem(at: IndexPath(row: index, section: 0), at: .centeredHorizontally, animated: true) |
| | | break |
| | |
| | | @IBAction func setttingAction(_ sender: UIButton) { |
| | | if settingModel != nil{ |
| | | guard let index = playAtIndex else {return} |
| | | settingModel?.bgm = items[index.row] |
| | | settingModel?.volume = Double(slider_voice.value) |
| | | UserDefaultSettingViewModel.saveSetting(settingModel!) |
| | | alertSuccess(msg: "设置成功") |
| | | Services.saveUserSceneMusic(id: items[index.row].id).subscribe(onNext: {[weak self]data in |
| | | guard let weakSelf = self else { return } |
| | | weakSelf.settingModel?.sceneMusicModel = weakSelf.items[index.row] |
| | | weakSelf.settingModel?.volume = Double(weakSelf.slider_voice.value) |
| | | UserDefaultSettingViewModel.saveSetting(weakSelf.settingModel!) |
| | | alertSuccess(msg: "设置成功") |
| | | }).disposed(by: disposeBag) |
| | | |
| | | if isFromFist{ |
| | | NotificationCenter.default.post(name: PlantGuideQuit_Noti, object: items[index.row]) |
| | |
| | | super.viewDidLoad() |
| | | title = "泉疗愈" |
| | | |
| | | if settingViewModel?.bgm != nil { |
| | | if settingViewModel?.sceneMusicModel != nil { |
| | | audioPlayer.scenePlayer?.pause() |
| | | } |
| | | |
| | | yy_popBlock = {[weak self] in |
| | | if AudioPlayer.getSharedInstance().meditationModel == nil && self?.settingViewModel?.bgm != nil{ |
| | | if AudioPlayer.getSharedInstance().meditationModel == nil && self?.settingViewModel?.sceneMusicModel != nil{ |
| | | self?.audioPlayer.playScene() |
| | | } |
| | | self?.navigationController?.popViewController() |
| | |
| | | slider_voice.setThumbImage(v1.qmui_snapshotLayerImage(), for: .normal) |
| | | slider_voice.setThumbImage(v1.qmui_snapshotLayerImage(), for: .highlighted) |
| | | view_coutdown.isHidden = true |
| | | |
| | | view_function.jq_gradientColor(colorArr: [UIColor.black.withAlphaComponent(0.35).cgColor,UIColor.clear.cgColor], cornerRadius: 0, startPoint: CGPoint(x: 0, y: 1), endPoint: CGPoint(x: 0, y: 0), bounds: nil, locations: nil) |
| | | |
| | | } |
| | | |
| | |
| | | |
| | | override func viewDidLayoutSubviews() { |
| | | super.viewDidLayoutSubviews() |
| | | |
| | | view_function.jq_gradientColor(colorArr: [UIColor.black.withAlphaComponent(0.35).cgColor,UIColor.clear.cgColor], cornerRadius: 0, startPoint: CGPoint(x: 0, y: 1), endPoint: CGPoint(x: 0, y: 0), bounds: nil, locations: nil) |
| | | } |
| | | |
| | | |
| | |
| | | <action selector="commentAction:" destination="-1" eventType="touchUpInside" id="den-g3-cBv"/> |
| | | </connections> |
| | | </view> |
| | | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="--" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="3" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="xYv-9B-0fk"> |
| | | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="--" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="8" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="xYv-9B-0fk"> |
| | | <rect key="frame" x="22.666666666666657" y="73" width="348.33333333333337" height="17"/> |
| | | <fontDescription key="fontDescription" type="system" pointSize="14"/> |
| | | <color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> |
| | |
| | | } |
| | | |
| | | func resetTopImage(){ |
| | | if let imgUrl = UserDefaultSettingViewModel.getSetting()?.bgm?.imageUrl.jq_urlEncoded(){ |
| | | if let imgUrl = UserDefaultSettingViewModel.getSetting()?.sceneMusicModel?.imageUrl.jq_urlEncoded(){ |
| | | image_top.sd_setImage(with: URL(string: imgUrl)) |
| | | } |
| | | } |
| | |
| | | <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="fRO-Jr-RG3"> |
| | | <rect key="frame" x="0.0" y="0.0" width="393" height="576.66666666666663"/> |
| | | <subviews> |
| | | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="邀好友赚分佣抽成" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="oFE-SE-88r"> |
| | | <label hidden="YES" opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="邀好友赚分佣抽成" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="oFE-SE-88r"> |
| | | <rect key="frame" x="45.333333333333343" y="74" width="302.66666666666663" height="48"/> |
| | | <fontDescription key="fontDescription" type="system" pointSize="40"/> |
| | | <color key="textColor" red="0.54117647058823526" green="0.68235294117647061" blue="0.396078431372549" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> |
| | | <nil key="highlightedColor"/> |
| | | </label> |
| | | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="INVITE FRIENDS TO EARN COMMISSION" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="lCK-Mw-vTJ"> |
| | | <label hidden="YES" opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="INVITE FRIENDS TO EARN COMMISSION" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="lCK-Mw-vTJ"> |
| | | <rect key="frame" x="116.66666666666667" y="131" width="159.66666666666663" height="9.6666666666666572"/> |
| | | <fontDescription key="fontDescription" type="system" pointSize="8"/> |
| | | <color key="textColor" red="0.54117647059999996" green="0.68235294120000001" blue="0.39607843139999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> |
| | |
| | | |
| | | @IBAction func aboutUsAction(_ sender: TapBtn) { |
| | | let vc = WebVC(type: .aboutUs) |
| | | vc.title = "关于心泉" |
| | | vc.title = "关于泉" |
| | | push(vc: vc) |
| | | } |
| | | |
| | |
| | | <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="kId-7a-TaC" customClass="TapBtn" customModule="XQMuse" customModuleProvider="target"> |
| | | <rect key="frame" x="0.0" y="96" width="382" height="48"/> |
| | | <subviews> |
| | | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="关于心泉" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="B6x-dn-wFm"> |
| | | <rect key="frame" x="11.666666666666668" y="15" width="59.666666666666657" height="18"/> |
| | | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="关于泉" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="B6x-dn-wFm"> |
| | | <rect key="frame" x="11.666666666666668" y="15" width="44.666666666666657" height="18"/> |
| | | <fontDescription key="fontDescription" type="system" weight="medium" pointSize="15"/> |
| | | <color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> |
| | | <nil key="highlightedColor"/> |
| | |
| | | <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="rlo-Ro-eiy" customClass="TapBtn" customModule="XQMuse" customModuleProvider="target"> |
| | | <rect key="frame" x="14.666666666666657" y="460.66666666666669" width="364" height="66.333333333333314"/> |
| | | <subviews> |
| | | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="推荐心泉疗愈给好友" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="XgZ-h6-scF"> |
| | | <rect key="frame" x="9.3333333333333357" y="25.333333333333318" width="116.33333333333331" height="15.666666666666668"/> |
| | | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="推荐泉疗愈给好友" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="XgZ-h6-scF"> |
| | | <rect key="frame" x="9.3333333333333357" y="25.333333333333318" width="103.33333333333331" height="15.666666666666668"/> |
| | | <fontDescription key="fontDescription" type="system" pointSize="13"/> |
| | | <color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> |
| | | <nil key="highlightedColor"/> |
| | |
| | | var id = 0 |
| | | var volume:Double = 0.5 |
| | | var masterVolume:Double = 0.5 |
| | | var bgm:BGMModel? |
| | | var sceneMusicModel:BGMModel? |
| | | var playModel:PlayMode = .line |
| | | |
| | | var userFirstOpenTreeTask = true //第一次打开树苗 |
| | |
| | | import CoreLocation |
| | | |
| | | #if DEBUG |
| | | let All_Url = "https://xq.xqzhihui.com/api" |
| | | let All_Url = "http://192.168.110.64:9000" |
| | | //let All_Url = "http://192.168.110.64:9000" |
| | | //let All_Url = "https://mock.apipost.net/mock/31b303c60464000" |
| | | #else |
| | |
| | | |
| | | ///用户相关 |
| | | extension Services{ |
| | | |
| | | class func quryUserSceneMusic()->Observable<BaseResponse<BGMModel>>{ |
| | | let params = ParamsAppender.build(url: All_Url) |
| | | params.interface(url: "/meditation/client/meditation/home/getHomeBackgroundMusicByUserId") |
| | | return NetworkRequest.request(params: params, method: .get, progress: false,ignoreAlert: true) |
| | | } |
| | | |
| | | class func saveUserSceneMusic(id:Int)->Observable<BaseResponse<SimpleModel>>{ |
| | | let params = ParamsAppender.build(url: All_Url) |
| | | params.interface(url: "/meditation/client/meditation/home/saveUserHomeBackgroundMusic") |
| | | params.append(key: "id", value: id) |
| | | return NetworkRequest.request(params: params, method: .post, progress: true,ignoreAlert: true) |
| | | } |
| | | |
| | | class func searchUserByPhone(_ phone:String,ignoreAlert:Bool)->Observable<BaseResponse<UserInfoModel>>{ |
| | | let params = ParamsAppender.build(url: All_Url) |
| | | params.interface(url: "/user/client/app-user/getUserByPhone") |
| | |
| | | <nil key="highlightedColor"/> |
| | | </label> |
| | | <stackView opaque="NO" contentMode="scaleToFill" spacing="92" translatesAutoresizingMaskIntoConstraints="NO" id="0PG-Ww-jQZ"> |
| | | <rect key="frame" x="28" y="66" width="337" height="75"/> |
| | | <rect key="frame" x="99.666666666666686" y="66" width="194" height="75"/> |
| | | <subviews> |
| | | <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="28f-zu-dkE" customClass="TapBtn" customModule="XQMuse" customModuleProvider="target"> |
| | | <rect key="frame" x="0.0" y="0.0" width="51" height="75"/> |
| | |
| | | <rect key="frame" x="0.0" y="0.0" width="51" height="50"/> |
| | | </imageView> |
| | | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="微信分享" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="KVQ-as-9PR"> |
| | | <rect key="frame" x="1.6666666666666679" y="58.000000000000007" width="48" height="14.333333333333336"/> |
| | | <rect key="frame" x="1.3333333333333286" y="58.000000000000007" width="48" height="14.333333333333336"/> |
| | | <fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/> |
| | | <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.80000000000000004" colorSpace="custom" customColorSpace="sRGB"/> |
| | | <nil key="highlightedColor"/> |
| | |
| | | <rect key="frame" x="0.0" y="0.0" width="51" height="51"/> |
| | | </imageView> |
| | | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="朋友圈" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="IIB-Ay-50b"> |
| | | <rect key="frame" x="7.6666666666666572" y="59.000000000000007" width="36" height="14.333333333333336"/> |
| | | <rect key="frame" x="7.3333333333333428" y="59.000000000000007" width="36" height="14.333333333333336"/> |
| | | <fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/> |
| | | <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.80000000000000004" colorSpace="custom" customColorSpace="sRGB"/> |
| | | <nil key="highlightedColor"/> |
| | |
| | | <action selector="shareWechatFriAction:" destination="iN0-l3-epB" eventType="touchUpInside" id="dk4-ZD-bI7"/> |
| | | </connections> |
| | | </view> |
| | | <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="YWd-mA-5l0" customClass="TapBtn" customModule="XQMuse" customModuleProvider="target"> |
| | | <rect key="frame" x="286" y="0.0" width="51" height="75"/> |
| | | <view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="YWd-mA-5l0" customClass="TapBtn" customModule="XQMuse" customModuleProvider="target"> |
| | | <rect key="frame" x="194" y="0.0" width="51" height="75"/> |
| | | <subviews> |
| | | <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="btn_download" translatesAutoresizingMaskIntoConstraints="NO" id="TFY-Ai-5mf"> |
| | | <rect key="frame" x="0.0" y="0.0" width="51" height="51"/> |
| | | </imageView> |
| | | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="保存至相册" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="wZG-si-wUc"> |
| | | <rect key="frame" x="-4.3333333333333144" y="59.000000000000007" width="59.666666666666664" height="14.333333333333336"/> |
| | | <rect key="frame" x="-4.3333333333333712" y="59.000000000000007" width="59.666666666666664" height="14.333333333333336"/> |
| | | <fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/> |
| | | <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="0.80000000000000004" colorSpace="custom" customColorSpace="sRGB"/> |
| | | <nil key="highlightedColor"/> |
| | |
| | | }).disposed(by: weakSelf.disposeBag) |
| | | } |
| | | |
| | | if UserDefaultSettingViewModel.getSetting()?.bgm != nil{ |
| | | AudioPlayer.getSharedInstance().playSceneAt(UserDefaultSettingViewModel.getSetting()!.bgm!.audioFile) |
| | | if UserDefaultSettingViewModel.getSetting()?.sceneMusicModel != nil{ |
| | | AudioPlayer.getSharedInstance().playSceneAt(UserDefaultSettingViewModel.getSetting()!.sceneMusicModel!.audioFile) |
| | | } |
| | | |
| | | DispatchQueue.main.asyncAfter(delay: 0.4) { |
| | |
| | | } |
| | | |
| | | func playScene(){ |
| | | if UserDefaultSettingViewModel.getSetting()?.bgm != nil{ |
| | | playSceneAt(UserDefaultSettingViewModel.getSetting()?.bgm?.audioFile ?? "") |
| | | if UserDefaultSettingViewModel.getSetting()?.sceneMusicModel != nil{ |
| | | playSceneAt(UserDefaultSettingViewModel.getSetting()?.sceneMusicModel?.audioFile ?? "") |
| | | } |
| | | } |
| | | |
| | |
| | | AudioPlayer.getSharedInstance().bgmPlayer?.play() |
| | | // AudioPlayer.getSharedInstance().masterPlayer?.play() |
| | | PayMusicVC.updateStatus(.playing) |
| | | }else if UserDefaultSettingViewModel.getSetting()?.bgm != nil && !(JQ_currentNavigationController().viewControllers.first is PlanGuideVC){ |
| | | AudioPlayer.getSharedInstance().playSceneAt(UserDefaultSettingViewModel.getSetting()!.bgm!.audioFile) |
| | | }else if UserDefaultSettingViewModel.getSetting()?.sceneMusicModel != nil && !(JQ_currentNavigationController().viewControllers.first is PlanGuideVC){ |
| | | AudioPlayer.getSharedInstance().playSceneAt(UserDefaultSettingViewModel.getSetting()!.sceneMusicModel!.audioFile) |
| | | } |
| | | } |
| | | |
| | |
| | | btn_previous.titleLabel?.font = Def_SourceHanSerif_Medium(fontSize: 13) |
| | | btn_next.titleLabel?.font = Def_SourceHanSerif_Medium(fontSize: 13) |
| | | |
| | | view_content.jq_gradientColor(colorArr: [UIColor(hexString: "#D2EDE4")!.cgColor,UIColor.white.withAlphaComponent(0.8).cgColor], cornerRadius: 20, startPoint: CGPoint(x: 0, y: 1), endPoint: CGPoint(x: 0, y: 0), bounds: nil, locations:nil) |
| | | |
| | | collectionVIew.delegate = self |
| | | collectionVIew.dataSource = self |
| | | collectionVIew.backgroundColor = .clear |
| | |
| | | collectionVIew.collectionViewLayout = flowLayout |
| | | } |
| | | |
| | | override func viewDidLayoutSubviews() { |
| | | super.viewDidLayoutSubviews() |
| | | view_content.jq_gradientColor(colorArr: [UIColor(hexString: "#D2EDE4")!.cgColor,UIColor.white.withAlphaComponent(0.8).cgColor], cornerRadius: 20, startPoint: CGPoint(x: 0, y: 1), endPoint: CGPoint(x: 0, y: 0), bounds: nil, locations:nil) |
| | | } |
| | | |
| | | @IBAction func nextAction(_ sender: UIButton) { |
| | | responseUserAnswerModel.tagIds = selectModels.map({"\($0.id)"}).joined(separator: ",") |
| | | |
| | |
| | | <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="bg_task_f" translatesAutoresizingMaskIntoConstraints="NO" id="WfK-ob-Idw"> |
| | | <rect key="frame" x="0.0" y="0.0" width="303" height="279.33333333333331"/> |
| | | </imageView> |
| | | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="心泉之树" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="FMr-RI-3OU"> |
| | | <rect key="frame" x="115.66666666666666" y="24" width="71.666666666666657" height="21"/> |
| | | <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="泉之树" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="FMr-RI-3OU"> |
| | | <rect key="frame" x="124.66666666666667" y="24" width="53.666666666666671" height="21"/> |
| | | <constraints> |
| | | <constraint firstAttribute="height" constant="21" id="F4t-Os-4qR"/> |
| | | </constraints> |