|
@@ -31,6 +31,19 @@ async function fetchBadgeAndVisitData() {
|
|
}
|
|
}
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
|
+ async reportVisit() {
|
|
|
|
+ const res = await axios({
|
|
|
|
+ method: 'get',
|
|
|
|
+ url: `${process.env.VUE_APP_API_PREFIX}/api/show/addVisit`,
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ async fetchVisitInfo() {
|
|
|
|
+ const res = await axios({
|
|
|
|
+ method: 'get',
|
|
|
|
+ url: `${process.env.VUE_APP_API_PREFIX}/api/show/getVisit`,
|
|
|
|
+ })
|
|
|
|
+ return res.data.data
|
|
|
|
+ },
|
|
async login(userName, password) {
|
|
async login(userName, password) {
|
|
const pwdEncrypted = encodeStr(Base64.encode(password))
|
|
const pwdEncrypted = encodeStr(Base64.encode(password))
|
|
const res = await axios({
|
|
const res = await axios({
|