拍射页面中,如果用户没有订阅产品,则使用拍照功能时,跳转内购页面
This commit is contained in:
parent
3e3f368489
commit
ec93b1f6c5
@ -574,11 +574,21 @@ class CCSpatialShootController: BaseController {
|
||||
|
||||
@objc func switchButtonAction(_ sender: UIButton){
|
||||
if sender.tag == 1001 {
|
||||
//拍照
|
||||
shootingMode = .CCShootingMode_Camera
|
||||
|
||||
shutterPhotoButton.isHidden = false
|
||||
shutterVideoButton.isHidden = true
|
||||
if UserInfo.sharedInstance.isMemberShip {
|
||||
//拍照
|
||||
shootingMode = .CCShootingMode_Camera
|
||||
|
||||
shutterPhotoButton.isHidden = false
|
||||
shutterVideoButton.isHidden = true
|
||||
changeSwitchstatus()
|
||||
}
|
||||
else {//前往内购订阅页面
|
||||
let vc:MembershipVC = MembershipVC()
|
||||
let nav = UINavigationController(rootViewController: vc)
|
||||
nav.modalTransitionStyle = UIModalTransitionStyle.coverVertical
|
||||
nav.modalPresentationStyle = .fullScreen
|
||||
self.present(nav, animated: true)
|
||||
}
|
||||
|
||||
}else if sender.tag == 1002 {
|
||||
//录像
|
||||
@ -586,9 +596,10 @@ class CCSpatialShootController: BaseController {
|
||||
|
||||
shutterPhotoButton.isHidden = true
|
||||
shutterVideoButton.isHidden = false
|
||||
changeSwitchstatus()
|
||||
}
|
||||
|
||||
changeSwitchstatus()
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user