| | |
| | | import com.dollearn.student.network.request |
| | | import com.dollearn.student.ui.TransparentStatusBarActivity |
| | | import com.dollearn.student.ui.home.PayResultActivity |
| | | import com.dollearn.student.ui.mine.AddressManageActivity |
| | | import com.dollearn.student.ui.mine.ChangeAddressActivity |
| | | import com.dollearn.student.utils.Const |
| | | import com.dollearn.student.utils.event.EmptyEvent |
| | |
| | | } |
| | | |
| | | cl_address.setOnClickListener { |
| | | if (recipient?.id.isNullOrEmpty()){ |
| | | startActivityForResult<AddAddressActivity>(1) |
| | | }else{ |
| | | startActivityForResult<ChangeAddressActivity>(2) |
| | | } |
| | | startActivityForResult<AddressManageActivity>(2,"canChoose" to true) |
| | | } |
| | | |
| | | tv_action.setOnClickListener { |
| | |
| | | tv_goods_count.text = "1" |
| | | tv_total_score.text = good.integral.toString() |
| | | tv_score.text = good.integral.toString() |
| | | if (recipient.id.isNullOrEmpty()){ |
| | | if (recipient?.id.isNullOrEmpty()){ |
| | | tv_empty.visible() |
| | | }else{ |
| | | tv_address.text = recipient.province+recipient.city+recipient.address |
| | | tv_user.text = "%s | %s".format(recipient.recipient,recipient.recipientPhone) |
| | | tv_address.text = recipient?.province+recipient?.city+recipient?.address |
| | | tv_user.text = "%s | %s".format(recipient?.recipient,recipient?.recipientPhone) |
| | | } |
| | | } |
| | | } |