浏览代码

观影人默认值

yinds 3 天之前
父节点
当前提交
dc7a64e295

+ 2 - 15
app/src/main/java/com/hw/nativeapp/ui/activity/PurchaseInfoActivity.java

@@ -331,21 +331,7 @@ public class PurchaseInfoActivity extends BaseActivity  {
         ActivityUtils.launchActivity(this,PaymentMethodActivity.class, bundle);
     }
     // 继续添加观影人
-//    private void jumpPage () {
-//        Bundle bundle = new Bundle();
-//        bundle.putString("performId", performId);
-//        bundle.putString("auditoriumId", auditoriumId);
-//        bundle.putString("performTimeId", performTimeId);
-//        bundle.putString("seatTypeId", seatTypeId);
-//        bundle.putString("goodsId", goodsId);
-//        bundle.putString("mobile", mMobile);
-//        bundle.putString("salePeice", salePeice);
-//        bundle.putString("type", "2");
-//        bundle.putString("name", name);
-//        bundle.putString("idcard", idcard);
-//        bundle.putString("viewerList", JSONArray.toJSONString(touristList));
-//        ActivityUtils.launchActivity(this,InfoInputActivity.class, bundle);
-//    }
+
     //获取页面传递参数
     private void getPageTransmitParams(){
         Intent transmitIntent = getIntent();
@@ -354,6 +340,7 @@ public class PurchaseInfoActivity extends BaseActivity  {
         auditoriumId = transmitIntent.getStringExtra("auditoriumId");
         goodsId = transmitIntent.getStringExtra("goodsId");
         personnelNum = transmitIntent.getIntExtra("personnelNum",1);
+        personnelNum = personnelNum == 0 ? 1 : personnelNum;
         isAuth = transmitIntent.getIntExtra("isAuth",1);
         salePeice = transmitIntent.getStringExtra("salePeice");
         performTimeId = transmitIntent.getStringExtra("performTimeId");

+ 1 - 1
app/src/main/java/com/hw/nativeapp/ui/activity/SelectV2InfoActivity.java

@@ -188,7 +188,7 @@ public class SelectV2InfoActivity extends BaseActivity  {
         bundle.putString("performTimeId", performTimeId);
         bundle.putString("seatTypeId", seatTypeId);
         bundle.putString("goodsId", selectGoodsItem.goodsId);
-        bundle.putInt("personnelNum", selectGoodsItem.personnelNum);
+        bundle.putInt("personnelNum", (selectGoodsItem.personnelNum == null|| selectGoodsItem.personnelNum==0)?1: selectGoodsItem.personnelNum);
         bundle.putString("salePeice", selectGoodsItem.salePrice);
         bundle.putInt("isAuth", selectGoodsItem.isAuth);
         bundle.putString("mobile", mobile);