1
This commit is contained in:
@@ -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>() {
|
||||
|
||||
@@ -142,6 +142,7 @@
|
||||
<!-- </RadioGroup>-->
|
||||
<!-- </LinearLayout>-->
|
||||
<LinearLayout
|
||||
android:visibility="gone"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user