shaogen1995 2 週間 前
コミット
9b735cc2d4

+ 1 - 1
key.txt

@@ -11,4 +11,4 @@ MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCcgGDeaa5u1lXqGNPJusLnUekZ4PZJ
 
 测试电话号码加密之后
 
-http://192.168.20.55:3000/#/?k=gjdhvr-test&n=RvBxzPLJbfUjUERSTOm91vQf2jLQdpOKMFz2Ah2D/hvVpXVmzsZb2Yc7gsX6pgAen3HmzJWinHKRYGASNXp1EvapV+VOJXsk1H1jeWBnqlqxg1h6y45ON50EoEKVdJ7mBe3w7DlxR9LuAzu8Gw6I9Jn/Be9TWZpjuHJPTv+OtomF3dhDCn3c0cHRcuq6+jcMLgONpB8Sw/2fHEbyQNFQKM9n9hQ8ZvXXKRIo2L7J0elLf7Ipyl2PtveMch2Foe4mroxLQu6eV3L6FVHpW54Yz6NSrvOW/iBBYiEcIlZNLCzJgB4zOAMUZyXbQMTD18GJlvvHRyxLOiFXq03iC0Y2JQ==&t=e3705e53064c4f489c5ed09e9d4086ca
+http://192.168.20.55:3000/#/base?k=gjdhvr-test&n=RvBxzPLJbfUjUERSTOm91vQf2jLQdpOKMFz2Ah2D/hvVpXVmzsZb2Yc7gsX6pgAen3HmzJWinHKRYGASNXp1EvapV+VOJXsk1H1jeWBnqlqxg1h6y45ON50EoEKVdJ7mBe3w7DlxR9LuAzu8Gw6I9Jn/Be9TWZpjuHJPTv+OtomF3dhDCn3c0cHRcuq6+jcMLgONpB8Sw/2fHEbyQNFQKM9n9hQ8ZvXXKRIo2L7J0elLf7Ipyl2PtveMch2Foe4mroxLQu6eV3L6FVHpW54Yz6NSrvOW/iBBYiEcIlZNLCzJgB4zOAMUZyXbQMTD18GJlvvHRyxLOiFXq03iC0Y2JQ==&t=e3705e53064c4f489c5ed09e9d4086ca

+ 8 - 2
public/index.html

@@ -10,10 +10,16 @@
       content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"
     />
     <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
-    <script src="./myData/egg.js"></script>
+
     <!-- <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" /> -->
 
-    <title>全国总工会虚拟展会</title>
+    <!-- 在线人数统计 -->
+    <script src="./myData/sockjs.js"></script>
+    <script src="./myData/stomp.js"></script>
+
+    <script src="./myData/egg.js"></script>
+
+    <title>第三届大国工匠创新交流大会云展</title>
   </head>
   <body>
     <noscript>You need to enable JavaScript to run this app.</noscript>

+ 38 - 0
public/myData/egg.js

@@ -7,3 +7,41 @@ const publicKeyTemp =
 const httpBaseUrl = 'https://sit-zonggonghui.4dage.com/api/'
 // 子页面地址前缀
 const kkUrl = 'https://houseoss.4dkankan.com/project/DEMO/qgzgg/scene/index.html#/'
+
+// 在线人数web_socket连接
+// eslint-disable-next-line no-undef
+const socket = new SockJS(`${httpBaseUrl}ws-online`)
+
+// eslint-disable-next-line no-undef
+const stompClient = Stomp.over(socket)
+
+stompClient.connect(
+  {},
+  function (frame) {
+    // 订阅在线人数主题
+    stompClient.subscribe('/topic/online.count', function (message) {
+      // console.log('xxxxxxxxxxxxx', message)
+    })
+
+    // 发送用户加入消息
+    // stompClient.value.send("/app/online.join", {}, JSON.stringify({}));
+    stompClient.send('/bb/online.join', {}, JSON.stringify({}))
+  },
+  function (error) {
+    console.log('链接失败', error)
+  }
+)
+
+fetch(`${httpBaseUrl}show/trend/saveType`, {
+  method: 'POST',
+  body: JSON.stringify({
+    num: 'WEB_QGZGH',
+    type: 'visit'
+  }),
+  headers: {
+    'Content-Type': 'application/json'
+  }
+})
+  .then(response => response.json())
+  .then(data => console.log('访问量增加'))
+  .catch(error => console.error(error))

