From bde305f2c01d6248f8b290c7dee5386d32e9bfd6 Mon Sep 17 00:00:00 2001
From: wr1207 <wyun001@163.com>
Date: 星期一, 23 十月 2023 15:14:55 +0800
Subject: [PATCH] 区县区县添加

---
 js/indexM.js      |    3 +++
 mobile/index.html |   13 ++++++++-----
 2 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/js/indexM.js b/js/indexM.js
index 7f448cd..e9d4ab9 100644
--- a/js/indexM.js
+++ b/js/indexM.js
@@ -50,6 +50,9 @@
   // catch (err) {
   //   window.top.location = mars3d.global_variables.un_authorization_url;
   // }
+
+  mars3d.global_variables.regionCode = localStorage.getItem("regionCode");
+  mars3d.global_variables.userid = localStorage.getItem("user_id_");
  
   if(!mars3d.global_variables.userid) {
     mars3d.global_variables.userid = 2;
diff --git a/mobile/index.html b/mobile/index.html
index 16e479f..871d304 100644
--- a/mobile/index.html
+++ b/mobile/index.html
@@ -24,9 +24,9 @@
   <!--绗笁鏂筶ib-->
   <link href="css/style.css" rel="stylesheet" />
   <script>
-    if(localStorage.getItem('user_id_') != null) {
-      window.location = "../mobile/cars.html";  
-    }   
+    // if(localStorage.getItem('user_id_') != null) {
+    //   window.location = "../mobile/cars.html";  
+    // }   
   </script>
 </head>
 
@@ -35,7 +35,7 @@
     <div class="login-head">
       <img src="../img/logo.png" class="login-logo" />
       涓婃捣甯傞亾璺氦閫氱幆澧冪洃娴嬪钩鍙�
-      <p>涓烘寔缁敼鍠勭┖姘旇川閲忚�屽姫鍔�</p>
+      <p>璁╀笂娴风殑閬撹矾鐜鏇村姞缇庡ソ</p>
     </div>
     <div class="login-form" id="road">
       <form id="myform">
@@ -45,7 +45,7 @@
       </form>
       <script>
         function DoAjax() {
-          // debugger;
+          debugger;
           $.ajax({
             type: "get",
             url: default_system_params.nodejs_url_predix+"dataapi/Bdata?bid=mobile_login",
@@ -56,6 +56,7 @@
               window.location = "../mobile";
             },
             success: function (data) {
+              debugger;
               data = data.data;
               if(!data && !data.result) {
                 alert("杩炴帴閿欒锛�");
@@ -69,6 +70,8 @@
               if(record.status == 0 && record.is_deleted ==0) {
                 localStorage.setItem("user_id_",record.id);
                 localStorage.setItem("name",record.name);
+                localStorage.setItem("regionCode", data.result.length>1 ? "1": record.divcode);
+                //mars3d.global_variables.regionCode = record.divcode;
                 window.location = "../mobile/cars.html";                
               } else {
                 alert("璐﹀彿寮傚父锛�");

--
Gitblit v1.9.1