first commit

This commit is contained in:
编码猿
2024-09-27 02:06:13 +08:00
commit 852d94fbb9
36760 changed files with 3274413 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
export default {
devBaseUrl: 'https://api.ydyd51.com',
testBaseUrl: '',
prodBaseUrl: '',
apiList: {
index: '/index/index', //首页
searchList:'/Goods/searchList', // 搜索列表
x_goodsDetail: '/Goods/detail', // 商品详情
search:'/Goods/search', // 搜索
tell: '/user/tell', //用户手机号码(个人中心)
x_register: '/user/register_App', //注册
login: '/token/login', // 登录
cart:'/cart/getList', // 购物车
activity:'/activity/index', //活动详情
classify:'/Classification/index', //商品分类
}
}

View File

@@ -0,0 +1,77 @@
import config from "../config";
class Http {
get(params) {
uni.showLoading({ title: '请求中..' });
return new Promise((success, error) => {
uni.request({
url: this.CheckBaseUrl() + params.url,
data: params.data,
method: 'GET',
header: Object.assign({
token: uni.getStorageSync('token')
}, params.header),
success: (res) => {
success(this.ResponseCheck(res.data));
},
fail: (err) => {
console.log("6");
console.log(err);
}
});
})
}
post(params) {
uni.showLoading({ title: '请求中..' });
return new Promise((success, error) => {
uni.request({
url: this.CheckBaseUrl() + params.url,
data: params.data,
method: 'POST',
header: Object.assign({
token: uni.getStorageSync('token')
}, params.header),
success: (res) => {
success(this.ResponseCheck(res.data));
},
fail: (err) => {
console.log("6");
console.log(err);
}
});
})
}
ResponseCheck(res) {
uni.hideLoading();
switch (res.code) {
case 200:
return res.data
break;
case 5010:
uni.showToast({
title: res.message,
duration: 2000
});
throw new Error(res.message);
break;
case 40000:
uni.showToast({
title: res.message,
duration: 2000
});
throw new Error(res.message);
break;
}
}
CheckBaseUrl() {
if (process.env.NODE_ENV === 'development') {
return config.devBaseUrl;
} else {
return config.prodBaseUrl;
}
}
}
export default new Http();

View File

@@ -0,0 +1,32 @@
html,
body,
div,
ul,
li,
h1,
h2,
h3,
h4,
h5,
h6,
p,
dl,
dt,
dd,
ol,
form,
input,
textarea,
th,
td,
select {
margin: 0;
padding: 0;
list-style: none;
}
a {
text-decoration: none;
}
.iconfont {
font-size: 0.16rem;
}

View File

@@ -0,0 +1,12 @@
html, body, div, ul, li, h1, h2, h3, h4, h5, h6, p, dl, dt, dd, ol, form, input, textarea, th, td, select {
margin: 0;
padding: 0;
list-style: none;
}
a {
text-decoration: none;
}
.iconfont {
font-size: .16rem;
}

View File