ファイルの差分が大きいため隠しています
+ 3207 - 0
public/myData/sockjs.js


+ 470 - 0
public/myData/stomp.js

@@ -0,0 +1,470 @@
+// Generated by CoffeeScript 1.7.1
+/*
+   Stomp Over WebSocket http://www.jmesnil.net/stomp-websocket/doc/ | Apache License V2.0
+
+   Copyright (C) 2010-2013 [Jeff Mesnil](http://jmesnil.net/)
+   Copyright (C) 2012 [FuseSource, Inc.](http://fusesource.com)
+ */
+;(function () {
+  var t,
+    e,
+    n,
+    i,
+    r = {}.hasOwnProperty,
+    o = [].slice
+  t = { LF: '\n', NULL: '\x00' }
+  n = (function () {
+    var e
+    function n(t, e, n) {
+      this.command = t
+      this.headers = e != null ? e : {}
+      this.body = n != null ? n : ''
+    }
+    n.prototype.toString = function () {
+      var e, i, o, s, u
+      e = [this.command]
+      o = this.headers['content-length'] === false ? true : false
+      if (o) {
+        delete this.headers['content-length']
+      }
+      u = this.headers
+      for (i in u) {
+        if (!r.call(u, i)) continue
+        s = u[i]
+        e.push('' + i + ':' + s)
+      }
+      if (this.body && !o) {
+        e.push('content-length:' + n.sizeOfUTF8(this.body))
+      }
+      e.push(t.LF + this.body)
+      return e.join(t.LF)
+    }
+    n.sizeOfUTF8 = function (t) {
+      if (t) {
+        return encodeURI(t).match(/%..|./g).length
+      } else {
+        return 0
+      }
+    }
+    e = function (e) {
+      var i, r, o, s, u, a, c, f, h, l, p, d, g, b, m, v, y
+      s = e.search(RegExp('' + t.LF + t.LF))
+      u = e.substring(0, s).split(t.LF)
+      o = u.shift()
+      a = {}
+      d = function (t) {
+        return t.replace(/^\s+|\s+$/g, '')
+      }
+      v = u.reverse()
+      for (g = 0, m = v.length; g < m; g++) {
+        l = v[g]
+        f = l.indexOf(':')
+        a[d(l.substring(0, f))] = d(l.substring(f + 1))
+      }
+      i = ''
+      p = s + 2
+      if (a['content-length']) {
+        h = parseInt(a['content-length'])
+        i = ('' + e).substring(p, p + h)
+      } else {
+        r = null
+        for (c = b = p, y = e.length; p <= y ? b < y : b > y; c = p <= y ? ++b : --b) {
+          r = e.charAt(c)
+          if (r === t.NULL) {
+            break
+          }
+          i += r
+        }
+      }
+      return new n(o, a, i)
+    }
+    n.unmarshall = function (n) {
+      var i
+      return (function () {
+        var r, o, s, u
+        s = n.split(RegExp('' + t.NULL + t.LF + '*'))
+        u = []
+        for (r = 0, o = s.length; r < o; r++) {
+          i = s[r]
+          if ((i != null ? i.length : void 0) > 0) {
+            u.push(e(i))
+          }
+        }
+        return u
+      })()
+    }
+    n.marshall = function (e, i, r) {
+      var o
+      o = new n(e, i, r)
+      return o.toString() + t.NULL
+    }
+    return n
+  })()
+  e = (function () {
+    var e
+    function r(t) {
+      this.ws = t
+      this.ws.binaryType = 'arraybuffer'
+      this.counter = 0
+      this.connected = false
+      this.heartbeat = { outgoing: 1e4, incoming: 1e4 }
+      this.maxWebSocketFrameSize = 16 * 1024
+      this.subscriptions = {}
+    }
+    r.prototype.debug = function (t) {
+      var e
+      return typeof window !== 'undefined' && window !== null
+        ? (e = window.console) != null
+          ? e.log(t)
+          : void 0
+        : void 0
+    }
+    e = function () {
+      if (Date.now) {
+        return Date.now()
+      } else {
+        return new Date().valueOf
+      }
+    }
+    r.prototype._transmit = function (t, e, i) {
+      var r
+      r = n.marshall(t, e, i)
+      if (typeof this.debug === 'function') {
+        this.debug('>>> ' + r)
+      }
+      while (true) {
+        if (r.length > this.maxWebSocketFrameSize) {
+          this.ws.send(r.substring(0, this.maxWebSocketFrameSize))
+          r = r.substring(this.maxWebSocketFrameSize)
+          if (typeof this.debug === 'function') {
+            this.debug('remaining = ' + r.length)
+          }
+        } else {
+          return this.ws.send(r)
+        }
+      }
+    }
+    r.prototype._setupHeartbeat = function (n) {
+      var r, o, s, u, a, c
+      if ((a = n.version) !== i.VERSIONS.V1_1 && a !== i.VERSIONS.V1_2) {
+        return
+      }
+      ;(c = (function () {
+        var t, e, i, r
+        i = n['heart-beat'].split(',')
+        r = []
+        for (t = 0, e = i.length; t < e; t++) {
+          u = i[t]
+          r.push(parseInt(u))
+        }
+        return r
+      })()),
+        (o = c[0]),
+        (r = c[1])
+      if (!(this.heartbeat.outgoing === 0 || r === 0)) {
+        s = Math.max(this.heartbeat.outgoing, r)
+        if (typeof this.debug === 'function') {
+          this.debug('send PING every ' + s + 'ms')
+        }
+        this.pinger = i.setInterval(
+          s,
+          (function (e) {
+            return function () {
+              e.ws.send(t.LF)
+              return typeof e.debug === 'function' ? e.debug('>>> PING') : void 0
+            }
+          })(this)
+        )
+      }
+      if (!(this.heartbeat.incoming === 0 || o === 0)) {
+        s = Math.max(this.heartbeat.incoming, o)
+        if (typeof this.debug === 'function') {
+          this.debug('check PONG every ' + s + 'ms')
+        }
+        return (this.ponger = i.setInterval(
+          s,
+          (function (t) {
+            return function () {
+              var n
+              n = e() - t.serverActivity
+              if (n > s * 2) {
+                if (typeof t.debug === 'function') {
+                  t.debug('did not receive server activity for the last ' + n + 'ms')
+                }
+                return t.ws.close()
+              }
+            }
+          })(this)
+        ))
+      }
+    }
+    r.prototype._parseConnect = function () {
+      var t, e, n, i
+      t = 1 <= arguments.length ? o.call(arguments, 0) : []
+      i = {}
+      switch (t.length) {
+        case 2:
+          ;(i = t[0]), (e = t[1])
+          break
+        case 3:
+          if (t[1] instanceof Function) {
+            ;(i = t[0]), (e = t[1]), (n = t[2])
+          } else {
+            ;(i.login = t[0]), (i.passcode = t[1]), (e = t[2])
+          }
+          break
+        case 4:
+          ;(i.login = t[0]), (i.passcode = t[1]), (e = t[2]), (n = t[3])
+          break
+        default:
+          ;(i.login = t[0]), (i.passcode = t[1]), (e = t[2]), (n = t[3]), (i.host = t[4])
+      }
+      return [i, e, n]
+    }
+    r.prototype.connect = function () {
+      var r, s, u, a
+      r = 1 <= arguments.length ? o.call(arguments, 0) : []
+      a = this._parseConnect.apply(this, r)
+      ;(u = a[0]), (this.connectCallback = a[1]), (s = a[2])
+      if (typeof this.debug === 'function') {
+        this.debug('Opening Web Socket...')
+      }
+      this.ws.onmessage = (function (i) {
+        return function (r) {
+          var o, u, a, c, f, h, l, p, d, g, b, m
+          c =
+            typeof ArrayBuffer !== 'undefined' && r.data instanceof ArrayBuffer
+              ? ((o = new Uint8Array(r.data)),
+                typeof i.debug === 'function'
+                  ? i.debug('--- got data length: ' + o.length)
+                  : void 0,
+                (function () {
+                  var t, e, n
+                  n = []
+                  for (t = 0, e = o.length; t < e; t++) {
+                    u = o[t]
+                    n.push(String.fromCharCode(u))
+                  }
+                  return n
+                })().join(''))
+              : r.data
+          i.serverActivity = e()
+          if (c === t.LF) {
+            if (typeof i.debug === 'function') {
+              i.debug('<<< PONG')
+            }
+            return
+          }
+          if (typeof i.debug === 'function') {
+            i.debug('<<< ' + c)
+          }
+          b = n.unmarshall(c)
+          m = []
+          for (d = 0, g = b.length; d < g; d++) {
+            f = b[d]
+            switch (f.command) {
+              case 'CONNECTED':
+                if (typeof i.debug === 'function') {
+                  i.debug('connected to server ' + f.headers.server)
+                }
+                i.connected = true
+                i._setupHeartbeat(f.headers)
+                m.push(
+                  typeof i.connectCallback === 'function' ? i.connectCallback(f) : void 0
+                )
+                break
+              case 'MESSAGE':
+                p = f.headers.subscription
+                l = i.subscriptions[p] || i.onreceive
+                if (l) {
+                  a = i
+                  h = f.headers['message-id']
+                  f.ack = function (t) {
+                    if (t == null) {
+                      t = {}
+                    }
+                    return a.ack(h, p, t)
+                  }
+                  f.nack = function (t) {
+                    if (t == null) {
+                      t = {}
+                    }
+                    return a.nack(h, p, t)
+                  }
+                  m.push(l(f))
+                } else {
+                  m.push(
+                    typeof i.debug === 'function'
+                      ? i.debug('Unhandled received MESSAGE: ' + f)
+                      : void 0
+                  )
+                }
+                break
+              case 'RECEIPT':
+                m.push(typeof i.onreceipt === 'function' ? i.onreceipt(f) : void 0)
+                break
+              case 'ERROR':
+                m.push(typeof s === 'function' ? s(f) : void 0)
+                break
+              default:
+                m.push(
+                  typeof i.debug === 'function'
+                    ? i.debug('Unhandled frame: ' + f)
+                    : void 0
+                )
+            }
+          }
+          return m
+        }
+      })(this)
+      this.ws.onclose = (function (t) {
+        return function () {
+          var e
+          e = 'Whoops! Lost connection to ' + t.ws.url
+          if (typeof t.debug === 'function') {
+            t.debug(e)
+          }
+          t._cleanUp()
+          return typeof s === 'function' ? s(e) : void 0
+        }
+      })(this)
+      return (this.ws.onopen = (function (t) {
+        return function () {
+          if (typeof t.debug === 'function') {
+            t.debug('Web Socket Opened...')
+          }
+          u['accept-version'] = i.VERSIONS.supportedVersions()
+          u['heart-beat'] = [t.heartbeat.outgoing, t.heartbeat.incoming].join(',')
+          return t._transmit('CONNECT', u)
+        }
+      })(this))
+    }
+    r.prototype.disconnect = function (t, e) {
+      if (e == null) {
+        e = {}
+      }
+      this._transmit('DISCONNECT', e)
+      this.ws.onclose = null
+      this.ws.close()
+      this._cleanUp()
+      return typeof t === 'function' ? t() : void 0
+    }
+    r.prototype._cleanUp = function () {
+      this.connected = false
+      if (this.pinger) {
+        i.clearInterval(this.pinger)
+      }
+      if (this.ponger) {
+        return i.clearInterval(this.ponger)
+      }
+    }
+    r.prototype.send = function (t, e, n) {
+      if (e == null) {
+        e = {}
+      }
+      if (n == null) {
+        n = ''
+      }
+      e.destination = t
+      return this._transmit('SEND', e, n)
+    }
+    r.prototype.subscribe = function (t, e, n) {
+      var i
+      if (n == null) {
+        n = {}
+      }
+      if (!n.id) {
+        n.id = 'sub-' + this.counter++
+      }
+      n.destination = t
+      this.subscriptions[n.id] = e
+      this._transmit('SUBSCRIBE', n)
+      i = this
+      return {
+        id: n.id,
+        unsubscribe: function () {
+          return i.unsubscribe(n.id)
+        }
+      }
+    }
+    r.prototype.unsubscribe = function (t) {
+      delete this.subscriptions[t]
+      return this._transmit('UNSUBSCRIBE', { id: t })
+    }
+    r.prototype.begin = function (t) {
+      var e, n
+      n = t || 'tx-' + this.counter++
+      this._transmit('BEGIN', { transaction: n })
+      e = this
+      return {
+        id: n,
+        commit: function () {
+          return e.commit(n)
+        },
+        abort: function () {
+          return e.abort(n)
+        }
+      }
+    }
+    r.prototype.commit = function (t) {
+      return this._transmit('COMMIT', { transaction: t })
+    }
+    r.prototype.abort = function (t) {
+      return this._transmit('ABORT', { transaction: t })
+    }
+    r.prototype.ack = function (t, e, n) {
+      if (n == null) {
+        n = {}
+      }
+      n['message-id'] = t
+      n.subscription = e
+      return this._transmit('ACK', n)
+    }
+    r.prototype.nack = function (t, e, n) {
+      if (n == null) {
+        n = {}
+      }
+      n['message-id'] = t
+      n.subscription = e
+      return this._transmit('NACK', n)
+    }
+    return r
+  })()
+  i = {
+    VERSIONS: {
+      V1_0: '1.0',
+      V1_1: '1.1',
+      V1_2: '1.2',
+      supportedVersions: function () {
+        return '1.1,1.0'
+      }
+    },
+    client: function (t, n) {
+      var r, o
+      if (n == null) {
+        n = ['v10.stomp', 'v11.stomp']
+      }
+      r = i.WebSocketClass || WebSocket
+      o = new r(t, n)
+      return new e(o)
+    },
+    over: function (t) {
+      return new e(t)
+    },
+    Frame: n
+  }
+  if (typeof exports !== 'undefined' && exports !== null) {
+    exports.Stomp = i
+  }
+  if (typeof window !== 'undefined' && window !== null) {
+    i.setInterval = function (t, e) {
+      return window.setInterval(e, t)
+    }
+    i.clearInterval = function (t) {
+      return window.clearInterval(t)
+    }
+    window.Stomp = i
+  } else if (!exports) {
+    self.Stomp = i
+  }
+}).call(this)

