h5
liukangdong
2024-06-17 a12c107acb3cab36e4ad92062baa27e03aaf830a
h5
已修改4个文件
15 ■■■■ 文件已修改
h5/manifest.json 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
h5/static/redirect.html 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
h5/store/index.js 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
h5/utils/config.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
h5/manifest.json
@@ -1,6 +1,6 @@
{
    "name" : "laborVisitors",
    "appid" : "__UNI__E3BA820",
    "appid" : "__UNI__BCCF400",
    "description" : "",
    "versionName" : "1.0.0",
    "versionCode" : "100",
@@ -91,7 +91,7 @@
            "proxy" : {
                "/api" : {
                    // 这个字段名需与你配置的basePrefixUrl一致,系统识别到带有/dev-api请求的地址时,会在前面拼接上代理服务器地址
                    "target" : "http://192.168.0.143:10010", // 代理服务器域名或IP地址
                    "target" : "http://192.168.0.173/admin_interface", // 代理服务器域名或IP地址
                    "changeOrigin" : true, // 允许跨域 
                    "pathRewrite" : {
                        "^/api" : "" // 重写地址,如果实际接口中是不带/dev-api,需要将这个前缀置空,因为这个前缀只是为了识别用,识别完之后就没用了
h5/static/redirect.html
@@ -5,9 +5,9 @@
  <title>重定向</title>
  <script>
    var p = location.href.split("?")
    // window.location.href = 'https://dmtest.ahapp.net/hsvisit_h5/#/pages/notice/notice?' + p[1]
      window.location.href = 'http://xiaopiqiu2.natapp1.cc/#/pages/notice/notice?' + p[1]
      // window.location.href = 'http://xiaopiqiu2.natapp1.cc/#/pages/staff/index?' + p[1]
    // window.location.href = 'http://192.168.0.173/h5/#/pages/notice/notice?' + 'code=123123'
      window.location.href = 'http://192.168.0.173/h5/#/pages/notice/notice?' + p[1]
      // window.location.href = 'http://192.168.0.173/h5/#/pages/staff/index?' + p[1]
  </script>
</head>
<body>
h5/store/index.js
@@ -18,7 +18,8 @@
const store = new Vuex.Store({
    state: {
        openId: openId || '061kuG0006hxcS13TT200w9VIp4kuG09',
        // openId: openId || '061kuG0006hxcS13TT200w9VIp4kuG09',
        openId: openId || '',
        member: member || null,
        statusbarHeight: statusbarHeight || '0',
        navHeight: navHeight || '0',
h5/utils/config.js
@@ -1,4 +1,4 @@
export const baseUrl = 'api/'
export const baseUrl = 'admin_interface/'
export const uploadAvatar = `${baseUrl}visitsAdmin/cloudService/web/public/uploadFtp.do`
export const uploadUrl = `${baseUrl}visitsAdmin/cloudService/public/uploadBatch`