Commit efbf89ccdca0ad9a6ff40326dc7c93cf0f29d12b
1 parent
edd38263
首页判断是否新用户bug修复
Showing
2 changed files
with
4 additions
and
4 deletions
pages/index/index/index.js
... | ... | @@ -6,6 +6,7 @@ var e = function (e) { |
6 | 6 | i = require("../../../utils/util.js"), ut = i, s = require("../../../utils/common.js"), n = new e.default(); |
7 | 7 | var regeneratorRuntime = require('../../../utils/runtime.js'); |
8 | 8 | var api = require('../../../api/api.js'); |
9 | +var d = getApp().globalData; | |
9 | 10 | |
10 | 11 | Page({ |
11 | 12 | data: { |
... | ... | @@ -480,8 +481,6 @@ Page({ |
480 | 481 | countDown2() { |
481 | 482 | if(!this.data.is_timer) return false; |
482 | 483 | |
483 | - | |
484 | - | |
485 | 484 | var th = this; |
486 | 485 | // 获取当前时间,同时得到活动结束时间数组 |
487 | 486 | var newTime = ut.gettimestamp(); |
... | ... | @@ -618,9 +617,9 @@ Page({ |
618 | 617 | is_new: function () { |
619 | 618 | var th = this; |
620 | 619 | var url = "/api/weshop/marketing/newpeople/get"; |
621 | - getApp().request.promiseGet(res, { | |
620 | + getApp().request.promiseGet(url, { | |
622 | 621 | data: { |
623 | - storeId: r.stoid, | |
622 | + storeId: o.stoid, | |
624 | 623 | userId: d.user_id |
625 | 624 | } |
626 | 625 | }).then(res => { | ... | ... |