|
@@ -3,6 +3,7 @@ package com.itant.shibei.ui.mine.coupon;
|
|
|
import android.content.Intent;
|
|
import android.content.Intent;
|
|
|
import android.os.Bundle;
|
|
import android.os.Bundle;
|
|
|
import android.view.View;
|
|
import android.view.View;
|
|
|
|
|
+import android.widget.Button;
|
|
|
import android.widget.CheckBox;
|
|
import android.widget.CheckBox;
|
|
|
|
|
|
|
|
import com.google.android.material.textfield.TextInputEditText;
|
|
import com.google.android.material.textfield.TextInputEditText;
|
|
@@ -45,11 +46,13 @@ public class AddCouponActivity extends BaseBeiActivity implements View.OnClickLi
|
|
|
et_jump_url = findViewById(R.id.et_jump_url);
|
|
et_jump_url = findViewById(R.id.et_jump_url);
|
|
|
cb_enable = findViewById(R.id.cb_enable);
|
|
cb_enable = findViewById(R.id.cb_enable);
|
|
|
ViewTool.setOnClickListener(this, this, new int[]{R.id.btn_add_goods});
|
|
ViewTool.setOnClickListener(this, this, new int[]{R.id.btn_add_goods});
|
|
|
|
|
+ Button btn_add_goods = findViewById(R.id.btn_add_goods);
|
|
|
|
|
|
|
|
couponBean = (CouponBean) getIntent().getSerializableExtra(KEY_MODIFY_COUPON);
|
|
couponBean = (CouponBean) getIntent().getSerializableExtra(KEY_MODIFY_COUPON);
|
|
|
if (couponBean != null) {
|
|
if (couponBean != null) {
|
|
|
- setTitle("更新优惠券");
|
|
|
|
|
initCoupon();
|
|
initCoupon();
|
|
|
|
|
+ setTitle("更新优惠券");
|
|
|
|
|
+ btn_add_goods.setText("立即更新");
|
|
|
} else {
|
|
} else {
|
|
|
setTitle("上架新的优惠券");
|
|
setTitle("上架新的优惠券");
|
|
|
}
|
|
}
|