king
2022-09-29 b883ae5d7d46fc7a3503236f16a250c2264ea7c7
src/utils/utils-custom.js
@@ -590,7 +590,7 @@
      }
  
      if (item.btnlog) {
        item.btnlog = []
        item.btnlog = null
      }
  
      let oriUids = {}
@@ -870,7 +870,7 @@
    }
    if (item.btnlog) {
      item.btnlog = []
      item.btnlog = null
    }
    let oriUids = {}
@@ -954,9 +954,11 @@
 */
export function resetStyle (style) {
  if (!style) return {}
  if (sessionStorage.getItem('appType') === 'mob') {
    let _style = JSON.stringify(style)
  let _style = JSON.stringify(style)
  _style = _style.replace(/@mywebsite@\//ig, window.GLOB.baseurl)
  if (sessionStorage.getItem('appType') === 'mob') {
    // scaleview
    _style = _style.replace(/\d+vw/ig, (word) => {
      return parseFloat(word) * (window.GLOB.winWidth || 420) / 100 + 'px'
@@ -965,8 +967,7 @@
      return parseFloat(word) * (window.GLOB.winHeight || 738) / 100 + 'px'
      // return parseFloat(word) * 615 / 100 + 'px'
    })
    return JSON.parse(_style)
  }
  return JSON.parse(JSON.stringify(style))
  return JSON.parse(_style)
}