From bc41c234e8ea8530d3abb2d152033ed8f93aa840 Mon Sep 17 00:00:00 2001 From: yvan.ni <765199919@qq.com> Date: Thu, 7 Nov 2019 13:52:50 +0800 Subject: [PATCH] 分类页面, 卡的购买的修改 --- pages/goods/categoryList/categoryList.wxml | 17 ++++++++--------- pages/goods/categoryList/categoryList.wxss | 11 +++++------ pages/user/cardinfo/cardinfo.js | 72 ++++++++++++++++++++++++++++++++++++++---------------------------------- pages/user/cardinfo/cardinfo.wxml | 44 ++++++++++++++------------------------------ 4 files changed, 65 insertions(+), 79 deletions(-) diff --git a/pages/goods/categoryList/categoryList.wxml b/pages/goods/categoryList/categoryList.wxml index 85bdab0..9e3345b 100644 --- a/pages/goods/categoryList/categoryList.wxml +++ b/pages/goods/categoryList/categoryList.wxml @@ -52,7 +52,7 @@ - + @@ -111,7 +111,7 @@ - + @@ -138,7 +138,7 @@ - {{ittms.items.name}} + {{ittms.items.name}} @@ -152,7 +152,7 @@ - + {{ishaf_three==1?good_list.name:classify_name}} @@ -175,9 +175,8 @@ - - {{classify_name}} - + + {{classify_name}} @@ -199,7 +198,7 @@ - + {{classify_name}} 更多 @@ -229,7 +228,7 @@ - + {{goods.items.name}} 更多 diff --git a/pages/goods/categoryList/categoryList.wxss b/pages/goods/categoryList/categoryList.wxss index 03df8f2..7502669 100644 --- a/pages/goods/categoryList/categoryList.wxss +++ b/pages/goods/categoryList/categoryList.wxss @@ -200,7 +200,7 @@ margin-top: 8rpx; } .project_type{ - width: 33%; + width: 26%; height: 100%; border-right: 1rpx solid #eee; white-space: nowrap; @@ -212,15 +212,14 @@ overflow-y: scroll; margin: auto; width: 58%; margin-top: 40rpx; -overflow: hidden; - } .xc-letter-spacing{ -padding-left: 29rpx; +padding-left: 20rpx; padding-right: 29rpx; -width: 51%; +width: 58%; margin: auto; margin-top: 40rpx; +margin-left:28rpx; } @@ -260,7 +259,7 @@ width: 60%; } .classify_content{ - width: 67% + width: 72% } .classify_content-frame{ diff --git a/pages/user/cardinfo/cardinfo.js b/pages/user/cardinfo/cardinfo.js index 254216a..32e15d4 100644 --- a/pages/user/cardinfo/cardinfo.js +++ b/pages/user/cardinfo/cardinfo.js @@ -42,7 +42,8 @@ Page({ free:null,//分佣的数据 expiryDate:"",//卡到期时间 is_guoqi:0, //卡是不是过期 - + + yu_e_show:0,//装入余额的弹窗 }, @@ -78,8 +79,8 @@ Page({ big_card = plusCard[i] } } - console.log(big_cards, "是什么东西", big_card); - + + console.log(big_cards, "是什么东西", big_card); ee.setData({ is_plusCard: plusCard, big_card: big_card @@ -651,42 +652,45 @@ Page({ onReachBottom: function () { var goods_list = this.selectComponent("#goods_list"); //组件的id goods_list.get_list(); - this.setData({ - j: true - }) + }, - //--转到用户余额-- to_user_money:function(){ - var th=this,free=th.data.free; - if(!th.data.free.RefereeMoney){ - getApp().my_warnning("您没有转入余额",0,th); return false; - } - - wx.showModal({ - title: '提示', - content: '您确定要转入余额吗?', - success(res) { - if (res.confirm) { - getApp().request.post("/api/weshop/plus/withdrawal/referee/money",{ - data:{storeId:os.stoid,userId:getApp().globalData.user_id}, - success:function(res){ - if(res.data.code==0){ - getApp().my_warnning("转入成功",0,th); - free.VIPRebate=0; - th.setData({free:free}); - }else{ - getApp().my_warnning(res.data.msg ,0,th); - } - } - }) - } - } - }) + this.setData({yu_e_show:1}) }, - + close_yu_e:function(){ + this.setData({yu_e_show:0}) + }, + go_yu_e:function(){ + var th=this,free=th.data.free; + if(!th.data.free.VIPRebate){ + getApp().my_warnning("您没有转入余额",0,th); return false; + } + wx.showModal({ + title: '提示', + content: '您确定要转入余额吗?', + success(res) { + if (res.confirm) { + getApp().request.post("/api/weshop/plus/withdrawal/referee/money",{ + data:{storeId:os.stoid,userId:getApp().globalData.user_id}, + success:function(res){ + if(res.data.code==0){ + getApp().my_warnning("转入成功",0,th); + free.VIPRebate=0; + th.setData({free:free}); + }else{ + getApp().my_warnning(res.data.msg ,0,th); + } + } + }) + } + } + }) + }, + + //-----立即续费的功能------ xufei:function(){ var th = this; @@ -708,5 +712,5 @@ Page({ success:function () { getApp().my_warnning("支付成功",0,this); }, - + }) \ No newline at end of file diff --git a/pages/user/cardinfo/cardinfo.wxml b/pages/user/cardinfo/cardinfo.wxml index 330408f..2ada240 100644 --- a/pages/user/cardinfo/cardinfo.wxml +++ b/pages/user/cardinfo/cardinfo.wxml @@ -122,40 +122,24 @@ - - - - - - - - - 确定把所有奖励金转入余额 - - 是的 - 再看看 - + + + + + + + + 确定把所有奖励金转入余额 + + 是的 + 再看看 + + - - - - - - - - - - - - - - - - - -- libgit2 0.21.4