Kaynağa Gözat

优惠码改为激活码

natasha 2 yıl önce
ebeveyn
işleme
cd132bbb3b

+ 23 - 15
src/components/pyment/Confirmorder.vue

@@ -15,7 +15,7 @@
         <p class="p3">{{ data.author }}</p>
       </div>
       <div class="price">
-        <p>¥<span v-html="changePrice(data.price,16 )"></span></p>
+        <p>¥<span v-html="changePrice(data.price, 16)"></span></p>
       </div>
     </div>
     <div class="promotionCode">
@@ -37,7 +37,7 @@
         <!-- 确定 -->
         {{ $t("Key94") }}</span
       >
-       <template v-else>
+      <template v-else>
         <span class="sp2" v-if="discount_code_status == 1"
           >-<span v-html="changePrice(discount_money, 16)"></span
         ></span>
@@ -51,21 +51,27 @@
           {{ $t("Key53") }}:</span
         >
 
-        <span class="co-value">¥<span v-html="changePrice(data.price,16)"></span></span>
+        <span class="co-value"
+          >¥<span v-html="changePrice(data.price, 16)"></span
+        ></span>
       </p>
       <p class="p2">
         <span>
           <!-- 优惠折扣 -->
           {{ $t("Key54") }}:</span
         >
-        <span class="co-value">-¥<span v-html="changePrice(discount_money,16)"></span></span>
+        <span class="co-value"
+          >-¥<span v-html="changePrice(discount_money, 16)"></span
+        ></span>
       </p>
       <p class="p3">
         <span>
           <!-- 应付  -->
           {{ $t("Key55") }}:</span
         >
-        <span class="co-value">¥<span v-html="changePrice(receivables_money,24)"></span></span>
+        <span class="co-value"
+          >¥<span v-html="changePrice(receivables_money, 24)"></span
+        ></span>
       </p>
     </div>
     <div class="submitBtn">
@@ -85,7 +91,7 @@ export default {
   //import引入的组件需要注入到对象中才能使用
   components: {},
   props: ["data", "changeOrderNumber", "goods_type"],
-  
+
   data() {
     //这里存放数据
     return {
@@ -93,7 +99,7 @@ export default {
       discount_money: 0, // 优惠金额
       receivables_money: this.data.price, // 应收款
       back_discount_code: "", //优惠码
-      discount_code_status:0,
+      discount_code_status: 0,
       loading: false,
       codeloading: false,
       isShow: true,
@@ -170,10 +176,12 @@ export default {
         this.codeloading = false;
         this.discount_code_status = res.discount_code_status;
         if (this.discount_code_status != 1 && this.discount_code_status != 2) {
-          this.$message.warning("优惠码无效");
+          //   this.$message.warning("优惠码无效");
+          this.$message.warning(this.$t("Key696"));
         } else {
           if (this.discount_code_status == 2) {
-            this.$message.warning("优惠码已被使用");
+            // this.$message.warning("优惠码已被使用");
+            this.$message.warning(this.$t("Key697"));
           } else {
             this.isShow = false;
             this.back_discount_code = res.discount_code;
@@ -270,8 +278,8 @@ export default {
       }
     }
     .price {
-      flex:1;
-      box-sizing:border-box;
+      flex: 1;
+      box-sizing: border-box;
       padding-right: 16px;
       p {
         margin-top: 22px;
@@ -279,7 +287,7 @@ export default {
         font-size: 16px;
         text-align: right;
         color: #ff4c00;
-        line-height:150%;
+        line-height: 150%;
       }
     }
   }
@@ -347,11 +355,11 @@ export default {
   .submitBtn {
     text-align: right;
     margin-top: 16px;
-    
+
     button {
       min-width: 120px;
       box-sizing: border-box;
-      padding:0 16px;
+      padding: 0 16px;
       height: 40px;
       background: #ff9900;
 
@@ -362,7 +370,7 @@ export default {
       border: none;
       outline: none;
       cursor: pointer;
-      font-size:16px;
+      font-size: 16px;
     }
   }
 }

+ 3 - 1
src/views/TextbookDetail.vue

@@ -294,7 +294,7 @@
     <!-- 商品详情 -->
     <el-dialog
       class="buyWindow"
-      :title="$t('Key52')"
+      title=""
       :visible.sync="NopymentShow"
       width="720px"
       :before-close="closeNoPyment"
@@ -679,6 +679,8 @@ export default {
         "Key575",
         "Key612",
         "Key613",
+        "Key696",
+        "Key697",
         "Key744",
         "Key736",
         "Key737",

+ 2 - 2
src/views/courseList.vue

@@ -145,7 +145,7 @@
                   >教材信息</el-button
                 >
                 <el-button @click="handleDiscount(scope.row)" type="text"
-                  >授权码</el-button
+                  >激活码</el-button
                 >
                 <el-button @click="handleDel(scope.row)" type="text"
                   >删除</el-button
@@ -578,7 +578,7 @@ export default {
       sessionStorage.setItem("Bookdetail", JSON.stringify(row));
       this.$router.push("/courseview?bookId=" + row.id);
     },
-    // 授权
+    // 激活
     handleDiscount(row) {
       this.$router.push("/discountCodeList?bookId=" + row.id);
     },

+ 4 - 4
src/views/discountCodeList.vue

@@ -1,7 +1,7 @@
 <template>
     <div class="discountCodeList">
         <Header/>
-        <Nav navValue="授权码管理"/>
+        <Nav navValue="激活码管理"/>
         <div class="contentInner">
             <div class="search-form">
                 <el-form
@@ -10,7 +10,7 @@
                     style="margin-left: 10px"
                 >
                     <el-form-item>
-                        <el-form-item class="label-input" label="授权码" style="margin-right:30px;">
+                        <el-form-item class="label-input" label="激活码" style="margin-right:30px;">
                             <el-input placeholder="输入生成激活码数量" v-model="discountNumber" type="number" :oninput="numberInput"></el-input>
                         </el-form-item>
                         <el-button @click="onSubmit" size="medium" type="primary" :loading="loading">生成</el-button>
@@ -27,7 +27,7 @@
             </div>
             <div class="table-box">
                 <el-table :data="tableData" style="width: 100%" v-loading="tableloading">
-                    <el-table-column class="table-firstC" label="授权码" prop="discount_code" width="150"></el-table-column>
+                    <el-table-column class="table-firstC" label="激活码" prop="discount_code" width="150"></el-table-column>
                     <el-table-column label="状态" prop="is_used" width="150" :formatter="handleStatus"></el-table-column>
                     <el-table-column label="使用者" prop="consumer_name" width="150"></el-table-column>
                     <el-table-column label="使用时间" prop="use_time" width="200"></el-table-column>
@@ -162,7 +162,7 @@ export default {
         },
         // 删除书籍
         handleDel (row) {
-            this.$confirm("确定要删除此授权码吗?", "提示", {
+            this.$confirm("确定要删除此激活码吗?", "提示", {
                 confirmButtonText: "确定",
                 cancelButtonText: "取消",
                 type: "warning",