修改测试问题
This commit is contained in:
@@ -73,6 +73,7 @@ import com.yunbao.main.http.MainHttpUtil;
|
||||
|
||||
import org.greenrobot.eventbus.EventBus;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
import java.util.ArrayList;
|
||||
@@ -249,10 +250,12 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
||||
} else {
|
||||
coin.setText(coins);
|
||||
}
|
||||
if (yuanbaos.length() > 8) {
|
||||
star_coin.setText(yuanbaos.substring(0, yuanbaos.length() - 6) + "M");
|
||||
} else if (yuanbaos.length() > 6) {
|
||||
star_coin.setText(yuanbaos.substring(0, yuanbaos.length() - 3) + "K");
|
||||
BigDecimal yuanbao = new BigDecimal(yuanbaos);
|
||||
String yuanbaoStr =String.valueOf(yuanbao.intValue());
|
||||
if (yuanbaoStr.length() > 9) {
|
||||
star_coin.setText(yuanbaoStr.substring(0,yuanbaoStr.length() - 6) + "M");
|
||||
} else if (yuanbaoStr.length()>7) {
|
||||
star_coin.setText(yuanbaoStr.substring(0, yuanbaoStr.length() - 3) + "K");
|
||||
} else {
|
||||
star_coin.setText(yuanbaos);
|
||||
}
|
||||
@@ -307,7 +310,7 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
||||
user_noble_text.setText(mContext.getResources().getString(R.string.now_noble) + u.getNoble_name());
|
||||
user_noble_time.setText(mContext.getResources().getString(R.string.now_noble_time) + u.getNoble_end_time());
|
||||
} else {
|
||||
user_noble_text.setText(WordUtil.isNewZh()?"貴族中心":"VIP Center");
|
||||
user_noble_text.setText(WordUtil.isNewZh() ? "貴族中心" : "VIP Center");
|
||||
user_noble_time.setText(mContext.getResources().getString(R.string.open_noble_text));
|
||||
}
|
||||
String singnature = u.getSignature();
|
||||
@@ -484,15 +487,15 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
||||
Constants.isTitle = false;
|
||||
ZhuangBanActivity.forward(mContext, url);
|
||||
} else {
|
||||
if (bean.getId() == 11){
|
||||
MobclickAgent.onEvent(mContext, "my_anchor", "个人中心点主播中心");
|
||||
}
|
||||
if (bean.getId() == 25){
|
||||
MobclickAgent.onEvent(mContext, "my_friend_invitation", "个人中心点好友邀请");
|
||||
}
|
||||
if (bean.getId() == 24){
|
||||
MobclickAgent.onEvent(mContext, "my_pack", "个人中心点包裹");
|
||||
}
|
||||
if (bean.getId() == 11) {
|
||||
MobclickAgent.onEvent(mContext, "my_anchor", "个人中心点主播中心");
|
||||
}
|
||||
if (bean.getId() == 25) {
|
||||
MobclickAgent.onEvent(mContext, "my_friend_invitation", "个人中心点好友邀请");
|
||||
}
|
||||
if (bean.getId() == 24) {
|
||||
MobclickAgent.onEvent(mContext, "my_pack", "个人中心点包裹");
|
||||
}
|
||||
WebViewActivity.forward(mContext, url, false);
|
||||
}
|
||||
|
||||
@@ -532,7 +535,7 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
||||
MobclickAgent.onEvent(mContext, "my_noble", "个人中心点贵族");
|
||||
Constants.isTitle = true;
|
||||
UserBean u = CommonAppConfig.getInstance().getUserBean();
|
||||
String url = CommonAppConfig.HOST + "/h5/Noble/index.html?nickname=" + u.getUserNiceName() + "&usernobId=" + u.getNoble_id() + "&token=" + CommonAppConfig.getInstance().getToken() + "&uid=" + CommonAppConfig.getInstance().getUid()+ "&isZh=" + (WordUtil.isNewZh() ? "1" : "0");
|
||||
String url = CommonAppConfig.HOST + "/h5/Noble/index.html?nickname=" + u.getUserNiceName() + "&usernobId=" + u.getNoble_id() + "&token=" + CommonAppConfig.getInstance().getToken() + "&uid=" + CommonAppConfig.getInstance().getUid() + "&isZh=" + (WordUtil.isNewZh() ? "1" : "0");
|
||||
ZhuangBanActivity.forward(mContext, url, false);
|
||||
}
|
||||
|
||||
@@ -625,7 +628,7 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
||||
SlideBean bean = mBannerList.get(p);
|
||||
if (!bean.getSlide_url().equals("")) {
|
||||
Constants.isTitle = true;
|
||||
String url = bean.getSlide_url() + "?uid=" + CommonAppConfig.getInstance().getUid() + "&token=" + CommonAppConfig.getInstance().getToken()+ "&isZh=" + (WordUtil.isNewZh() ? "1" : "0");
|
||||
String url = bean.getSlide_url() + "?uid=" + CommonAppConfig.getInstance().getUid() + "&token=" + CommonAppConfig.getInstance().getToken() + "&isZh=" + (WordUtil.isNewZh() ? "1" : "0");
|
||||
WebViewActivity.forward(mContext, url, false, false);
|
||||
|
||||
Map<String, String> map_ekv = new HashMap<String, String>();
|
||||
@@ -651,7 +654,7 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi
|
||||
SlideBean bean = mBannerList.get(p);
|
||||
if (!bean.getSlide_url().equals("")) {
|
||||
Constants.isTitle = true;
|
||||
String url = bean.getSlide_url() + "?uid=" + CommonAppConfig.getInstance().getUid() + "&token=" + CommonAppConfig.getInstance().getToken()+ "&isZh=" + (WordUtil.isNewZh() ? "1" : "0");
|
||||
String url = bean.getSlide_url() + "?uid=" + CommonAppConfig.getInstance().getUid() + "&token=" + CommonAppConfig.getInstance().getToken() + "&isZh=" + (WordUtil.isNewZh() ? "1" : "0");
|
||||
RouteUtil.forwardCustomerService(url);
|
||||
|
||||
Map<String, String> map_ekv = new HashMap<String, String>();
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginBottom="20dp"
|
||||
android:background="@mipmap/bg_main_home_sub_game"
|
||||
android:orientation="vertical">
|
||||
|
||||
@@ -193,6 +194,7 @@
|
||||
android:id="@+id/refreshView"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
||||
Reference in New Issue
Block a user