include vhosts/yohoblkwap.conf;
Merge branch 'master' into release/3.0
Showing
3 changed files
with
14 additions
and
1 deletions
@@ -6,7 +6,8 @@ | @@ -6,7 +6,8 @@ | ||
6 | disabled: color.disabled | 6 | disabled: color.disabled |
7 | }"> | 7 | }"> |
8 | <div class="color-border"> | 8 | <div class="color-border"> |
9 | - <i :style="{ 'background-color': '#' + (color.colorCode || 'ffffff')}" :title="color.colorName"></i> | 9 | + <i v-if="color.colorValue" class="color-image" :style="{ 'background-image': `url(${color.colorValue})`}" :title="color.colorName"></i> |
10 | + <i v-else :style="{ 'background-color': '#' + (color.colorCode || 'ffffff')}" :title="color.colorName"></i> | ||
10 | </div> | 11 | </div> |
11 | <span>{{color.colorName}}</span> | 12 | <span>{{color.colorName}}</span> |
12 | </div> | 13 | </div> |
@@ -124,6 +125,10 @@ export default { | @@ -124,6 +125,10 @@ export default { | ||
124 | overflow: hidden; | 125 | overflow: hidden; |
125 | } | 126 | } |
126 | 127 | ||
128 | + .color-image { | ||
129 | + background-size: cover; | ||
130 | + } | ||
131 | + | ||
127 | i { | 132 | i { |
128 | display: block; | 133 | display: block; |
129 | width: 30px; | 134 | width: 30px; |
@@ -23,6 +23,10 @@ | @@ -23,6 +23,10 @@ | ||
23 | <input-safe v-model="product.phrase" :maxlength="12" placeholder="最多12个字符" style="width: 400px;"/> | 23 | <input-safe v-model="product.phrase" :maxlength="12" placeholder="最多12个字符" style="width: 400px;"/> |
24 | </Form-item> | 24 | </Form-item> |
25 | 25 | ||
26 | + <!-- <Form-item label="推荐短语"> | ||
27 | + <input-safe v-model="product.recommendPhrase" type="textarea" :maxlength="500" placeholder="最多500个字符" style="width: 400px;"/> | ||
28 | + </Form-item> --> | ||
29 | + | ||
26 | <Form-item label="商家商品编码" prop="factoryCode"> | 30 | <Form-item label="商家商品编码" prop="factoryCode"> |
27 | <input-safe v-model="product.factoryCode" placeholder="请输入..." style="width: 400px;"/> | 31 | <input-safe v-model="product.factoryCode" placeholder="请输入..." style="width: 400px;"/> |
28 | </Form-item> | 32 | </Form-item> |
@@ -19,6 +19,9 @@ | @@ -19,6 +19,9 @@ | ||
19 | <Form-item label="商品卖点"> | 19 | <Form-item label="商品卖点"> |
20 | <input-safe v-model="product.phrase" :maxlength="12" placeholder="最多12个字符"/> | 20 | <input-safe v-model="product.phrase" :maxlength="12" placeholder="最多12个字符"/> |
21 | </Form-item> | 21 | </Form-item> |
22 | + <!-- <Form-item label="推荐短语"> | ||
23 | + <input-safe v-model="product.recommendPhrase" type="textarea" :maxlength="500" placeholder="最多500个字符" style="width: 400px;"/> | ||
24 | + </Form-item> --> | ||
22 | <Form-item label="商家商品编码" prop="factoryCode"> | 25 | <Form-item label="商家商品编码" prop="factoryCode"> |
23 | <input-safe v-model="product.factoryCode" placeholder="请输入..." /> | 26 | <input-safe v-model="product.factoryCode" placeholder="请输入..." /> |
24 | </Form-item> | 27 | </Form-item> |
@@ -476,6 +479,7 @@ export default { | @@ -476,6 +479,7 @@ export default { | ||
476 | newProduct.factoryCode = this.product.factoryCode; | 479 | newProduct.factoryCode = this.product.factoryCode; |
477 | newProduct.goodsYears = this.product.goodsYears; | 480 | newProduct.goodsYears = this.product.goodsYears; |
478 | newProduct.phrase = this.product.phrase; | 481 | newProduct.phrase = this.product.phrase; |
482 | + newProduct.recommendPhrase = this.product.recommendPhrase; | ||
479 | newProduct.goodsSeason = this.product.goodsSeason; | 483 | newProduct.goodsSeason = this.product.goodsSeason; |
480 | newProduct.ageLevel = this.product.ageLevel; | 484 | newProduct.ageLevel = this.product.ageLevel; |
481 | newProduct.seasons = this.product.seasons; | 485 | newProduct.seasons = this.product.seasons; |
-
Please register or login to post a comment