Commit 08f402a7c9f6cfae26fe5db109abd7583b600d10
Merge branch 'dev' into 'test'
Dev See merge request !14
Showing
19 changed files
with
211 additions
and
162 deletions
pages/cart/cart2/cart2.js
... | ... | @@ -81,6 +81,7 @@ Page({ |
81 | 81 | th.data.param=t; |
82 | 82 | //-----先获取物流,再获取用户信息,再展示页面----- |
83 | 83 | th.get_wuliu(th.get_info(th.show_page)); |
84 | + | |
84 | 85 | }, |
85 | 86 | onUnload: function () { this.setData({ isclose: 1 })}, |
86 | 87 | //-------------------获取物流--------------- |
... | ... | @@ -101,12 +102,7 @@ Page({ |
101 | 102 | |
102 | 103 | //------获取会员收货地址----- |
103 | 104 | getuser_addr:function(func){ |
104 | - console.log(to.globalData.baddr); | |
105 | - if (to.globalData.baddr!=null){ | |
106 | - var user_addr = to.globalData.baddr; | |
107 | - to.globalData.baddr=null; | |
108 | - func(user_addr); | |
109 | - }else{ | |
105 | + | |
110 | 106 | a.get("/api/weshop/useraddress/page", { |
111 | 107 | data: { user_id: to.globalData.user_id, store_id: oo.stoid, pageSize: 600 }, |
112 | 108 | success: function (su) { |
... | ... | @@ -121,11 +117,12 @@ Page({ |
121 | 117 | if (user_addr[i]['is_default'] == 1) { item = user_addr[i]; break; } |
122 | 118 | } |
123 | 119 | if (item == null) item = user_addr[0]; |
120 | + if(item==undefined) item=null; | |
124 | 121 | func(item); |
125 | 122 | } |
126 | 123 | }); |
127 | - } | |
128 | 124 | }, |
125 | + | |
129 | 126 | //----------------展示页面,是再获取用户信息之后-------------- |
130 | 127 | show_page:function(){ |
131 | 128 | var th=this,ta = this.data.param; |
... | ... | @@ -309,6 +306,7 @@ Page({ |
309 | 306 | |
310 | 307 | switch (gd.prom_type){ |
311 | 308 | case 0: |
309 | + case 6: | |
312 | 310 | //--此时开始计算商品的使用券相关,如果有等级价还要计算和等级价相关的, |
313 | 311 | // 如果有优惠促销,还要把促销的部分计算在内,因为促销还有不能使用优惠券-- |
314 | 312 | |
... | ... | @@ -375,9 +373,17 @@ Page({ |
375 | 373 | |
376 | 374 | }else{ |
377 | 375 | this.getuser_addr(function(ie){ |
378 | - th.setData({user_addr: ie }); | |
379 | - }); | |
380 | 376 | |
377 | + console.log("getuser_addr") | |
378 | + console.log(ie) | |
379 | + | |
380 | + th.setData({user_addr: ie }); | |
381 | + if (th.data.is_b_now == 1) { | |
382 | + th.calculatePrice2(); | |
383 | + } else { | |
384 | + th.calculatePrice(); | |
385 | + } | |
386 | + }); | |
381 | 387 | } |
382 | 388 | }, |
383 | 389 | //---------------检查是否有收货地址------------------- |
... | ... | @@ -676,7 +682,8 @@ Page({ |
676 | 682 | if (th.data.is_b_now==1){ |
677 | 683 | console.log("buy_new"); |
678 | 684 | |
679 | - if(th.data.bn_exp_type == 0 && th.data.user_addr==null ){ ff = false; confirmBox("请新建收货地址"); } | |
685 | + if(th.data.bn_exp_type == 0 && th.data.user_addr==null ){ | |
686 | + ff = false; getApp().confirmBox("请新建收货地址"); } | |
680 | 687 | if (!ff) return false; |
681 | 688 | var addr = th.data.user_addr; |
682 | 689 | if (th.data.bn_exp_type == 1) addr=null; |
... | ... | @@ -687,7 +694,7 @@ Page({ |
687 | 694 | |
688 | 695 | if(th.data.bn_exp_type==0) |
689 | 696 | if(th.data.wu_arr==null || th.data.wu_arr.length<=0){ |
690 | - confirmBox("读取物流失败"); | |
697 | + getApp().confirmBox("读取物流失败"); | |
691 | 698 | return false; |
692 | 699 | } |
693 | 700 | |
... | ... | @@ -752,7 +759,7 @@ Page({ |
752 | 759 | console.log(pdata); |
753 | 760 | }else{ |
754 | 761 | //---------购物车的结算--------- |
755 | - if (th.data.is_all_zt == 0 && th.data.user_addr == null) { ff = false;confirmBox("请新建收货地址");} | |
762 | + if (th.data.is_all_zt == 0 && th.data.user_addr == null) { ff = false; getApp().confirmBox("请新建收货地址");} | |
756 | 763 | if (!ff) return false; |
757 | 764 | |
758 | 765 | var addr = th.data.user_addr; |
... | ... | @@ -763,7 +770,7 @@ Page({ |
763 | 770 | |
764 | 771 | if(th.data.is_all_zt !=1) |
765 | 772 | if(th.data.wu_arr==null || th.data.wu_arr.length<=0 ){ |
766 | - confirmBox("读取物流失败"); | |
773 | + getApp().confirmBox("读取物流失败"); | |
767 | 774 | return false; |
768 | 775 | } |
769 | 776 | ... | ... |
pages/cart/cart2_pt/cart2_pt.js
pages/cart/cart_wk/cart_wk.js
... | ... | @@ -59,12 +59,16 @@ Page({ |
59 | 59 | |
60 | 60 | th.getuser_addr(function(addr) { |
61 | 61 | if(addr==null || addr==undefined || addr.length==0) { |
62 | - th.setData({ enterAddressPage: 1,}); | |
62 | + th.setData({ user_addr: null, enterAddressPage: 1,}); | |
63 | 63 | }else { |
64 | 64 | th.setData({ |
65 | 65 | user_addr: addr, enterAddressPage: 0, |
66 | 66 | }); |
67 | 67 | } |
68 | + | |
69 | + if (th.data.exp_type == 0){ | |
70 | + th.calculate_wuliu(); | |
71 | + } | |
68 | 72 | }) |
69 | 73 | |
70 | 74 | }, |
... | ... | @@ -92,13 +96,9 @@ Page({ |
92 | 96 | |
93 | 97 | //------获取会员收货地址----- |
94 | 98 | getuser_addr: function(func) { |
95 | - var to = getApp(), | |
99 | + var to = getApp(), | |
96 | 100 | a = to.request; |
97 | - if (to.globalData.baddr != null) { | |
98 | - var user_addr = to.globalData.baddr; | |
99 | - to.globalData.baddr = null; | |
100 | - func(user_addr); | |
101 | - } else { | |
101 | + | |
102 | 102 | a.get("/api/weshop/useraddress/page", { |
103 | 103 | data: { |
104 | 104 | user_id: to.globalData.user_id, |
... | ... | @@ -115,10 +115,11 @@ Page({ |
115 | 115 | } |
116 | 116 | } |
117 | 117 | if (item == null) item = user_addr[0]; |
118 | + if (item == undefined) item = null; | |
118 | 119 | func(item); |
119 | 120 | } |
120 | 121 | }); |
121 | - } | |
122 | + | |
122 | 123 | }, |
123 | 124 | |
124 | 125 | //----------------展示页面,是再获取用户信息之后-------------- |
... | ... | @@ -312,6 +313,12 @@ Page({ |
312 | 313 | //--立即支付-- |
313 | 314 | to_pay_type: function(ind) { |
314 | 315 | var th=this; |
316 | + | |
317 | + //--物流支付时要有地址-- | |
318 | + if (th.data.exp_type == 0 && th.data.user_addr==null){ | |
319 | + return getApp().my_warnning("请先建地址",0,th); | |
320 | + } | |
321 | + | |
315 | 322 | //---支付参数-- |
316 | 323 | var dd = { |
317 | 324 | order_sn: th.data.order.order_sn, |
... | ... | @@ -323,6 +330,7 @@ Page({ |
323 | 330 | prom_id:th.data.order.pt_prom_id, |
324 | 331 | tail_pay_type:ind,//0微信支付 1余额支付 |
325 | 332 | }; |
333 | + | |
326 | 334 | if(th.data.exp_type==0){ |
327 | 335 | var index=th.data.index; |
328 | 336 | dd.shipping_code=th.data.wu_arr[index].code; |
... | ... | @@ -391,7 +399,7 @@ Page({ |
391 | 399 | case 3: |
392 | 400 | if (goods_piece < 0) goods_piece = 0; |
393 | 401 | //累积商品数量 |
394 | - goods_piece += good['buynum']; | |
402 | + goods_piece += th.data.order.order_goods['goods_num']; | |
395 | 403 | break; |
396 | 404 | } |
397 | 405 | var code = th.data.wu_arr[th.data.index].code; | ... | ... |
pages/cart/cart_wk/cart_wk.wxml
1 | -<!--pages/cart/cart_wk/cart_wk.wxml--> | |
2 | - | |
1 | +<wxs module="filters" src="../../../utils/filter.wxs"></wxs> | |
3 | 2 | <!----要进行判断地址是否显示----> |
4 | 3 | <view bindtap="enterAddressPage" class="user-mes" |
5 | 4 | hidden='{{exp_type==1 }}'> |
... | ... | @@ -80,7 +79,7 @@ |
80 | 79 | </view> |
81 | 80 | <view class='ct_one'> |
82 | 81 | <view class='ct_one_left'>成团单价</view> |
83 | - <view class='ct_one_right'>¥<text class='redwz'>{{order.order_amount+order.user_money+order.pt_tail_money}}</text></view> | |
82 | + <view class='ct_one_right'>¥<text class='redwz'>{{filters.toFix(order.order_amount+order.user_money+order.pt_tail_money,2)}}</text></view> | |
84 | 83 | </view> |
85 | 84 | <view class='ct_one'> |
86 | 85 | <view class='ct_one_left'>支付定金</view> | ... | ... |
pages/goods/goodsInfo/goodsInfo.js
... | ... | @@ -174,12 +174,10 @@ Page({ |
174 | 174 | quan_list:null, //券列表 |
175 | 175 | |
176 | 176 | coupon:0, |
177 | - | |
178 | 177 | //ä¼šå‘˜åˆ†äº«çš„å¤´åƒ |
179 | 178 | share_head:"", |
180 | 179 | share_goods_img:"", |
181 | 180 | |
182 | - | |
183 | 181 | //----------视频图片data傿•°--------- |
184 | 182 | current: 0,//图片计数 |
185 | 183 | swiperCurrent:0,//è½®æ’çš„ä¸‹æ ‡ |
... | ... | @@ -211,7 +209,6 @@ Page({ |
211 | 209 | var ee = this, that=ee, |
212 | 210 | gid = t.goods_id; |
213 | 211 | |
214 | - | |
215 | 212 | //如果tg_id是空的è¯ï¼Œåˆ†äº«å›žæ¥ |
216 | 213 | if (gid == undefined || gid == null || gid == "") { |
217 | 214 | gid = decodeURIComponent(postdata.scene); |
... | ... | @@ -395,8 +392,6 @@ Page({ |
395 | 392 | //---展示--- |
396 | 393 | onShow: function() { |
397 | 394 | |
398 | - | |
399 | - | |
400 | 395 | this.data.is_timer=1; |
401 | 396 | var ee = this,gid = this.data.gid,i=getApp().request; |
402 | 397 | i.get("/api/weshop/goods/get/" + o.stoid + "/" + ee.data.gid, { |
... | ... | @@ -1476,6 +1471,14 @@ Page({ |
1476 | 1471 | user_order_pt_state: 2 |
1477 | 1472 | }); |
1478 | 1473 | } |
1474 | + | |
1475 | + if (odr.pt_status == 2 && odr.is_zsorder == 4) { | |
1476 | + th.setData({ | |
1477 | + user_order_pt_state: 3, | |
1478 | + }); | |
1479 | + th.data.wk_order_id=odr.order_id; | |
1480 | + } | |
1481 | + | |
1479 | 1482 | |
1480 | 1483 | } |
1481 | 1484 | }, |
... | ... | @@ -2215,10 +2218,7 @@ Page({ |
2215 | 2218 | //---产å“åç§°--- |
2216 | 2219 | //文本æ¢è¡Œ 傿•°ï¼š1ã€canvas对象,2ã€æ–‡æœ¬ 3ã€è·ç¦»å·¦ä¾§çš„è·ç¦» 4ã€è·ç¦»é¡¶éƒ¨çš„è·ç¦» 5ã€6ã€æ–‡æœ¬çš„宽度 |
2217 | 2220 | console.log("ssssssss", th.data.data.goods_name); |
2218 | - | |
2219 | -f //文本æ¢è¡Œ 傿•°ï¼š1ã€canvas对象,2ã€æ–‡æœ¬ 3ã€è·ç¦»å·¦ä¾§çš„è·ç¦» 4ã€è·ç¦»é¡¶éƒ¨çš„è·ç¦» 5ã€6ã€æ–‡æœ¬çš„宽度 | |
2220 | - console.log("ssssssss", th.data.data.goods_name); | |
2221 | - | |
2221 | + | |
2222 | 2222 | context.setFillStyle("black"); |
2223 | 2223 | context.setFontSize(21.3 * unit) |
2224 | 2224 | th.draw_Text(context, th.data.data.goods_name, |
... | ... | @@ -2558,6 +2558,10 @@ f //文本æ¢è¡Œ 傿•°ï¼š1ã€canvas对象,2ã€æ–‡æœ¬ 3ã€è·ç¦»å·¦ä¾ |
2558 | 2558 | getApp().goto(url); |
2559 | 2559 | }, |
2560 | 2560 | |
2561 | - | |
2561 | + //--跳转到支付尾款界é¢-- | |
2562 | + go_pay_wk:function () { | |
2563 | + var url = "/pages/cart/cart_wk/cart_wk?order_id="+ this.data.wk_order_id; | |
2564 | + getApp().goto(url); | |
2565 | + } | |
2562 | 2566 | |
2563 | 2567 | }); |
2564 | 2568 | \ No newline at end of file | ... | ... |
pages/goods/goodsInfo/goodsInfo.wxml
... | ... | @@ -682,11 +682,11 @@ |
682 | 682 | |
683 | 683 | </view> |
684 | 684 | <!---阶梯团----> |
685 | - <view bindtap="openSpecModel_pt" data-it="0" wx:if="{{prom_st==1 && !prom_r_null && prom_act.kttype==3}}" class="buy-btn cart-btn line-h"> | |
685 | + <view bindtap="openSpecModel_pt" data-it="0" wx:if="{{prom_st==1 && !prom_r_null && prom_act.kttype==3 && user_order_pt_state!=3 }}" class="buy-btn cart-btn line-h"> | |
686 | 686 | <view class="fir-v">¥{{filters.toFix(prom_act.yf_price,2)}}</view> |
687 | 687 | <view>支付定金</view> |
688 | 688 | </view> |
689 | - | |
689 | + | |
690 | 690 | <view wx:if="{{prom_st==0}}" class="buy-btn cart-btn lanse">即将开始</view> |
691 | 691 | <view wx:if="{{prom_r_null}}" class="buy-btn cart-btn huise">已抢光</view> |
692 | 692 | <view wx:if="{{prom_st==3 && !prom_r_null}}" class="buy-btn cart-btn lanse">活动已经结束</view> |
... | ... | @@ -694,6 +694,7 @@ |
694 | 694 | <block wx:else> |
695 | 695 | <view bindtap="go_to_nopay" wx:if="{{user_order_pt_state==1}}" class="buy-btn cart-btn huise">您还未支付</view> |
696 | 696 | <view bindtap="go_to_team_show" wx:if="{{user_order_pt_state==2}}" class="buy-btn cart-btn">查看支付详情</view> |
697 | + <view wx:if="{{user_order_pt_state==3}}" bindtap="go_pay_wk" class="buy-btn cart-btn">支付尾款</view> | |
697 | 698 | </block> |
698 | 699 | </block> |
699 | 700 | <!---<view bindtap="openSpecModel" class="buy-btn cart-btn cart-btn-lg" wx:else>立即兑换</view>--> | ... | ... |
pages/team/team_ping/team_ping.js
... | ... | @@ -90,34 +90,34 @@ Page({ |
90 | 90 | order_goods=null;//订单商品表 |
91 | 91 | |
92 | 92 | //获取订单表的信息根据活动user_id,pt_prom_id>0 AND pay_time>0 |
93 | + /*--- | |
93 | 94 | await getApp().request.promiseGet("/api/weshop/order/page?"+where, { |
94 | 95 | data: { is_pt:1,store_id: os.stoid, user_id: user_id, pageSize: 6, page: this.data.currentPage,} |
95 | 96 | }).then(res => { |
96 | 97 | order = res.data.data.pageData; |
97 | 98 | this.data.currentPage++; |
99 | + })--*/ | |
100 | + | |
101 | + await getApp().request.promiseGet("/api/weshop/order/pageTuan?"+where, { | |
102 | + data: { is_pt:1,store_id: os.stoid, user_id: user_id, pageSize: 6, page: this.data.currentPage,} | |
103 | + }).then(res => { | |
104 | + order = res.data.data.pageData; | |
105 | + this.data.currentPage++; | |
98 | 106 | }) |
99 | 107 | |
108 | + | |
100 | 109 | wx.showLoading({ title: "加载中"}); |
101 | 110 | for (i = 0; i < order.length; i++) { |
102 | 111 | //获取订单从表信息 |
103 | - await getApp().request.promiseGet("/api/weshop/ordergoods/page", { | |
112 | + await getApp().request.promiseGet("/api/weshop/ordergoods/pageGoods", { | |
104 | 113 | data: { store_id: os.stoid, order_id: order[i].order_id } |
105 | 114 | }).then(res => { |
106 | 115 | order_goods = res.data.data.pageData; |
107 | 116 | order[i].order_goods = order_goods; |
117 | + order[i].gimage = ee.data.imageurl + order_goods[0].original_img; | |
108 | 118 | }) |
109 | 119 | |
110 | - for (var j = 0; j < order_goods.length;j++){ | |
111 | - //获取商品表信息 | |
112 | - await getApp().request.promiseGet("/api/weshop/goods/get/" + os.stoid + "/" + order_goods[j].goods_id, { | |
113 | - data: {} | |
114 | - }).then(res => { | |
115 | - goods = res.data.data; | |
116 | - order[i].goods = goods; | |
117 | - order[i].original_img = this.data.imageurl + goods.original_img; | |
118 | - }) | |
119 | - } | |
120 | - | |
120 | + | |
121 | 121 | //获取订单表信息根据上面查询的订单号order[i].pt_listno |
122 | 122 | await getApp().request.promiseGet("/api/weshop/order/pagePtList", { |
123 | 123 | data: { store_id: os.stoid, pt_listno: order[i].pt_listno,pageSize:60,page:1} |
... | ... | @@ -128,43 +128,19 @@ Page({ |
128 | 128 | order[i].tx=ordertx; |
129 | 129 | }) |
130 | 130 | |
131 | - var teamlist=null; | |
132 | - //获取团的信息 | |
133 | - await getApp().request.promiseGet("/api/weshop/teamlist/get/" + os.stoid + "/" + order[i].pt_prom_id,{ | |
134 | - 1:1 | |
135 | - }).then(res=>{ | |
136 | - teamlist=res.data.data; | |
137 | - order[i].ct_num=teamlist.ct_num; | |
138 | - }) | |
131 | + | |
139 | 132 | |
140 | - if (teamlist.kttype == 3) { | |
133 | + if (order[i].is_zsorder== 4) { | |
141 | 134 | var num = 0; |
142 | - var jt_data = JSON.parse(teamlist.ct_rylist); | |
135 | + var jt_data = JSON.parse(order[i].ct_rylist); | |
143 | 136 | for (var m in jt_data) { |
144 | 137 | if (jt_data[m].rynum > num) num = jt_data[m].rynum; |
145 | 138 | } |
146 | 139 | order[i].max_ct_num = num; |
147 | 140 | } |
148 | 141 | |
149 | - | |
150 | - var teamgroup=null; | |
151 | - //获取活动从表信息team_id:305暂时 | |
152 | - await getApp().request.promiseGet("/api/weshop/teamgroup/page" , { | |
153 | - data: { store_id: os.stoid, listno: order[i].pt_listno, team_id: order[i].pt_prom_id } | |
154 | - }).then(res => { | |
155 | - teamgroup = res.data.data.pageData[0]; | |
156 | - }) | |
157 | - | |
158 | - //--正在进行中的团,才有时间倒计时-- | |
159 | - if(teamgroup && teamgroup.state==2) { | |
160 | - order[i].kt_end_time = teamgroup.kt_end_time; | |
161 | - //---如果参团的人数没有3个人,则要体现沙发--- | |
162 | - order[i].tg_state = teamgroup.state; | |
163 | - | |
164 | - } | |
165 | - | |
166 | - var sf_num=teamlist.ct_num; | |
167 | - if(teamlist.ct_num>=3){ sf_num=3;} | |
142 | + var sf_num = order[i].ct_num; | |
143 | + if (order[i].ct_num>=3){ sf_num=3;} | |
168 | 144 | sf_num=sf_num-ordertx.length; |
169 | 145 | if(sf_num>0) { |
170 | 146 | var arr = []; |
... | ... | @@ -181,7 +157,7 @@ Page({ |
181 | 157 | } |
182 | 158 | |
183 | 159 | wx.hideLoading(); |
184 | - ee.setData({ order: this.data.requestData, ordertx:ordertx}); | |
160 | + ee.setData({ order: this.data.requestData, ordertx: ordertx, isgo:1}); | |
185 | 161 | }, |
186 | 162 | |
187 | 163 | //---滚动到底部加载更多--- |
... | ... | @@ -245,6 +221,13 @@ Page({ |
245 | 221 | return param < 10 ? '0' + param : param; |
246 | 222 | }, |
247 | 223 | |
224 | + images_err:function(e){ | |
225 | + var txt = e.currentTarget.dataset.err; | |
226 | + var ob={}; | |
227 | + ob[txt] = this.data.imageurl + "/miniapp/images/default_g_img.gif"; | |
228 | + this.setData(ob); | |
229 | + } | |
230 | + | |
248 | 231 | |
249 | 232 | }) |
250 | 233 | ... | ... |
pages/team/team_ping/team_ping.wxml
1 | -<!--pages/team_ping/team_ping.wxml--> | |
1 | +<wxs module="filters" src="../../../utils/filter.wxs"></wxs> | |
2 | 2 | |
3 | 3 | <!--选择款--> |
4 | 4 | <view class='top'> |
... | ... | @@ -22,13 +22,12 @@ |
22 | 22 | <view class='pd-list-image'> |
23 | 23 | <view class="xc-list flex"> |
24 | 24 | <view class="frame"> |
25 | - <image src='{{item.original_img}}'></image> | |
25 | + <image src='{{item.gimage}}' binderror='images_err' data-err="order[{{index}}].gimage"></image> | |
26 | 26 | </view> |
27 | 27 | <view> |
28 | 28 | <view class='pd-img-wz1 ellipsis-2'>{{item.goods.goods_name}} |
29 | 29 | </view> |
30 | 30 | |
31 | - | |
32 | 31 | |
33 | 32 | <view class="flex-space-between {{item.pt_status==1? 'xc-price-sn':'xc-price-no'}}"> |
34 | 33 | <view class="flex"> |
... | ... | @@ -63,9 +62,24 @@ |
63 | 62 | <view style='width:100%;border-bottom:10rpx solid #eee; '> |
64 | 63 | <view class='pd-list-foot'> |
65 | 64 | <view class='foot-left'> |
66 | - 共{{item.order_goods[0].goods_num}}件, 金额: | |
67 | - <text class="xc-wc">¥</text> | |
68 | - <view class='foot-l-wz fs35'>{{item.user_money+item.order_amount}}</view> | |
65 | + 共{{item.order_goods[0].goods_num}}件, | |
66 | + <block wx:if="{{item.is_zsorder==4}}"> | |
67 | + <block wx:if="{{item.pt_status==4 || item.pt_status==5}}"> | |
68 | + 定金:<text class="xc-wc">¥</text> | |
69 | + <view class='foot-l-wz fs35'>{{filters.toFix(item.user_money+item.order_amount+item.pt_tail_money,2)}}</view> | |
70 | + </block> | |
71 | + <block wx:else> | |
72 | + <view class='foot-l-wz fs35' wx:if="item.is_zsorder==4"> | |
73 | + 定金:¥{{filters.toFix(item.order_amount+item.user_money,2)}}</view> | |
74 | + <view class='foot-l-wz fs35' wx:else>金额:¥{{filters.toFix(item.order_amount+item.user_money,2)}}</view> | |
75 | + <view class='foot-l-wz2 fs35' wx:if="{{item.pt_tail_money>0}}">尾款:¥{{item.pt_tail_money}}</view> | |
76 | + </block> | |
77 | + | |
78 | + </block> | |
79 | + <block wx:else> | |
80 | + 金额:<text class="xc-wc">¥</text> | |
81 | + <view class='foot-l-wz fs35'>{{filters.toFix(item.user_money+item.order_amount,2)}}</view> | |
82 | + </block> | |
69 | 83 | </view> |
70 | 84 | |
71 | 85 | <view class='foot-right'> |
... | ... | @@ -104,6 +118,6 @@ |
104 | 118 | |
105 | 119 | |
106 | 120 | </view> |
107 | -<view wx:else> | |
108 | -<view class='kon'>暂无更多</view> | |
121 | +<view wx:elif="{{isgo}}"> | |
122 | + <view class='kon'>暂无更多</view> | |
109 | 123 | </view> |
110 | 124 | \ No newline at end of file | ... | ... |
pages/team/team_ping/team_ping.wxss
... | ... | @@ -175,34 +175,28 @@ height:222rpx; |
175 | 175 | |
176 | 176 | |
177 | 177 | .pd-list-foot{ |
178 | - | |
179 | - width: 100%; | |
178 | + width: 100%; | |
180 | 179 | margin: auto; |
181 | - overflow: hidden; | |
182 | - height: 105rpx; | |
183 | - font-size: 28rpx; | |
180 | + font-size: 28rpx; | |
184 | 181 | line-height: 105rpx; |
185 | 182 | color: #000; |
186 | 183 | display: flex; |
187 | 184 | justify-content:space-between; |
188 | - | |
189 | - | |
185 | + | |
190 | 186 | } |
191 | - | |
187 | + | |
192 | 188 | .foot-l-wz{ |
193 | - padding-right: 10rpx; | |
189 | + padding-right: 10rpx; | |
194 | 190 | display: inline-block; |
195 | - font-size: 34rpx; | |
196 | - line-height: 100rpx; | |
197 | - color: #e4374d; | |
191 | + font-size: 34rpx; | |
192 | + color: #e4374d; | |
198 | 193 | font-weight: normal; |
199 | 194 | } |
200 | 195 | |
201 | 196 | .foot-left{ |
202 | 197 | |
203 | - margin-left:19rpx; | |
204 | -min-width: 360rpx; | |
205 | - height: 100rpx; | |
198 | + margin-left:19rpx; | |
199 | + min-width: 360rpx; | |
206 | 200 | line-height: 100rpx; |
207 | 201 | font-size:26rpx; |
208 | 202 | } |
... | ... | @@ -338,11 +332,8 @@ margin-bottom:40rpx; |
338 | 332 | color: #e4374d; |
339 | 333 | border-radius: 7rpx; |
340 | 334 | font-size: 25rpx; |
341 | - | |
342 | - letter-spacing:4; | |
343 | -margin-right:8rpx; | |
344 | - | |
345 | - | |
335 | + margin-right:8rpx; | |
336 | + line-height: 46rpx | |
346 | 337 | } |
347 | 338 | .xc-price-sn{ |
348 | 339 | height:73rpx; |
... | ... | @@ -378,4 +369,12 @@ line-height:100rpx; |
378 | 369 | line-height:121rpx; |
379 | 370 | margin-left:5rpx; |
380 | 371 | |
372 | +} | |
373 | + | |
374 | +.foot-l-wz2{ | |
375 | + font-size: 34rpx; | |
376 | + color: #e4374d; | |
377 | + font-weight: normal; | |
378 | + margin-top:-40rpx; | |
379 | + margin-left:80rpx | |
381 | 380 | } |
382 | 381 | \ No newline at end of file | ... | ... |
pages/team/team_show/team_show.js
... | ... | @@ -684,6 +684,8 @@ Page({ |
684 | 684 | pick_id: th.data.pick_id, |
685 | 685 | user_id: oo.user_id, |
686 | 686 | store_id: th.data.stoid, |
687 | + goods_name: th.data.goods.goods_name, | |
688 | + goods_sn: th.data.goods.goods_sn, | |
687 | 689 | }; |
688 | 690 | //-----拼团----- |
689 | 691 | newd.goods_price = th.data.teamlist.price; | ... | ... |
pages/team/team_success/team_success.js
pages/team/team_success/team_success.wxml
... | ... | @@ -152,16 +152,14 @@ |
152 | 152 | <!-- <block wx:if="{{pay_f!=1 && order.pt_status<2}}"> --> |
153 | 153 | <!----/ // // // //按钮----> |
154 | 154 | |
155 | - <view wx:if="{{teamlist.kttype==3}}" class='bodybutton' bindtap='cmeng'> | |
155 | + <view wx:if="{{teamlist.kttype==3}}" class='bodybutton'> | |
156 | 156 | <!-- 阶梯团 --> |
157 | - <button wx:if="{{p_status==1}}" style='background-color:#fab55a; color:#fff'> | |
157 | + <button wx:if="{{p_status==1}}" bindtap='cmeng' style='background-color:#fab55a; color:#fff'> | |
158 | 158 | 邀请好友参团 |
159 | 159 | </button> |
160 | - <button style='background-color:#42c780;' wx:if="{{p_status==2}}"> | |
160 | + <button bindtap="go_pay_wk" style='background-color:#42c780;' wx:if="{{order.pt_status==2 && order.is_zsorder==4 }}"> | |
161 | 161 | 支付尾款 |
162 | - </button> | |
163 | - | |
164 | - | |
162 | + </button> | |
165 | 163 | </view> |
166 | 164 | <!-- <view wx:elif="{{teamlist.ct_num-ordertx.length>0}}" class='' bindtap='cmeng'> --> |
167 | 165 | ... | ... |
pages/team/team_success/team_success.wxss
... | ... | @@ -234,15 +234,12 @@ width:101rpx; |
234 | 234 | } |
235 | 235 | |
236 | 236 | .bodybutton{ |
237 | - min-height: 60rpx; | |
238 | 237 | width: 90%; |
239 | 238 | margin: 0 auto; |
240 | 239 | text-align: center; |
241 | 240 | line-height: 60rpx; |
242 | 241 | border-radius:15rpx; |
243 | - height: auto; | |
244 | - | |
245 | - | |
242 | + height: auto; | |
246 | 243 | } |
247 | 244 | |
248 | 245 | .bodybutton button{ | ... | ... |
pages/user/index/index.js
... | ... | @@ -75,7 +75,7 @@ Page({ |
75 | 75 | if (su.data.code == 0) { |
76 | 76 | var yuer = parseFloat(th.data.userInfo.user_money - |
77 | 77 | th.data.userInfo.frozen_money - su.data.data.summoney).toFixed(2); |
78 | - th.setData({ txmon: su.data.data.summoney, yuer }); | |
78 | + th.setData({ txmon: su.data.data.summoney, yuer: yuer }); | |
79 | 79 | } |
80 | 80 | } |
81 | 81 | }) | ... | ... |
pages/user/order_detail/order_detail.js
... | ... | @@ -178,4 +178,9 @@ Page({ |
178 | 178 | _errObj[_errImg] = "public/images/default_goods_image_240.gif"; |
179 | 179 | this.setData(_errObj) //注意这里的赋值方式,只是将数据列表中的此项图片路径值替换掉 ; |
180 | 180 | }, |
181 | + | |
182 | + zfwk:function(){ | |
183 | + var url = "/pages/cart/cart_wk/cart_wk?order_id=" + this.data.order.order_id; | |
184 | + getApp().goto(url); | |
185 | + } | |
181 | 186 | }); |
182 | 187 | \ No newline at end of file | ... | ... |
pages/user/order_detail/order_detail.wxml
1 | +<wxs module="filters" src="../../../utils/filter.wxs"></wxs> | |
1 | 2 | <view class="container"> |
2 | 3 | <view class="user-mes" wx:if="{{order.exp_type==0}}"> |
3 | 4 | <view class="user-contact"> |
... | ... | @@ -60,45 +61,58 @@ |
60 | 61 | </view> |
61 | 62 | </view> |
62 | 63 | <view class="price-information information"> |
63 | - <view class="title">价格信息</view> | |
64 | - <view class="item"> | |
65 | - <view>商品总价</view> | |
66 | - <view>¥ {{order.goods_price}}元</view> | |
67 | - </view> | |
68 | - <view class="item" wx:if="{{order.shipping_price>0}}"> | |
69 | - <view>运费</view> | |
70 | - <view>¥ {{order.shipping_price}}元</view> | |
71 | - </view> | |
72 | - <view class="item" wx:if="{{order.coupon_price>0}}"> | |
73 | - <view>优惠券</view> | |
74 | - <view>- ¥ {{order.coupon_price}}元</view> | |
75 | - </view> | |
76 | - <view class="item" wx:if="{{order.integral_money>0}}"> | |
77 | - <view>积分</view> | |
78 | - <view>- ¥ {{order.integral_money}}元</view> | |
79 | - </view> | |
80 | - <view class="item" wx:if="{{order.user_money>0}}"> | |
81 | - <view>余额</view> | |
82 | - <view>- ¥ {{order.user_money}}元</view> | |
83 | - </view> | |
84 | - <view class="item" wx:if="{{order.order_prom_amount>0}}"> | |
85 | - <view>订单优惠</view> | |
86 | - <view>- ¥ {{order.order_prom_amount}}元</view> | |
87 | - </view> | |
88 | - <view class="item" wx:if="{{order.pt_tail_money>0}}"> | |
89 | - <view>尾款金额</view> | |
90 | - <view>- ¥ {{order.pt_tail_money}}元</view> | |
91 | - </view> | |
64 | + <view class="title" style="margin-bottom:10rpx" >价格信息</view> | |
65 | + <view class="item pnew" wx:if="{{order.is_zsorder==4}}"> | |
66 | + <view>商品总价</view> | |
67 | + <view>¥ {{filters.toFix(order.order_goods[0].member_goods_price*order.order_goods[0].goods_num,2)}}元</view> | |
68 | + </view> | |
69 | + <view class="item pnew" wx:else> | |
70 | + <view>商品总价</view> | |
71 | + <view>¥ {{order.goods_price}}元</view> | |
72 | + </view> | |
92 | 73 | |
74 | + <view class="item pnew"> | |
75 | + <view>定金金额</view> | |
76 | + <view>¥ {{filters.toFix(order.order_amount+order.user_money,2)}}元</view> | |
77 | + </view> | |
78 | + <view class="item pnew" wx:if="{{order.pt_tail_money>0}}"> | |
79 | + <view>尾款金额</view> | |
80 | + <view>¥ {{order.pt_tail_money}}元</view> | |
81 | + </view> | |
93 | 82 | |
94 | - <view class="item"> | |
95 | - <view>实付金额</view> | |
96 | - <view class="pay-amount">¥ {{order.order_amount}}元</view> | |
97 | - </view> | |
83 | + <view class="item pnew" wx:if="{{order.shipping_price>0}}"> | |
84 | + <view>配送费用</view> | |
85 | + <view>¥ {{order.shipping_price}}元</view> | |
86 | + </view> | |
87 | + <view class="item pnew" wx:if="{{order.coupon_price>0}}"> | |
88 | + <view>优惠券</view> | |
89 | + <view> ¥ {{order.coupon_price}}元</view> | |
90 | + </view> | |
91 | + | |
92 | + <view class="item pnew" wx:if="{{order.integral_money>0}}"> | |
93 | + <view>积分</view> | |
94 | + <view> ¥ {{order.integral_money}}元</view> | |
95 | + </view> | |
96 | + | |
97 | + <view class="item pnew" wx:if="{{order.order_prom_amount>0}}"> | |
98 | + <view>订单优惠</view> | |
99 | + <view>¥ {{order.order_prom_amount}}元</view> | |
100 | + </view> | |
101 | + | |
102 | + <view class="item" wx:if="{{order.pt_tail_money>0}}"> | |
103 | + <view>订单总价</view> | |
104 | + <view>¥ {{filters.toFix(order.order_amount+order.user_money+order.pt_tail_money)}}元</view> | |
105 | + </view> | |
106 | + | |
107 | + <view class="item-line"></view> | |
108 | + <view class="item" wx:if="{{order.user_money>0}}"> | |
109 | + <view>使用余额</view> | |
110 | + <view>¥ {{order.user_money}}元</view> | |
111 | + </view> | |
98 | 112 | </view> |
99 | 113 | |
100 | 114 | <view class="btn-wrap"> |
101 | - <view bindtap="zfwk" class="tips-btn" wx:if="{{order.pt_tail_money>0}}">支付尾款</view> | |
115 | + <view bindtap="zfwk" class="tips-btn" wx:if="{{order.pt_tail_money>0 && order.pt_status==2 }}">支付尾款</view> | |
102 | 116 | <view bindtap="jumpToCart4" class="tips-btn" hidden="{{!order.pay_btn}}">立即付款</view> |
103 | 117 | <navigator bindtap="confirmOrder" class="tips-btn" hidden="{{!order.receive_btn}}">收货确认</navigator> |
104 | 118 | <navigator class="tips-btn" hidden="{{!order.shipping_btn}}" url="/pages/user/express/express?order_id={{order.order_id}}">查看物流</navigator> | ... | ... |
pages/user/order_detail/order_detail.wxss
... | ... | @@ -119,7 +119,7 @@ |
119 | 119 | .information .title { |
120 | 120 | height: 70rpx; |
121 | 121 | line-height: 70rpx; |
122 | - border-bottom: 1px solid #ddd; | |
122 | + border-bottom: 1rpx solid #ddd; | |
123 | 123 | font-size: 34rpx; |
124 | 124 | color: #333; |
125 | 125 | } |
... | ... | @@ -130,8 +130,15 @@ |
130 | 130 | height: 60rpx; |
131 | 131 | line-height: 60rpx; |
132 | 132 | font-size: 30rpx; |
133 | - color: #666; | |
133 | + color: #333; | |
134 | +} | |
135 | + | |
136 | +.information .item.pnew{ | |
137 | + height: 50rpx; | |
138 | + line-height: 50rpx; | |
139 | + color: #999; | |
134 | 140 | } |
141 | +.item-line{ margin: 5rpx 0; height: 1rpx; border-bottom:1rpx solid #ddd } | |
135 | 142 | |
136 | 143 | .delivery-address,.leave-word { |
137 | 144 | width: 500rpx; | ... | ... |
pages/user/order_list/order_list.wxml
1 | +<wxs module="filters" src="../../../utils/filter.wxs"></wxs> | |
1 | 2 | <view class="container"> |
2 | 3 | <view class="type-navbar"> |
3 | 4 | <view class="type-box" wx:for="{{categories}}" wx:key="{{index}}"> |
... | ... | @@ -48,8 +49,15 @@ |
48 | 49 | <view class="goods-tips"> |
49 | 50 | <view class="order-total"> |
50 | 51 | 共{{item.g_num}}件,<view class="goods-total"> |
51 | - <view>金额:¥{{item.order_amount+item.user_money}}</view> | |
52 | + <block wx:if="{{item.pt_status==4 || item.pt_status==5 }}"> | |
53 | + <view>金额:¥{{filters.toFix(item.order_amount+item.user_money+item.pt_tail_money,2)}}</view> | |
54 | + </block> | |
55 | + <block wx:else> | |
56 | + <view wx:if="{{item.is_zsorder==4}}">定金:¥{{filters.toFix(item.order_amount+item.user_money,2)}}</view> | |
57 | + <view wx:else>金额:¥{{filters.toFix(item.order_amount+item.user_money,2)}}</view> | |
52 | 58 | <view wx:if="{{item.pt_tail_money>0}}">尾款:¥{{item.pt_tail_money}}</view> |
59 | + </block> | |
60 | + | |
53 | 61 | </view> |
54 | 62 | </view> |
55 | 63 | <view class="check-btn"> | ... | ... |
pages/user/order_list/order_list.wxss
... | ... | @@ -36,7 +36,7 @@ |
36 | 36 | .goods-box { |
37 | 37 | width: 100%; |
38 | 38 | background-color: #fff; |
39 | - padding: 0 30rpx; | |
39 | + padding: 0 25rpx; | |
40 | 40 | margin-bottom: 20rpx; |
41 | 41 | font-size: 28rpx; |
42 | 42 | border-bottom: 1rpx solid #eee; |
... | ... | @@ -117,7 +117,7 @@ |
117 | 117 | .order-total { |
118 | 118 | display: flex; |
119 | 119 | justify-content: flex-start; |
120 | - font-size: 32rpx; | |
120 | + font-size: 31rpx; | |
121 | 121 | color: #333; |
122 | 122 | } |
123 | 123 | |
... | ... | @@ -127,12 +127,12 @@ |
127 | 127 | } |
128 | 128 | |
129 | 129 | .order-btn { |
130 | - width: 150rpx; | |
130 | + width: 125rpx; | |
131 | 131 | height: 60rpx; |
132 | 132 | line-height: 60rpx; |
133 | 133 | text-align: center; |
134 | 134 | border: 1px solid #eee; |
135 | - margin-left: 20rpx; | |
135 | + margin-left: 10rpx; | |
136 | 136 | float: right; |
137 | 137 | border-radius: 5rpx; |
138 | 138 | } | ... | ... |