| | |
| | | self.viewModel.shareRedEnvelopeAmount.accept(data.amount) |
| | | alert(popup: .double, title: "提示", text: "分享APP给好友可以获得\(data.amount)元打车红包", submitTitle: "去分享", cancelTitle: "不分享", submitClick: { [unowned self] in |
| | | // 弹出分享框 |
| | | ShareView.share(controller: self, title: nil, content: "新版“宽窄出行”隆重上线,下载注册即送打车券。", url: "\(share_url)/share/shareIndex.html?uid=\(app.userInfo.id)&type=1",hiddenMessage: true).show(success: { |
| | | ShareView.share(controller: self, title: nil, content: "新版“宽窄优行”隆重上线,下载注册即送打车券。", url: "\(share_url)/share/shareIndex.html?uid=\(app.userInfo.id)&type=1",hiddenMessage: true).show(success: { |
| | | self.shareRedEnvelope() |
| | | }) |
| | | }) {} |
| | |
| | | |
| | | func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { |
| | | |
| | | if indexPath.row == 0{return} |
| | | let data = adItems[indexPath.row - 1] |
| | | guard indexPath.row > 0,data.isJump == 1 else {return} |
| | | // if indexPath.row == 0{return} |
| | | let data = adItems[indexPath.row] |
| | | // guard indexPath.row > 0,data.isJump == 1 else {return} |
| | | if data.isJump == 1{ |
| | | switch data.jumpType { |
| | | case 1:// 外部 |