642de157b27ceR49">49
initView();
|
|
47
|
50
|
}
|
|
48
|
51
|
}
|
|
|
@ -73,7 +76,7 @@ public class PrivacyAgreementActivity extends Activity {
|
|
73
|
76
|
@Override
|
|
74
|
77
|
public void updateDrawState(TextPaint ds) {
|
|
75
|
78
|
ds.setColor(Color.parseColor("#39C663"));
|
|
76
|
|
ds.setUnderlineText(false);
|
|
|
79
|
ds.setUnderlineText(true);
|
|
77
|
80
|
ds.setFakeBoldText(true);
|
|
78
|
81
|
ds.setTextSize(40);
|
|
79
|
82
|
}
|
|
|
@ -102,6 +105,7 @@ public class PrivacyAgreementActivity extends Activity {
|
|
102
|
105
|
agreement_btn.setOnClickListener(new View.OnClickListener() {
|
|
103
|
106
|
@Override
|
|
104
|
107
|
public void onClick(View v) {
|
|
|
108
|
initMobSDK();
|
|
105
|
109
|
startActivity(new Intent(PrivacyAgreementActivity.this, WelcomeActivity.class));
|
|
106
|
110
|
finish();
|
|
107
|
111
|
}
|
|
|
@ -129,4 +133,8 @@ public class PrivacyAgreementActivity extends Activity {
|
|
129
|
133
|
}
|
|
130
|
134
|
});
|
|
131
|
135
|
}
|
|
|
136
|
|
|
|
137
|
private void initMobSDK() {
|
|
|
138
|
MobSDK.init(MainApplication.context);
|
|
|
139
|
}
|
|
132
|
140
|
}
|
|
|
@ -1176,9 +1176,19 @@ public class UserCenterActivity extends Activity implements View.OnClickListener
|
|
1176
|
1176
|
if (list.size() == 0) {
|
|
1177
|
1177
|
startActivity(new Intent(getApplication(), CarOwnerCertificateActivity.class));
|
|
1178
|
1178
|
} else {
|
|
1179
|
|
Intent intent = new Intent(getApplication(), CarOwnerCertificateListActivity.class);
|
|
1180
|
|
intent.putExtra("data", data);
|
|
1181
|
|
startActivity(intent);
|
|
|
1179
|
boolean isType=false ;
|
|
|
1180
|
for (int i = 0; i < list.size(); i++) {
|
|
|
1181
|
if (list.get(i).getStatus()!= 2){ //不等于2 则表示为认证车型
|
|
|
1182
|
isType=true;
|
|
|
1183
|
}
|
|
|
1184
|
}
|
|
|
1185
|
if (isType){
|
|
|
1186
|
Intent intent = new Intent(getApplication(), CarOwnerCertificateListActivity.class);
|
|
|
1187
|
intent.putExtra("data", data);
|
|
|
1188
|
startActivity(intent);
|
|
|
1189
|
}else{
|
|
|
1190
|
startActivity(new Intent(getApplication(), CarOwnerCertificateActivity.class));
|
|
|
1191
|
}
|
|
1182
|
1192
|
}
|
|
1183
|
1193
|
} else if ("init".equals(from)) {
|
|
1184
|
1194
|
boolean certificated = false;
|
|
|
@ -162,7 +162,7 @@ public class MainApplication extends MultiDexApplication {
|
|
162
|
162
|
builder.detectFileUriExposure();
|
|
163
|
163
|
}
|
|
164
|
164
|
|
|
165
|
|
MobSDK.init(this);
|
|
|
165
|
// MobSDK.init(this);
|
|
166
|
166
|
|
|
167
|
167
|
instances = this;
|
|
168
|
168
|
setDatabase();
|
|
|
@ -11,7 +11,7 @@ public class CarOwnerCertificateBean implements Serializable {
|
|
11
|
11
|
private String regdate;
|
|
12
|
12
|
private String cartype;
|
|
13
|
13
|
private int status; //-1 -> 认证失败,0 -> 审核中,1 -> 表示通过审核,2 -> 表示意向车型。
|
|
14
|
|
private int main;
|
|
|
14
|
private int main; //是否为主车型 1为主车型
|
|
15
|
15
|
private String addTime;
|
|
16
|
16
|
private String errmsg;
|
|
17
|
17
|
|
|
|
@ -620,7 +620,7 @@ public class Util {
|
|
620
|
620
|
}else if (bean.getType().equals("8")){
|
|
621
|
621
|
String format = getDisCount(bean);
|
|
622
|
622
|
if (maxMoney.equals("0") || maxMoney.equals("")){
|
|
623
|
|
str="服务费"+format+"折";
|
|
|
623
|
str="订单费"+format+"折";
|
|
624
|
624
|
}else{
|
|
625
|
625
|
str="订单费"+format+"折,满"+maxMoney+"元可用";
|
|
626
|
626
|
}
|
|
|
@ -354,7 +354,7 @@
|
|
354
|
354
|
android:layout_height="wrap_content"
|
|
355
|
355
|
android:layout_marginTop="10dp"
|
|
356
|
356
|
android:layout_marginBottom="30dp"
|
|
357
|
|
android:text="认证说明\n\n1.车型信息和行驶证主页为必填项;\n2.最多可认证三款车型;\n3.默认首款认证车型为主车型;\n4.上传行驶证详细页面,并保证所有信息清晰;\n5.认证成功的首个车型可获得50元充电优惠券。"
|
|
|
357
|
android:text="认证说明\n\n1.车型信息和行驶证主页为必填项;\n2.最多可认证三款车型;\n3.默认首款认证车型为主车型;\n4.上传行驶证详细页面,并保证所有信息清晰;\n5.首次车主认证审核通过有充电满减和折扣红包\n6.红包自发放日起有效期为一个月"
|
|
358
|
358
|
android:textColor="#0D1120"
|
|
359
|
359
|
android:textSize="14sp"
|
|
360
|
360
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
@ -243,7 +243,7 @@
|
|
243
|
243
|
android:layout_marginEnd="15dp"
|
|
244
|
244
|
android:layout_width="wrap_content"
|
|
245
|
245
|
android:layout_height="match_parent"
|
|
246
|
|
android:text="首次选择意向车型(得充电余额)"
|
|
|
246
|
android:text="首次选择意向车型(得充电优惠)"
|
|
247
|
247
|
android:textColor="#ff0e0e0e"
|
|
248
|
248
|
android:textSize="14sp"
|
|
249
|
249
|
android:layout_alignParentRight="true"
|
|
|
@ -246,7 +246,7 @@
|
|
246
|
246
|
android:gravity="center"
|
|
247
|
247
|
android:layout_width="wrap_content"
|
|
248
|
248
|
android:layout_height="match_parent"
|
|
249
|
|
android:text="首次选择意向车型(得充电余额)"
|
|
|
249
|
android:text="首次选择意向车型(得充电优惠)"
|
|
250
|
250
|
android:textColor="#ff0e0e0e"
|
|
251
|
251
|
android:textSize="14sp"
|
|
252
|
252
|
/>
|