...
|
...
|
@@ -4,7 +4,9 @@ import ZeroSellService from '../service/zero-sell' |
|
|
import CommonService from '../service/common'
|
|
|
import router from '../router/router'
|
|
|
|
|
|
var app = null;
|
|
|
const event = global.event;
|
|
|
|
|
|
var app = getApp();
|
|
|
|
|
|
Component({
|
|
|
/**
|
...
|
...
|
@@ -42,8 +44,6 @@ Component({ |
|
|
ready() {
|
|
|
this.service = new ZeroSellService();
|
|
|
this.commonService = new CommonService();
|
|
|
|
|
|
app = getApp();
|
|
|
},
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -54,9 +54,9 @@ Component({ |
|
|
wx.showLoading({
|
|
|
mask: true
|
|
|
});
|
|
|
|
|
|
let userInfo = app.getUserInfo();
|
|
|
|
|
|
event.emit('user-is-login', {logged: this.logged.bind(this), loginSuccess: function(){}});
|
|
|
},
|
|
|
logged(userInfo) {
|
|
|
this.service.fetchCode({
|
|
|
shareUid: this.properties.shareUid,
|
|
|
uid: app.getUid(),
|
...
|
...
|
@@ -99,7 +99,7 @@ Component({ |
|
|
url: '/pages/zeroSell/index?reload=0',
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
cancelAlert() {
|
...
|
...
|
|