| | |
| | | /// 分享 |
| | | button_share.rx.tap.subscribe(onNext: { (_) in |
| | | // 弹出分享框 |
| | | ShareView.share(controller: self, title: "分享行程", content: "你的好友(\(app.userInfo.phone))正在使用宽窄出行出租车(\(self.dataSource?.licensePlate ?? ""))。", url: "\(share_url)/orderShare/index.html?orderId=\(self.viewModel.orderId.value)&orderType=\(self.viewModel.orderType.value.rawValue)",hiddenMessage: false).show(success: { |
| | | ShareView.share(controller: self, title: "分享行程", content: "你的好友(\(app.userInfo.phone))正在使用宽窄优行出租车(\(self.dataSource?.licensePlate ?? ""))。", url: "\(share_url)/orderShare/index.html?orderId=\(self.viewModel.orderId.value)&orderType=\(self.viewModel.orderType.value.rawValue)",hiddenMessage: false).show(success: { |
| | | |
| | | }) |
| | | }).disposed(by: disposeBag) |
| | |
| | | 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").show(success: { |
| | | ShareView.share(controller: self, title: nil, content: "新版“宽窄优行”隆重上线,下载注册即送打车券。", url: "\(share_url)/share/shareIndex.html?uid=\(app.userInfo.id)&type=1").show(success: { |
| | | self.viewModel.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:// 外部 |