diff --git a/src/App.vue b/src/App.vue
index 2d438da..d776ca6 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,74 +1,87 @@
-
-
-
-
+ -->
+
+
+
diff --git a/src/api/index.ts b/src/api/index.ts
index 5f009af..fbd9fbc 100644
--- a/src/api/index.ts
+++ b/src/api/index.ts
@@ -1041,31 +1041,72 @@ export async function luzhi(roomid: string){
export function getaddr() {
return new Promise(async (r)=>{
- console.log("开始定位")
+ // console.log("开始定位")
const lan = getValue("Lanvuage");
- if ("geolocation" in navigator) {
- /* 地理位置服务可用 */
- navigator.geolocation.getCurrentPosition(async (res) => {
- console.log(res, 'res')
- const qh = await get('countryCode', {
- longitude: res.coords.longitude,
- latitude: res.coords.latitude
- });
- console.log(qh)
- if(lan != null && lan){
- if(qh.data.ename == "China"){
- r({hb: '人民币¥', qh});
- }else {
- r({hb: '美元$', qh})
- }
- }else{
- if(qh.data.ename == "China"){
- r({yy: "zh", yyx: "中文", hb: '人民币¥', qh});
- }else {
- r({yy: 'en', yyx: 'English', hb: '美元$', qh})
- }
- }
- },async () => {
+ // if ("geolocation" in navigator) {
+ // /* 地理位置服务可用 */
+ // navigator.geolocation.getCurrentPosition(async (res) => {
+ // console.log(res, 'res')
+ // const qh = await get('countryCode', {
+ // longitude: res.coords.longitude,
+ // latitude: res.coords.latitude
+ // });
+ // console.log(qh)
+ // if(lan != null && lan){
+ // if(qh.data.ename == "China"){
+ // r({hb: '人民币¥', qh});
+ // }else {
+ // r({hb: '美元$', qh})
+ // }
+ // }else{
+ // if(qh.data.ename == "China"){
+ // r({yy: "zh", yyx: "中文", hb: '人民币¥', qh});
+ // }else {
+ // r({yy: 'en', yyx: 'English', hb: '美元$', qh})
+ // }
+ // }
+ // },async () => {
+ // const qh = await get('countryCode', {
+
+ // });
+ // console.log(qh)
+ // if(lan != null && lan){
+ // if(qh.data.ename == "China"){
+ // r({hb: '人民币¥', qh});
+ // }else {
+ // r({hb: '美元$', qh})
+ // }
+ // }else{
+ // if(qh.data.ename == "China"){
+ // r({yy: "zh", yyx: "中文", hb: '人民币¥', qh});
+ // }else {
+ // r({yy: 'en', yyx: 'English', hb: '美元$', qh})
+ // }
+ // }
+ // // message.error(err.message)
+ // // console.log(err, 'err')
+ // })
+ // } else {
+ // const qh = await get('countryCode', {
+
+ // });
+ // console.log(qh)
+ // if(lan != null && lan){
+ // if(qh.data.ename == "China"){
+ // r({hb: '人民币¥', qh});
+ // }else {
+ // r({hb: '美元$', qh})
+ // }
+ // }else{
+ // if(qh.data.ename == "China"){
+ // r({yy: "zh", yyx: "中文", hb: '人民币¥', qh});
+ // }else {
+ // r({yy: 'en', yyx: 'English', hb: '美元$', qh})
+ // }
+ // }
+ // /* 地理位置服务不可用 */
+ // console.log("无法定位")
+ // }
const qh = await get('countryCode', {
});
@@ -1083,30 +1124,6 @@ export function getaddr() {
r({yy: 'en', yyx: 'English', hb: '美元$', qh})
}
}
- // message.error(err.message)
- // console.log(err, 'err')
- })
- } else {
- const qh = await get('countryCode', {
-
- });
- console.log(qh)
- if(lan != null && lan){
- if(qh.data.ename == "China"){
- r({hb: '人民币¥', qh});
- }else {
- r({hb: '美元$', qh})
- }
- }else{
- if(qh.data.ename == "China"){
- r({yy: "zh", yyx: "中文", hb: '人民币¥', qh});
- }else {
- r({yy: 'en', yyx: 'English', hb: '美元$', qh})
- }
- }
- /* 地理位置服务不可用 */
- console.log("无法定位")
- }
})
// const res = await get('ip');
@@ -1167,3 +1184,7 @@ export async function setusername(src: string){
}
console.log(res)
}
+
+export async function logoutapi() {
+ await get("logout");
+}
\ No newline at end of file
diff --git a/src/components/Menu.vue b/src/components/Menu.vue
index a25f5bd..595d49e 100644
--- a/src/components/Menu.vue
+++ b/src/components/Menu.vue
@@ -130,6 +130,7 @@
}