浏览代码

理疗红包配置

wjj 1 周之前
父节点
当前提交
673947b7da
共有 1 个文件被更改,包括 31 次插入0 次删除
  1. 31 0
      src/views/system/config/config.vue

+ 31 - 0
src/views/system/config/config.vue

@@ -2552,6 +2552,23 @@
         </div>
       </el-tab-pane>
 
+      <!-- 理疗红包配置 -->
+      <el-tab-pane label="理疗红包配置" name="projectRedPacket.config">
+        <el-form ref="form32" :model="form32" :rules="rules32" label-width="200px">
+          <el-form-item label="每天可领取红包次数" prop="redPacketNum">
+            <el-input-number v-model="form32.redPacketNum" :min="1" />
+          </el-form-item>
+          <el-form-item label="红包金额" prop="amount">
+            <el-input-number v-model="form32.amount" :precision="1" :step="1" :min="0.1" :max="5" />
+          </el-form-item>
+          
+        </el-form>
+
+        <div class="footer">
+          <el-button type="primary" @click="submitForm32">提 交</el-button>
+        </div>
+      </el-tab-pane>
+
     </el-tabs>
 
 
@@ -2738,6 +2755,7 @@ export default {
         isSalesProxyFill: false  // 是否开启销售代填,默认关闭
       },
       form31: {},
+      form32: {},
       storeProductScrmColumns:[],
       storeScrmColumns: [],
       photoArr: [],
@@ -2801,6 +2819,7 @@ export default {
         ]
       },
       rules31: {},
+      rules32: {},
     }
   },
   created() {
@@ -3316,6 +3335,10 @@ export default {
           console.log("----------"+response.data.configValue)
           this.form31 = JSON.parse(response.data.configValue)
         }
+        if (key == 'projectRedPacket.config') {
+          console.log("----------"+response.data.configValue)
+          this.form32 = JSON.parse(response.data.configValue)
+        }
       })
     },
     /** 提交按钮 */
@@ -3639,6 +3662,14 @@ export default {
         }
       });
     },
+    submitForm32() {
+      var param={configId:this.configId,configValue:JSON.stringify(this.form32)}
+      updateConfigByKey(param).then(response => {
+        if (response.code === 200) {
+          this.msgSuccess("修改成功");
+        }
+      });
+    },
     submitform2() {
       // 将对象转换为JSON字符串并保留两位小数
       var json_data = JSON.stringify(this.form2, function(key, value) {