فهرست منبع

单位采集返回按钮BUG修复

fanghuisheng 2 سال پیش
والد
کامیت
4168fa3bb7
2فایلهای تغییر یافته به همراه4 افزوده شده و 7 حذف شده
  1. 1 1
      src/pages/business/mhxf/unitInfoCollection/index.vue
  2. 3 6
      src/pages/index.vue

+ 1 - 1
src/pages/business/mhxf/unitInfoCollection/index.vue

@@ -1482,7 +1482,7 @@ onLoad((options) => {
     scanBool.value = options.scanBool;
   }
 
-  if (scanBool) {
+  if (scanBool.value) {
     document.getElementsByClassName("uni-page-head-hd")[0].style.cssText = "display: none;";
   }
 });

+ 3 - 6
src/pages/index.vue

@@ -224,11 +224,10 @@ onLoad((option) => {
 async function init() {
   window.location.href = BASE_URL + "Com/getPageAuthorization1";
 }
+
 //扫码
 function scanQRCode() {
-  // console.log(1);
   // scanCode();
-  // 微信公众号获取位置
   jwx.configWeiXin((jweixin) => {
     jweixin.scanQRCode({
       needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果,
@@ -275,11 +274,9 @@ async function getCodeResult(param = {}) {
 
 //获取地理位置
 function getLocation() {
-  // 将this赋值给that
-  let that = this;
-  // 微信公众号获取位置
+
   jwx.configWeiXin((jweixin) => {
-    alert(22);
+    // 微信公众号获取位置
     jweixin.getLocation({
       type: "gcj02", // 默认为wgs84的gps坐标,如果要返回直接给openLocation用的火星坐标,可传入'gcj02'
       success: function (res) {