|
@@ -198,6 +198,7 @@ public class DetailActivity extends PresenterActivity<DetailContract.Presenter>
|
198
|
198
|
}
|
199
|
199
|
});
|
200
|
200
|
|
|
201
|
+ initShowHide();
|
201
|
202
|
look.setOnClickListener(new View.OnClickListener() {
|
202
|
203
|
@Override
|
203
|
204
|
public void onClick(View v) {
|
|
@@ -259,7 +260,6 @@ public class DetailActivity extends PresenterActivity<DetailContract.Presenter>
|
259
|
260
|
|
260
|
261
|
public void onResume() {
|
261
|
262
|
super.onResume();
|
262
|
|
- initShowHide();
|
263
|
263
|
MobclickAgent.onResume(this);
|
264
|
264
|
}
|
265
|
265
|
|
|
@@ -706,6 +706,9 @@ public class DetailActivity extends PresenterActivity<DetailContract.Presenter>
|
706
|
706
|
double v1 = Double.parseDouble(trim);
|
707
|
707
|
if (!TextUtils.isEmpty(trim)) {
|
708
|
708
|
if (product.getShow_day().equals("参考日利率")) {
|
|
709
|
+ if(s1.substring(s1.length()-1,s1.length()).equals("月")){
|
|
710
|
+ v2=v2*30;
|
|
711
|
+ }
|
709
|
712
|
double c = Double.parseDouble(product.getDay_rate());
|
710
|
713
|
double ben = v1 + v1 * v2 * c / 100;
|
711
|
714
|
double v3 = v1 * v2 * c / 100;
|
|
@@ -754,7 +757,9 @@ public class DetailActivity extends PresenterActivity<DetailContract.Presenter>
|
754
|
757
|
double b = Double.parseDouble(product.getLoan_period().get(pos).getK());
|
755
|
758
|
if (product.getShow_day().equals("参考日利率")) {
|
756
|
759
|
double c = Double.parseDouble(product.getDay_rate());
|
757
|
|
-
|
|
760
|
+ if(s.substring(s.length()-1,s.length()).equals("月")){
|
|
761
|
+ b=b*30;
|
|
762
|
+ }
|
758
|
763
|
double ben = a + b * c * a / 100;
|
759
|
764
|
double v = b * c * a / 100;
|
760
|
765
|
contver.setText(String.format("%.2f", v));
|
|
@@ -1155,7 +1160,6 @@ try {
|
1155
|
1160
|
light(1.0f);
|
1156
|
1161
|
}
|
1157
|
1162
|
});
|
1158
|
|
-
|
1159
|
1163
|
wei_circle = (LinearLayout) inflate.findViewById(R.id.m_share_pop_up_wei_circle);
|
1160
|
1164
|
wei_chat = (LinearLayout) inflate.findViewById(R.id.m_share_pop_up_wei_chat);
|
1161
|
1165
|
cancle = (TextView) inflate.findViewById(R.id.m_share_pop_up_cancel);
|