diff --git a/libs/api/index.js b/libs/api/index.js index 6e67490..6f2538f 100644 --- a/libs/api/index.js +++ b/libs/api/index.js @@ -398,7 +398,7 @@ export function getMenuProductsApi(params = {}) { */ export function newMenusToCartApi(data = {}) { return request({ - errorMessage: "添加菜谱到购物车", + errorMessage: "菜谱", method: "POST", data, header: { @@ -407,3 +407,41 @@ export function newMenusToCartApi(data = {}) { url: "/setmeal/addCaiPu.do", }); } + +// // +// module.exports.getJoinEnterprise = function (postData, success) { +// request('/company/searchCompanyInfo.do', 'GET', postData, success) +// } + +/** + * 获取加入企业列表 + * @param {*} params + */ +export function getJoinEnterpriseApi(params = {}) { + return request({ + errorMessage: "企业列表", + method: "GET", + params, + url: "/company/searchCompanyInfo.do", + }); +} + +// //走进菜大王列表数据 +// module.exports.getNewsList = function (postData, success) { +// request('/webAboutUs/getList.do', 'get', postData, success) +// } + +/** + * 获取走进菜大王列表 + */ +export function getNewsListApi(params = {}) { + return request({ + errorMessage: "菜大王列表", + method: "GET", + params, + url: "/webAboutUs/getList.do", + }); +} +// odule.exports.addCart = function (postData, success) { +// request('/cart/add.do', 'POST', postData, success); +// }; diff --git a/pages/home/announcement.vue b/pages/home/announcement.vue new file mode 100644 index 0000000..3a1ba5c --- /dev/null +++ b/pages/home/announcement.vue @@ -0,0 +1,52 @@ + + + + + diff --git a/pages/home/enterKing/enterKing.scss b/pages/home/enterKing/enterKing.scss new file mode 100644 index 0000000..51c1147 --- /dev/null +++ b/pages/home/enterKing/enterKing.scss @@ -0,0 +1,81 @@ +.grid-item{ + width: 33.33333333333%; + /* height: 63.5vw; */ + height: calc(100% /3); + float: left; + margin-bottom: 10rpx; +} + +.grid-item .box{ + position: relative; +} + +.grid-item .text-box{ + position: absolute; + left: 0; + right: 0; + bottom: 0; + width: 100%; + background-image: linear-gradient(#00000000, rgba(0, 0, 0, 0.842), rgba(0, 0, 0, 0.842)); + padding: 30rpx 10rpx 20rpx 10rpx; + box-sizing: border-box; +} + +.grid-item .text-box .text{ + font-size: 26rpx; + color: #fff; + text-align: center; +} + +.play_btn{ + position:absolute; + top: 50%; + margin-top: -20px; + left: 50%; + margin-left: -20px; + width: 40px; + height: 40px; +} +.play_btn image{ + width: 100%; + height: 100%; +} + +.title{ + /* background: #fff; */ + padding: 30rpx 15rpx; + /* background: #f1f1f1; */ + font-size: 40rpx; + color: #151515; + /* margin-bottom: 30rpx; */ + display: flex; + align-items: center; + /* border-bottom: 1px solid #f1f1f1; */ +} + +.title image{ + width: 50rpx; + height: 30rpx; + margin-right: 20rpx; +} + +.title text{ + position: relative; + padding-left: 20rpx; +} + +.title text::after{ + content: ""; + position: absolute; + top: 50%; + left: 0%; + width: 6rpx; + height: 50%; + border-radius: 14rpx; + background-color: #05B359; + transform: translateY(-50%); +} + +page{ + /* background: #f5f5f5; */ +} diff --git a/pages/home/enterKing/enterKing.vue b/pages/home/enterKing/enterKing.vue new file mode 100644 index 0000000..87867f8 --- /dev/null +++ b/pages/home/enterKing/enterKing.vue @@ -0,0 +1,160 @@ + + + + + diff --git a/pages/home/enterKing/enterKingInfo.scss b/pages/home/enterKing/enterKingInfo.scss new file mode 100644 index 0000000..c8ded51 --- /dev/null +++ b/pages/home/enterKing/enterKingInfo.scss @@ -0,0 +1,9 @@ +#video_box{ + width: 100%; + height: 100%; +} + +video{ + width: 100%; + height: 100%; +} \ No newline at end of file diff --git a/pages/home/enterKing/enterKingInfo.vue b/pages/home/enterKing/enterKingInfo.vue new file mode 100644 index 0000000..4237f73 --- /dev/null +++ b/pages/home/enterKing/enterKingInfo.vue @@ -0,0 +1,115 @@ + + + + + diff --git a/static/enterVegetableKingInfo/video.png b/static/enterVegetableKingInfo/video.png new file mode 100644 index 0000000..d885a3a Binary files /dev/null and b/static/enterVegetableKingInfo/video.png differ