| | |
| | | onShow() { |
| | | this.cacheUserId = '' |
| | | this.getTj() |
| | | // #ifdef PUB_CUSTOMER |
| | | let that = this |
| | | this.$http.request('get', '/api/customer/point/sign/sign/today', {}).then(res => { |
| | | if (res.data) { |
| | | that.signToday = true |
| | | } |
| | | }) |
| | | |
| | | // #endif |
| | | //判断有没有签到 |
| | | |
| | | }, |
| | | onLoad(options) { |
| | |
| | | this.cacheUserId = this.currentInfo.id |
| | | let that = this |
| | | setTimeout(() => { |
| | | |
| | | |
| | | |
| | | // #ifdef PUB_CUSTOMER |
| | | this.$http.request('get', '/api/customer/center/tj', {}).then(res => { |
| | | if (res.code === 0) { |
| | |
| | | console.log('tj_order', that.tj_order) |
| | | } |
| | | }) |
| | | |
| | | //判断有没有签到 |
| | | let that = this |
| | | this.$http.request('get', '/api/customer/point/sign/sign/today', {}).then(res => { |
| | | if (res.data) { |
| | | that.signToday = true |
| | | } |
| | | }) |
| | | |
| | | // #endif |
| | | }, 200) |