Newer
Older
smart_construction / miniprogram / app.js
dutingting on 8 Jun 2023 1 KB bug修复
//app.js
App({
  onLaunch: function () {
    
    if (!wx.cloud) {
      console.error('请使用 2.2.3 或以上的基础库以使用云能力')
    } else {
      wx.cloud.init({
        // env 参数说明:
        //   env 参数决定接下来小程序发起的云开发调用(wx.cloud.xxx)会默认请求到哪个云环境的资源
        //   此处请填入环境 ID, 环境 ID 可打开云控制台查看
        //   如不填则使用默认环境(第一个创建的环境)
        env: "productapp-hsk0o",
        traceUser: true,
      })
    }

    // this.globalData = {}
  },
  globalData: {
    // httpsUrl: "https://logapi.smartlog.work/",
    //   httpsUrl: "https://38ka911915.picp.vip/", // 柴壮本地
    // httpsUrl: "http://192.168.8.110:8083/",// 柴壮本地
    // httpsUrl: "http://139.198.18.188:8083/",
    // url: "http://127.0.0.1:8083/",
    //httpsUrl: "http://127.0.0.1:8083/",
    // httpsUrl: "http://111.198.10.15:21405",
    httpsUrl: "https://gas.task.smartlog.work/",
    openid: null,
    indexCount:1,
    nickName:"",
    userName:"",
    role:"",
    devcode:"",
    projectList: [], // 项目列表
    safeBookStatus: '0', // 安全生产责任书签署状态
    selectProjectId: '', // 选择的项目id
    selectProjectName: '', // 选择的项目名称
    updateSignImageId: '', // 更新签名图片id
   }
})