123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- const webSocket = require('../../../utils/websocket.js');
- const app = getApp();
- Page({
- /**
- * 页面的初始数据
- */
- data: {
- focus: false,
- // scrollTop: 100,
- },
- /**
- * 生命周期函数--监听页面加载
- */
- onLoad: function (options) {
- var that = this;
- // that.bottom();
- // 发送
- // webSocket.sendSocketMessage({
- // msg: JSON.stringify({
- // type: 'ping',
- // data: '1111',
- // })
- // });
- // webSocket.onSocketMessageCallback = this.onSocketMessageCallback;
- },
- // 接收
- // onSocketMessageCallback: function (e) {
- // console.log('33333' + e);
- // }
- // 获取hei的id节点然后屏幕焦点调转到这个节点
- // bottom: function () {
- // var that = this;
- // that.setData({
- // scrollTop: 1000000
- // })
- // },
- // bindTextAreaBlur: function (e) {
- // console.log(e.detail.value)
- // }
- })
|