|
@@ -57,7 +57,7 @@ import { Tabbar, TabbarItem, Loading } from 'vant'
|
|
|
Vue.use(Tabbar).use(TabbarItem).use(Loading)
|
|
|
import store from './store/index'
|
|
|
import NarBar from './components/Navbar'
|
|
|
-import { decrypted } from "./utils/crypto.js";
|
|
|
+import { decrypted, encrypted } from "./utils/crypto.js";
|
|
|
import axios from "axios";
|
|
|
import { Toast } from "vant";
|
|
|
Vue.use(Toast)
|
|
@@ -144,14 +144,13 @@ export default {
|
|
|
this.urlFlag = false
|
|
|
return
|
|
|
}
|
|
|
- // 解密url
|
|
|
- // console.log(href)
|
|
|
- let url = decrypted(href) // window.location.href
|
|
|
- // console.log('url: '+ url )
|
|
|
// TODO: 开发环境,参数修改
|
|
|
if (process.env.VUE_APP_RealEnv === 'development') {
|
|
|
- url = `username=wangjintao&plazaId=1000772`
|
|
|
+ href = encrypted('username=liujiandong&plazaId=1000423')
|
|
|
}
|
|
|
+ let url = decrypted(href) // window.location.href
|
|
|
+ // console.log('url: '+ url )
|
|
|
+
|
|
|
let params = this.queryURLParams(url)
|
|
|
let { username, plazaId, assetid } = params
|
|
|
if (username) {
|