Commit bc41c234e8ea8530d3abb2d152033ed8f93aa840
1 parent
e063257c
分类页面, 卡的购买的修改
Showing
4 changed files
with
65 additions
and
79 deletions
pages/goods/categoryList/categoryList.wxml
... | ... | @@ -52,7 +52,7 @@ |
52 | 52 | </view> |
53 | 53 | </scroll-view> |
54 | 54 | </swiper-item> |
55 | - <!-------品牌-------> | |
55 | + <!-- 品牌 --> | |
56 | 56 | <swiper-item> |
57 | 57 | <scroll-view scroll-y="true" class="fenlei-list" |
58 | 58 | style="height: {{abc}}rpx;" scroll-into-view="{{scrollIntoView}}"> |
... | ... | @@ -111,7 +111,7 @@ |
111 | 111 | </view> |
112 | 112 | </view> |
113 | 113 | <!-- 分类项目内容 --> |
114 | - <view class="flex project_height"> | |
114 | + <view class="flex project_height" style="margin-left:-10rpx"> | |
115 | 115 | <!-- 分类项目的类型 --> |
116 | 116 | <view class="project_type"> |
117 | 117 | <view class="project_type-frame"> |
... | ... | @@ -138,7 +138,7 @@ |
138 | 138 | </view> |
139 | 139 | |
140 | 140 | </view> |
141 | - <view wx:else class="sort-name ellipsis-1">{{ittms.items.name}} | |
141 | + <view wx:else class="sort-name ellipsis-1">{{ittms.items.name}} | |
142 | 142 | </view> |
143 | 143 | </view> |
144 | 144 | |
... | ... | @@ -152,7 +152,7 @@ |
152 | 152 | <view class="classify_content"> |
153 | 153 | <!-- 国家的样式 --> |
154 | 154 | <block wx:if="{{select_classify_on==223&&is_show_gb}}"> |
155 | - <view class="classify_name fs32 flex-space-between"> | |
155 | + <view class="classify_name fs30 flex-space-between"> | |
156 | 156 | <view>{{ishaf_three==1?good_list.name:classify_name}}</view> |
157 | 157 | |
158 | 158 | </view> |
... | ... | @@ -175,9 +175,8 @@ |
175 | 175 | <!-- 品牌 --> |
176 | 176 | <block wx:if="{{select_classify_on==220&&is_show_pp}}"> |
177 | 177 | |
178 | - <view class="classify_name fs32 flex-space-between"> | |
179 | - <view>{{classify_name}}</view> | |
180 | - | |
178 | + <view class="classify_name fs30 flex-space-between"> | |
179 | + <view>{{classify_name}}</view> | |
181 | 180 | </view> |
182 | 181 | |
183 | 182 | <view class="classify_content-frame flex flex-wrap"> |
... | ... | @@ -199,7 +198,7 @@ |
199 | 198 | <block wx:if="{{is_show_pl}}"> |
200 | 199 | <block wx:if="{{select_classify_on!=220&&select_classify_on!=223&&is_level_three!=1}}"> |
201 | 200 | <view> |
202 | - <view class="classify_name fs32 flex-space-between"data-pid="0"data-cid="{{cat_id}}" bindtap='select_more'> | |
201 | + <view class="classify_name fs30 flex-space-between"data-pid="0"data-cid="{{cat_id}}" bindtap='select_more'> | |
203 | 202 | <view class="classify_title ellipsis-1">{{classify_name}}</view> |
204 | 203 | <view class="flex select_more" > |
205 | 204 | <view class="red-co fs24" >更多</view> |
... | ... | @@ -229,7 +228,7 @@ |
229 | 228 | <block wx:for="{{goodslist}}"wx:for-item="goods"wx:for-index="inds"> |
230 | 229 | <view> |
231 | 230 | |
232 | - <view class="classify_name fs32 flex-space-between"data-pid="{{goods.items.parent_id}}" data-cid="{{goods.items.id}}" bindtap='select_more'> | |
231 | + <view class="classify_name fs30 flex-space-between"data-pid="{{goods.items.parent_id}}" data-cid="{{goods.items.id}}" bindtap='select_more'> | |
233 | 232 | <view class="classify_title ellipsis-1">{{goods.items.name}}</view> |
234 | 233 | <view class="flex select_more" > |
235 | 234 | <view class="red-co fs24" >更多</view> | ... | ... |
pages/goods/categoryList/categoryList.wxss
... | ... | @@ -200,7 +200,7 @@ margin-top: 8rpx; |
200 | 200 | |
201 | 201 | } |
202 | 202 | .project_type{ |
203 | - width: 33%; | |
203 | + width: 26%; | |
204 | 204 | height: 100%; |
205 | 205 | border-right: 1rpx solid #eee; |
206 | 206 | white-space: nowrap; |
... | ... | @@ -212,15 +212,14 @@ overflow-y: scroll; |
212 | 212 | margin: auto; |
213 | 213 | width: 58%; |
214 | 214 | margin-top: 40rpx; |
215 | -overflow: hidden; | |
216 | - | |
217 | 215 | } |
218 | 216 | .xc-letter-spacing{ |
219 | -padding-left: 29rpx; | |
217 | +padding-left: 20rpx; | |
220 | 218 | padding-right: 29rpx; |
221 | -width: 51%; | |
219 | +width: 58%; | |
222 | 220 | margin: auto; |
223 | 221 | margin-top: 40rpx; |
222 | +margin-left:28rpx; | |
224 | 223 | |
225 | 224 | |
226 | 225 | } |
... | ... | @@ -260,7 +259,7 @@ width: 60%; |
260 | 259 | |
261 | 260 | } |
262 | 261 | .classify_content{ |
263 | - width: 67% | |
262 | + width: 72% | |
264 | 263 | |
265 | 264 | } |
266 | 265 | .classify_content-frame{ | ... | ... |
pages/user/cardinfo/cardinfo.js
... | ... | @@ -42,7 +42,8 @@ Page({ |
42 | 42 | free:null,//分佣的数据 |
43 | 43 | expiryDate:"",//卡到期时间 |
44 | 44 | is_guoqi:0, //卡是不是过期 |
45 | - | |
45 | + | |
46 | + yu_e_show:0,//装入余额的弹窗 | |
46 | 47 | }, |
47 | 48 | |
48 | 49 | |
... | ... | @@ -78,8 +79,8 @@ Page({ |
78 | 79 | big_card = plusCard[i] |
79 | 80 | } |
80 | 81 | } |
81 | - console.log(big_cards, "是什么东西", big_card); | |
82 | - | |
82 | + | |
83 | + console.log(big_cards, "是什么东西", big_card); | |
83 | 84 | ee.setData({ |
84 | 85 | is_plusCard: plusCard, |
85 | 86 | big_card: big_card |
... | ... | @@ -651,42 +652,45 @@ Page({ |
651 | 652 | onReachBottom: function () { |
652 | 653 | var goods_list = this.selectComponent("#goods_list"); //组件的id |
653 | 654 | goods_list.get_list(); |
654 | - this.setData({ | |
655 | - j: true | |
656 | - }) | |
655 | + | |
657 | 656 | }, |
658 | 657 | |
659 | 658 | |
660 | - | |
661 | 659 | //--转到用户余额-- |
662 | 660 | to_user_money:function(){ |
663 | - var th=this,free=th.data.free; | |
664 | - if(!th.data.free.RefereeMoney){ | |
665 | - getApp().my_warnning("您没有转入余额",0,th); return false; | |
666 | - } | |
667 | - | |
668 | - wx.showModal({ | |
669 | - title: '提示', | |
670 | - content: '您确定要转入余额吗?', | |
671 | - success(res) { | |
672 | - if (res.confirm) { | |
673 | - getApp().request.post("/api/weshop/plus/withdrawal/referee/money",{ | |
674 | - data:{storeId:os.stoid,userId:getApp().globalData.user_id}, | |
675 | - success:function(res){ | |
676 | - if(res.data.code==0){ | |
677 | - getApp().my_warnning("转入成功",0,th); | |
678 | - free.VIPRebate=0; | |
679 | - th.setData({free:free}); | |
680 | - }else{ | |
681 | - getApp().my_warnning(res.data.msg ,0,th); | |
682 | - } | |
683 | - } | |
684 | - }) | |
685 | - } | |
686 | - } | |
687 | - }) | |
661 | + this.setData({yu_e_show:1}) | |
688 | 662 | }, |
689 | - | |
663 | + close_yu_e:function(){ | |
664 | + this.setData({yu_e_show:0}) | |
665 | + }, | |
666 | + go_yu_e:function(){ | |
667 | + var th=this,free=th.data.free; | |
668 | + if(!th.data.free.VIPRebate){ | |
669 | + getApp().my_warnning("您没有转入余额",0,th); return false; | |
670 | + } | |
671 | + wx.showModal({ | |
672 | + title: '提示', | |
673 | + content: '您确定要转入余额吗?', | |
674 | + success(res) { | |
675 | + if (res.confirm) { | |
676 | + getApp().request.post("/api/weshop/plus/withdrawal/referee/money",{ | |
677 | + data:{storeId:os.stoid,userId:getApp().globalData.user_id}, | |
678 | + success:function(res){ | |
679 | + if(res.data.code==0){ | |
680 | + getApp().my_warnning("转入成功",0,th); | |
681 | + free.VIPRebate=0; | |
682 | + th.setData({free:free}); | |
683 | + }else{ | |
684 | + getApp().my_warnning(res.data.msg ,0,th); | |
685 | + } | |
686 | + } | |
687 | + }) | |
688 | + } | |
689 | + } | |
690 | + }) | |
691 | + }, | |
692 | + | |
693 | + | |
690 | 694 | //-----立即续费的功能------ |
691 | 695 | xufei:function(){ |
692 | 696 | var th = this; |
... | ... | @@ -708,5 +712,5 @@ Page({ |
708 | 712 | success:function () { |
709 | 713 | getApp().my_warnning("支付成功",0,this); |
710 | 714 | }, |
711 | - | |
715 | + | |
712 | 716 | }) |
713 | 717 | \ No newline at end of file | ... | ... |
pages/user/cardinfo/cardinfo.wxml
... | ... | @@ -122,40 +122,24 @@ |
122 | 122 | </view> |
123 | 123 | |
124 | 124 | |
125 | - | |
126 | -<view class="xc-pop-up" wx:if="{{q_show}}"> | |
127 | - | |
128 | - <view class="xc-obscuration" bindtap='close' catchtouchmove="ture"></view> | |
129 | - <view> | |
130 | - | |
131 | - <view class="xc-qr-frame"> | |
132 | - <view class="shut" bindtap="close">ⅹ</view> | |
133 | - <view class="fs36 xc-black3 flex jc-center ai-center" style="width:100%;height:200rpx;">确定把所有奖励金转入余额</view> | |
134 | - <view class="flex jc-center ai_center" style="width: 100%;height: 75rpx;"> | |
135 | - <view class="fs36 white flex jc-center ai-center"style="width:40%;height:60rpx;line-height:60rpx;background:#f35e73;border-radius:10rpx;margin-right: 20rpx;">是的</view> | |
136 | - <view class="fs36 xc-ash flex jc-center ai-center"style="width:40%;height:60rpx;line-height:60rpx;border-radius:10rpx;background:#ececea;">再看看</view> | |
137 | - </view> | |
125 | +<!-- 转入余额提示 --> | |
126 | +<view class="xc-pop-up" wx:if="{{yu_e_show}}"> | |
127 | + <!-- --> | |
128 | + <view class="xc-obscuration" bindtap='close_yu_e' catchtouchmove="ture"></view> | |
129 | + <view> | |
130 | + <view class="xc-qr-frame"> | |
131 | + <view class="shut" bindtap="close_yu_e">ⅹ</view> | |
132 | + <view class="fs36 xc-black3 flex jc-center ai-center" style="width:100%;height:200rpx;">确定把所有奖励金转入余额</view> | |
133 | + <view class="flex jc-center ai_center" style="width: 100%;height: 75rpx;"> | |
134 | + <view bindtap="go_yu_e" class="fs36 white flex jc-center ai-center" | |
135 | + style="width:40%;height:60rpx;line-height:60rpx;background:#f35e73;border-radius:10rpx;margin-right: 20rpx;">是的</view> | |
136 | + <view bindtap='close_yu_e' class="fs36 xc-ash flex jc-center ai-center"style="width:40%;height:60rpx;line-height:60rpx;border-radius:10rpx;background:#ececea;">再看看</view> | |
137 | + </view> | |
138 | + </view> | |
138 | 139 | </view> |
139 | - | |
140 | - | |
141 | -</view> | |
142 | - | |
143 | 140 | </view> |
144 | 141 | |
145 | 142 | |
146 | - | |
147 | - | |
148 | - | |
149 | - | |
150 | - | |
151 | - | |
152 | - | |
153 | - | |
154 | - | |
155 | - | |
156 | - | |
157 | - | |
158 | - | |
159 | 143 | <!-- 商品列表组件 --> |
160 | 144 | <goods_recommend id="goods_list"></goods_recommend> |
161 | 145 | <!-- 商品列表 --> | ... | ... |