diff --git a/api/home.js b/api/home.js
new file mode 100644
index 0000000..c9f0ea3
--- /dev/null
+++ b/api/home.js
@@ -0,0 +1,23 @@
+import request from '@/utils/request'
+
+
+export function getIndexData(q){
+ return request.get('index', q, {login: false})
+}
+
+
+/*
+ * 文章列表
+ * */
+export function getArticle(q) {
+ return request.get("/article/list", q, {
+ login: false
+ });
+}
+
+/*
+ * 文章详情
+ * */
+export function getArticleDetail(q) {
+ return request.get("/article/details/" + q.id);
+}
\ No newline at end of file
diff --git a/api/store.js b/api/store.js
index e91880e..dce9e26 100644
--- a/api/store.js
+++ b/api/store.js
@@ -136,6 +136,20 @@ export function getCartNum() {
return request.get("/cart/count");
}
+
+
+
+// 最新活动
+export function getActivity(data) {
+ return request.get("/life/index", data, {
+ login: true
+ });
+}
+
+
+
+
+
/*
* 添加收藏
* */
@@ -267,22 +281,3 @@ export function storeListApi(data) {
});
}
-
-
-/*
- * 文章列表
- * */
-export function getArticle(q) {
- return request.get("/article/list", q, {
- login: false
- });
-}
-
-/*
- * 文章详情
- * */
-export function getArticleDetail(q) {
- return request.get("/article/details/" + q.id,{
- login: false
- });
-}
\ No newline at end of file
diff --git a/components/quick-skeleton/quick-skeleton.vue b/components/quick-skeleton/quick-skeleton.vue
new file mode 100644
index 0000000..a6e413f
--- /dev/null
+++ b/components/quick-skeleton/quick-skeleton.vue
@@ -0,0 +1,169 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/components/vSwiper.vue b/components/vSwiper.vue
index a350292..f126083 100644
--- a/components/vSwiper.vue
+++ b/components/vSwiper.vue
@@ -1,15 +1,18 @@
-
+
- 标题标题标题标题标题
+ {{item.title}}
- 云快讯
- 3小时钱
- 300阅读
+ {{item.author}}
+ {{item.createTime}}
+
+ {{item.visit}}
+
+
@@ -21,7 +24,7 @@
-
-
+
+
\ No newline at end of file
+
+
+// .category-tab-box{
+// border: 1rpx solid black;
+// width: 100%;
+// height: 108rpx;
+// line-height: 108rpx;
+// padding-left: 30rpx;
+// // margin-bottom: 30rpx;
+// // padding-top: 190rpx;
+// .scroll-view_H{
+// white-space: nowrap;
+// width: 100%;
+// .category-item{
+// display: inline-block;
+// font-size: 28rpx;
+// line-height: 40rpx;
+// color: #999;
+// margin-right: 40rpx;
+// &.category-item-active{
+// color: #FF6D31;
+// font-size: 32rpx;
+// font-weight: 500;
+// position: relative;
+// &::after{
+// content: '';
+// width: 70rpx;
+// height: 8rpx;
+// border-radius: 6rpx;
+// display: block;
+// position: absolute;
+// bottom: -24rpx;
+// left: 0;
+// background: #FF7942;
+// }
+// }
+// }
+// }
+// }
+.headline image{
+ width: 148rpx;
+ height: 52rpx;
+ }
+.warter-box{
+ width: 100%;
+ padding: 24rpx 0 190rpx 24rpx;
+ .u-waterfall {
+ width: 100%;
+ display: flex;
+ justify-content: space-between;
+ .u-column {
+
+ .warter {
+ width: 336rpx !important;
+ border-radius: 10rpx;
+ background-color: #ffffff;
+ position: relative;
+ overflow: hidden;
+ box-shadow: 0px 6rpx 12rpx rgba(0, 0, 0, 0.06);
+ margin-bottom: 20rpx;
+ image{
+ width: 100%;
+ display: block;
+ }
+ .goodsinfo-box{
+ width: 100%;
+ padding: 12rpx 16rpx;
+ .title{
+ font-size: 28rpx;
+ font-weight: 500;
+ color: #1D1D1D;
+ width: 100%;
+ height: 80rpx;
+ }
+ .price{
+ font-size: 28rpx;
+ font-weight: bold;
+ line-height: 40rpx;
+ color: #FF7942;
+ }
+ .old-price{
+ font-size: 20rpx;
+ line-height: 28rpx;
+ color: #BFBFBF;
+ text-decoration: line-through;
+ }
+ }
+ }
+ }
+ }
+}
+.banner-img-box{
+ width: 100%;
+ padding: 220rpx 40rpx 32rpx;
+ .img-box-l{
+ width: 324rpx;
+ height: 400rpx;
+ image{
+ width: 100%;
+ height: 100%;
+ }
+ }
+ .img-box-r{
+ width: 324rpx;
+ height: 400rpx;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+ align-items: ;
+ image{
+ width: 324rpx;
+ height: 190rpx;
+ }
+ }
+}
+.goods-list-box{
+ width: 100%;
+ padding: 0 30rpx;
+ .goods-list-item{
+ width: 100%;
+ .goods-type-box{
+ image{
+ width: 94rpx;
+ height: 94rpx;
+ }
+ .t-word{
+ font-size: 36rpx;
+ color: #222;
+ font-weight: 600;
+ }
+ }
+ .goods-list{
+ width: 100%;
+ .goods-item{
+ width: 335rpx;
+ background: #fff;
+ margin-right: 10rpx;
+ margin-bottom: 30rpx;
+ border-radius: 10rpx;
+ overflow: hidden;
+ box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.06);
+ image{
+ width: 100%;
+ height: 278rpx;
+ }
+ }
+ .goods-item:nth-child(2n){
+ margin-right: 0;
+ }
+ .goods-desc-box{
+ width: 100%;
+ padding: 16rpx;
+ font-size: 24rpx;
+ .goods-name{
+ line-height: 34rpx;
+ }
+ .price{
+ font-size: 28rpx;
+ color: #E5270F;
+ line-height: 40rpx;
+ margin-bottom: 26rpx;
+ }
+ }
+ }
+ }
+}
+
diff --git a/pages/home/index2.vue b/pages/home/index2.vue
new file mode 100644
index 0000000..a185626
--- /dev/null
+++ b/pages/home/index2.vue
@@ -0,0 +1,759 @@
+
+
+
+
+
+
+
+
+
+
+
+ 热门活动
+ 热
+
+
+
+
+
+
+
+
+ {{flag}}
+
+
+
+
+ {{item.address}}
+
+
+
+ {{item.activityStartTime}}
+
+
+
+
+
+
+
+
+
+
+
+ 最新供应
+ 需求广场
+
+
+
+
+
+ {{item.title}}
+ {{item.cname}}
+ {{item.detailedDescription}}
+ 了解详情
+
+
+
+
+ {{item.enterpriseDto.enterpriseName}}
+ {{item.enterpriseDto.enterpriseTitle}}
+
+
+ {{item.cname}}
+
+
+
+
+
+ 进入企业
+
+
+
+
+
+
+
+ {{item.title}}
+ {{item.detailedDescription}}
+
+ {{item.enterpriseDto.cname}}
+
+
+ {{item.capital}}
+
+
+
+
+
+ 更多内容去供需大厅
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/life/articleDetail/index.vue b/pages/life/articleDetail/index.vue
index e5f5a83..094cbac 100644
--- a/pages/life/articleDetail/index.vue
+++ b/pages/life/articleDetail/index.vue
@@ -23,7 +23,7 @@