diff --git a/buyer/docker.sh b/buyer/docker.sh index e5bdb92f..eb7d259c 100644 --- a/buyer/docker.sh +++ b/buyer/docker.sh @@ -1 +1 @@ -docker build -t registry.cn-beijing.aliyuncs.com/lili-images/buyer-ui-1.0.1:0.0.4 . +docker build -t registry.cn-beijing.aliyuncs.com/lili-images/buyer-ui-4.2.0:0.0.2 . diff --git a/buyer/src/App.vue b/buyer/src/App.vue index 56da9df3..71dbc4bc 100644 --- a/buyer/src/App.vue +++ b/buyer/src/App.vue @@ -31,7 +31,6 @@ export default { diff --git a/buyer/src/assets/images/decorate.png b/buyer/src/assets/images/decorate.png new file mode 100644 index 00000000..7701d18a Binary files /dev/null and b/buyer/src/assets/images/decorate.png differ diff --git a/buyer/src/components/goodsDetail/ShowGoods.vue b/buyer/src/components/goodsDetail/ShowGoods.vue index 32536da6..4419ac19 100644 --- a/buyer/src/components/goodsDetail/ShowGoods.vue +++ b/buyer/src/components/goodsDetail/ShowGoods.vue @@ -84,14 +84,14 @@ -
+

{{ sku.name }}

-
-
+

{{ item.value }}

@@ -111,7 +111,7 @@ 库存{{skuDetail.quantity}}
-
+

重量

@@ -151,7 +151,7 @@ export default { count: 1, // 商品数量 imgIndex: 0, // 展示图片下标 currentSelceted: [], // 当前商品sku - imgList: this.detail.data.specList[0].specImage || [], // 商品图片列表 + imgList: this.detail.data.specList[0].specImage || [{}], // 商品图片列表 skuDetail: this.detail.data, // sku详情 goodsSpecList: this.detail.specs, // 商品spec promotionMap: { // 活动状态 @@ -170,14 +170,14 @@ export default { Promotion }, methods: { - select (index, id, valueId) { // 选择规格 - this.$set(this.currentSelceted, index, valueId); + select (index, value) { // 选择规格 + this.$set(this.currentSelceted, index, value); let selectedSkuId = this.goodsSpecList.find((i) => { let matched = true; let specValues = i.specValues.filter((j) => j.specName !== 'images'); for (let n = 0; n < specValues.length; n++) { - if (specValues[n].specValueId !== this.currentSelceted[n]) { + if (specValues[n].specValue !== this.currentSelceted[n]) { matched = false; return; } @@ -267,15 +267,12 @@ export default { }, formatSku (list) { // 格式化数据 - let arr = [{}]; list.forEach((item, index) => { item.specValues.forEach((spec, specIndex) => { - let id = spec.specNameId; let name = spec.specName; let values = { - id: spec.specValueId, value: spec.specValue, quantity: item.quantity }; @@ -287,7 +284,7 @@ export default { if ( arrItem.name === name && arrItem.values && - !arrItem.values.find((i) => i.id === values.id) + !arrItem.values.find((i) => i.value === values.value) ) { arrItem.values.push(values); } @@ -297,7 +294,6 @@ export default { }); if (!keys.includes(name)) { arr.push({ - id: id, name: name, values: [values] }); @@ -312,7 +308,7 @@ export default { if (cur) { cur.specValues.filter((i) => i.specName !== 'images') .forEach((value, _index) => { - this.currentSelceted[_index] = value.specValueId; + this.currentSelceted[_index] = value.specValue; }); } this.skuList = list; diff --git a/buyer/src/components/goodsDetail/ShowGoodsDetail.vue b/buyer/src/components/goodsDetail/ShowGoodsDetail.vue index d58f5a6e..ab2ca565 100644 --- a/buyer/src/components/goodsDetail/ShowGoodsDetail.vue +++ b/buyer/src/components/goodsDetail/ShowGoodsDetail.vue @@ -87,12 +87,17 @@
- - - - -
{{param.paramName}}{{param.paramValue}}
- + +
暂无商品参数
@@ -131,7 +136,7 @@ export default { } }, methods: { - changeHeight (name) { // 设置商品详情高度 + changeHeight (name) { // 设置商品详情高度 let heightCss = window.getComputedStyle(this.$refs[name]).height; heightCss = parseInt(heightCss.substr(0, heightCss.length - 2)) + 89; this.$refs.itemIntroDetail.style.height = heightCss + 'px'; @@ -484,17 +489,28 @@ export default { color: $theme_color; } table{ - border-color: #eee; + border-color:#efefef; color: #999; - width: 70%; + min-width: 30%; margin-left: 10px; + font-size: 12px; tr{ td:nth-child(1){ - width: 200px; + min-width: 70px; + } + td:nth-child(2){ + padding-left: 10px; } } td{ - padding: 5px; + padding: 6px; } } +.goods-params { + display: flex; + align-items: center; + border-bottom: 1px solid #eee; + margin-left: 30px; + span{color:#999} +} diff --git a/buyer/src/components/indexDecorate/modelForm.vue b/buyer/src/components/indexDecorate/modelForm.vue index 192f93f8..9b1c4dc1 100644 --- a/buyer/src/components/indexDecorate/modelForm.vue +++ b/buyer/src/components/indexDecorate/modelForm.vue @@ -27,7 +27,7 @@ export default { .model-content { width: 1200px; margin: 0 auto; - background: #fff; + // background: #fff; min-height: 1200px; } diff --git a/buyer/src/components/indexDecorate/modelFormItem.vue b/buyer/src/components/indexDecorate/modelFormItem.vue index 0d76d6fa..e43149e4 100644 --- a/buyer/src/components/indexDecorate/modelFormItem.vue +++ b/buyer/src/components/indexDecorate/modelFormItem.vue @@ -2,11 +2,11 @@
+
@@ -74,10 +77,13 @@
商家回复:
{{ infoData.reply }}
-
+
- + +
diff --git a/manager/src/views/lili-dialog/template/pages.vue b/manager/src/views/lili-dialog/template/pages.vue index 8a151a3f..659b83cf 100644 --- a/manager/src/views/lili-dialog/template/pages.vue +++ b/manager/src/views/lili-dialog/template/pages.vue @@ -1,10 +1,11 @@