BIN
src/assets/img/homeBac.jpg


BIN
src/assets/img/homeBacM.jpg


ファイルの差分が大きいため隠しています
+ 6932 - 704
src/pages/A1home/A1svg.tsx


ファイルの差分が大きいため隠しています
+ 667 - 106
src/pages/A1home/A1svgBox/index.module.scss


+ 13 - 1
src/pages/A1home/A1svgBox/index.tsx

@@ -8,6 +8,7 @@ import store, { RootState } from '@/store'
 import A1svg from '../A1svg'
 import { idChangeArr } from '../data'
 import history, { isMobileFu } from '@/utils/history'
+import classNames from 'classnames'
 
 type Props = {
   opc?: 0 | 1
@@ -101,6 +102,17 @@ function A1svgBox({ opc = 1, id = '', closeFu }: Props) {
         dblClickZoomEnabled: false,
         customEventsHandler: customEventsHandler // 使用自定义事件处理器
       })
+      if (!isMobileFu()) {
+        setTimeout(() => {
+          // 缩放
+          panZoomRef.current.zoom(0.8)
+          const currentPan = panZoomRef.current.getPan()
+          panZoomRef.current.pan({
+            x: currentPan.x + 0, // 相对移动的x分量
+            y: currentPan.y + 40 // 相对移动的y分量
+          })
+        }, 0)
+      }
     }
   }, [])
 
