tanghaolin
2024-01-26 1746d511e6bf61c5040d8d881bdc47f46f430144
修改bim模型无法展示
已修改6个文件
32 ■■■■■ 文件已修改
bim/station/index.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
login/login/index.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
login/login/index.wxml 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
station/list/index.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/api.js 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/constant.js 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
bim/station/index.js
@@ -35,7 +35,7 @@
    }
    // console.log(stationID,userInfo.CorpID)
    let currentTime = new Date().getTime()
    var url = 'http://szjt2.beng35.com/mvc/BIM/miniProgram/stationsimple.html?id=' + stationID + '&token='+ tokenInfo.Token + "&V=" + currentTime;
    var url = 'https://szjt2.beng35.com/mvc/BIM/miniProgram/stationsimple.html?id=' + stationID + '&token='+ tokenInfo.Token + "&V=" + currentTime;
    //  console.log(url,31)
    this.setData({
      webViewUrl: url
login/login/index.js
@@ -21,6 +21,7 @@
    BackgroupImageUrl: Constant.Assets.Login.BackgroupImageUrl,
    isShowPwd:false,//是否显示密码
    m_SoftWareVersion:Constant.SoftWareVersion
  },
  // 打电话
login/login/index.wxml
@@ -2,14 +2,13 @@
<view class="container">
  <view style="width: {{imageWidth}}px; height: {{imageHeight}}px;" class="login-log">
    <!-- <image style="width: {{imageWidth}}px; height: {{imageHeight}}px;" src="http://www.beng35.com/assets/miniProgram/loginLog.png"></image> -->
    <view style="width: {{imageWidth}}px; height: {{imageHeight}}px;background:url({{BackgroupImageUrl}})"
      class="loginBac">
    <view style="width: {{imageWidth}}px; height: {{imageHeight}}px;background:url({{BackgroupImageUrl}})" class="loginBac">
      <view>
        <image src="{{LogoUrl}}" class="imgStyle"></image>
      </view>
      <view class="textStyle"
        style="color: #ffffff;text-align: center;font-size: x-large;font-weight: 900;margin-top: 50rpx;">
        <text>金庭智慧水务平台</text></view>
      <view class="textStyle" style="color: #ffffff;text-align: center;font-size: x-large;font-weight: 900;margin-top: 50rpx;">
        <text>金庭智慧水务平台</text>
      </view>
    </view>
  </view>
  <view style="width: 100%; min-height: 90px;" class="inputBg">
@@ -29,7 +28,12 @@
    <button class="loginBtnReal" type="primary" bindtap="tapBindUserReal" style="background-color: #39b5de;">登录</button>
    <!-- <button class="loginBtnDemo" type="primary"  bindtap="tapBindUserDemo"
      style="background-color: #B9D3EE;">演示</button> -->
    <label class="explain call_style" bindtap="call">技术支持:
  </view>
  <view class="explain call_style" style="display: flex; justify-content: center; align-items: center; flex-direction: column;">
    <label bindtap="call">当前版本:
      <text class="call" bindtap="call">{{m_SoftWareVersion}}</text>
    </label>
    <label bindtap="call">技术支持:
      <text class="call" bindtap="call">苏州市吴中区金庭自来水厂</text>
    </label>
  </view>
station/list/index.js
@@ -31,7 +31,7 @@
    if (userInfo) {
      this.setData({
        currentCorpID: userInfo.CorpID,
        currentUserID: userInfo.EmployeeID
        currentUserID: userInfo.ID
      });
    } else {
      wx.navigateTo({
@@ -560,7 +560,7 @@
    this.openStationBimPage(id);
  },
  openStationBimPage: function (id) {
    console.log(id,563)
    // console.log(id,563)
    if (id == undefined) {
      wx.navigateTo({
        url: '../../bim/station/index?id=1',
utils/api.js
@@ -1,8 +1,9 @@
let Constant = require('../utils/constant.js')
let app = getApp()
let ACCESS_TOKEN_KEY = 'AccessToken'
let API = (params) => {
  // console.log(params,2)
  let tokenInfo = wx.getStorageSync('AccessToken')
  let tokenInfo = wx.getStorageSync(ACCESS_TOKEN_KEY)
  // console.log(tokenInfo, 3)
  let currentDateTime = new Date().getTime()
  if (!tokenInfo) {
utils/constant.js
@@ -7,8 +7,8 @@
var TencenteMapKey = "GFDBZ-D3NKX-LNL4Z-TSWGU-RYCE3-4HB3I";
var IMAGE_ROOT_URL = "https://www.xpump.net/ProductLibraryFile/";
var SOFTWARE_VERSION = "1.24.0124B";
var UPDATE_TIME = "1.24.0124B";
var SOFTWARE_VERSION = "1.24.0126A";
var UPDATE_TIME = "1.24.0126A";
// 将方法、变量暴露出去
module.exports = {
  BASE_SERVER_URL: BASE_SERVER_URL,
@@ -28,7 +28,7 @@
  Share: {
    title: '金庭智慧水务平台',
    path: '/login/login/index',
    imageUrl: 'https://szjt2.beng35.com/assets/miniProgram/Share.png'
    imageUrl: 'http://szjt2.beng35.com/assets/miniProgram/Share.png'
  },
  Assets: {
    Login: {