@@ -0,0 +1,50 @@
.class{
header {
height: 150rpx;
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 99;
background: linear-gradient(right ,#6b68dd,#1286ca);
display: flex;
padding-bottom: 34rpx;
align-items: center;
box-sizing: border-box;
div{
font-size: 16px;
margin-top: 46px;
color: #fff;
width: 100%;
text-align: center;
}
}
.content {
margin-top:75px ;
font-size: 13px;
span{
display: inline-block;
padding: 15px 0 13px 3px;
font-weight: bold;
}
.list{
ul{
margin-left: 8px;
display: flex;
flex-wrap: wrap;
li{
height: 52px;
line-height: 52px;
margin-left:-1px ;
text-align: center;
width: 32%;
color: #343a40;
border: 1px solid #f2f2f2;
}
}
}
}
}

View File

@@ -0,0 +1,187 @@
page {
background-color: #f2f2f2;
}
.con {
margin: 0 10rpx;
}
.floot {
height: 200rpx;
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 99;
background: linear-gradient(right, #1286ca, #6b68dd);
display: flex;
align-items: flex-end;
justify-content: flex-end;
padding-bottom: 34rpx;
box-sizing: border-box;
}
.floot .inputs {
height: 56rpx;
display: flex;
align-items: center;
width: 75%;
background-color: #fff;
border-radius: 50rpx;
}
.floot .inputs img {
width: 26rpx;
height: 26rpx;
padding-left: 40rpx;
}
.floot .inputs p {
padding-left: 10rpx;
font-size: 28rpx;
}
.floot .rightimg {
height: 42rpx;
margin: 0 40rpx;
}
.swiper {
margin-top: 210rpx;
height: 386rpx;
}
.swiper .swiper-item img {
width: 100%;
height: 386rpx;
}
.palaceGrid {
margin-top: 20rpx;
background-color: #fff;
border-radius: 20rpx;
width: 100%;
height: 200rpx;
display: flex;
align-items: center;
justify-content: space-around;
}
.palaceGrid view {
display: flex;
flex-direction: column;
align-items: center;
}
.palaceGrid view img {
width: 88rpx;
height: 88rpx;
}
.palaceGrid view p {
margin-top: 10rpx;
font-size: 26rpx;
}
.notice {
background-color: #fff;
border-radius: 20rpx;
height: 50rpx;
margin-top: 20rpx;
position: relative;
}
.notice .noticeImg {
margin-left: 10rpx;
width: 24rpx;
position: absolute;
top: 15rpx;
background-color: #fff;
}
.notice .swp {
line-height: 50rpx;
position: absolute;
margin-left: 50rpx;
color: #40b2ff;
font-size: 30rpx;
}
.prerog {
margin-top: 30rpx;
width: 100%;
}
.faddish {
margin-top: 40rpx;
display: flex;
align-items: center;
color: red;
}
.faddish img {
height: 30rpx;
}
.faddish p {
margin-left: 10rpx;
}
.scroll {
width: 100%;
overflow: hidden;
white-space: nowrap;
}
.box {
margin-right: 20rpx;
margin-top: 30rpx;
box-sizing: border-box;
display: inline-block;
width: 322rpx;
height: 438rpx;
background-color: #fff;
border-radius: 20rpx;
padding-left: 20rpx;
}
.box img {
padding-right: 20rpx;
margin: 30rpx auto;
display: block;
width: 280rpx;
height: 174rpx;
}
.box .info {
display: flex;
align-items: center;
font-size: 20rpx;
width: 95%;
}
.box .info .ling {
width: 30rpx;
height: 30rpx;
text-align: center;
line-height: 30rpx;
border-radius: 6rpx;
margin-right: 16rpx;
color: #fff;
background: linear-gradient(top, #86fead, #3ad423);
}
.box .info .hot {
width: 30rpx;
height: 30rpx;
text-align: center;
line-height: 30rpx;
color: #fff;
border-radius: 6rpx;
background: linear-gradient(top, #db577c, #d71c5e);
}
.box .info .jieshao {
margin-left: 4rpx;
font-weight: 800;
line-height: 36rpx;
width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.box .gs {
margin-top: 10rpx;
font-size: 20rpx;
width: 95.5%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.box .zhi {
margin-top: 15rpx;
font-size: 20rpx;
}
.box .jiage {
margin-top: 20rpx;
font-size: 30rpx;
font-weight: 800;
color: red;
}
.box:last-child {
margin-right: 0;
}

View File

@@ -0,0 +1,200 @@
page{
background-color: #f2f2f2;
}
.con{
margin: 0 10rpx;
}
.floot{
height: 200rpx;
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 99;
background: linear-gradient(right ,#1286ca,#6b68dd);
display: flex;
align-items: flex-end;
justify-content: flex-end;
padding-bottom: 34rpx;
box-sizing: border-box;
.inputs{
height: 56rpx;
display: flex;
align-items: center;
width: 75%;
background-color: #fff;
border-radius: 50rpx;
img{
width: 26rpx;
height: 26rpx;
padding-left: 40rpx;
}
p{
padding-left: 10rpx;
font-size: 28rpx;
}
}
.rightimg{
height: 42rpx;
margin: 0 40rpx;
}
}
.swiper{
margin-top: 210rpx;
height: 386rpx;
.swiper-item{
img{
width: 100%;
height: 386rpx;
}
}
}
.palaceGrid{
margin-top: 20rpx;
background-color: #fff;
border-radius: 20rpx;
width: 100%;
height: 200rpx;
display: flex;
align-items: center;
justify-content: space-around;
view{
display: flex;
flex-direction: column;
align-items: center;
img{
width: 88rpx;
height: 88rpx;
}
p{
margin-top: 10rpx;
font-size: 26rpx;
}
}
}
.notice{
background-color: #fff;
border-radius: 20rpx;
height: 50rpx;
margin-top: 20rpx;
position: relative;
.noticeImg{
margin-left: 10rpx;
width: 24rpx;
position: absolute;
top: 15rpx;
background-color: #fff;
}
.swp{
line-height: 50rpx;
position: absolute;
margin-left: 50rpx;
color: #40b2ff;
font-size: 30rpx;
}
}
.prerog{
margin-top: 30rpx;
width: 100%;
}
.faddish{
margin-top: 40rpx;
display: flex;
align-items: center;
color: red;
img{
height: 30rpx;
}
p{
margin-left: 10rpx;
}
}
// ----------------------------------
.scroll {
width: 100%;
overflow: hidden;
white-space: nowrap;
}
.box {
margin-right: 20rpx;
margin-top: 30rpx;
box-sizing: border-box;
display: inline-block;
width: 322rpx;
height: 438rpx;
background-color: #fff;
border-radius: 20rpx;
padding-left: 20rpx;
img{
padding-right: 20rpx;
margin: 30rpx auto;
display: block;
width: 280rpx;
height: 174rpx;
}
.info{
display: flex;
align-items: center;
font-size: 20rpx;
width: 95%;
.ling{
width: 30rpx;
height: 30rpx;
text-align: center;
line-height: 30rpx;
border-radius: 6rpx;
margin-right: 16rpx;
color: #fff;
background: linear-gradient(top ,#86fead,#3ad423);
}
.hot{
width: 30rpx;
height: 30rpx;
text-align: center;
line-height: 30rpx;
color: #fff;
border-radius: 6rpx;
background: linear-gradient(top ,#db577c,#d71c5e);
}
.jieshao{
margin-left: 4rpx;
font-weight: 800;
line-height: 36rpx;
width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
.gs{
margin-top: 10rpx;
font-size: 20rpx;
width: 95.5%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.zhi{
margin-top: 15rpx;
font-size: 20rpx;
}
.jiage{
margin-top: 20rpx;
font-size: 30rpx;
font-weight: 800;
color: red;
}
}
.box:last-child{
margin-right: 0;
}

View File

@@ -0,0 +1,102 @@
page {
background-color: #f2f2f2;
}
.comm {
margin: 0 10rpx;
}
.flood {
display: flex;
align-items: center;
height: 340rpx;
background: linear-gradient(right, #1286ca, #6b68dd);
position: relative;
}
.flood .imgcom {
position: absolute;
top: 74rpx;
right: 40rpx;
width: 44rpx;
height: 40rpx;
}
.flood .right {
right: 120rpx;
}
.flood .imp {
margin-left: 36rpx;
width: 128rpx;
height: 128rpx;
}
.flood p {
color: #fff;
margin-left: 40rpx;
}
.order {
box-sizing: border-box;
border-radius: 20rpx;
top: -82rpx;
position: relative;
background-color: #fff;
}
.order .meTop {
border-bottom: solid 1px #ccc;
height: 82rpx;
display: flex;
align-items: center;
justify-content: space-between;
}
.order .meTop p {
font-size: 20rpx;
margin-left: 20rpx;
}
.order .meTop img {
width: 18rpx;
height: 30rpx;
margin-right: 20rpx;
}
.order .state {
margin: 0 70rpx;
display: flex;
align-items: center;
height: 170rpx;
justify-content: space-between;
}
.order .state img {
width: 60rpx;
height: 52rpx;
}
.order .state p {
margin-top: 10rpx;
font-size: 10rpx;
}
.other {
margin-top: 30rpx;
}
.other .otherstat {
height: 270rpx;
display: flex;
justify-content: space-between;
align-items: flex-start;
}
.other .otherstat view {
margin: 20rpx 20rpx 0;
}
.other .otherstat view img {
width: 90rpx;
height: 90rpx;
}
.other .otherstat view p {
margin-top: 20rpx;
font-size: 26rpx;
}
.copyright {
box-sizing: border-box;
position: absolute;
width: 100%;
text-align: center;
bottom: 30rpx;
font-size: 20rpx;
color: #919192;
}
.copyright .bottoms {
margin-bottom: 20rpx;
}

View File

@@ -0,0 +1,3 @@
p {
color: red;
}

View File

@@ -0,0 +1,106 @@
page{
background-color: #f2f2f2;
}
.comm{
margin: 0 10rpx;
}
.flood{
display: flex;
align-items: center;
height: 340rpx;
background: linear-gradient(right ,#1286ca,#6b68dd);
position: relative;
.imgcom{
position: absolute;
top: 74rpx;
right: 40rpx;
width: 44rpx;
height: 40rpx;
}
.right{
right: 120rpx;
}
.imp{
margin-left: 36rpx;
width: 128rpx;
height:128rpx;
}
p{
color: #fff;
margin-left: 40rpx;
}
}
.order{
box-sizing: border-box;
border-radius: 20rpx;
top: -82rpx;
position: relative;
background-color: #fff;
.meTop{
border-bottom: solid 1px #ccc;
height: 82rpx;
display: flex;
align-items: center;
justify-content: space-between;
p{
font-size: 20rpx;
margin-left: 20rpx;
}
img{
width: 18rpx;
height: 30rpx;
margin-right: 20rpx;
}
}
.state{
margin: 0 70rpx;
display: flex;
align-items: center;
height: 170rpx;
justify-content: space-between;
img{
width: 60rpx;
height: 52rpx;
}
p{
margin-top: 10rpx;
font-size: 10rpx;
}
}
}
.other{
margin-top: 30rpx;
.otherstat{
height: 270rpx;
display: flex;
justify-content: space-between;
align-items: flex-start;
view{
margin: 20rpx 20rpx 0;
img{
width: 90rpx;
height: 90rpx;
}
p{
margin-top: 20rpx;
font-size: 26rpx;
}
}
}
}
.copyright{
box-sizing: border-box;
position: absolute;
width: 100%;
text-align: center;
bottom: 30rpx;
font-size: 20rpx;
color: #919192;
.bottoms{
margin-bottom: 20rpx;
}
}

View File

@@ -0,0 +1,54 @@
page {
background-color: #f2f2f2;
}
.top {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 99;
}
.flood {
box-sizing: border-box;
display: flex;
align-items: flex-end;
justify-content: center;
height: 148rpx;
padding-bottom: 30rpx;
background: linear-gradient(right, #1286ca, #6b68dd);
}
.flood img {
position: absolute;
left: 20rpx;
width: 18rpx;
height: 30rpx;
}
.flood p {
font-size: 30rpx;
color: #fff;
display: flex;
}
.flag {
height: 148rpx;
}
.end-title {
display: flex;
justify-content: space-around;
height: 92rpx;
line-height: 92rpx;
background-color: #fff;
}
.end-title view {
text-align: center;
}
.end-cont {
display: none;
}
.btna {
border-bottom: 2px solid #6E67FF;
color: #6E67FF;
font-weight: bold;
}
.dis {
display: block;
}

View File

@@ -0,0 +1,56 @@
page{
background-color: #f2f2f2;
}
.top{
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 99;
}
.flood{
box-sizing: border-box;
display: flex;
align-items:flex-end;
justify-content: center;
height: 148rpx;
padding-bottom: 30rpx;
background: linear-gradient(right ,#1286ca,#6b68dd);
img{
position: absolute;
left: 20rpx;
width: 18rpx;
height: 30rpx;
}
p{
font-size: 30rpx;
color: #fff;
display: flex;
}
}
.flag{
height: 148rpx;
}
.end-title{
display: flex;
justify-content: space-around;
height: 92rpx;
line-height: 92rpx;
background-color: #fff;
}
.end-title view{
text-align: center;
}
.end-cont{
display: none;
}
.btna{
border-bottom: 2px solid #6E67FF;
color: #6E67FF;
font-weight: bold;
}
.dis{
display: block;
}

View File

@@ -0,0 +1,102 @@
page {
background-color: #f2f2f2;
}
.comm {
margin: 0 10rpx;
}
.flood {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 999;
background: linear-gradient(right, #1286ca, #6b68dd);
display: flex;
align-items: center;
justify-content: center;
height: 168rpx;
box-sizing: border-box;
padding-top: 70rpx;
}
.flood .jiantou {
width: 18rpx;
height: 30rpx;
margin-right: 25rpx;
}
.flood .input {
height: 56rpx;
display: flex;
align-items: center;
width: 75%;
background-color: #fff;
border-radius: 50rpx;
}
.flood .input img {
width: 26rpx;
height: 26rpx;
padding-right: 10rpx;
}
.flood img {
margin-left: 30rpx;
width: 50rpx;
height: 42rpx;
}
.zhan {
height: 168rpx;
}
.hots {
margin-top: 180rpx;
font-weight: 800;
font-size: 30rpx;
}
.sousuo {
margin-top: 200rpx;
display: flex;
flex-direction: column;
align-items: center;
}
.sousuo img {
width: 588rpx;
height: 200rpx;
}
.sousuo p {
font-size: 30rpx;
margin-top: 100rpx;
color: #989898;
}
.tablist {
position: fixed;
top: 168rpx;
left: 0;
right: 0;
z-index: 99;
background-color: #fff;
}
.end-title {
height: 90rpx;
line-height: 90rpx;
display: flex;
justify-content: space-around;
background-color: #fff;
}
.end-title .shops {
display: flex;
}
.end-title .shops .shopsimgs {
margin-left: 10rpx;
}
.end-title .shops .shopsimgs img {
width: 18rpx;
height: 28rpx;
}
.end-cont {
display: none;
}
.btna {
border-bottom: 2px solid #6E67FF;
color: #6E67FF;
font-weight: bold;
}
.dis {
display: block;
}

View File

@@ -0,0 +1,105 @@
page{
background-color: #f2f2f2;
}
.comm{
margin: 0 10rpx;
}
.flood{
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 999;
background: linear-gradient(right ,#1286ca,#6b68dd);
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
height: 168rpx;
box-sizing: border-box;
padding-top: 70rpx;
.jiantou{
width: 18rpx;
height: 30rpx;
margin-right: 25rpx;
}
.input{
height: 56rpx;
display: flex;
align-items: center;
width: 75%;
background-color: #fff;
border-radius: 50rpx;
img{
width: 26rpx;
height: 26rpx;
padding-right: 10rpx;
}
}
img{
margin-left: 30rpx;
width: 50rpx;
height: 42rpx;
}
}
.zhan{
height: 168rpx;
}
.hots{
margin-top: 180rpx;
font-weight: 800;
font-size: 30rpx;
}
.sousuo{
margin-top: 200rpx;
display: flex;
flex-direction: column;
align-items: center;
img{
width: 588rpx;
height: 200rpx;
}
p{
font-size: 30rpx;
margin-top: 100rpx;
color: #989898;
}
}
.tablist{
position: fixed;
top: 168rpx;
left: 0;
right: 0;
z-index: 99;
background-color: #fff;
}
.end-title {
height: 90rpx;
line-height: 90rpx;
display: flex;
justify-content: space-around;
background-color: #fff;
.shops {
display: flex;
.shopsimgs {
margin-left: 10rpx;
img {
width: 18rpx;
height: 28rpx;
}
}
}
}
.end-cont {
display: none;
}
.btna {
border-bottom: 2px solid #6E67FF;
color: #6E67FF;
font-weight: bold;
}
.dis {
display: block;
}

View File

@@ -0,0 +1,162 @@
.status_bar {
background-color: #fd013ee;
}
.page-header {
height: 150rpx;
padding: 26rpx 30rpx;
display: flex;
position: relative;
color: #fff;
font-size: 36rpx;
background: linear-gradient(right ,#6b68dd,#1286ca);
.title{
margin-top: 23px;
text-align: center;
width: 100%;
}
.text-center {
width: 100%;
text-align: center;
}
.edit {
position: absolute;
top: 66%;
transform: translateY(-50%);
right: 30rpx;
font-size: 32rpx;
}
}
.item {
display: flex;
justify-content: space-between;
padding: 0 20rpx 20rpx;
align-items: center;
.cart-img {
width: 200rpx;
height: 69%;
margin-top: 18px;
border-radius: 12rpx;
overflow: hidden;
image {
width: 100%;
}
}
.title-wrap {
width: 354rpx;
.right{
font-size: 13px;
line-height: 1.6;
.title{
display: flex;
.hot{
margin-top: 4px;
width: 30rpx;
height: 30rpx;
text-align: center;
line-height: 30rpx;
color: #fff;
border-radius: 6rpx;
background-color: #ef3624;
}
.effect{
margin-left: 13px;
font-weight: bold;
}
}
.firm,.slice,.case{
display: flex;
color: #989898;
.zero{
margin-top: 5px;
margin-left: 14px;
width: 30rpx;
height: 30rpx;
text-align: center;
line-height: 30rpx;
color: #fff;
border-radius: 6rpx;
background-color: #2cdf1e;
}
}
}
.price {
font-weight: bold;
font-size: 14px;
color: #EB5159;
}
}
.u-numberbox {
position: absolute;
bottom: 20rpx;
right: 20rpx;
/deep/.u-number-input{
width: 35px!important;
}
}
}
// emputy
.emputy {
text-align: center;
margin: 200rpx auto;
font-size: 32rpx;
image {
width: 164rpx;
height: 164rpx;
border-radius: 50%;
margin-bottom: 20rpx;
}
.tips {
font-size: 24rpx;
color: #999999;
margin-top: 20rpx;
}
.btn {
margin: 80rpx auto;
width: 200rpx;
line-height: 64rpx;
color: #ffffff;
font-size: 26rpx;
background: -webkit-linear-gradient(to right, rgba(253, 1, 62, 0.3) 0%, rgba(253, 1, 62, 1) 100%);
background: linear-gradient(to right, rgba(253, 1, 62, 0.3) 0%, rgba(253, 1, 62, 1) 100%);
}
}
.bottom {
width: 100%;
position: fixed;
left: 0;
bottom: var(--window-bottom);
display: flex;
align-items: center;
justify-content: flex-end;
z-index: 99;
height: 110rpx;
background-color: #fff;
box-sizing: border-box;
box-shadow: 0 0 10rpx 6rpx rgba(0, 0, 0, 0.1);
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
.checkall {
position: absolute;
left: 20rpx;
top: 50%;
transform: translateY(-50%);
span {
color: #999;
font-size: 32rpx;
}
}
/deep/.u-round-circle{
}
.price {
width: 113px;
margin-right: 20rpx;
color: #fd013e;
.sml {
margin-right: 10rpx;
color: #666;
font-size: 26rpx!important;
text-align: center;
width: 198px;
}
}
}

View File

@@ -0,0 +1,75 @@
import http from "../http";
import config from "../config";
export default class IndexServer {
//首页
async getIndex(data = {}, header = {}) {
return await http.get({
url: config.apiList.index,
data: data,
header: header
});
}
//搜索
async search(data = {}, header = {}) {
return await http.post({
url: config.apiList.search,
data: data,
header: header
});
}
//用户手机号码(个人中心)
async tell(data = {}, header = {}) {
return await http.post({
url: config.apiList.tell,
data: data,
header: header
});
}
//商品详情
async goodsDetail(data = {}, header = {}) {
return await http.post({
url: config.apiList.x_goodsDetail,
data: data,
header: header
});
}
//登录
async login (data = {}, header = {}) {
return await http.post({
url: config.apiList.login,
data: data,
headers: header
});
}
//注册
async reg (data = {}, header = {}) {
return await http.post({
url: config.apiList.x_register,
data: data,
headers: header
});
}
// //活动详情
async getActivity(data = {}, header = {}) {
return await http.get({
url: config.apiList.activity,
data: data,
header: header
});
}
//购物车
async cartList(data = {}, header = {}) {
return await http.post({
url: config.apiList.cart,
data: data,
header: header
});
}
}

View File

@@ -0,0 +1,7 @@
import IndexServer from "./IndexServer";
import classServer from "./classServer";
export default {
index: new IndexServer(),
class: new classServer()
}

View File

@@ -0,0 +1,13 @@
import http from "../http";
import config from "../config";
export default class classServer {
//分类
async getClass(data = {}, header = {}) {
return await http.post({
url: config.apiList.classify,
data: data,
header: header
});
}
}