From a997c45ed4675d2eb045090fddb933235f4279cd Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期六, 28 二月 2026 14:21:57 +0800
Subject: [PATCH] 经销商管理

---
 mini-program/unpackage/dist/dev/mp-weixin/common/main.js |   71 +++++++++++++++++++++--------------
 1 files changed, 43 insertions(+), 28 deletions(-)

diff --git a/mini-program/unpackage/dist/dev/mp-weixin/common/main.js b/mini-program/unpackage/dist/dev/mp-weixin/common/main.js
index d193727..e5dbabb 100644
--- a/mini-program/unpackage/dist/dev/mp-weixin/common/main.js
+++ b/mini-program/unpackage/dist/dev/mp-weixin/common/main.js
@@ -28,7 +28,9 @@
 _vue.default.config.productionTip = false;
 _App.default.mpType = 'app';
 _vue.default.prototype.$store = _index.default;
-_vue.default.prototype.$baseUrl = 'http://192.168.1.17:12015/';
+_vue.default.prototype.$baseUrl = 'http://192.168.0.7/dmmall_web_api/';
+// Vue.prototype.$baseUrl = 'https://test.doumee.cn/dmmall_web_api/'
+
 _vue.default.prototype.$onLaunched = new Promise(function (resolve) {
   _vue.default.prototype.$isResolve = resolve;
 });
@@ -242,7 +244,8 @@
           switch (_context3.prev = _context3.next) {
             case 0:
               this.dealRecShopUserBiz(options);
-            case 1:
+              this.getBackgroundImg();
+            case 2:
             case "end":
               return _context3.stop();
           }
@@ -258,6 +261,19 @@
     console.log('App Hide');
   },
   methods: {
+    getBackgroundImg: function getBackgroundImg() {
+      this.$u.api.getPlatformAboutUs({}).then(function (res) {
+        if (res.code === 200) {
+          var obj = {
+            shopIntegralBg: res.data.shopIntegralBg,
+            userInviteBg: res.data.userInviteBg,
+            userShareBg: res.data.userShareBg,
+            centerInviteBg: res.data.centerInviteBg
+          };
+          uni.setStorageSync('backgroundImage', obj);
+        }
+      });
+    },
     dealRecShopUserBiz: function dealRecShopUserBiz(options) {
       var _this = this;
       return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
@@ -266,24 +282,23 @@
           while (1) {
             switch (_context4.prev = _context4.next) {
               case 0:
-                console.error("鍚姩鍙傛暟", options);
                 if (!(options.query && options.query.userId)) {
-                  _context4.next = 5;
+                  _context4.next = 4;
                   break;
                 }
                 if (!(!_this.userInfo || !_this.userInfo.id)) {
-                  _context4.next = 5;
+                  _context4.next = 4;
                   break;
                 }
-                _context4.next = 5;
+                _context4.next = 4;
                 return _this.$store.commit('setRecUserId', options.query.userId);
-              case 5:
+              case 4:
                 if (!(options.query && options.query.scene && options.query.scene.length)) {
-                  _context4.next = 33;
+                  _context4.next = 32;
                   break;
                 }
                 if (!(options.query.scene.indexOf("sid_") >= 0)) {
-                  _context4.next = 33;
+                  _context4.next = 32;
                   break;
                 }
                 s = options.query.scene.indexOf("sid_") + 4;
@@ -298,46 +313,46 @@
                   shopId = ts.slice(0, e);
                 }
                 if (!shopId) {
-                  _context4.next = 33;
+                  _context4.next = 32;
                   break;
                 }
                 if (!(_this.userInfo && _this.userInfo.id)) {
-                  _context4.next = 31;
+                  _context4.next = 30;
                   break;
                 }
-                _context4.prev = 16;
-                _context4.next = 19;
+                _context4.prev = 15;
+                _context4.next = 18;
                 return _this.$u.api.bindShopInfo({
                   code: code
                 });
-              case 19:
+              case 18:
                 res = _context4.sent;
                 if (!(res.code != 200)) {
-                  _context4.next = 23;
+                  _context4.next = 22;
                   break;
                 }
-                _context4.next = 23;
+                _context4.next = 22;
                 return _this.$store.commit('setRecShopId', shopId);
-              case 23:
-                _context4.next = 29;
+              case 22:
+                _context4.next = 28;
                 break;
-              case 25:
-                _context4.prev = 25;
-                _context4.t0 = _context4["catch"](16);
-                _context4.next = 29;
+              case 24:
+                _context4.prev = 24;
+                _context4.t0 = _context4["catch"](15);
+                _context4.next = 28;
                 return _this.$store.commit('setRecShopId', shopId);
-              case 29:
-                _context4.next = 33;
+              case 28:
+                _context4.next = 32;
                 break;
-              case 31:
-                _context4.next = 33;
+              case 30:
+                _context4.next = 32;
                 return _this.$store.commit('setRecShopId', shopId);
-              case 33:
+              case 32:
               case "end":
                 return _context4.stop();
             }
           }
-        }, _callee4, null, [[16, 25]]);
+        }, _callee4, null, [[15, 24]]);
       }))();
     },
     checkLocationAuth: function checkLocationAuth() {

--
Gitblit v1.9.3