Commit 87d2e0fba1f36fe2f073ed14879059e9c574084d

Authored by 前端研发-钱巧玲
1 parent bc57a2f0

判断是否是新人会员代码注释掉

Showing 1 changed file with 30 additions and 30 deletions
pages/index/index/index.js
... ... @@ -615,36 +615,36 @@ Page({
615 615 },
616 616 //判断该用户是否是新会员
617 617 is_new: function () {
618   - var th = this;
619   - getApp().request.promiseGet("/api/weshop/marketing/newpeople/act/judge", {
620   - data: {
621   - storeId: o.stoid,
622   - userId: d.user_id
623   - }
624   - }).then(res => {
625   - var swiperimage = th.data.swiperimage;
626   - swiperimage.push("/api/weshop/marketing/newpeople/act/bound/judge");
627   - if (res.data.code == 0) {
628   - th.setData({
629   - is_disgraceful:1
630   - })
631   - }
632   - })
633   -
634   - getApp().request.promiseGet("/api/weshop/marketing/newpeople/act/judge", {
635   - data: {
636   - storeId: o.stoid,
637   - userId: d.user_id
638   - }
639   - }).then(res => {
640   - var swiperimage = th.data.swiperimage;
641   - swiperimage.push("/miniapp/images/newpeople/newpeople.png");
642   - if (res.data.code == 0) {
643   - th.setData({
644   - swiperimage: swiperimage
645   - })
646   - }
647   - })
  618 + // var th = this;
  619 + // getApp().request.promiseGet("/api/weshop/marketing/newpeople/act/judge", {
  620 + // data: {
  621 + // storeId: o.stoid,
  622 + // userId: d.user_id
  623 + // }
  624 + // }).then(res => {
  625 + // var swiperimage = th.data.swiperimage;
  626 + // swiperimage.push("/api/weshop/marketing/newpeople/act/bound/judge");
  627 + // if (res.data.code == 0) {
  628 + // th.setData({
  629 + // is_disgraceful:1
  630 + // })
  631 + // }
  632 + // })
  633 +
  634 + // getApp().request.promiseGet("/api/weshop/marketing/newpeople/act/judge", {
  635 + // data: {
  636 + // storeId: o.stoid,
  637 + // userId: d.user_id
  638 + // }
  639 + // }).then(res => {
  640 + // var swiperimage = th.data.swiperimage;
  641 + // swiperimage.push("/miniapp/images/newpeople/newpeople.png");
  642 + // if (res.data.code == 0) {
  643 + // th.setData({
  644 + // swiperimage: swiperimage
  645 + // })
  646 + // }
  647 + // })
648 648  
649 649 }
650 650  
... ...