diff --git a/api/user/vip.js b/api/user/vip.js
index d50750b..96f983e 100644
--- a/api/user/vip.js
+++ b/api/user/vip.js
@@ -5,7 +5,8 @@ const api = {
brandList: 'goods/brandList',
category: 'category/list',
getImage: 'goods/getCommonConfig',
- vipList:'user/list'
+ vipList:'user/list',
+ updateVip:'user/updateUser'
}
// 大牌
@@ -24,3 +25,8 @@ export const getImage = (data) => {
export const getVipList = (data) => {
return request.get(api.vipList, data)
}
+//修改会员信息
+export const updateVip = (data) => {
+ return request.get(api.updateVip, data)
+}
+
diff --git a/pages/news/user/index.vue b/pages/news/user/index.vue
index e28222d..5c15f28 100644
--- a/pages/news/user/index.vue
+++ b/pages/news/user/index.vue
@@ -1,7 +1,7 @@
-
+
@@ -16,16 +16,16 @@
- 余额(元)¥{{form.expend_money?form.expend_money:0.00}}
+ 余额(元)¥{{form.balance?form.balance:0.00}}
- 积分(分){{form.grade?form.grade:0.00}}
+ 积分(分){{form.points?form.points:0.00}}
-
+
关联订单
- 99+
+ {{total}}
@@ -34,18 +34,18 @@
编辑信息
-
+
上级推广人
- 张三
-
+ {{form.inviter?form.inviter.nick_name:''}}
+
-
+
推广权限
-
+
+
指定分销模式下,开启或关闭用户的推广权限
@@ -76,11 +79,13 @@
用户状态
-
+
-
+
确认修改
@@ -89,6 +94,8 @@
@@ -188,9 +243,10 @@
align-items: center;
text{
display: block;
- width: 98rpx;
+ // width: 98rpx;
border: 1px solid #FFB950;
- height: 40rpx;
+ // height: 40rpx;
+ padding:0 10rpx;
font-size: 28rpx;
font-weight: 400;
color: #FFB343;
diff --git a/pages/news/user/vip.vue b/pages/news/user/vip.vue
index 62112e7..4cc2412 100644
--- a/pages/news/user/vip.vue
+++ b/pages/news/user/vip.vue
@@ -5,7 +5,7 @@
-->
-
+
@@ -22,9 +22,9 @@
{{i.mobile}}
-
+
-
+
- 余额(元)¥{{i.points?i.points:0.00}}
+ 余额(元)¥{{i.balance?i.balance:0.00}}
积分(分){{i.points?i.points:0}}
@@ -79,6 +79,12 @@
};
},
methods: {
+ searchhandle(){
+ this.list=[]
+ this.page = 1;
+ this.getList()
+
+ },
async getList(){
let res = await Vip.getVipList({page:this.page,search:this.keyword,user_type:this.title=='会员管理'?"10,20":'30'})
console.log(res,"===")
@@ -141,7 +147,7 @@
goVipDetails(item){
let details = JSON.stringify(item)
uni.navigateTo({
- url:"/pages/news/user/index?item="+details
+ url:"/pages/news/user/index?item="+details+"&title="+this.title
})
}
},
diff --git a/pages/news3/shopDealerOrder.vue b/pages/news3/shopDealerOrder.vue
index cba13e8..eb3bcff 100644
--- a/pages/news3/shopDealerOrder.vue
+++ b/pages/news3/shopDealerOrder.vue
@@ -251,6 +251,7 @@ export default {
// console.log(options);
this.classifyShow=options.type;
this.getList();
+ console.log("会员管理带来的user_id",options.user_id)
},
onPageScroll(e){
diff --git a/pages/news3/shopOrder.vue b/pages/news3/shopOrder.vue
index a97b9a0..c46d48d 100644
--- a/pages/news3/shopOrder.vue
+++ b/pages/news3/shopOrder.vue
@@ -83,11 +83,11 @@
下单时间
-
+
{{startTime?startTime:'起始时间'}}
-
-
+
{{endTime?endTime:'终止时间'}}
@@ -267,8 +267,8 @@
}
this.getList()
},
- onLoad() {
-
+ onLoad(option) {
+ console.log("会员管理带来的user_id",option.user_id)
},
methods: {
reset() {
diff --git a/pages/user/index.vue b/pages/user/index.vue
index bd86fd7..c6bc5cd 100644
--- a/pages/user/index.vue
+++ b/pages/user/index.vue
@@ -115,7 +115,7 @@
会员分销
-
+
会员管理