You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
564 B
19 lines
564 B
module.exports = function (args) { |
|
var app = this; |
|
let currentPage = app.page.currentPage; |
|
let currentPageOptions = app.page.currentPageOptions; |
|
if (currentPage && currentPage.route === 'pages/index/index') { |
|
if (app.platform === 'my') { |
|
return ; |
|
} |
|
} |
|
this.request({ |
|
url:this.api.share.index, |
|
success:function(res){ |
|
if(res.code == 0){ |
|
app.page.setPhone(); |
|
app.trigger.run(app.trigger.events.login); |
|
} |
|
} |
|
}); |
|
};
|
|
|