diff --git a/api/user/vip.js b/api/user/vip.js
index 09f1be5..d50750b 100644
--- a/api/user/vip.js
+++ b/api/user/vip.js
@@ -4,7 +4,8 @@ import request from '@/utils/request'
const api = {
brandList: 'goods/brandList',
category: 'category/list',
- getImage: 'goods/getCommonConfig'
+ getImage: 'goods/getCommonConfig',
+ vipList:'user/list'
}
// 大牌
@@ -19,3 +20,7 @@ export const category = (data) => {
export const getImage = (data) => {
return request.get(api.getImage, data)
}
+//会员管理
+export const getVipList = (data) => {
+ return request.get(api.vipList, data)
+}
diff --git a/pages.json b/pages.json
index 4de9488..610c063 100644
--- a/pages.json
+++ b/pages.json
@@ -1115,7 +1115,7 @@
// "enablePullDownRefresh": true,
"navigationStyle": "custom",
"navigationBarTextStyle": "black",
- "navigationBarTitleText": "加入分销"
+ "navigationBarTitleText": "分销中心"
}
},
{
diff --git a/pages/login/index.vue b/pages/login/index.vue
index c1ac729..ef63e98 100644
--- a/pages/login/index.vue
+++ b/pages/login/index.vue
@@ -15,7 +15,7 @@
{{countdown}}
- 查看并同意《用户服务协议》和《隐私政策》
+ 查看并同意《用户服务协议》和《隐私政策》
登录
@@ -26,6 +26,7 @@
diff --git a/pages/news/user/vip.vue b/pages/news/user/vip.vue
index 0e7c0e0..9c00a50 100644
--- a/pages/news/user/vip.vue
+++ b/pages/news/user/vip.vue
@@ -1,33 +1,48 @@
-
+
+
-
+
-
+
-
- 昵称
+
+
+ {{i.nick_name}}
+ {{i.user_type_text}}
+
+
+
+
+ {{i.mobile}}
+
+
+
+
+
+
- 余额(元)¥0.00
- 积分(分)0.00
+ 余额(元)¥{{i.expend_money?i.expend_money:0.00}}
+ 积分(分){{i.grade?i.grade:0}}
-
+
-
@@ -70,42 +168,43 @@
overflow: hidden;
.search{
width: 750rpx;
- padding: 35rpx;
+ padding: 34rpx 34rpx 0 34rpx;
box-sizing: border-box;
- .box{
- padding: 15rpx 25rpx;
- box-sizing: border-box;
- display: flex;
- align-items: center;
- background: #F3F3F3;
- border-radius: 60rpx;
- image{
- width: 28rpx;
- height: 28rpx;
- margin-right: 22rpx;
- }
- input{
- flex: 1;
- font-size: 28rpx;
- line-height: 30rpx;
- }
- }
+ // .box{
+ // padding: 15rpx 25rpx;
+ // box-sizing: border-box;
+ // display: flex;
+ // align-items: center;
+ // background: #F3F3F3;
+ // border-radius: 60rpx;
+ // image{
+ // width: 28rpx;
+ // height: 28rpx;
+ // margin-right: 22rpx;
+ // }
+ // input{
+ // flex: 1;
+ // font-size: 28rpx;
+ // line-height: 30rpx;
+ // }
+ // }
}
&-bd{
- padding: 0 30rpx;
+ padding: 0 34rpx;
overflow: hidden;
.li{
- padding: 0 20rpx;
+ padding:0 12rpx;
background-color: #FFFFFF;
overflow: hidden;
- border-radius: 12rpx;
- margin-top: 20rpx;
- &:first-child{
- margin-top: 0;
- }
+ border-radius: 8rpx;
+ margin-top: 18rpx;
+ // &:first-child{
+ // margin-top: 0;
+ // }
.a{
display: flex;
- align-items: flex-start;
+ // align-items: flex-start;
+ align-items: center;
justify-content: space-between;
padding: 15rpx 0 30rpx;
border-bottom: 1px solid #F2F2F2;
@@ -119,54 +218,88 @@
border-radius: 50%;
}
}
- .m{
+ .r{
flex: 1;
- max-width: 400rpx;
- margin-right: 20rpx;
+ // width: 98rpx;
+ // overflow: hidden;
+ .m{
+ // flex: 1;
+ // max-width: 400rpx;
+ // margin-right: 20rpx;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+
+ .btn{
+ // width: 98rpx;
+ padding:0 10rpx;
+ height: 56rpx;
+ line-height: 56rpx;
+ background: #FFFFFF;
+ border-radius: 3px 3px 3px 3px;
+ border: 1px solid #FFA928;
+ text-align: center;
+
+ font-family: PingFang SC, PingFang SC;
+ font-weight: 400;
+ font-size: 28rpx;
+ color: #FFA928;
+
+ &-on{
+ border-color:#FFA928;
+ color: #FFA928;
+ }
+ }
+ }
.n{
- font-size: 28rpx;
- font-weight: 400;
- color: #545454;
- height: 50rpx;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ margin-top:20rpx;
+ text{
+ font-size: 28rpx;
+ color: #454545;
+ }
image{
width: 30rpx;
height: 30rpx;
margin-left: 10rpx;
vertical-align: middle;
- margin-top: -1px;
}
}
+
+
+ // image{
+ // display: block;
+ // width: 30rpx;
+ // height: 30rpx;
+ // float: right;
+ // margin-top: 20rpx;
+ // margin-right: 20rpx;
+ // }
}
- .r{
- width: 98rpx;
- overflow: hidden;
- .btn{
- width: 98rpx;
- line-height: 64rpx;
- background: #FFFFFF;
- border-radius: 10rpx;
- text-align: center;
- border: 1px solid #FF6257;
- font-size: 28rpx;
- font-weight: 400;
- color: #FF6257;
- &-on{
- border-color:#FFA928;
- color: #FFA928;
- }
- }
- image{
- display: block;
- width: 30rpx;
- height: 30rpx;
- float: right;
- margin-top: 20rpx;
- margin-right: 20rpx;
- }
- }
+ // .m{
+ // flex: 1;
+ // max-width: 400rpx;
+ // margin-right: 20rpx;
+ // .n{
+ // font-size: 28rpx;
+ // font-weight: 400;
+ // color: #545454;
+ // height: 50rpx;
+ // image{
+ // width: 30rpx;
+ // height: 30rpx;
+ // margin-left: 10rpx;
+ // vertical-align: middle;
+ // margin-top: -1px;
+ // }
+ // }
+ // }
+
}
.b{
- padding-top: 30rpx;
+ padding-top: 20rpx;
padding-bottom: 20rpx;
overflow: hidden;
display: flex;
@@ -176,13 +309,13 @@
text-align: center;
font-size: 28rpx;
font-weight: 400;
- color: #454545;
+ color: #B1B1B1;
text{
font-size: 28rpx;
font-weight: 400;
- color: #B1B1B1;
+ color: #454545;
display: block;
- margin-top: 10rpx;
+ margin-top: 12rpx;
}
}
}
diff --git a/pages/news3/JoinDistribution.vue b/pages/news3/JoinDistribution.vue
index 0d549aa..38b3d00 100644
--- a/pages/news3/JoinDistribution.vue
+++ b/pages/news3/JoinDistribution.vue
@@ -12,10 +12,12 @@
-
+
+
+
- {{ user.nick_name }}
+ {{ user.nick_name||'' }}
分销商
@@ -81,11 +83,11 @@
// 正在加载
isLoading: true,
// 当前用户信息
- user: undefined,
+ user: {},
// 当前是否为分销商
isDealer: false,
// 当前分销商信息
- dealer: undefined,
+ dealer: {},
// 推荐人昵称
refereeName: undefined,
// 分销设置
@@ -119,7 +121,7 @@
// api数据赋值
const data = result.data
app.isDealer = data.isDealer
- app.user = data.user
+ app.user = data.user||{};
app.dealer = data.dealer
app.refereeName = data.refereeName
app.setting = data.setting
diff --git a/pages/user/index.vue b/pages/user/index.vue
index c0d7880..bd86fd7 100644
--- a/pages/user/index.vue
+++ b/pages/user/index.vue
@@ -119,7 +119,7 @@
会员管理
-
+
分销管理
@@ -426,7 +426,7 @@
数据统计
-
+
会员管理
@@ -537,11 +537,12 @@
if(type==30){
this.goJump('/pages/news3/JoinDistribution?dataType=all');
}else if(type==10 || type==20){
- uni.showToast({
- title: '请先购买分销会员',
- icon: 'none',
- duration: 2000
- })
+ // uni.showToast({
+ // title: '请先购买分销会员',
+ // icon: 'none',
+ // duration: 2000
+ // })
+ this.goJump('/pages/member/index');
}
},
openScrollTo(){
@@ -660,6 +661,12 @@
url
})
},
+ goManagementHandle(url,title){
+ uni.navigateTo({
+ url:url+'?title='+title
+ })
+
+ },
goLogin() {
// 去登录
uni.navigateTo({