This commit is contained in:
jinyuer
2020-09-27 16:17:08 +08:00
parent 38feedc720
commit 7e6b8c2fc2
2 changed files with 13 additions and 11 deletions

View File

@@ -128,17 +128,17 @@ public class ShareCodeActivity extends BaseActivity<com.sl.house_property.databi
mDataBinding.confirm.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (list == null || list.isEmpty()) {
setToast("还没有房间");
return;
}
// if (list == null || list.isEmpty()) {
// setToast("还没有房间");
// return;
// }
String phone = mDataBinding.telephone.getText().toString().trim();
if (TextUtils.isEmpty(phone)) {
setToast("请输入访客手机号");
return;
}
hideKeyboard(mDataBinding.telephone);
// String phone = mDataBinding.telephone.getText().toString().trim();
// if (TextUtils.isEmpty(phone)) {
// setToast("请输入访客手机号");
// return;
// }
// hideKeyboard(mDataBinding.telephone);
getPwd();
}
@@ -235,6 +235,7 @@ public class ShareCodeActivity extends BaseActivity<com.sl.house_property.databi
// map.put("validity_time", mDataBinding.daytiems.getText().toString().trim());
map.put("user_home_id", user_home_id);
progressDialog.show();
mGankLoader = new Loader();
Subscription subscribe = mGankLoader.getMovie(ApiConfig.BASE_URL, map).subscribe(new Action1<Resultcode>() {
@Override
public void call(Resultcode resultcode) {
@@ -279,7 +280,7 @@ public class ShareCodeActivity extends BaseActivity<com.sl.house_property.databi
map.put("app", "Door");
map.put("class", "SendCustomerCode");
map.put("type", "password");
map.put("phone", mDataBinding.telephone.getText().toString().trim());
// map.put("phone", mDataBinding.telephone.getText().toString().trim());
// map.put("validity_time", mDataBinding.daytiems.getText().toString().trim());
map.put("user_home_id", user_home_id);
Subscription subscribe = mGankLoader.getMovie(ApiConfig.BASE_URL, map).subscribe(new Action1<Resultcode>() {

View File

@@ -142,6 +142,7 @@
<!-- </RadioGroup>-->
<!-- </LinearLayout>-->
<LinearLayout
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="wrap_content">