forked from nsjcy/frontEnd/nsjcy

1
liuwh
2020-03-23 ed96dab91fbac7159525fe557af2ecdd135c791d
SunshineLnsMinApp/app.js
@@ -10,10 +10,11 @@
  globalData: {
    userInfo: null,
    pageData: {},
    url: 'https://nsjcy.hugeinfo.com.cn/nsjc-charge',
    // url: 'https://nsjcy.hugeinfo.com.cn/nsjc-charge',
    // url: 'http://1p885086k1.iok.la/nsjc-charge',
    //url: 'http://192.168.0.31:8085/nsjc-charge',
    imgUrl: 'https://nsjcy.hugeinfo.com.cn/nsjc-charge',
    // url: 'http://nsjc.vaiwan.com/nsjc-charge',
    url: 'http://nsjc.vaiwan.com/nsjc-charge',
    // imgUrl: 'http://nsjc.vaiwan.com/nsjc-charge'
  },
  // 过滤数组
@@ -126,6 +127,10 @@
        var evalList = these.data.evalList;
        var evalListType = 'evalList' + associateTypeId;
        var data = JSON.parse(res.data)
        console.log(data)
        console.log('path', path)
        console.log('evalList', evalList)
        console.log('associateTypeId', associateTypeId)
        these.setData({
          evalList: {
            ...evalList,
@@ -195,6 +200,18 @@
    return year + "-" + month + "-" + date + " " + hour + ":" + minute;
  },
  //转换时间戳
  formatDateday: function (ts) {
    var now = new Date(ts);
    var year = now.getFullYear();
    var month = now.getMonth() + 1;
    var date = now.getDate();
    var hour = now.getHours() < 10 ? '0' + now.getHours() : now.getHours();
    var minute = now.getMinutes() < 10 ? '0' + now.getMinutes() : now.getMinutes();
    var second = now.getSeconds();
    return year + "-" + month + "-" + date;
  },
  // 页面正在开发中
  developIng: function() {
    wx.navigateTo({