mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
33 lines
953 B
JavaScript
33 lines
953 B
JavaScript
const utils = require("../../utils/util.js")
|
|
const app = getApp()
|
|
|
|
Page({
|
|
data: {
|
|
msg: {append: ["key", "name"]},
|
|
},
|
|
refresh: function() {var page = this
|
|
app.request("river", {}, function(msg) {page.setData({msg: msg})
|
|
msg.nRow() == 1 && page.toStorm(0)
|
|
})
|
|
},
|
|
|
|
toStorm: function(index) {app.jumps("storm/storm", {river: this.data.msg.key[index]})},
|
|
|
|
onFocus: function(event) {},
|
|
onInput: function(event) {},
|
|
onEnter: function(event) {},
|
|
onClick: function(event) {this.toStorm(event.currentTarget.dataset.index)},
|
|
|
|
onLoad: function (options) {
|
|
app.conf.sessid = app.conf.sessid || options.sessid
|
|
this.refresh()
|
|
},
|
|
onReady: function () {},
|
|
onShow: function () {},
|
|
onHide: function () {},
|
|
onUnload: function () {},
|
|
onPullDownRefresh: function () {this.refresh()},
|
|
onReachBottom: function () {},
|
|
onShareAppMessage: function () {}
|
|
})
|