|
@@ -31,6 +31,7 @@ public class AddGoodsActivity extends BaseBeiActivity implements View.OnClickLis
|
|
|
|
|
|
|
|
private TextInputEditText et_goods_title;
|
|
private TextInputEditText et_goods_title;
|
|
|
private TextInputEditText et_cover_url;
|
|
private TextInputEditText et_cover_url;
|
|
|
|
|
+ private TextInputEditText et_video_url;
|
|
|
private TextInputEditText et_desc;
|
|
private TextInputEditText et_desc;
|
|
|
private TextInputEditText et_reason;
|
|
private TextInputEditText et_reason;
|
|
|
private TextInputEditText et_old_price;
|
|
private TextInputEditText et_old_price;
|
|
@@ -80,6 +81,7 @@ public class AddGoodsActivity extends BaseBeiActivity implements View.OnClickLis
|
|
|
public void initViews(Bundle savedInstanceState) {
|
|
public void initViews(Bundle savedInstanceState) {
|
|
|
et_goods_title = findViewById(R.id.et_goods_title);
|
|
et_goods_title = findViewById(R.id.et_goods_title);
|
|
|
et_cover_url = findViewById(R.id.et_cover_url);
|
|
et_cover_url = findViewById(R.id.et_cover_url);
|
|
|
|
|
+ et_video_url = findViewById(R.id.et_video_url);
|
|
|
et_desc = findViewById(R.id.et_desc);
|
|
et_desc = findViewById(R.id.et_desc);
|
|
|
et_reason = findViewById(R.id.et_reason);
|
|
et_reason = findViewById(R.id.et_reason);
|
|
|
et_old_price = findViewById(R.id.et_old_price);
|
|
et_old_price = findViewById(R.id.et_old_price);
|
|
@@ -109,6 +111,7 @@ public class AddGoodsActivity extends BaseBeiActivity implements View.OnClickLis
|
|
|
private void initGoods() {
|
|
private void initGoods() {
|
|
|
et_goods_title.setText(mGoodsBean.title);
|
|
et_goods_title.setText(mGoodsBean.title);
|
|
|
et_cover_url.setText(mGoodsBean.coverImageUrl);
|
|
et_cover_url.setText(mGoodsBean.coverImageUrl);
|
|
|
|
|
+ et_video_url.setText(mGoodsBean.videoUrl);
|
|
|
et_desc.setText(mGoodsBean.description);
|
|
et_desc.setText(mGoodsBean.description);
|
|
|
et_reason.setText(mGoodsBean.reason);
|
|
et_reason.setText(mGoodsBean.reason);
|
|
|
et_old_price.setText(String.valueOf(mGoodsBean.oldPrice));
|
|
et_old_price.setText(String.valueOf(mGoodsBean.oldPrice));
|
|
@@ -130,6 +133,7 @@ public class AddGoodsActivity extends BaseBeiActivity implements View.OnClickLis
|
|
|
case R.id.btn_add_goods:
|
|
case R.id.btn_add_goods:
|
|
|
String title = et_goods_title.getEditableText().toString();
|
|
String title = et_goods_title.getEditableText().toString();
|
|
|
String coverUrl = et_cover_url.getEditableText().toString();
|
|
String coverUrl = et_cover_url.getEditableText().toString();
|
|
|
|
|
+ String videoUrl = et_video_url.getEditableText().toString();
|
|
|
String description = et_desc.getEditableText().toString();
|
|
String description = et_desc.getEditableText().toString();
|
|
|
String reason = et_reason.getEditableText().toString();
|
|
String reason = et_reason.getEditableText().toString();
|
|
|
long oldPrice = Long.parseLong(et_old_price.getEditableText().toString());
|
|
long oldPrice = Long.parseLong(et_old_price.getEditableText().toString());
|
|
@@ -150,6 +154,7 @@ public class AddGoodsActivity extends BaseBeiActivity implements View.OnClickLis
|
|
|
}
|
|
}
|
|
|
mGoodsBean.title = title;
|
|
mGoodsBean.title = title;
|
|
|
mGoodsBean.coverImageUrl = coverUrl;
|
|
mGoodsBean.coverImageUrl = coverUrl;
|
|
|
|
|
+ mGoodsBean.videoUrl = videoUrl;
|
|
|
mGoodsBean.description = description;
|
|
mGoodsBean.description = description;
|
|
|
mGoodsBean.reason = reason;
|
|
mGoodsBean.reason = reason;
|
|
|
mGoodsBean.oldPrice = oldPrice;
|
|
mGoodsBean.oldPrice = oldPrice;
|