diff --git a/sheep/api/product/spu.js b/sheep/api/product/spu.js
new file mode 100644
index 00000000..83766668
--- /dev/null
+++ b/sheep/api/product/spu.js
@@ -0,0 +1,36 @@
+import request from '@/sheep/request';
+
+export default {
+ // 获得商品 SPU 列表
+ getSpuList: (recommendType) => {
+ return request({
+ url: '/app-api/product/spu/list',
+ method: 'GET',
+ params: {recommendType},
+ });
+ },
+ // 获得商品 SPU 列表
+ getSpuListByIds: (ids) => {
+ return request({
+ url: '/app-api/product/spu/list-by-ids',
+ method: 'GET',
+ params: {ids},
+ });
+ },
+ // 获得商品 SPU 分页
+ getSpuPage: (data) => {
+ return request({
+ url: '/app-api/product/spu/page',
+ method: 'GET',
+ data
+ });
+ },
+ // 查询商品
+ getSpuDetail: (id) => {
+ return request({
+ url: '/app-api/product/spu/get-detail',
+ method: 'GET',
+ params: { id },
+ });
+ }
+};
diff --git a/sheep/components/s-block-item/s-block-item.vue b/sheep/components/s-block-item/s-block-item.vue
index e4e4f0b0..e0be2c48 100644
--- a/sheep/components/s-block-item/s-block-item.vue
+++ b/sheep/components/s-block-item/s-block-item.vue
@@ -29,7 +29,7 @@
-
+
diff --git a/sheep/components/s-goods-card/s-goods-card.vue b/sheep/components/s-goods-card/s-goods-card.vue
index 8aeba1f1..91441647 100644
--- a/sheep/components/s-goods-card/s-goods-card.vue
+++ b/sheep/components/s-goods-card/s-goods-card.vue
@@ -1,8 +1,8 @@
-
-
+
+
+
-
+
@@ -45,20 +46,21 @@
+
@@ -74,20 +76,21 @@
+
@@ -95,8 +98,8 @@
-
-
+
+
+
@@ -128,11 +132,21 @@
diff --git a/sheep/components/s-goods-column/s-goods-column.vue b/sheep/components/s-goods-column/s-goods-column.vue
index 31559cb2..8cf57c76 100644
--- a/sheep/components/s-goods-column/s-goods-column.vue
+++ b/sheep/components/s-goods-column/s-goods-column.vue
@@ -21,7 +21,7 @@
class="xs-goods-title ss-line-1"
:style="[{ color: titleColor, width: titleWidth ? titleWidth + 'rpx' : '' }]"
>
- {{ data.title }}
+ {{ data.title || data.name }}
- {{ data.title }}
+ {{ data.title || data.name }}
- {{ data.title||data.name }}
+ {{ data.title || data.name }}
- {{ data.subtitle }}
+ {{ data.subtitle || data.introduction }}
@@ -149,14 +149,14 @@
class="lg-goods-title ss-line-2"
:style="[{ color: titleColor }]"
>
- {{ data.title||data.name }}
+ {{ data.title || data.name }}
- {{ data.subtitle }}
+ {{ data.subtitle || data.introduction }}
@@ -213,14 +213,14 @@
class="sl-goods-title ss-line-1"
:style="[{ color: titleColor }]"
>
- {{ data.title||data.name }}
+ {{ data.title || data.name }}
- {{ data.subtitle }}
+ {{ data.subtitle || data.introduction }}