Selaa lähdekoodia

考场模块自动选择省市中

JXDS18FUJT 2 vuotta sitten
vanhempi
commit
07f1497d77
1 muutettua tiedostoa jossa 9 lisäystä ja 0 poistoa
  1. 9 0
      src/otherPages/examRoadVideo/index.vue

+ 9 - 0
src/otherPages/examRoadVideo/index.vue

@@ -195,6 +195,15 @@ export default {
   },
   onLoad(query) {
     this.query = query;
+    uni.getLocation({
+      type: 'gcj02',
+      success(res){
+        console.log(res)
+      },
+      fail(res){
+        console.log(res)
+      }
+    })
     // api.user.studentVipExamList().then((res) => {
     //   uni.setStorageSync("examRoom", res.rows);
     // });