Forráskód Böngészése

修复调整问题

dos 3 hónapja
szülő
commit
95ebaa37b8
1 módosított fájl, 10 hozzáadás és 2 törlés
  1. 10 2
      game-ui/src/views/business/user/index.vue

+ 10 - 2
game-ui/src/views/business/user/index.vue

@@ -1830,14 +1830,22 @@ export default {
         cancelButtonText: '取消',
         type: 'warning'
       }).then(() => {
-        if(!that.appAgentForm.liveRate){
+        if(that.appAgentForm.liveRate == undefined || that.appAgentForm.liveRate == null){
           that.$modal.msgError("直播分红不能为空!");
           return;
         }
-        if(!that.appAgentForm.dividendGuaranteeRate){
+        if(that.appAgentForm.dividendGuaranteeRate == undefined || that.appAgentForm.dividendGuaranteeRate == null){
           that.$modal.msgError("保底分红不能为空!");
           return;
         }
+        if(that.appAgentForm.dividendGuaranteeRate < 0){
+          that.$modal.msgError("保底分红不能小于0!");
+          return;
+        }
+        if(that.appAgentForm.liveRate < 0){
+          that.$modal.msgError("直播分红不能小于零!");
+          return;
+        }
         const loading = this.$loading({
           lock: true,
           text: '加载中',