package Ġcn . nie king . order center . ui . activity Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . support . v 7 . widget . Linear LayoutManager Ċ import Ġcn . nie king . base library . ui . activity . Base M vp Activity Ċ import Ġcn . nie king . base library . utils . Y uan F en Converter Ċ import Ġcn . nie king . order center . R Ċ import Ġcn . nie king . order center . data . protocol . Order Ċ import Ġcn . nie king . order center . injection . component . D agger Order Component Ċ import Ġcn . nie king . order center . injection . module . Order Module Ċ import Ġcn . nie king . order center . presenter . Order Detail Presenter Ċ import Ġcn . nie king . order center . presenter . view . Order Detail View Ċ import Ġcn . nie king . order center . ui . adapter . Order Goods Adapter Ċ import Ġcn . nie king . provider . common . Provider Constant Ċ import Ġcn . nie king . provider . router . Router Path Ċ import Ġcom . alibaba . android . ar outer . facade . annotation . Route Ċ import Ġkotlinx . android . synt hetic . main . activity _ order _ detail .* Ċ Ċ @ Route ( path Ġ= ĠRouter Path . Message Center . PATH _ MESSAGE _ ORDER ) Ċ class ĠOrder Detail Activity Ġ: ĠBase M vp Activity < Order Detail Presenter >(), ĠOrder Detail View Ġ{ ĊĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġm Adapter : ĠOrder Goods Adapter ĊĊĠĠĠ Ġoverride Ġfun Ġinject Component () Ġ{ ĊĠĠĠĠĠĠĠ ĠD agger Order Component . builder () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. activity Component ( m Activity Component ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. order Module ( Order Module ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. build () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. inject ( this ) ĊĠĠĠĠĠĠĠ Ġm Presenter . m View Ġ= Ġthis ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( R . layout . activity _ order _ detail ) ĊĊĠĠĠĠĠĠĠ Ġinit View () ĊĠĠĠĠĠĠĠ Ġload Data () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġinit View () Ġ{ ĊĠĠĠĠĠĠĠ Ġm Order Goods Rv . layout Manager Ġ= ĠLinearLayoutManager ( this ) ĊĠĠĠĠĠĠĠ Ġm Adapter Ġ= ĠOrder Goods Adapter ( this ) ĊĠĠĠĠĠĠĠ Ġm Order Goods Rv . adapter Ġ= Ġm Adapter ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġload Data () Ġ{ ĊĠĠĠĠĠĠĠ Ġm Presenter . getOrder ById ( intent . getInt Extra ( Provider Constant . KEY _ ORDER _ ID , Ġ- 1 )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Get Order ById Result ( result : ĠOrder ) Ġ{ ĊĠĠĠĠĠĠĠ Ġm Ship Name Tv . setContent Text ( result . ship Address !!. ship UserName ) ĊĠĠĠĠĠĠĠ Ġm Ship Mobile Tv . setContent Text ( result . ship Address !!. ship User Mobile ) ĊĠĠĠĠĠĠĠ Ġm Ship Address Tv . setContent Text ( result . ship Address !!. ship Address ) ĊĠĠĠĠĠĠĠ Ġm Total Price Tv . setContent Text ( Y uan F en Converter . change F 2 Y With Unit ( result . total Price )) ĊĊĠĠĠĠĠĠĠ Ġm Adapter . setData ( result . order Goods List ) ĊĠĠĠ Ġ} Ċ }