Browse Source

feat: quick quote 显示控制.

peter 5 months ago
parent
commit
4b55ad32ae
2 changed files with 10 additions and 0 deletions
  1. 1 0
      src/views/shop/shop-manage/site/au.vue
  2. 9 0
      src/views/shop/shop-manage/site/edit.vue

+ 1 - 0
src/views/shop/shop-manage/site/au.vue

@@ -243,6 +243,7 @@ export default {
         terms: '',
         theme_color: '',
         font_color: '',
+        hide_prices: 0,
       }
       // }
     },

+ 9 - 0
src/views/shop/shop-manage/site/edit.vue

@@ -33,6 +33,12 @@
       <el-form-item label="字体色">
         <el-color-picker v-model="formData.font_color"></el-color-picker>
       </el-form-item>
+      <el-form-item label="隐藏价格">
+        <el-radio-group v-model="formData.hide_prices">
+          <el-radio :label="0">显示</el-radio>
+          <el-radio :label="1">隐藏</el-radio>
+        </el-radio-group>
+      </el-form-item>
       <el-form-item>
         <template #label>
           <span style="color: #f56c6c">*</span>&nbsp;网址
@@ -277,6 +283,9 @@ export default {
       if (!temp.font_color) {
         temp.font_color = '#222'
       }
+      if (typeof temp.hide_prices !== 'number') {
+        temp.hide_prices = 0
+      }
       this.formData = temp
       this.loading = false
     },