|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- // pages/list/list.js
- Page({
-
- /**
- * 页面的初始数据
- */
- data: {
- dataArr: [
- {name: '1冥', age: 16, className: '阿瑟斯s1'},
- {name: '2冥', age: 26, className: '阿瑟斯s2'},
- {name: '3冥', age: 36, className: '阿瑟斯s3'},
- {name: '4冥', age: 46, className: '阿瑟斯s4'},
- ],
- isShow: true,
- imgUrls: [
- 'https://images.unsplash.com/photo-1551334787-21e6bd3ab135?w=640',
- 'https://images.unsplash.com/photo-1551214012-84f95e060dee?w=640',
- 'https://images.unsplash.com/photo-1551446591-142875a901a1?w=640'
- ],
- interval: 5000,
- duration: 1000,
- indicatorDots: true,
- indicatorColor: "#ffffff",
- activecolor:"#2971f6",
- autoplay: true,
- count: 'count',
- nowTime: new Date().toLocaleDateString(),
- url: '',
- },
-
- /**
- * 生命周期函数--监听页面加载
- */
- onLoad: function (options) {
- wx.startWifi({
- success (res) {
- console.log("成功", res.errMsg);
-
- },
- fail(res) {
- console.log("失败", res.errMsg);
- }
- });
- },
-
- /**
- * 生命周期函数--监听页面初次渲染完成
- */
- onReady: function () {
-
- },
-
- /**
- * 生命周期函数--监听页面显示
- */
- onShow: function () {
-
- },
-
- /**
- * 生命周期函数--监听页面隐藏
- */
- onHide: function () {
-
- },
- // 跳转h5测试
- jumph5() {
- let id = 'test';//需要发送到H5页面的参数
- wx.navigateTo({
- //测试时可以用本地IP地址进行跳转(上线时换为线上的真实IP地址)
- url:`https://id.ssjlai.com/parentweb/#/index?id=${id}`,
- })
- },
- /**
- * 生命周期函数--监听页面卸载
- */
- onUnload: function () {
-
- },
-
- /**
- * 页面相关事件处理函数--监听用户下拉动作
- */
- onPullDownRefresh: function () {
-
- },
-
- /**
- * 页面上拉触底事件的处理函数
- */
- onReachBottom: function () {
-
- },
-
- /**
- * 用户点击右上角分享
- */
- onShareAppMessage: function () {
-
- },
- /*
- 注册点击事件
- */
- onClickCount: function() {
- wx.getConnectedWifi({
- success (res) {
- console.log(res);
- },
- fail(res) {
- console.log(res.errMsg);
- }
- })
- }
- })
|