Commit 24300617958790967c2ff43cd76012eb68c714ec

Authored by WXD-SEASON\season
2 parents ea45d556 d6859088

首页解决冲突

pages/goods/goodsInfo/goodsInfo.js
... ... @@ -149,6 +149,7 @@ Page({
149 149  
150 150 //商品的活动类型 0普通 1秒杀 2团购 3优惠 4 积分购 6拼单
151 151 prom_type: 0,
  152 + f_prom_type: 0, //前端判断要不要显示券
152 153 prom_time_text: "",
153 154 prom_price: null,
154 155 f_prom_price: null, //秒杀使用
... ... @@ -434,9 +435,15 @@ Page({
434 435 }
435 436 })
436 437  
437   - if (!getApp().globalData.user_id) {
438   - ut.new_user_go(os.stoid, first_leader);
439   - }
  438 +
  439 +
  440 + //先查看一下是不是系统会员
  441 + getApp().waitfor_login(()=>{
  442 + if (!getApp().globalData.user_id) {
  443 + ut.new_user_go(os.stoid, first_leader);
  444 + }
  445 + })
  446 +
440 447 }
441 448  
442 449 //-- 如果有房间号 --
... ... @@ -3412,7 +3419,6 @@ Page({
3412 3419 if(this.data.sp_seleing){
3413 3420 return false;
3414 3421 }
3415   -
3416 3422 this.setData({sp_seleing:1,more_flash:null})
3417 3423  
3418 3424 var that = this;
... ... @@ -4762,6 +4768,7 @@ Page({
4762 4768 ee.setData({
4763 4769 prom_price: t.data.data.price,
4764 4770 prom_type: 2,
  4771 + f_prom_type: 2,
4765 4772 prom_id: prom_id,
4766 4773 prom_buy_limit: t.data.data.buy_limit,
4767 4774 prom_act: t.data.data,
... ... @@ -4860,7 +4867,9 @@ Page({
4860 4867 prom_price: t.data.data.user_price,
4861 4868 f_prom_price: t.data.data.user_price,
4862 4869 prom_type: 1,
  4870 + f_prom_type: 1,
4863 4871 prom_id: prom_id,
  4872 + f_prom_id: prom_id,
4864 4873 prom_buy_limit: t.data.data.buy_limit,
4865 4874 prom_act: t.data.data,
4866 4875 f_prom_act: t.data.data,
... ... @@ -4997,6 +5006,7 @@ Page({
4997 5006 prom_price: parseFloat(inte_data.addmoney),
4998 5007 prom_integral: parseFloat(inte_data.integral),
4999 5008 prom_type: 4,
  5009 + f_prom_type: 4,
5000 5010 prom_id: inte_data.id,
5001 5011 prom_buy_limit: inte_data.limitvipqty,
5002 5012 prom_act: inte_data,
... ...
pages/goods/goodsInfo/goodsInfo.wxml
... ... @@ -675,8 +675,8 @@
675 675 </view>
676 676  
677 677  
678   - <!-- 许程 7.24暂时注释 -->
679   - <view class="bdt16" wx:if="{{ prom_type!=1 && prom_act.kttype!=3&&prom_act.kttype!=2&&prom_act.kttype!=1 && is_closecoupon!=1 && front_g.is_xz_yh !=1 && fir_quan.length>0 }}">
  678 + <!-- 许程 7.24暂时注释,秒杀,团购,积分,拼团的详情页面不显示券的领取 -->
  679 + <view class="bdt16" wx:if="{{ f_prom_type!=1 && f_prom_type!=2 && f_prom_type!=4 && f_prom_type!=6 && prom_act.kttype!=3&&prom_act.kttype!=2&&prom_act.kttype!=1 && is_closecoupon!=1 && front_g.is_xz_yh !=1 && fir_quan.length>0 }}">
680 680 <view data-coupon="1" bindtap="switchCoupon" class="cx-frame flex" style="position: relative">
681 681 <view class="cx-sizs fs30">领券</view>
682 682 <view class="flex ai_c f1 pdh20">
... ...
pages/goods/goodsList/goodsList.js
... ... @@ -68,9 +68,13 @@ Page({
68 68 getApp().globalData.guide_pick_id= res.data.data.pickup_id
69 69 }
70 70 })
71   - if(!getApp().globalData.user_id){
72   - ut.new_user_go(oo.stoid,first_leader);
73   - }
  71 +
  72 + //先查看一下是不是系统会员
  73 + getApp().waitfor_login(()=> {
  74 + if (!getApp().globalData.user_id) {
  75 + ut.new_user_go(oo.stoid, first_leader);
  76 + }
  77 + })
74 78 }
75 79  
76 80 var th=this;
... ... @@ -302,12 +306,18 @@ Page({
302 306 })
303 307 }
304 308 //--送赠品--
305   - if(parseInt(content.is_gift)) {
  309 + if(parseInt(content.is_gift) && content.zp_mode==0) {
306 310 //-- 获取 --
307 311 await getApp().request.promiseGet("/api/weshop/prom/gift/page?id="+content.gift+"&store_id="+oo.stoid, {
308 312 }).then(res => {
309 313 if(ut.ajax_ok(res))
  314 +
310 315 arr[i].content.gift_name=res.data.data.pageData[0].goods_name;
  316 + if(!content.zpname_type) content.zpname_type='';
  317 +
  318 + if(parseInt(content.zpname_type)>0){
  319 + arr[i].content.gift_name=res.data.data.pageData[0].title;
  320 + }
311 321 })
312 322 }
313 323  
... ...
pages/index/index/index.js
... ... @@ -133,6 +133,7 @@ Page({
133 133 // console.error(getApp().globalData.groupchat_id);
134 134 // console.error('群id------------------------------------------2222222222222222222222');
135 135 // getApp().globalData.groupchat_id=1
  136 +
136 137 console.log("first_leader:" + first_leader, "onload");
137 138  
138 139  
... ... @@ -224,6 +225,7 @@ Page({
224 225 getApp().request.promiseGet('/api/weshop/redmoney/redConfig/get/' + getApp().globalData.setting.stoid, {
225 226 data: {}
226 227 }).then(function (data) {
  228 +
227 229 let code = data.data.code;
228 230 let resdata = data.data.data;
229 231 if (code == 0 && resdata.is_index) {
... ...
pages/user/index/index.js
... ... @@ -103,9 +103,12 @@ Page({
103 103 }
104 104 })
105 105  
106   - if(!getApp().globalData.user_id){
107   - ut.new_user_go(os.stoid,first_leader);
108   - }
  106 + //先查看一下是不是系统会员
  107 + getApp().waitfor_login(()=> {
  108 + if (!getApp().globalData.user_id) {
  109 + ut.new_user_go(os.stoid, first_leader);
  110 + }
  111 + })
109 112  
110 113 }else{
111 114 // app.getUserFir();
... ...