@@ -160,7 +172,7 @@ function A1svgBox({ opc = 1, id = '', closeFu }: Props) {
     <div
       onTouchStart={() => setTit(false)}
       onClick={() => setTit(false)}
-      className={styles.A1svgBox}
+      className={classNames(styles.A1svgBox, isMobileFu() ? styles.A1svgBoxM : '')}
       style={{ opacity: opc, pointerEvents: opc ? 'auto' : 'none' }}
       id={id}
     >

+ 56 - 56
src/pages/A1home/data.ts

@@ -2,283 +2,283 @@ export const idChangeArr = [
   {
     id: 'id_河南',
     code: 'SG-lyCYX1XvV5b',
-    name: 'tag_河南name',
+    name: '河南',
     tabName: 'tag_河南'
   },
   {
     id: 'id_山东',
     code: 'SG-nmH57yoIjAK',
-    name: 'tag_山东name',
+    name: '山东',
     tabName: 'tag_山东'
   },
   {
     id: 'id_国防邮电',
     code: 'SG-S3nHAkNO0Lc',
-    name: 'tag_国防邮电tag_国防邮电tag_国防邮电tag_国防邮电tag_国防邮电tag_国防邮电name',
+    name: '国防邮电',
     tabName: 'tag_国防邮电'
   },
   {
     id: 'id_铁路',
     code: 'SG-4cOtHp4T3Ax',
-    name: 'tag_铁路',
+    name: '铁路',
     tabName: 'tag_铁路'
   },
   {
     id: 'id_能源化学地质',
     code: 'id_能源化学地质code',
-    name: '',
+    name: '能源化学地质',
     tabName: 'tag_能源化学地质'
   },
   {
     id: 'id_机械冶金建材',
     code: 'id_机械冶金建材code',
-    name: '',
+    name: '机械冶金建材',
     tabName: 'tag_机械冶金建材'
   },
   {
     id: 'id_农林水利气象',
     code: 'id_农林水利气象code',
-    name: '',
+    name: '农林水利气象',
     tabName: 'tag_农林水利气象'
   },
   {
     id: 'id_广西',
     code: 'id_广西code',
-    name: '',
+    name: '广西',
     tabName: 'tag_广西'
   },
   {
     id: 'id_湖北',
     code: 'id_湖北code',
-    name: '',
+    name: '湖北',
     tabName: 'tag_湖北'
   },
   {
     id: 'id_湖南',
     code: 'id_湖南code',
-    name: '',
+    name: '湖南',
     tabName: 'tag_湖南'
   },
   {
     id: 'id_北京',
     code: 'id_北京code',
-    name: '',
+    name: '北京',
     tabName: 'tag_北京'
   },
   {
     id: 'id_天津',
     code: 'id_天津code',
-    name: '',
+    name: '天津',
     tabName: 'tag_天津'
   },
   {
     id: 'id_河北',
     code: 'id_河北code',
-    name: '',
+    name: '河北',
     tabName: 'tag_河北'
   },
   {
-    id: 'id_职工之家',
-    code: 'id_职工之家code',
-    name: '',
-    tabName: 'tag_职工之家'
+    id: 'id_职工之家',
+    code: 'id_职工之家code',
+    name: '职工之家',
+    tabName: 'tag_职工之家'
   },
   {
-    id: 'id_职工之家1',
-    code: 'id_职工之家1code',
-    name: '',
-    tabName: 'tag_职工之家1'
+    id: 'id_职工之家1',
+    code: 'id_职工之家1code',
+    name: '职工之家1',
+    tabName: 'tag_职工之家1'
   },
   {
-    id: 'id_职工之家2',
-    code: 'id_职工之家2code',
-    name: '',
-    tabName: 'tag_职工之家2'
+    id: 'id_职工之家2',
+    code: 'id_职工之家2code',
+    name: '职工之家2',
+    tabName: 'tag_职工之家2'
   },
   {
     id: 'id_财贸轻纺烟草',
     code: 'id_财贸轻纺烟草code',
-    name: '',
+    name: '财贸轻纺烟草',
     tabName: 'tag_财贸轻纺烟草'
   },
   {
     id: 'id_教科文卫体',
     code: 'id_教科文卫体code',
-    name: '',
+    name: '教科文卫体',
     tabName: 'tag_教科文卫体'
   },
   {
     id: 'id_海南',
     code: 'id_海南code',
-    name: '',
+    name: '海南',
     tabName: 'tag_海南'
   },
   {
     id: 'id_福建',
     code: 'id_福建code',
-    name: '',
+    name: '福建',
     tabName: 'tag_福建'
   },
   {
     id: 'id_广东',
     code: 'id_广东code',
-    name: '',
+    name: '广东',
     tabName: 'tag_广东'
   },
   {
     id: 'id_上海',
     code: 'id_上海code',
-    name: '',
+    name: '上海',
     tabName: 'tag_上海'
   },
   {
     id: 'id_江苏',
     code: 'id_江苏code',
-    name: '',
+    name: '江苏',
     tabName: 'tag_江苏'
   },
   {
     id: 'id_浙江',
     code: 'id_浙江code',
-    name: '',
+    name: '浙江',
     tabName: 'tag_浙江'
   },
   {
     id: 'id_安徽',
     code: 'id_安徽code',
-    name: '',
+    name: '安徽',
     tabName: 'tag_安徽'
   },
   {
     id: 'id_江西',
     code: 'id_江西code',
-    name: '',
+    name: '江西',
     tabName: 'tag_江西'
   },
   {
     id: 'id_海员建设',
     code: 'id_海员建设code',
-    name: '',
+    name: '海员建设',
     tabName: 'tag_海员建设'
   },
   {
     id: 'id_山西',
     code: 'id_山西code',
-    name: '',
+    name: '山西',
     tabName: 'tag_山西'
   },
   {
     id: 'id_黑龙江',
     code: 'id_黑龙江code',
-    name: '',
+    name: '黑龙江',
     tabName: 'tag_黑龙江'
   },
   {
     id: 'id_金融',
     code: 'id_金融code',
-    name: '',
+    name: '金融',
     tabName: 'tag_金融'
   },
   {
     id: 'id_内蒙古',
     code: 'id_内蒙古code',
-    name: '',
+    name: '内蒙古',
     tabName: 'tag_内蒙古'
   },
   {
     id: 'id_吉林',
     code: 'id_吉林code',
-    name: '',
+    name: '吉林',
     tabName: 'tag_吉林'
   },
   {
     id: 'id_民航',
     code: 'id_民航code',
-    name: '',
+    name: '民航',
     tabName: 'tag_民航'
   },
   {
     id: 'id_陕西',
     code: 'id_陕西code',
-    name: '',
+    name: '陕西',
     tabName: 'tag_陕西'
   },
   {
     id: 'id_辽宁',
     code: 'id_辽宁code',
-    name: '',
+    name: '辽宁',
     tabName: 'tag_辽宁'
   },
   {
     id: 'id_五小',
     code: 'id_五小code',
-    name: '',
+    name: '五小',
     tabName: 'tag_五小'
   },
   {
     id: 'id_全总',
     code: 'id_全总code',
-    name: '',
+    name: '全总',
     tabName: 'tag_全总'
   },
   {
     id: 'id_重庆',
     code: 'SG-EFvRvSQWrMp',
-    name: '',
+    name: '重庆',
     tabName: 'tag_重庆'
   },
   {
     id: 'id_四川',
     code: 'id_四川code',
-    name: '',
+    name: '四川',
     tabName: 'tag_四川'
   },
   {
     id: 'id_云南',
     code: 'id_云南code',
-    name: '',
+    name: '云南',
     tabName: 'tag_云南'
   },
   {
     id: 'id_贵州',
     code: 'id_贵州code',
-    name: '',
+    name: '贵州',
     tabName: 'tag_贵州'
   },
   {
     id: 'id_新疆',
     code: 'id_新疆code',
-    name: '',
+    name: '新疆',
     tabName: 'tag_新疆'
   },
   {
     id: 'id_新疆兵团',
     code: 'id_新疆兵团code',
-    name: '',
+    name: '新疆兵团',
     tabName: 'tag_新疆兵团'
   },
   {
     id: 'id_西藏',
     code: 'id_西藏code',
-    name: '',
+    name: '西藏',
     tabName: 'tag_西藏'
   },
   {
     id: 'id_青海',
     code: 'id_青海code',
-    name: '',
+    name: '青海',
     tabName: 'tag_青海'
   },
   {
     id: 'id_甘肃',
     code: 'id_甘肃code',
-    name: '',
+    name: '甘肃',
     tabName: 'tag_甘肃'
   },
   {
     id: 'id_宁夏',
     code: 'id_宁夏code',
-    name: '',
+    name: '宁夏',
     tabName: 'tag_宁夏'
   }
 ]

+ 1 - 0
src/pages/A1home/index.module.scss

@@ -1,4 +1,5 @@
 // .A1home {
+
 //   :global {
 
 //   }

+ 4 - 2
src/pages/A2scene/index.tsx

@@ -14,6 +14,8 @@ import A2openEgg from '../A2openEgg'
 import A2search from '../A2search'
 
 function A2scene() {
+  const keyRef = useRef(Date.now())
+
   const dispatch = useDispatch()
 
   // 参数是否正确
@@ -178,9 +180,9 @@ function A2scene() {
           {/* <iframe key={code} src='./tttt.html' ref={iframeRef} title='0'></iframe> */}
 
           <iframe
-            key={code}
+            key={code + keyRef.current}
             ref={iframeRef}
-            src={`${kkUrl}?m=${code}`}
+            src={`${kkUrl}?m=${code}&t=${keyRef.current}`}
             title='scene'
           ></iframe>