Selaa lähdekoodia

优惠券-支付成功后领取位 添加领取条件

Joe 3 vuotta sitten
vanhempi
commit
2084977013
2 muutettua tiedostoa jossa 8 lisäystä ja 9 poistoa
  1. 2 2
      .env.development
  2. 6 7
      src/views/coupon/Coupon_CreateIssue.vue

+ 2 - 2
.env.development

@@ -2,8 +2,8 @@
 ENV = 'development'
 
 # 智慧易加管理系统/开发环境
-#VUE_APP_BASE_API = 'http://test.huijy.net/prod-api'
- VUE_APP_BASE_API = '/dev-api'
+VUE_APP_BASE_API = 'http://test.huijy.net/prod-api'
+#VUE_APP_BASE_API = '/dev-api'
 
 # 路由懒加载
 VUE_CLI_BABEL_TRANSPILE_MODULES = true

+ 6 - 7
src/views/coupon/Coupon_CreateIssue.vue

@@ -182,13 +182,12 @@
           <af-table-column label="发放门槛" align="left">
             <template slot-scope="scope">
               {{
-                scope.row.issueType == "1"
-                  ? scope.row.discountThresholdAmt == "0"
-                    ? "无门槛,消费都发放"
-                    : "满" + scope.row.discountThresholdAmt + "元发放"
+                (scope.row.issueType == "1" || scope.row.issueType == "3")
+                  ? (scope.row.discountThresholdAmt == "0" ? "无门槛,消费都发放" : "满") + scope.row.discountThresholdAmt + "元" + (scope.row.issueType == "1" ? "发放": "") + (scope.row.issueType == "3" ? "触发": "")
                   : ""
               }}
-              {{ scope.row.issueType != "1" ? "-------" : "" }}
+              {{ !(scope.row.issueType == "1" || scope.row.issueType == "3") ? "-------" : "" }}
+            
             </template>
           </af-table-column>
           <af-table-column label="领取限制" align="left">
@@ -333,7 +332,7 @@
           <el-form-item
             label="发放门槛"
             prop="discountThresholdAmt"
-            v-if="createForm.issueType == 1"
+            v-if="createForm.issueType == 1 || createForm.issueType == 3"
           >
             消费达到
             <input
@@ -341,7 +340,7 @@
               class="form-control d-inline-block"
               v-model.number="createForm.discountThresholdAmt"
               style="width: 80px"
-            />元时,系统自动发放
+            />元时,{{createForm.issueType == 1 ? "系统自动发放":""}}{{createForm.issueType == 3 ? "触发领取页":""}}
           </el-form-item>
           <el-form-item
             label="可领取时间段"