Commit ae639423 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent daf8fe00
...@@ -46,7 +46,7 @@ object Constant { ...@@ -46,7 +46,7 @@ object Constant {
const val FRAGMENT_CLICK_THREE = 2 const val FRAGMENT_CLICK_THREE = 2
// 协议地址 // 协议地址
var REGISTER_URL = "http://mints-web.mints-id.com/agreements/helivideo/yhxy.html"//注册协议 var REGISTER_URL = "http://mints-web.mints-id.com/agreements/miniplaylet/yhxy.html"//注册协议
var PRIVACY_URL = "http://mints-web.mints-id.com/agreements/helivideo/syzc.html"//隐私协议 var PRIVACY_URL = "http://mints-web.mints-id.com/agreements/miniplaylet/syzc.html"//隐私协议
var MEMBERS_URL = "https://mints-web.mints-id.com/agreements/helivideo/gmxy.html"//会员付费服务协议 var MEMBERS_URL = "https://mints-web.mints-id.com/agreements/miniplaylet/gmxy.html"//会员付费服务协议
} }
\ No newline at end of file
...@@ -63,11 +63,7 @@ class VipAdapter(val vipList: MutableList<VipBean.ListBean>) : ...@@ -63,11 +63,7 @@ class VipAdapter(val vipList: MutableList<VipBean.ListBean>) :
holder.tvVipItemLable.setBackgroundResource(R.mipmap.ic_vip_lable_wx) holder.tvVipItemLable.setBackgroundResource(R.mipmap.ic_vip_lable_wx)
} }
if (vipBean.price < 1) {
holder.tvVipItemCurMoney.text = "¥${vipBean.price}" holder.tvVipItemCurMoney.text = "¥${vipBean.price}"
} else {
holder.tvVipItemCurMoney.text = "¥${String.format("%.0f", vipBean.price)}"
}
if (vipBean.oldPrice > 0) { if (vipBean.oldPrice > 0) {
holder.tvVipItemMoney.visibility = View.VISIBLE holder.tvVipItemMoney.visibility = View.VISIBLE
holder.tvVipItemMoney.getPaint().setFlags(Paint.STRIKE_THRU_TEXT_FLAG) //中间横线(删除线) holder.tvVipItemMoney.getPaint().setFlags(Paint.STRIKE_THRU_TEXT_FLAG) //中间横线(删除线)
......
...@@ -163,6 +163,7 @@ ...@@ -163,6 +163,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="20dp" android:layout_marginTop="20dp"
android:text="会员权益" android:text="会员权益"
android:visibility="gone"
android:textColor="@color/black" android:textColor="@color/black"
android:textSize="18sp" android:textSize="18sp"
android:textStyle="bold" /> android:textStyle="bold" />
...@@ -170,6 +171,7 @@ ...@@ -170,6 +171,7 @@
<ImageView <ImageView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="220dp" android:layout_height="220dp"
android:visibility="gone"
android:layout_marginTop="20dp" android:layout_marginTop="20dp"
android:src="@mipmap/bg_my_hint2" /> android:src="@mipmap/bg_my_hint2" />
......
...@@ -42,10 +42,10 @@ RELEASE_TALKING_DATA_KEY="E91735A7978140A8ABD1BB32D337CCAB" ...@@ -42,10 +42,10 @@ RELEASE_TALKING_DATA_KEY="E91735A7978140A8ABD1BB32D337CCAB"
#umeng #umeng
RELEASE_UMENG_KEY=64b8de13a1a164591b5133df RELEASE_UMENG_KEY=64b8de13a1a164591b5133df
GROMORE_APP_ID="5412556" GROMORE_APP_ID="5435210"
GROMORE_SPLASH_CODE="102398740" GROMORE_SPLASH_CODE="102465295"
GROMORE_VIDEO_CODE="102398300" GROMORE_VIDEO_CODE="102464992"
GROMORE_EXPRESS_CODE="102405261" GROMORE_EXPRESS_CODE="102465767"
GROMORE_MY_EXPRESS_CODE="102413160" GROMORE_MY_EXPRESS_CODE="102465767"
GROMORE_DRAW_CODE="102405069" GROMORE_DRAW_CODE="102465098"
GROMORE_BANNER_CODE="102405532" GROMORE_BANNER_CODE="102465294"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment