|
|
@@ -7,9 +7,13 @@ import android.view.LayoutInflater
|
|
|
import android.view.View
|
|
|
import android.view.ViewGroup
|
|
|
import cn.muchinfo.rma.R
|
|
|
+import cn.muchinfo.rma.global.GlobalDataCollection
|
|
|
import cn.muchinfo.rma.global.data.BankAccountSignData
|
|
|
import cn.muchinfo.rma.global.data.UserCollectConfigData
|
|
|
+import cn.muchinfo.rma.global.isBlankString
|
|
|
+import cn.muchinfo.rma.lifecycle.bindOptional
|
|
|
import cn.muchinfo.rma.view.autoWidget.*
|
|
|
+import cn.muchinfo.rma.view.autoWidget.utils.NumberUtils
|
|
|
|
|
|
import cn.muchinfo.rma.view.base.BaseFragment
|
|
|
import cn.muchinfo.rma.view.base.future.trade.itemView
|
|
|
@@ -19,23 +23,29 @@ import cn.muchinfo.rma.view.base.main.castsurely.MyCastSurelyActivity
|
|
|
import cn.muchinfo.rma.view.base.main.pickup.PickUpGoodsSearchActivity
|
|
|
import cn.muchinfo.rma.view.base.main.promotioncode.MyPromotionCodeActivity
|
|
|
import cn.muchinfo.rma.view.base.main.withdrawmanagement.WithDrawManagementActivity
|
|
|
+import cn.muchinfo.rma.view.base.main.withdrawmanagement.WithdrawalActivity
|
|
|
import cn.muchinfo.rma.view.base.platinumtreasure.activity.PlatinumCancellationsActivity
|
|
|
import cn.muchinfo.rma.view.base.platinumtreasure.activity.PlatnumDealActivty
|
|
|
import cn.muchinfo.rma.view.base.platinumtreasure.activity.PlatnumMoneyActivity
|
|
|
import com.blankj.utilcode.util.ActivityUtils
|
|
|
+import com.blankj.utilcode.util.ToastUtils
|
|
|
|
|
|
import com.qmuiteam.qmui.kotlin.matchParent
|
|
|
+import mtp.polymer.com.autowidget.dialog.createLoadingDialog
|
|
|
+import mtp.polymer.com.autowidget.utils.bindTaskStatus
|
|
|
import org.jetbrains.anko.*
|
|
|
import org.jetbrains.anko.support.v4.UI
|
|
|
|
|
|
/**
|
|
|
* 千海金我的fragment
|
|
|
*/
|
|
|
-class SeaKingMainFragment : BaseFragment<SeaKingMainViewModel>(){
|
|
|
+class SeaKingMainFragment : BaseFragment<SeaKingMainViewModel>() {
|
|
|
|
|
|
override fun onResume() {
|
|
|
super.onResume()
|
|
|
viewModel.queryUserCollectConfig()
|
|
|
+ viewModel.initDataUsrAccount()
|
|
|
+ viewModel.resetAccountData()
|
|
|
}
|
|
|
|
|
|
override fun onCreateView(
|
|
|
@@ -43,9 +53,14 @@ class SeaKingMainFragment : BaseFragment<SeaKingMainViewModel>(){
|
|
|
container: ViewGroup?,
|
|
|
savedInstanceState: Bundle?
|
|
|
): View? {
|
|
|
+
|
|
|
return UI {
|
|
|
- verticalLayout {
|
|
|
|
|
|
+ verticalLayout {
|
|
|
+ createLoadingDialog(hintStr = "请求中...").bindTaskStatus(
|
|
|
+ context,
|
|
|
+ viewModel.loadingDialogStatus
|
|
|
+ )
|
|
|
scrollView {
|
|
|
verticalLayout {
|
|
|
verticalLayout {
|
|
|
@@ -62,7 +77,7 @@ class SeaKingMainFragment : BaseFragment<SeaKingMainViewModel>(){
|
|
|
|
|
|
view {
|
|
|
|
|
|
- }.lparams(org.jetbrains.anko.matchParent,0,1f)
|
|
|
+ }.lparams(org.jetbrains.anko.matchParent, 0, 1f)
|
|
|
|
|
|
linearLayout {
|
|
|
backgroundResource = R.drawable.qhj_main_top_white_bg
|
|
|
@@ -71,65 +86,99 @@ class SeaKingMainFragment : BaseFragment<SeaKingMainViewModel>(){
|
|
|
gravity = Gravity.CENTER_VERTICAL
|
|
|
view {
|
|
|
backgroundResource = R.mipmap.qhj_main_portrait
|
|
|
- }.lparams(autoSize(96), autoSize(96)){
|
|
|
+ }.lparams(autoSize(96), autoSize(96)) {
|
|
|
marginStart = autoSize(43)
|
|
|
}
|
|
|
|
|
|
verticalLayout {
|
|
|
textView {
|
|
|
- text = "周星星"
|
|
|
+ text =
|
|
|
+ GlobalDataCollection.instance?.loginQueryData?.username?.isBlankString()
|
|
|
textSizeAuto = 36
|
|
|
textColorInt = R.color.rma_black_33
|
|
|
- }.lparams(wrapContent, wrapContent){
|
|
|
+ }.lparams(wrapContent, wrapContent) {
|
|
|
topMargin = autoSize(15)
|
|
|
marginStart = autoSize(32)
|
|
|
}
|
|
|
textView {
|
|
|
- text = "142141241"
|
|
|
+ text =
|
|
|
+ GlobalDataCollection.instance?.loginRsp?.loginCode
|
|
|
textSizeAuto = 31
|
|
|
textColorInt = R.color.rma_hint_text_color_ccc
|
|
|
- }.lparams(wrapContent, wrapContent){
|
|
|
+ }.lparams(wrapContent, wrapContent) {
|
|
|
topMargin = autoSize(5)
|
|
|
marginStart = autoSize(32)
|
|
|
}
|
|
|
- }.lparams(0, autoSize(100),1f)
|
|
|
+ }.lparams(0, autoSize(100), 1f)
|
|
|
|
|
|
- linearLayout{
|
|
|
+ linearLayout {
|
|
|
+ if (GlobalDataCollection.instance?.loginQueryData?.userAccount?.canrecommend == "0") {
|
|
|
+ visibility = View.GONE
|
|
|
+ } else {
|
|
|
+ visibility = View.VISIBLE
|
|
|
+ }
|
|
|
onThrottleFirstClick {
|
|
|
- val intent = Intent()
|
|
|
- intent.setClass(context,MyPromotionCodeActivity::class.java)
|
|
|
- ActivityUtils.startActivity(intent)
|
|
|
+ if (viewModel.userAccount?.value?.refernum.isNullOrEmpty()) {
|
|
|
+ viewModel.customerRefernumOperateReq {
|
|
|
+ ToastUtils.showLong("推广码申请已提交,请等待审核通过")
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ val intent = Intent()
|
|
|
+ intent.setClass(
|
|
|
+ context,
|
|
|
+ MyPromotionCodeActivity::class.java
|
|
|
+ )
|
|
|
+ ActivityUtils.startActivity(intent)
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
backgroundResource = R.drawable.qhj_main_recommended_bg
|
|
|
gravity = Gravity.CENTER_VERTICAL
|
|
|
imageView {
|
|
|
imageResource = R.mipmap.qhj_qrcode
|
|
|
- }.lparams(autoSize(55), autoSize(55)){
|
|
|
+ }.lparams(autoSize(55), autoSize(55)) {
|
|
|
marginStart = autoSize(32)
|
|
|
}
|
|
|
|
|
|
verticalLayout {
|
|
|
textView {
|
|
|
- text = "推广码"
|
|
|
+ viewModel.userAccount.bindOptional(context) {
|
|
|
+ if (it?.refernum.isNullOrEmpty()) {
|
|
|
+ text = "申请推广码"
|
|
|
+ } else {
|
|
|
+ visibility = View.VISIBLE
|
|
|
+ text = it?.refernum
|
|
|
+ }
|
|
|
+ }
|
|
|
textSizeAuto = 26
|
|
|
textColorInt = R.color.text_hint_color_two
|
|
|
- }.lparams(wrapContent, wrapContent){
|
|
|
+ }.lparams(wrapContent, wrapContent) {
|
|
|
topMargin = autoSize(10)
|
|
|
}
|
|
|
textView {
|
|
|
- text = "1321"
|
|
|
+ viewModel.userAccount.bindOptional(context) {
|
|
|
+ if (it?.refernum.isNullOrEmpty()) {
|
|
|
+ visibility = View.GONE
|
|
|
+ } else {
|
|
|
+ visibility = View.VISIBLE
|
|
|
+ text = it?.refernum
|
|
|
+ }
|
|
|
+ }
|
|
|
textSizeAuto = 36
|
|
|
textColorInt = R.color.rma_black_33
|
|
|
- }.lparams(wrapContent, wrapContent){
|
|
|
+ }.lparams(wrapContent, wrapContent) {
|
|
|
topMargin = autoSize(10)
|
|
|
}
|
|
|
- }.lparams(matchParent, autoSize(96)){
|
|
|
+ }.lparams(matchParent, autoSize(96)) {
|
|
|
marginStart = autoSize(32)
|
|
|
}
|
|
|
}.lparams(autoSize(228), autoSize(96))
|
|
|
|
|
|
}.lparams(matchParent, autoSize(100))
|
|
|
- }.lparams(matchParent, autoSize(213))
|
|
|
+ }.lparams(matchParent, autoSize(213)) {
|
|
|
+ marginStart = autoSize(36)
|
|
|
+ marginEnd = autoSize(36)
|
|
|
+ }
|
|
|
|
|
|
}.lparams(matchParent, autoSize(360))
|
|
|
|
|
|
@@ -140,21 +189,23 @@ class SeaKingMainFragment : BaseFragment<SeaKingMainViewModel>(){
|
|
|
text = "总资产(元)"
|
|
|
textSizeAuto = 29
|
|
|
textColorInt = R.color.rma_hint_text_color_ccc
|
|
|
- }.lparams(wrapContent, wrapContent){
|
|
|
+ }.lparams(wrapContent, wrapContent) {
|
|
|
marginStart = autoSize(78)
|
|
|
}
|
|
|
imageView {
|
|
|
imageResource = R.mipmap.qhj_open_eye
|
|
|
- }.lparams(autoSize(38), autoSize(38)){
|
|
|
+ }.lparams(autoSize(38), autoSize(38)) {
|
|
|
marginStart = autoSize(32)
|
|
|
}
|
|
|
}.lparams(matchParent, autoSize(60))
|
|
|
|
|
|
textView {
|
|
|
- text = "1231241"
|
|
|
+ viewModel.accountData.bindOptional(context) {
|
|
|
+ text = NumberUtils.roundNum(it?.balance ?: 0.0, 2)
|
|
|
+ }
|
|
|
textSizeAuto = 60
|
|
|
textColorInt = R.color.rma_black_33
|
|
|
- }.lparams(wrapContent, wrapContent){
|
|
|
+ }.lparams(wrapContent, wrapContent) {
|
|
|
marginStart = autoSize(78)
|
|
|
topMargin = autoSize(15)
|
|
|
}
|
|
|
@@ -166,18 +217,20 @@ class SeaKingMainFragment : BaseFragment<SeaKingMainViewModel>(){
|
|
|
textView {
|
|
|
text = "余额(元)"
|
|
|
textSizeAuto = 29
|
|
|
- textColorInt =R.color.rma_hint_text_color_ccc
|
|
|
- }.lparams(wrapContent, wrapContent){
|
|
|
+ textColorInt = R.color.rma_hint_text_color_ccc
|
|
|
+ }.lparams(wrapContent, wrapContent) {
|
|
|
marginStart = autoSize(78)
|
|
|
}
|
|
|
textView {
|
|
|
- text = "35000.44"
|
|
|
+ viewModel.accountData.bindOptional(context) {
|
|
|
+ text = NumberUtils.roundNum(it?.balance ?: 0.0, 2)
|
|
|
+ }
|
|
|
textSizeAuto = 36
|
|
|
textColorInt = R.color.rma_green_color
|
|
|
- }.lparams(wrapContent, wrapContent){
|
|
|
+ }.lparams(wrapContent, wrapContent) {
|
|
|
marginStart = autoSize(78)
|
|
|
}
|
|
|
- }.lparams(0, autoSize(110),1f)
|
|
|
+ }.lparams(0, autoSize(110), 1f)
|
|
|
|
|
|
//持仓
|
|
|
verticalLayout {
|
|
|
@@ -185,25 +238,30 @@ class SeaKingMainFragment : BaseFragment<SeaKingMainViewModel>(){
|
|
|
textView {
|
|
|
text = "持仓(元)"
|
|
|
textSizeAuto = 29
|
|
|
- textColorInt =R.color.rma_hint_text_color_ccc
|
|
|
- }.lparams(wrapContent, wrapContent){
|
|
|
+ textColorInt = R.color.rma_hint_text_color_ccc
|
|
|
+ }.lparams(wrapContent, wrapContent) {
|
|
|
|
|
|
}
|
|
|
textView {
|
|
|
text = "35000.44"
|
|
|
textSizeAuto = 36
|
|
|
textColorInt = R.color.rma_red_color
|
|
|
- }.lparams(wrapContent, wrapContent){
|
|
|
+ }.lparams(wrapContent, wrapContent) {
|
|
|
|
|
|
}
|
|
|
- }.lparams(0, autoSize(110),1f)
|
|
|
+ }.lparams(0, autoSize(110), 1f)
|
|
|
|
|
|
- }.lparams(matchParent, autoSize(110)){
|
|
|
+ }.lparams(matchParent, autoSize(110)) {
|
|
|
topMargin = autoSize(20)
|
|
|
}
|
|
|
|
|
|
linearLayout {
|
|
|
linearLayout {
|
|
|
+ onThrottleFirstClick {
|
|
|
+ val intent = Intent()
|
|
|
+ intent.setClass(context, WithdrawalActivity::class.java)
|
|
|
+ ActivityUtils.startActivity(intent)
|
|
|
+ }
|
|
|
backgroundResource = R.mipmap.qhj_withdraw
|
|
|
gravity = Gravity.CENTER
|
|
|
textView {
|
|
|
@@ -211,12 +269,17 @@ class SeaKingMainFragment : BaseFragment<SeaKingMainViewModel>(){
|
|
|
textColorInt = R.color.qhj_withdraw_color
|
|
|
textSizeAuto = 36
|
|
|
}.lparams(wrapContent, wrapContent)
|
|
|
- }.lparams(0, autoSize(122),1f){
|
|
|
+ }.lparams(0, autoSize(122), 1f) {
|
|
|
marginStart = autoSize(78)
|
|
|
marginEnd = autoSize(36)
|
|
|
}
|
|
|
|
|
|
linearLayout {
|
|
|
+ onThrottleFirstClick {
|
|
|
+ val intent = Intent()
|
|
|
+ intent.setClass(context, WithdrawalActivity::class.java)
|
|
|
+ ActivityUtils.startActivity(intent)
|
|
|
+ }
|
|
|
backgroundResource = R.drawable.qhj_main_blue_bg
|
|
|
gravity = Gravity.CENTER
|
|
|
textView {
|
|
|
@@ -225,12 +288,12 @@ class SeaKingMainFragment : BaseFragment<SeaKingMainViewModel>(){
|
|
|
textColorInt = R.color.white
|
|
|
textSizeAuto = 36
|
|
|
}.lparams(wrapContent, wrapContent)
|
|
|
- }.lparams(0, autoSize(84),1f){
|
|
|
+ }.lparams(0, autoSize(84), 1f) {
|
|
|
marginStart = autoSize(36)
|
|
|
marginEnd = autoSize(78)
|
|
|
topMargin = autoSize(15)
|
|
|
}
|
|
|
- }.lparams(matchParent, autoSize(100)){
|
|
|
+ }.lparams(matchParent, autoSize(100)) {
|
|
|
topMargin = autoSize(25)
|
|
|
}
|
|
|
|
|
|
@@ -246,13 +309,16 @@ class SeaKingMainFragment : BaseFragment<SeaKingMainViewModel>(){
|
|
|
verticalLayout {
|
|
|
onThrottleFirstClick {
|
|
|
val intent = Intent()
|
|
|
- intent.setClass(context,PlatinumCancellationsActivity::class.java)
|
|
|
+ intent.setClass(
|
|
|
+ context,
|
|
|
+ PlatinumCancellationsActivity::class.java
|
|
|
+ )
|
|
|
ActivityUtils.startActivity(intent)
|
|
|
}
|
|
|
gravity = Gravity.CENTER_HORIZONTAL
|
|
|
imageView {
|
|
|
imageResource = R.mipmap.qhj_trading_cancellations
|
|
|
- }.lparams(autoSize(60), autoSize(60)){
|
|
|
+ }.lparams(autoSize(60), autoSize(60)) {
|
|
|
topMargin = autoSize(45)
|
|
|
}
|
|
|
|
|
|
@@ -260,23 +326,23 @@ class SeaKingMainFragment : BaseFragment<SeaKingMainViewModel>(){
|
|
|
text = "交易撤单"
|
|
|
textSizeAuto = 31
|
|
|
textColorInt = R.color.rma_black_33
|
|
|
- }.lparams(wrapContent, wrapContent){
|
|
|
+ }.lparams(wrapContent, wrapContent) {
|
|
|
topMargin = autoSize(10)
|
|
|
}
|
|
|
|
|
|
- }.lparams(0, autoSize(200),1f)
|
|
|
+ }.lparams(0, autoSize(200), 1f)
|
|
|
|
|
|
//成交记录
|
|
|
verticalLayout {
|
|
|
onThrottleFirstClick {
|
|
|
val intent = Intent()
|
|
|
- intent.setClass(context,PlatnumDealActivty::class.java)
|
|
|
+ intent.setClass(context, PlatnumDealActivty::class.java)
|
|
|
ActivityUtils.startActivity(intent)
|
|
|
}
|
|
|
gravity = Gravity.CENTER_HORIZONTAL
|
|
|
imageView {
|
|
|
imageResource = R.mipmap.qhj_deal_the_record
|
|
|
- }.lparams(autoSize(60), autoSize(60)){
|
|
|
+ }.lparams(autoSize(60), autoSize(60)) {
|
|
|
topMargin = autoSize(45)
|
|
|
}
|
|
|
|
|
|
@@ -284,22 +350,22 @@ class SeaKingMainFragment : BaseFragment<SeaKingMainViewModel>(){
|
|
|
text = "成交记录"
|
|
|
textSizeAuto = 31
|
|
|
textColorInt = R.color.rma_black_33
|
|
|
- }.lparams(wrapContent, wrapContent){
|
|
|
+ }.lparams(wrapContent, wrapContent) {
|
|
|
topMargin = autoSize(10)
|
|
|
}
|
|
|
- }.lparams(0, autoSize(200),1f)
|
|
|
+ }.lparams(0, autoSize(200), 1f)
|
|
|
|
|
|
//资金流水
|
|
|
verticalLayout {
|
|
|
onThrottleFirstClick {
|
|
|
val intent = Intent()
|
|
|
- intent.setClass(context,PlatnumMoneyActivity::class.java)
|
|
|
+ intent.setClass(context, PlatnumMoneyActivity::class.java)
|
|
|
ActivityUtils.startActivity(intent)
|
|
|
}
|
|
|
gravity = Gravity.CENTER_HORIZONTAL
|
|
|
imageView {
|
|
|
imageResource = R.mipmap.qhj_money_flowing_water
|
|
|
- }.lparams(autoSize(60), autoSize(60)){
|
|
|
+ }.lparams(autoSize(60), autoSize(60)) {
|
|
|
topMargin = autoSize(45)
|
|
|
}
|
|
|
|
|
|
@@ -307,23 +373,23 @@ class SeaKingMainFragment : BaseFragment<SeaKingMainViewModel>(){
|
|
|
text = "资金流水"
|
|
|
textSizeAuto = 31
|
|
|
textColorInt = R.color.rma_black_33
|
|
|
- }.lparams(wrapContent, wrapContent){
|
|
|
+ }.lparams(wrapContent, wrapContent) {
|
|
|
topMargin = autoSize(10)
|
|
|
}
|
|
|
- }.lparams(0, autoSize(200),1f)
|
|
|
+ }.lparams(0, autoSize(200), 1f)
|
|
|
|
|
|
//提货查询
|
|
|
verticalLayout {
|
|
|
|
|
|
onThrottleFirstClick {
|
|
|
val intent = Intent()
|
|
|
- intent.setClass(context,PickUpGoodsSearchActivity::class.java)
|
|
|
+ intent.setClass(context, PickUpGoodsSearchActivity::class.java)
|
|
|
ActivityUtils.startActivity(intent)
|
|
|
}
|
|
|
gravity = Gravity.CENTER_HORIZONTAL
|
|
|
imageView {
|
|
|
imageResource = R.mipmap.qhj_goods_query
|
|
|
- }.lparams(autoSize(60), autoSize(60)){
|
|
|
+ }.lparams(autoSize(60), autoSize(60)) {
|
|
|
topMargin = autoSize(45)
|
|
|
}
|
|
|
|
|
|
@@ -331,10 +397,10 @@ class SeaKingMainFragment : BaseFragment<SeaKingMainViewModel>(){
|
|
|
text = "提货查询"
|
|
|
textSizeAuto = 31
|
|
|
textColorInt = R.color.rma_black_33
|
|
|
- }.lparams(wrapContent, wrapContent){
|
|
|
+ }.lparams(wrapContent, wrapContent) {
|
|
|
topMargin = autoSize(10)
|
|
|
}
|
|
|
- }.lparams(0, autoSize(200),1f)
|
|
|
+ }.lparams(0, autoSize(200), 1f)
|
|
|
}.lparams(matchParent, autoSize(200))
|
|
|
|
|
|
view {
|
|
|
@@ -345,20 +411,20 @@ class SeaKingMainFragment : BaseFragment<SeaKingMainViewModel>(){
|
|
|
gravity = Gravity.CENTER_VERTICAL
|
|
|
onThrottleFirstClick {
|
|
|
val intent = Intent()
|
|
|
- intent.setClass(context,MyCastSurelyActivity::class.java)
|
|
|
+ intent.setClass(context, MyCastSurelyActivity::class.java)
|
|
|
ActivityUtils.startActivity(intent)
|
|
|
}
|
|
|
imageView {
|
|
|
imageResource = R.mipmap.qhj_cast_surely_management
|
|
|
- }.lparams(autoSize(50), autoSize(50)){
|
|
|
- marginStart = autoSize(60)
|
|
|
+ }.lparams(autoSize(50), autoSize(50)) {
|
|
|
+ marginStart = autoSize(60)
|
|
|
}
|
|
|
|
|
|
textView {
|
|
|
text = "定投管理"
|
|
|
textSizeAuto = 36
|
|
|
textColorInt = R.color.rma_black_33
|
|
|
- }.lparams(wrapContent, wrapContent){
|
|
|
+ }.lparams(wrapContent, wrapContent) {
|
|
|
marginStart = autoSize(29)
|
|
|
}
|
|
|
|
|
|
@@ -377,13 +443,13 @@ class SeaKingMainFragment : BaseFragment<SeaKingMainViewModel>(){
|
|
|
)
|
|
|
backgroundDrawable =
|
|
|
createRoundRectDrawable("#FFA127", 45)
|
|
|
- }.lparams(wrapContent, wrapContent) {
|
|
|
+ }.lparams(wrapContent, wrapContent) {
|
|
|
marginEnd = autoSize(20)
|
|
|
}
|
|
|
|
|
|
imageView {
|
|
|
imageResource = R.mipmap.rma_more
|
|
|
- }.lparams(autoSize(40), autoSize(40)){
|
|
|
+ }.lparams(autoSize(40), autoSize(40)) {
|
|
|
marginEnd = autoSize(49)
|
|
|
}
|
|
|
}.lparams(matchParent, autoSize(140))
|
|
|
@@ -393,18 +459,18 @@ class SeaKingMainFragment : BaseFragment<SeaKingMainViewModel>(){
|
|
|
linearLayout {
|
|
|
onThrottleFirstClick {
|
|
|
val intent = Intent()
|
|
|
- if (viewModel.userCollectConfigData.value?.bankid.isNullOrEmpty()){
|
|
|
+ if (viewModel.userCollectConfigData.value?.bankid.isNullOrEmpty()) {
|
|
|
intent.putExtra("data", BankAccountSignData())
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
intent.putExtra("data", viewModel.userCollectConfigData.value)
|
|
|
}
|
|
|
- intent.setClass(context,WithDrawManagementActivity::class.java)
|
|
|
+ intent.setClass(context, WithDrawManagementActivity::class.java)
|
|
|
ActivityUtils.startActivity(intent)
|
|
|
}
|
|
|
gravity = Gravity.CENTER_VERTICAL
|
|
|
imageView {
|
|
|
imageResource = R.mipmap.qhj_account_manager
|
|
|
- }.lparams(autoSize(50), autoSize(50)){
|
|
|
+ }.lparams(autoSize(50), autoSize(50)) {
|
|
|
marginStart = autoSize(60)
|
|
|
}
|
|
|
|
|
|
@@ -412,7 +478,7 @@ class SeaKingMainFragment : BaseFragment<SeaKingMainViewModel>(){
|
|
|
text = "提现账户管理"
|
|
|
textSizeAuto = 36
|
|
|
textColorInt = R.color.rma_black_33
|
|
|
- }.lparams(wrapContent, wrapContent){
|
|
|
+ }.lparams(wrapContent, wrapContent) {
|
|
|
marginStart = autoSize(29)
|
|
|
}
|
|
|
|
|
|
@@ -431,13 +497,13 @@ class SeaKingMainFragment : BaseFragment<SeaKingMainViewModel>(){
|
|
|
)
|
|
|
backgroundDrawable =
|
|
|
createRoundRectDrawable("#FFA127", 45)
|
|
|
- }.lparams(wrapContent, wrapContent) {
|
|
|
+ }.lparams(wrapContent, wrapContent) {
|
|
|
marginEnd = autoSize(20)
|
|
|
}
|
|
|
|
|
|
imageView {
|
|
|
imageResource = R.mipmap.rma_more
|
|
|
- }.lparams(autoSize(40), autoSize(40)){
|
|
|
+ }.lparams(autoSize(40), autoSize(40)) {
|
|
|
marginEnd = autoSize(49)
|
|
|
}
|
|
|
}.lparams(matchParent, autoSize(140))
|
|
|
@@ -448,12 +514,12 @@ class SeaKingMainFragment : BaseFragment<SeaKingMainViewModel>(){
|
|
|
gravity = Gravity.CENTER_VERTICAL
|
|
|
onThrottleFirstClick {
|
|
|
val intent = Intent()
|
|
|
- intent.setClass(context,MyAddressManagementActivity::class.java)
|
|
|
+ intent.setClass(context, MyAddressManagementActivity::class.java)
|
|
|
ActivityUtils.startActivity(intent)
|
|
|
}
|
|
|
imageView {
|
|
|
imageResource = R.mipmap.qhj_good_address
|
|
|
- }.lparams(autoSize(50), autoSize(50)){
|
|
|
+ }.lparams(autoSize(50), autoSize(50)) {
|
|
|
marginStart = autoSize(60)
|
|
|
}
|
|
|
|
|
|
@@ -461,7 +527,7 @@ class SeaKingMainFragment : BaseFragment<SeaKingMainViewModel>(){
|
|
|
text = "收货地址管理"
|
|
|
textSizeAuto = 36
|
|
|
textColorInt = R.color.rma_black_33
|
|
|
- }.lparams(wrapContent, wrapContent){
|
|
|
+ }.lparams(wrapContent, wrapContent) {
|
|
|
marginStart = autoSize(29)
|
|
|
}
|
|
|
|
|
|
@@ -480,13 +546,13 @@ class SeaKingMainFragment : BaseFragment<SeaKingMainViewModel>(){
|
|
|
)
|
|
|
backgroundDrawable =
|
|
|
createRoundRectDrawable("#FFA127", 45)
|
|
|
- }.lparams(wrapContent, wrapContent) {
|
|
|
+ }.lparams(wrapContent, wrapContent) {
|
|
|
marginEnd = autoSize(20)
|
|
|
}
|
|
|
|
|
|
imageView {
|
|
|
imageResource = R.mipmap.rma_more
|
|
|
- }.lparams(autoSize(40), autoSize(40)){
|
|
|
+ }.lparams(autoSize(40), autoSize(40)) {
|
|
|
marginEnd = autoSize(49)
|
|
|
}
|
|
|
}.lparams(matchParent, autoSize(140))
|