From b4a4457e6ffdf5c4c12974ee5f53da5ac2a32ef0 Mon Sep 17 00:00:00 2001 From: liudan <18634735655@163.com> Date: Mon, 26 Feb 2024 22:04:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BC=9A=E5=91=98=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/user/vip.js | 8 ++- pages/news/user/index.vue | 94 ++++++++++++++++++++++++++------- pages/news/user/vip.vue | 16 ++++-- pages/news3/shopDealerOrder.vue | 1 + pages/news3/shopOrder.vue | 8 +-- pages/user/index.vue | 2 +- 6 files changed, 99 insertions(+), 30 deletions(-) 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 @@ @@ -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 @@ 会员分销 - + 会员管理