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/news/user/index.vue b/pages/news/user/index.vue
index 4f5766b..e28222d 100644
--- a/pages/news/user/index.vue
+++ b/pages/news/user/index.vue
@@ -5,21 +5,21 @@
-
+
- 我是昵称游客
- 真实姓名:张三
- 18089800909
+ {{form.nick_name}}{{form.user_type_text}}
+
+ {{form.mobile}}
- 余额(元)¥0.00
+ 余额(元)¥{{form.expend_money?form.expend_money:0.00}}
- 积分(分)0.00
+ 积分(分){{form.grade?form.grade:0.00}}
@@ -93,13 +93,42 @@
export default {
data() {
return {
+ form:{
+ address_id: null,
+ avatar: null,
+ avatar_id: null,
+ avatar_url: null,
+ balance: "",
+ city: null,
+ country: null,
+ create_time: "",
+ effective_time: null,
+ expend_money: "",
+ gender: "",
+ grade: null,
+ grade_id: null,
+ is_delete: null,
+ last_login_time: null,
+ mobile: "",
+ nick_name: "",
+ pay_money: "",
+ platform: "",
+ points: null,
+ province: null,
+ store_id: null,
+ update_time: "",
+ user_id: null,
+ user_type: null,
+ user_type_text: ""
+ },
checked: true,
isScroll: true,
background: {
background: 'url(https://www.royaum.com.cn/static/news/login-bg.png) centertop no-repeat',
// background: 'url('+ img+') center top no-repeat',
backgroundSize: '100% auto',
- }
+ },
+
}
},
onPageScroll(e){
@@ -111,6 +140,11 @@
},
methods: {
+ },
+ onLoad(option) {
+ console.log(option)
+ this.form = Object.assign({},this.form,JSON.parse(option.item))
+ console.log(this.form)
}
}
diff --git a/pages/news/user/vip.vue b/pages/news/user/vip.vue
index 0e7c0e0..e6b8c4a 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/user/index.vue b/pages/user/index.vue
index c0d7880..85544c1 100644
--- a/pages/user/index.vue
+++ b/pages/user/index.vue
@@ -119,7 +119,7 @@
会员管理
-
+
分销管理
@@ -426,7 +426,7 @@
数据统计
-
+
会员管理
@@ -660,6 +660,12 @@
url
})
},
+ goManagementHandle(url,title){
+ uni.navigateTo({
+ url:url+'?title='+title
+ })
+
+ },
goLogin() {
// 去登录
uni.navigateTo({