瀏覽代碼

修复调整问题

dos 3 月之前
父節點
當前提交
95ebaa37b8
共有 1 個文件被更改,包括 10 次插入2 次删除
  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: '加载中',