diff --git a/api/user/vip.js b/api/user/vip.js index d50750b..7da820d 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.post(api.updateVip, data) +} + diff --git a/pages/news/user/index.vue b/pages/news/user/index.vue index e28222d..17dba02 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; @@ -363,9 +419,11 @@ justify-content: space-between; .b{ - width: 630rpx; + // width: 630rpx; + width:100%; line-height: 83rpx; - background: #FFAAA4; + // background: #FFAAA4; + background: #FF6257; border-radius: 83rpx; text-align: center; font-size: 28rpx; 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 c8e40df..3fc0b5a 100644 --- a/pages/news3/shopOrder.vue +++ b/pages/news3/shopOrder.vue @@ -29,11 +29,14 @@ - - x{{p.total_num}} - - ¥ - {{p.total_price}} + + {{p.goods_name}} + + x{{p.total_num}} + + ¥ + {{p.total_price}} + @@ -44,7 +47,7 @@ - 收件人姓名 {{item.address?item.address.name:''}} + 收件人姓名 {{item.address?item.address.name:''}} {{item.address?item.address.phone:''}} {{item.remark}} @@ -52,7 +55,7 @@ 修改地址 修改价格 @@ -130,7 +133,7 @@ {{audit_status==20?'拒绝':'同意'}}转移至售后 - + 备注 @@ -155,7 +158,8 @@ - + 删除之后订单无法恢复,无法处理您的售后问题 ,请慎重考虑 @@ -263,8 +267,8 @@ } this.getList() }, - onLoad() { - + onLoad(option) { + console.log("会员管理带来的user_id",option.user_id) }, methods: { reset() { @@ -635,6 +639,7 @@ .shopItemInfo { display: flex; margin-top: 40upx; + align-items: center; image { width: 180upx; @@ -642,12 +647,23 @@ flex-shrink: 0; } + .priceName { + margin-left: 40upx; + + .title { + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + overflow: hidden; + } + } + .priceCon { flex: 1; display: flex; align-items: flex-end; justify-content: space-between; - margin-left: 40upx; + margin-top: 30rpx; .num { font-size: 28upx; diff --git a/pages/news3/shopOrderDetails.vue b/pages/news3/shopOrderDetails.vue index a135f08..d269edc 100644 --- a/pages/news3/shopOrderDetails.vue +++ b/pages/news3/shopOrderDetails.vue @@ -1,5 +1,5 @@