Pārlūkot izejas kodu

添加助力道具支付方式

silent 4 gadi atpakaļ
vecāks
revīzija
0025f7793b
1 mainītis faili ar 61 papildinājumiem un 0 dzēšanām
  1. 61 0
      src/views/sing_goods/helpgoods.vue

+ 61 - 0
src/views/sing_goods/helpgoods.vue

@@ -125,6 +125,7 @@
             {
               label: "移动商品道具ID",
               prop: "cmccGoodsId",
+              display: true,
               rules: [{
                 required: false,
                 message: "请输入移动商品道具ID",
@@ -135,12 +136,72 @@
               label: "购买积分",
               prop: "point",
               type: "number",
+              display: true,
               rules: [{
                 required: true,
                 message: "请输入购买积分(需要和移动道具对应)",
                 trigger: "blur"
               }]
             },
+            {
+              label: "现金",
+              prop: "amount",
+              type: "number",
+              display: true,
+              rules: [{
+                required: true,
+                message: "请输入购买积分(需要和移动道具对应)",
+                trigger: "blur"
+              }]
+            },
+            {
+              label: "支付类型",
+              prop: "payType",
+              type: "radio",
+              dicData:[
+                {
+                  label: "积分支付",
+                  value: "POINT_EXCHANGE_GOODS"
+                },
+                {
+                  label: "现金支付",
+                  value: "CASH_EXCHANGE_GOODS"
+                }
+              ],
+              value: "POINT_EXCHANGE_GOODS",
+              control:(value)=>{
+                if(value==="POINT_EXCHANGE_GOODS"){
+                  return {
+                    cmccGoodsId:{
+                      display: true
+                    },
+                    point:{
+                      display: true
+                    },
+                    amount:{
+                      display: false
+                    }
+                  };
+                }else{
+                  return {
+                    cmccGoodsId:{
+                      display: false
+                    },
+                    point:{
+                      display: false
+                    },
+                    amount:{
+                      display: true
+                    }
+                  };
+                }
+              },
+              rules: [{
+                required: true,
+                message: "请输入支付类型",
+                trigger: "blur"
+              }]
+            },
             {
               label: "商品可兑换次数/人/天",
               prop: "total",