feat: add animated choice modes and bracket editor
Verify mini program and deploy preview / verify-deploy (push) Successful in 50s
Verify mini program and deploy preview / verify-deploy (push) Successful in 50s
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
var api = require('../../utils/api');
|
||||
|
||||
Page({
|
||||
data: { results: [], loading: true, error: '' },
|
||||
onLoad: function () { this.load(); },
|
||||
load: function () {
|
||||
var self = this;
|
||||
api.request('/api/v1/results/discover').then(function (results) {
|
||||
self.setData({ results: results, loading: false, error: '' });
|
||||
}).catch(function (error) {
|
||||
self.setData({ loading: false, error: error.message || '加载失败' });
|
||||
});
|
||||
},
|
||||
openHome: function () { xhs.redirectTo({ url: '/pages/index/index' }); },
|
||||
openMe: function () { xhs.redirectTo({ url: '/pages/me/me' }); }
|
||||
});
|
||||
Reference in New Issue
Block a user