Commit 311cbe4d0d10e2c83a02acb7e364f87929021a4c

Authored by yvan.ni
1 parent c789c38c

拼团

packageA/pages/serviceCard_pd/goodsInfo/goodsInfo.js
@@ -3169,8 +3169,12 @@ Page({ @@ -3169,8 +3169,12 @@ Page({
3169 } 3169 }
3170 } 3170 }
3171 3171
3172 - //-------查看有多少人在开这个团-------  
3173 - th.get_team_group(prom_id); 3172 + //-- 如果不是限定连接的时候 --
  3173 + if(!t.data.data.is_share){
  3174 + //-------查看有多少人在开这个团-------
  3175 + th.get_team_group(prom_id);
  3176 + }
  3177 +
3174 } 3178 }
3175 }); 3179 });
3176 } 3180 }
packageA/pages/serviceCard_pd/team_more/team_more.js
@@ -32,8 +32,16 @@ Page({ @@ -32,8 +32,16 @@ Page({
32 getApp().request.promiseGet("/api/weshop/teamlist/get/" + os.stoid + "/" + team_id, { 32 getApp().request.promiseGet("/api/weshop/teamlist/get/" + os.stoid + "/" + team_id, {
33 data: {} 33 data: {}
34 }).then(res => { 34 }).then(res => {
35 - if (res.data.code == 0) { 35 + if (res.data.code == 0 && res.data.data) {
36 teamlist = res.data.data; 36 teamlist = res.data.data;
  37 +
  38 + //是不是限定连接了
  39 + if(teamlist.is_share){
  40 + getApp().confirmBox('该活动已经限定链接参团',()=>{
  41 + getApp().goto('/pages/index/index/index');
  42 + })
  43 + return false;
  44 + }
37 var jt_team_num=teamlist.ct_rylist; 45 var jt_team_num=teamlist.ct_rylist;
38 if (jt_team_num != "" && jt_team_num != null && jt_team_num!= undefined) { 46 if (jt_team_num != "" && jt_team_num != null && jt_team_num!= undefined) {
39 var team_num_arr = JSON.parse(jt_team_num); 47 var team_num_arr = JSON.parse(jt_team_num);
packageF/pages/team/team_more/team_more.js
@@ -33,8 +33,19 @@ Page({ @@ -33,8 +33,19 @@ Page({
33 getApp().request.promiseGet("/api/weshop/teamlist/get/" + os.stoid + "/" + team_id, { 33 getApp().request.promiseGet("/api/weshop/teamlist/get/" + os.stoid + "/" + team_id, {
34 data: {} 34 data: {}
35 }).then(res => { 35 }).then(res => {
36 - if (res.data.code == 0) { 36 + if (res.data.code == 0 && res.data.data) {
37 teamlist = res.data.data; 37 teamlist = res.data.data;
  38 +
  39 + //是不是限定连接了
  40 + if(teamlist.is_share){
  41 +
  42 + getApp().confirmBox('该活动已经限定链接参团',()=>{
  43 + getApp().goto('/pages/index/index/index');
  44 + })
  45 +
  46 + return false;
  47 + }
  48 +
38 var jt_team_num=teamlist.ct_rylist; 49 var jt_team_num=teamlist.ct_rylist;
39 if (jt_team_num != "" && jt_team_num != null && jt_team_num!= undefined) { 50 if (jt_team_num != "" && jt_team_num != null && jt_team_num!= undefined) {
40 var team_num_arr = JSON.parse(jt_team_num); 51 var team_num_arr = JSON.parse(jt_team_num);
pages/goods/goodsInfo/goodsInfo.js
@@ -5231,8 +5231,13 @@ Page({ @@ -5231,8 +5231,13 @@ Page({
5231 ee.countDown(endTime2); 5231 ee.countDown(endTime2);
5232 } 5232 }
5233 } 5233 }
5234 - //-------查看有多少人在开这个团-------  
5235 - th.get_team_group(prom_id); 5234 +
  5235 + //如果不是限定连接的情况下
  5236 + if(!t.data.data.is_share){
  5237 + //-------查看有多少人在开这个团-------
  5238 + th.get_team_group(prom_id);
  5239 + }
  5240 +
5236 } 5241 }
5237 }); 5242 });
5238 } 5243 }