| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- // pages/help/rtuhelp/addSet/addSet.js
- var app = getApp()
- Page({
- /**
- * 页面的初始数据
- */
- data: {
- addSet1:'',
- addSet2:'',
- addSet3:''
- },
- /**
- * 生命周期函数--监听页面加载
- */
- onLoad: function (options) {
- this.setData({
- addSet1:app.globalData.cloudBase + "/ts/source/img/rtu/addSet-01.jpg",
- addSet2:app.globalData.cloudBase + "/ts/source/img/rtu/addSet-02.jpg",
- addSet3:app.globalData.cloudBase + "/ts/source/img/rtu/addSet-03.jpg"
- })
-
- wx.setNavigationBarColor({
- frontColor: '#000000',
- backgroundColor: '#ffffff',
- })
- },
- /**
- * 生命周期函数--监听页面初次渲染完成
- */
- onReady: function () {
- },
- /**
- * 生命周期函数--监听页面显示
- */
- onShow: function () {
- },
- /**
- * 生命周期函数--监听页面隐藏
- */
- onHide: function () {
- },
- /**
- * 生命周期函数--监听页面卸载
- */
- onUnload: function () {
- },
- /**
- * 页面相关事件处理函数--监听用户下拉动作
- */
- onPullDownRefresh: function () {
- },
- /**
- * 页面上拉触底事件的处理函数
- */
- onReachBottom: function () {
- },
- /**
- * 用户点击右上角分享
- */
- onShareAppMessage: function () {
- },
- previewImg:function(e){
- console.log(e.currentTarget.dataset.src);
- let that = this;
- wx.previewImage({
- current:e.currentTarget.dataset.src, //当前图片地址
- urls: that.data.imgArr, //所有要预览的图片的地址集合 数组形式
- })
- }
- })
|