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

免费生图次数判断修改

yanym 2 hete
szülő
commit
69325782b5
2 módosított fájl, 3 hozzáadás és 6 törlés
  1. 1 4
      src/views/AIDesign/design.vue
  2. 2 2
      src/views/AIDesign/result.vue

+ 1 - 4
src/views/AIDesign/design.vue

@@ -1098,10 +1098,7 @@ export default class extends Vue {
           if (that.checkedProject == null) {
               that.$toast.fail('请选择关联项目');
               return;
-          }else if (that.checkedProject != null && that.checkedProject.DesignCount > 5){
-              that.projectActionNumShow = true;
-              return;
-          }else if (that.checkedProject != null && that.freetimes <= 0){
+          }else if (that.checkedProject != null && that.checkedProject.AvailableQuantity <= 0){
               const formData = new FormData();
               formData.append('serviceCode', that.fwsCode);
               GetPoints(formData).then(response => {

+ 2 - 2
src/views/AIDesign/result.vue

@@ -376,7 +376,7 @@ export default class extends Vue {
           // 外墙-服务商随身邦
           if (this.agentFrom === 'stoneLikePaint' && this.wallType === 'outside') {
             if (that.isNeedProjectFlag) {
-              if (DesignCount >= 3) {
+              if (DesignCount >= 6) {
                 that.projectDisableFlag = false;//有项目判断>=3出现
               }
             } else {
@@ -435,7 +435,7 @@ export default class extends Vue {
           // 外墙-服务商随身邦
           if (this.agentFrom === 'stoneLikePaint' && this.wallType === 'outside') {
             if (that.isNeedProjectFlag) {
-              if (DesignCount >= 3) {
+              if (DesignCount >= 6) {
                 that.projectDisableFlag = false;//有项目判断>=3出现
               }
             } else {