Commit 3e14f6f4 by chenwq1 Committed by 岑成威

fix:icon

1 parent 7a6c4e3f
...@@ -116,6 +116,7 @@ const getBoutiqueMockData = async (immediate = false) => { ...@@ -116,6 +116,7 @@ const getBoutiqueMockData = async (immediate = false) => {
return Promise.reject(error) return Promise.reject(error)
} }
} }
// 图片版本号 // 图片版本号
const getImageVersion = async () => { const getImageVersion = async () => {
const accountInfo = await getMockData() const accountInfo = await getMockData()
......
No preview for this file type

3.01 MB | W: | H:

3.02 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin

6.18 KB | W: | H:

9.55 KB | W: | H:

assets/spritesmith/report.png
assets/spritesmith/report.png
assets/spritesmith/report.png
assets/spritesmith/report.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -77,6 +77,15 @@ const merchantDomain = { ...@@ -77,6 +77,15 @@ const merchantDomain = {
pet: '' pet: ''
}[target[index]] }[target[index]]
/** 二手车检测报告 WebView H5 入口(与 target / index 一致:0 本地 1 开发 2 测试 3 生产 4 预发布) */
const venusUsedcarH5BaseUrl = {
ip: 'http://192.168.1.139:8082/home',
dev: 'http://192.168.1.139:8082/home',
uat: 'https://aus.test.glsx.com.cn/venus-usedcar-h5/home',
beta: 'https://aus.test.glsx.com.cn/venus-usedcar-h5/home',
prod: 'https://aus.test.glsx.com.cn/venus-usedcar-h5/home'
}[target[index]]
const djSecretKey = { const djSecretKey = {
ip: { appKey: '48e5e13229b82c1b4e6e8c96151f0637', secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b' }, ip: { appKey: '48e5e13229b82c1b4e6e8c96151f0637', secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b' },
dev: { dev: {
...@@ -180,5 +189,6 @@ module.exports = { ...@@ -180,5 +189,6 @@ module.exports = {
merchantDomain, merchantDomain,
djSecretKey, djSecretKey,
signSecretKey, signSecretKey,
evaluationDomain evaluationDomain,
venusUsedcarH5BaseUrl
} }
<template> <template>
<view class="inspection-report-webview"> <view class="inspection-report-webview">
<web-view v-if="url" :src="url" @message="handleMessage"></web-view> <web-view v-if="webviewSrc" :src="webviewSrc" @message="handleMessage"></web-view>
</view> </view>
</template> </template>
<script> <script>
import { venusUsedcarH5BaseUrl } from '@/env.js'
export default { export default {
name: 'InspectionReport', name: 'InspectionReport',
data() { data() {
return { return {
url: '' webviewSrc: ''
} }
}, },
onLoad() { onLoad() {
const baseUrl = 'http://192.168.1.139:8082/home' const baseUrl = venusUsedcarH5BaseUrl
const userInfo = uni.$storage.get('userInfo') || {} const userInfo = uni.$storage.get('userInfo') || {}
const token = userInfo.token || '' const token = userInfo.token || ''
this.url = token ? `${baseUrl}?token=${encodeURIComponent(token)}` : baseUrl const sep = baseUrl.includes('?') ? '&' : '?'
this.webviewSrc = token ? `${baseUrl}${sep}token=${encodeURIComponent(token)}` : baseUrl
}, },
methods: { methods: {
// 监听 H5 推送的消息(AUTH_TOKEN / LOGOUT) // 监听 H5 推送的消息(AUTH_TOKEN / LOGOUT)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!