|
|
@ -4,30 +4,31 @@ |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
import { getToken } from '@/utils/auth' |
|
|
|
const isProDuction = process.env.NODE_ENV === "production" |
|
|
|
import { getToken } from "@/utils/auth"; |
|
|
|
const isProDuction = process.env.NODE_ENV === "production"; |
|
|
|
// 本地h5地址 |
|
|
|
const devSrc = 'http://172.16.34.83:8002/' |
|
|
|
const devSrc = "http://172.16.34.83:8002/"; |
|
|
|
// prod地址 |
|
|
|
const proSrc = 'http://shuili-h5.product.dev.com:30115/' |
|
|
|
// const proSrc = 'http://shuili-h5.product.dev.com:30115/' |
|
|
|
const proSrc = "http://sy.datametatech.com:60022/"; |
|
|
|
|
|
|
|
const h5Src = `${isProDuction?proSrc:devSrc}?t=${getToken()}` |
|
|
|
const h5Src = `${isProDuction ? proSrc : devSrc}?t=${getToken()}`; |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
h5Src |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
h5Src, |
|
|
|
}; |
|
|
|
}, |
|
|
|
}; |
|
|
|
</script> |
|
|
|
<style lang="scss"> |
|
|
|
.mobile-page{ |
|
|
|
.mobile-page { |
|
|
|
width: 100%; |
|
|
|
height: 100%; |
|
|
|
display: flex; |
|
|
|
justify-content: center; |
|
|
|
align-items: center; |
|
|
|
.iframe-page{ |
|
|
|
.iframe-page { |
|
|
|
border: 1px solid #ccc; |
|
|
|
border-radius: 10px; |
|
|
|
width: 375px; |
|
|
|