yangyin
2024-12-06 da713fe262324b87789fe49a6285ac8f2008d190
安卓手机下载APP路径位置放到globalConfig
已修改4个文件
96 ■■■■ 文件已修改
customer_list/ch/ai_html/views/mobileDownload/index.html 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
customer_list/ch/ai_html/views/mobileDownload/js/config.js 86 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
customer_list/ch/static/config/globalConfig.test.js 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/constants/index.ts 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
customer_list/ch/ai_html/views/mobileDownload/index.html
@@ -13,6 +13,7 @@
        <script src="/ai_html/views/mobileDownload/js/vue.js"></script>
        <script src="/ai_html/views/mobileDownload/js/vant.js"></script>
        <script src="/ai_html/views/mobileDownload/js/config.js?v=241012"></script>
        <script src="/customer_list/ch/static/config/globalConfig.js"></script>
    </head>
    <style>
        .set-btn {
@@ -105,11 +106,12 @@
        },
        methods: {
            getAndroidDownPath() {
                let androidURL = `${window.globalConfig.WebApiUrl.PhoneUrl}/WI水务智能助手.apk`;
                var ua = navigator.userAgent.toLowerCase();
                if (ua.match(/MicroMessenger/i) == 'micromessenger') {
                    this.isWxOpenLink = true;
                } else {
                    window.location.href = this.m_mobileDownloadConfig.SoftwareConfig.DownPath;
                    window.location.href = androidURL;
                }
            },
            getAppleDownPath() {
customer_list/ch/ai_html/views/mobileDownload/js/config.js
@@ -1,50 +1,42 @@

const url = 'https://wi.beng35.com/mobile/prod'
let mobileDownloadConfig = {
  SoftwareConfig: {
    Name: "WI 水务智能助手",
    Desc: "工具",
    Icon: "./image/corpIcon.webp",
    DownPath: `${url}/WI水务智能助手.apk`,
    downLoadGuideImg: "./image/wx_phone_tip.webp",
  },
  FunctionalVersion: {
    Name: "当前功能",
    Version: "版本 v1.0",
    Time: "2024.11.26",
    Desc: "切换任意场景, 显示水情数据, 优化用户体验",
  },
let mobileDownloadConfig = {
    SoftwareConfig: {
        Name: 'WI 水务智能助手',
        Desc: '工具',
        Icon: './image/corpIcon.webp',
        downLoadGuideImg: './image/wx_phone_tip.webp',
    },
    FunctionalVersion: {
        Name: '当前功能',
        Version: '版本 v1.0',
        Time: '2024.11.26',
        Desc: '切换任意场景, 显示水情数据, 优化用户体验',
    },
  LocalInfo: {
    Preview: "预览",
    Images: [
      "./image/1.webp",
      "./image/2.webp",
      "./image/3.webp",
      "./image/4.webp",
    ],
    LocalInfo: {
        Preview: '预览',
        Images: ['./image/1.webp', './image/2.webp', './image/3.webp', './image/4.webp'],
    InformationData: [
      {
        infoTitle: "大小",
        infoContent: "5.62 MB",
      },
      {
        infoTitle: "类别",
        infoContent: "工具",
      },
      {
        infoTitle: "语言",
        infoContent: "简体中文",
      },
      {
        infoTitle: "年龄分级",
        infoContent: "17岁以上",
      },
      {
        infoTitle: "版权",
        infoContent: "归上海拉瓦锡卡文智能科技有限公司所有",
      },
    ],
  },
        InformationData: [
            {
                infoTitle: '大小',
                infoContent: '5.62 MB',
            },
            {
                infoTitle: '类别',
                infoContent: '工具',
            },
            {
                infoTitle: '语言',
                infoContent: '简体中文',
            },
            {
                infoTitle: '年龄分级',
                infoContent: '17岁以上',
            },
            {
                infoTitle: '版权',
                infoContent: '归上海拉瓦锡卡文智能科技有限公司所有',
            },
        ],
    },
};
customer_list/ch/static/config/globalConfig.test.js
@@ -10,7 +10,8 @@
        MainUrl: 'https://widev.cpolar.top/ai_dev/',
        AuthUrl: 'http://47.100.245.85:8190/',
        // 分享链接
        ShareUrl:'http://101.133.133.173:8084/sharedev'
        ShareUrl:'http://101.133.133.173:8084/sharedev',
        PhoneUrl:'https://wi.beng35.com/mobile/prod'
    },
    SoftWareInfo: {
        // 网站主标题(菜单导航、浏览器当前网页标题)
src/constants/index.ts
@@ -13,9 +13,6 @@
//#region ====================== 分享地址 ======================
export const SHARE_URL = window.globalConfig.WebApiUrl.ShareUrl;
//#endregion
//#region ====================== 手机下载apk地址 ======================
export const PHONE_URL = window.globalConfig.WebApiUrl.PhoneUrl;
//#endregion
//#region ====================== 前端地址 ======================
// 最后一个字符是 '/'
export const SERVE_URL = window.location.origin + window.location.pathname;