From 7a4b8764b68e0dbaeb90e292a8a4bd47cb379e68 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期一, 27 四月 2026 17:26:02 +0800
Subject: [PATCH] 小程序端和PC端bug修复

---
 small-program/unpackage/dist/dev/mp-weixin/common/main.js |   18 +++++++++++-------
 1 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/small-program/unpackage/dist/dev/mp-weixin/common/main.js b/small-program/unpackage/dist/dev/mp-weixin/common/main.js
index 1009eff..e50bccc 100644
--- a/small-program/unpackage/dist/dev/mp-weixin/common/main.js
+++ b/small-program/unpackage/dist/dev/mp-weixin/common/main.js
@@ -32,9 +32,10 @@
 _vue.default.prototype.$onLaunched = new Promise(function (resolve) {
   _vue.default.prototype.$isResolve = resolve;
 });
-_vue.default.prototype.$baseUrl = 'http://192.168.1.4:10011';
-// Vue.prototype.$baseUrl = 'https://jinkuai.832smartfarm.com/jinkuai_web/'
 
+// Vue.prototype.$baseUrl = 'http://192.168.1.4:10011'
+
+_vue.default.prototype.$baseUrl = 'https://llfc.lmpro.cn/nyx_web/';
 var app = new _vue.default(_objectSpread({
   store: _index.default
 }, _App.default));
@@ -220,7 +221,7 @@
               return that.$store.commit('setUserInfo', res.data);
             case 11:
               _context2.next = 13;
-              return that.$store.commit('setOpenid', res.data.openId);
+              return that.$store.commit('setOpenid', res.data.openid);
             case 13:
               _context2.next = 15;
               return that.checkLocationAuth();
@@ -255,7 +256,7 @@
             latitude: addr.latitude,
             longitude: addr.longitude
           };
-          uni.setStorageSync('address', locParam);
+          // uni.setStorageSync('address', locParam);
           var address = null;
           var myAmapFun = new amapFile.AMapWX({
             key: 'e4d46c87adf151dca20060317592b1b6'
@@ -281,12 +282,15 @@
                         });
                       case 8:
                         resCity = _context3.sent;
-                        if (resCity.code === 200) {
+                        if (resCity.code === 200 && resCity.data) {
                           locParam.cityId = resCity.data.id;
+                          that.$store.commit('setPosition', locParam);
+                        } else {
+                          that.$store.commit('setPosition', locParam);
+                          that.$store.commit('clearCityId');
                         }
-                        that.$store.commit('setPosition', locParam);
                         that.$isResolve();
-                      case 12:
+                      case 11:
                       case "end":
                         return _context3.stop();
                     }

--
Gitblit v1.9.3