瀏覽代碼

1、装修

huangmp 2 年之前
父節點
當前提交
0b997787e2
共有 1 個文件被更改,包括 29 次插入2 次删除
  1. 29 2
      src/views/modules/shop/feature/create/edit/components/goods/index.vue

+ 29 - 2
src/views/modules/shop/feature/create/edit/components/goods/index.vue

@@ -121,13 +121,36 @@ export default {
   props: {},
   data () {
     return {
+      dragIndex: '',
+      enterIndex: '',
+      resourcesUrl: process.env.VUE_APP_RESOURCES_URL,
       commonCheckFieldRules: 'checkData', // 当前组件默认的规则判断函数
       dialogChooseGoods: false,
       isGetChooseData: false, // 是否该是获取选择的数据
+      iconList: [{
+        value: 'el-icon-circle-plus-outline',
+        label: '1'
+      }, {
+        value: 'el-icon-goods',
+        label: '2'
+      }, {
+        value: 'el-icon-s-goods',
+        label: '3'
+      }],
       formData: {
         size: 2, // 一行多少个
-        showContent: [1, 2, 3],
-        goods: []
+        showContent: [1, 2, 3, 4],
+        button_type: '1',
+        goods: [],
+        button_img_width: 54,
+        button_img_height: 24,
+        button_imgsrc: undefined,//购买按钮背景图
+        buy_btn_type: 1, // 购买按钮的样式
+        button_text: '马上抢',// 购买按钮的文本
+        icon_class: 'el-icon-s-goods', //购买按钮的icon
+        button_font_size: 10,// 购买按钮的字体大小
+        button_border_radius: 0, //购买按钮边框弧度
+        button_back_color: '#ffffff' //购买按钮背景颜色
         // buy_btn_type: 1, // 购买按钮的样式
         // button_text: '马上抢'// 购买按钮的文本
       },
@@ -144,6 +167,10 @@ export default {
         {
           value: 3,
           label: this.$i18n.t('shopFeature.goods.prodPrice')
+        },
+        {
+          value: 4,
+          label: '按钮'
         }],
       // 一行几个
       lineSize: [