2 Commits 10c610f5de ... e986c5946e

Author SHA1 Message Date
  小狼 e986c5946e Merge remote-tracking branch 'origin/xhz_uiupdate' into xhz_uiupdate 5 years ago
  小狼 1e0d35f597 2.14产品详情内容修改 5 years ago

+ 7 - 3
app/src/main/java/com/smileflowpig/money/moneyplatfrom/activities/DetailActivity.java

@@ -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);