From f2e891eecfac25bf6aed38c8eadfdf05704b16b6 Mon Sep 17 00:00:00 2001 From: 无故事王国 <841720330@qq.com> Date: 星期四, 20 六月 2024 18:48:39 +0800 Subject: [PATCH] fix --- DolphinEnglishLearnStudent/Moudle/Market/VC/MarketExchangeVC.swift | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/DolphinEnglishLearnStudent/Moudle/Market/VC/MarketExchangeVC.swift b/DolphinEnglishLearnStudent/Moudle/Market/VC/MarketExchangeVC.swift index b59ad1b..2766de6 100644 --- a/DolphinEnglishLearnStudent/Moudle/Market/VC/MarketExchangeVC.swift +++ b/DolphinEnglishLearnStudent/Moudle/Market/VC/MarketExchangeVC.swift @@ -106,11 +106,17 @@ if viewModel.address.value.count == 0{ let vc = AddressManageVC(type: .handle) vc.title = "地址管理" + vc.chooseAddress {[weak self] m in + self?.label_address.text = m.address + self?.label_address_info.text = m.recipient + "|" + m.recipientPhone + self?.recipientId = m.id + self?.label_address_info.isHidden = false + } push(vc: vc) return } - let vc = AddressManageVC(type: .choose) + let vc = AddressManageVC(type: .handle) vc.title = "地址管理" vc.chooseAddress {[weak self] m in self?.label_address.text = m.address @@ -140,7 +146,7 @@ guard recipientId != nil else{ CommonAlertView.show(content: "请先选择收货地址") { - let vc = AddressManageVC(type: .choose) + let vc = AddressManageVC(type: .handle) vc.title = "地址管理" vc.chooseAddress {[weak self] m in self?.label_address.text = m.address -- Gitblit v1.7.1