Commit 74f3bccd authored by xinzhedeai's avatar xinzhedeai

add: debug动态开启、详情

parent 7c493a90
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
v-cloak v-cloak
> >
<div class="stats-header"> <div class="stats-header">
<div class="stats-title">数据统计</div> <div class="stats-title" @click="openDebug">数据统计</div>
<!-- <van-cell-group> --> <!-- <van-cell-group> -->
<div <div
@click="showPopup('showPopup4completionDate')" @click="showPopup('showPopup4completionDate')"
......
...@@ -110,6 +110,15 @@ window.onload = function () { ...@@ -110,6 +110,15 @@ window.onload = function () {
}, },
computed: {}, computed: {},
methods: { methods: {
openDebug(){ // 双击开启debugg模式,再次双击则关闭
console.log('开启关闭debug')
if(localStorage.getItem('debug')=='Y'){
localStorage.setItem('debug', 'N')
}else{
localStorage.setItem('debug', 'Y')
}
},
scanCode(toData) { scanCode(toData) {
if (toData === false) { if (toData === false) {
lightAppJssdk.device.scan({ lightAppJssdk.device.scan({
......
...@@ -17,7 +17,7 @@ axios.defaults.headers.post['Content-Type'] = 'application/json' ...@@ -17,7 +17,7 @@ axios.defaults.headers.post['Content-Type'] = 'application/json'
// 商户token // 商户token
axios.defaults.headers.common['Authorization'] = axios.defaults.headers.common['Authorization'] =
'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxMzg2MzE1OTk4NyIsImxvZ2luX3VzZXJfa2V5IjoiMDc1ZWVkOGUtYjZjNC00OTE3LWJlYjYtY2RhOTBmYWY2YTkwIn0.7IcT8J7AGWR7vlesikjZvDYYvSY46TKIU2F41g8V7z6naxJQOlOKt-IXTzTo2QmlSF5Eo7hbxfTy7OJxdT4MWw' 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxNTcyMTAzMTg4NiIsImxvZ2luX3VzZXJfa2V5IjoiNGJjY2JjYzUtNmY0Yy00ZDhlLWJiYzEtZjYzMzVlZDBlZTgwIn0.j3jEfHzeu3kklm60kKCirwwyKaWD51ABicOzxEnuFOfGe63FFqYOQ122ojAhukbInnKj4try3DjrST6wNDVjVQ'
// admin账号token // admin账号token
// axios.defaults.headers.common['Authorization'] = // axios.defaults.headers.common['Authorization'] =
......
...@@ -9,11 +9,11 @@ if (window.env == 'dev') { ...@@ -9,11 +9,11 @@ if (window.env == 'dev') {
axios.defaults.baseURL = 'http://192.168.2.37:8080' axios.defaults.baseURL = 'http://192.168.2.37:8080'
// 消费者token // 消费者token
axios.defaults.headers.common['Authorization'] =
'Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiLmtojotLnogIUiLCJsb2dpbl91c2VyX2tleSI6ImExNWIwMDNjLWRlYWItNGU2MC04ODg4LTJiODNjMzVkNDUzNSJ9.l6gHzFX-U5rKGJ7zoDA4jMBIxkhVgCjWr5ynFg1DR6xspM9Ls6raTxyEo2Kr61UbG2UD6P2kN63vF_U8nX8afg'
// 商户token
// axios.defaults.headers.common['Authorization'] = // axios.defaults.headers.common['Authorization'] =
// 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiLlvKDlrZ3lvakiLCJsb2dpbl91c2VyX2tleSI6IjNjMmRiMWFiLWIyZGMtNDBjYi04YjM5LWRiNTJmM2VmYzNkYyJ9.sfZyPP-COShNCjwxKR26zGDsPHXss97gu7JEpaMapIZyMQEsxzMigVickcqdhaqDwTRcfr0IxAj64vnrriS9Cw' // 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiLmtojotLnogIUiLCJsb2dpbl91c2VyX2tleSI6ImExNWIwMDNjLWRlYWItNGU2MC04ODg4LTJiODNjMzVkNDUzNSJ9.l6gHzFX-U5rKGJ7zoDA4jMBIxkhVgCjWr5ynFg1DR6xspM9Ls6raTxyEo2Kr61UbG2UD6P2kN63vF_U8nX8afg'
// 商户token
axios.defaults.headers.common['Authorization'] =
'Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiLlvKDlrZ3lvakiLCJsb2dpbl91c2VyX2tleSI6IjNjMmRiMWFiLWIyZGMtNDBjYi04YjM5LWRiNTJmM2VmYzNkYyJ9.sfZyPP-COShNCjwxKR26zGDsPHXss97gu7JEpaMapIZyMQEsxzMigVickcqdhaqDwTRcfr0IxAj64vnrriS9Cw'
// admin账号token // admin账号token
// axios.defaults.headers.common['Authorization'] = // axios.defaults.headers.common['Authorization'] =
......
...@@ -23,10 +23,13 @@ document.write(` ...@@ -23,10 +23,13 @@ document.write(`
<script type="text/javascript" src="${contextPath}/sdk/jssdk2/sm2/build/SM.js"></script> <script type="text/javascript" src="${contextPath}/sdk/jssdk2/sm2/build/SM.js"></script>
`) `)
// 移动端 debugger 调试 // 移动端 debugger 调试
// document.write( if (localStorage.getItem('debug')=='Y') {
// '<script type="text/javascript" src="//cdn.bootcdn.net/ajax/libs/eruda/2.4.1/eruda.js"></script>\ document.write(
// <script>eruda.init();</script>' '<script type="text/javascript" src="//cdn.bootcdn.net/ajax/libs/eruda/2.4.1/eruda.js"></script>\
// ) <script>eruda.init();</script>'
)
}
// 自动识别环境(需在文件最顶部添加) // 自动识别环境(需在文件最顶部添加)
window.env = window.location.hostname === 'web1.isdapp.shandong.gov.cn' ? 'pro' : 'dev'; window.env = window.location.hostname === 'web1.isdapp.shandong.gov.cn' ? 'pro' : 'dev';
......
...@@ -499,6 +499,8 @@ window.addEventListener('load', function () { ...@@ -499,6 +499,8 @@ window.addEventListener('load', function () {
} }
this.formData = tempData this.formData = tempData
console.log('******详情********')
// setTimeout(()=>{ // setTimeout(()=>{
// this.formData.smallPlaceTypeName = "0" // this.formData.smallPlaceTypeName = "0"
// },1000) // },1000)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment