Commit 870c0199c75574d3a80559478e0074a95efad1da

Authored by yvan.ni
1 parent d3875c47

1、 商品点击量

2、 商品的参团列表的修改
pages/goods/goodsInfo/goodsInfo.js
... ... @@ -501,6 +501,11 @@ Page({
501 501 }, 500)
502 502 },700)
503 503 });
  504 +
  505 + //更新点击量
  506 + getApp().request.put("/api/weshop/goods/updateClick",{
  507 + data:{store_id:os.stoid,goods_id:gid}
  508 + })
504 509 },
505 510  
506 511  
... ... @@ -3091,16 +3096,23 @@ Page({
3091 3096 grounp_tatal = 0;
3092 3097 //如果活动是开团不是商家团
3093 3098 if (this.data.prom_act.kttype > 1) {
3094   - //获取活动从表信息team_id
3095   - await getApp().request.promiseGet("/api/weshop/teamgroup/page", {
3096   - data: {
  3099 +
  3100 + var req_data={
3097 3101 store_id: os.stoid,
3098 3102 pageSize: 3,
3099 3103 page: 1,
3100 3104 state: 2,
3101 3105 team_id: prom_id,
3102 3106 ordernum:1
3103   - }
  3107 + };
  3108 +
  3109 + if(this.data.prom_act.kttype==3 && this.data.prom_act.max_ct_num ){
  3110 + req_data.max_num=this.data.prom_act.max_ct_num;
  3111 + }
  3112 +
  3113 + //获取活动从表信息team_id
  3114 + await getApp().request.promiseGet("/api/weshop/teamgroup/page", {
  3115 + data: req_data
3104 3116 }).then(res => {
3105 3117 teamgroup = res.data.data.pageData;
3106 3118 grounp_tatal = res.data.data.total;
... ...
pages/team/team_more/team_more.js
... ... @@ -58,11 +58,20 @@ Page({
58 58 user = null,
59 59 ee = this, th=ee,
60 60 pt_status = 1;//已支付
61   -
  61 +
  62 + var req_data={
  63 + store_id: os.stoid, pageSize:6,page:ee.data.currentPage,
  64 + state: 2, team_id: team_id,ordernum:1
  65 + }
  66 +
  67 + if(this.data.pt_act.kttype==3 && this.data.pt_act.max_num){
  68 + req_data.max_num=this.data.pt_act.max_num;
  69 + }
  70 +
  71 +
62 72 //获取活动从表信息team_id
63 73 await getApp().request.promiseGet("/api/weshop/teamgroup/page", {
64   - data: { store_id: os.stoid, pageSize:6,page:ee.data.currentPage,
65   - state: 2, team_id: team_id,ordernum:1 }
  74 + data: req_data
66 75 }).then(res => {
67 76 teamgroup = res.data.data.pageData;
68 77 console.log(teamgroup);
... ...