Browse Source

2023.8.15

nanMing 1 year ago
parent
commit
8fb0e9828c
4 changed files with 18 additions and 24 deletions
  1. 0 1
      components/select-region/select-region.vue
  2. 1 1
      config.js
  3. 3 3
      manifest.json
  4. 14 19
      pages/category/index.vue

+ 0 - 1
components/select-region/select-region.vue

@@ -91,7 +91,6 @@
         app.isLoading = true
         RegionModel.getTreeData()
           .then(regions => {
-						console.log(regions);
             // 格式化级联选择器数据
             this.options = this.getOptions(regions)
           })

+ 1 - 1
config.js

@@ -6,7 +6,7 @@ module.exports = {
   // 必填: 后端api地址, 斜杠/结尾, 参照下面格式
   // 例如: https://www.你的域名.com/index.php?s=/api/
   // apiUrl: "http://121.36.73.159:807/prod-api/",
-	apiUrl: "http://10.16.4.7/index.php?s=/api/",
+	apiUrl: "https://www.ccsckj.com:810/index.php?s=/api/",
   /**
    * 是否启用商城设置缓存
    * 将减少用户端重复请求; 正式运营时请设为true, 开启后商城设置同步前端需10分钟缓存

+ 3 - 3
manifest.json

@@ -1,7 +1,7 @@
 {
-    "name" : "萤火商城2.0",
+    "name" : "养老服务商城",
     "appid" : "__UNI__0D10373",
-    "description" : "萤火商城V2.0,是2021年全新推出的一款轻量级、高性能、前后端分离的电商系统",
+    "description" : "养老服务商城,是2023年全新推出的一款轻量级、高性能、前后端分离的养老服务系统",
     "versionName" : "2.0.3",
     "versionCode" : 203,
     "transformPx" : false,
@@ -70,7 +70,7 @@
     "quickapp" : {},
     /* 小程序特有相关 */
     "mp-weixin" : {
-        "appid" : "wx01443ede9e347dea",
+        "appid" : "wx1c015df104db7030",
         "setting" : {
             // 是否检查安全域名和 TLS 版本
             "urlCheck" : true,

+ 14 - 19
pages/category/index.vue

@@ -88,25 +88,20 @@
       getPageData() {
         const app = this
         app.isLoading = true
-				// 初始化分类模板设置
-				app.initSetting(Setting.data.setting)
-				// 初始化分类列表数据
-				app.initCategory(cateList)
-				app.isLoading = false
-        // Promise.all([
-        //     // 获取分类模板设置
-        //     // 优化建议: 可以将此处的false改为true 启用缓存
-        //     SettingModel.data(false),
-        //     // 获取分类列表
-        //     CategoryApi.list()
-        //   ])
-        //   .then(result => {
-        //     // 初始化分类模板设置
-        //     app.initSetting(result[0])
-        //     // 初始化分类列表数据
-        //     app.initCategory(result[1])
-        //   })
-        //   .finally(() => app.isLoading = false)
+        Promise.all([
+            // 获取分类模板设置
+            // 优化建议: 可以将此处的false改为true 启用缓存
+            SettingModel.data(false),
+            // 获取分类列表
+            CategoryApi.list()
+          ])
+          .then(result => {
+            // 初始化分类模板设置
+            app.initSetting(result[0])
+            // 初始化分类列表数据
+            app.initCategory(result[1])
+          })
+          .finally(() => app.isLoading = false)
       },
 
       /**