Commit f5e763bde08bbb97d6eef3c9cc0683776b02cb8e

Authored by yvan.ni
1 parent 70ccaaa4

1. 提交订单的页面等级卡购买后价格正确获取

Showing 1 changed file with 5 additions and 3 deletions
pages/cart/cart2/cart2.js
@@ -304,7 +304,7 @@ Page({ @@ -304,7 +304,7 @@ Page({
304 show_page:function(){ 304 show_page:function(){
305 var th=this,ta = this.data.param; 305 var th=this,ta = this.data.param;
306 th.setData({ 306 th.setData({
307 - userinfo: to.globalData.userInfo,}); 307 + userinfo: getApp().globalData.userInfo,});
308 308
309 //选获取地址 309 //选获取地址
310 th.getuser_addr(function(addr){ 310 th.getuser_addr(function(addr){
@@ -364,7 +364,8 @@ Page({ @@ -364,7 +364,8 @@ Page({
364 } 364 }
365 365
366 //-- 如果是等级会员注册返回 -- 366 //-- 如果是等级会员注册返回 --
367 - if(is_card_back){ 367 + if(is_card_back){
  368 + th.data.card_name=th.data.userinfo.card_field;
368 // 拼团,搭配购不计算,赠品也不计算 369 // 拼团,搭配购不计算,赠品也不计算
369 if( item['prom_type']!=5 && item['prom_type']!=6 && !item.is_gift && !item['is_collocation'] && item.goods_price>item[th.data.card_name] ){ 370 if( item['prom_type']!=5 && item['prom_type']!=6 && !item.is_gift && !item['is_collocation'] && item.goods_price>item[th.data.card_name] ){
370 item.goods_price=item[th.data.card_name]; 371 item.goods_price=item[th.data.card_name];
@@ -494,7 +495,8 @@ Page({ @@ -494,7 +495,8 @@ Page({
494 495
495 //---是不是购买等级卡成功的返回---等级卡显示的判断--- 496 //---是不是购买等级卡成功的返回---等级卡显示的判断---
496 var is_card_back=getApp().globalData.is_card_back; 497 var is_card_back=getApp().globalData.is_card_back;
497 - if(is_card_back){ 498 + if(is_card_back){
  499 + th.data.card_name=th.data.userinfo.card_field;
498 gg.goods_price=gd[th.data.card_name]; 500 gg.goods_price=gd[th.data.card_name];
499 getApp().globalData.is_card_back=0; 501 getApp().globalData.is_card_back=0;
500 th.setData({card_cut_price:0}); 502 th.setData({card_cut_price:0});