Forráskód Böngészése

Merge branch 'v5.0.0dev' of https://gitee.com/ZhongBangKeJi/CRMEB into v5.0.0dev

From-wh 2 éve
szülő
commit
877d5bc55d
46 módosított fájl, 144 hozzáadás és 149 törlés
  1. 11 2
      crmeb/app/adminapi/controller/v1/setting/SystemCrud.php
  2. 2 3
      crmeb/app/adminapi/controller/v1/setting/SystemMenus.php
  3. 25 0
      crmeb/app/adminapi/controller/v1/system/SystemDatabackup.php
  4. 2 0
      crmeb/app/adminapi/route/system.php
  5. 30 2
      crmeb/app/services/system/SystemCrudServices.php
  6. 12 0
      crmeb/app/services/system/SystemRouteServices.php
  7. 1 1
      crmeb/crmeb/services/crud/Controller.php
  8. 1 1
      crmeb/crmeb/services/crud/Route.php
  9. 1 1
      crmeb/public/index.html
  10. 26 0
      crmeb/public/mobile.html
  11. 0 55
      crmeb/public/static/html/pc.html
  12. 1 0
      crmeb/public/static/js/index.468ab3a7.js
  13. 0 1
      crmeb/public/static/js/index.8f27223f.js
  14. 1 0
      crmeb/public/static/js/pages-annex-special-index~pages-index-index.1c07f80a.js
  15. 0 1
      crmeb/public/static/js/pages-annex-special-index~pages-index-index.e640922e.js
  16. 0 1
      crmeb/public/static/js/pages-annex-vip_paid-index.6862c7d0.js
  17. 1 0
      crmeb/public/static/js/pages-annex-vip_paid-index.9dd16dfa.js
  18. 0 1
      crmeb/public/static/js/pages-annex-vip_paid-index~pages-goods-order_confirm-index~pages-goods-order_details-index~pages-goo~3d1fee3b.8bc08658.js
  19. 1 0
      crmeb/public/static/js/pages-annex-web_view-index.6ef08ef8.js
  20. 0 1
      crmeb/public/static/js/pages-annex-web_view-index.a1fa9330.js
  21. 0 1
      crmeb/public/static/js/pages-goods-cashier-index.8ed73bb7.js
  22. 1 0
      crmeb/public/static/js/pages-goods-cashier-index.a905cbb2.js
  23. 1 0
      crmeb/public/static/js/pages-goods-order_confirm-index.5b3df756.js
  24. 0 1
      crmeb/public/static/js/pages-goods-order_confirm-index.bf6b6cd1.js
  25. 1 0
      crmeb/public/static/js/pages-goods-order_confirm-index~pages-goods-order_details-index.2c9c5692.js
  26. 0 1
      crmeb/public/static/js/pages-goods-order_confirm-index~pages-goods-order_details-index.3eae97c0.js
  27. 1 0
      crmeb/public/static/js/pages-goods-order_confirm-index~pages-goods-order_details-index~pages-points_mall-integral_order~pag~4439065e.d8a54078.js
  28. 1 0
      crmeb/public/static/js/pages-goods-order_details-index.dfbfa70d.js
  29. 0 1
      crmeb/public/static/js/pages-goods-order_details-index.e730e8b1.js
  30. 0 1
      crmeb/public/static/js/pages-goods-order_list-index.333f0fea.js
  31. 1 0
      crmeb/public/static/js/pages-goods-order_list-index.b17e0009.js
  32. 0 1
      crmeb/public/static/js/pages-points_mall-integral_order.706feed8.js
  33. 1 0
      crmeb/public/static/js/pages-points_mall-integral_order.acb01ecf.js
  34. 0 1
      crmeb/public/static/js/pages-points_mall-integral_order_details.8452b486.js
  35. 1 0
      crmeb/public/static/js/pages-points_mall-integral_order_details.ca67015b.js
  36. 1 0
      crmeb/public/static/js/pages-users-payment_on_behalf-index.00a4134d.js
  37. 0 1
      crmeb/public/static/js/pages-users-payment_on_behalf-index.1fbc1f9e.js
  38. 1 0
      crmeb/public/static/js/pages-users-user_invoice_order-index.28c6d57a.js
  39. 0 1
      crmeb/public/static/js/pages-users-user_invoice_order-index.705385bd.js
  40. 1 0
      crmeb/public/static/js/pages-users-user_payment-index.b5affb79.js
  41. 0 1
      crmeb/public/static/js/pages-users-user_payment-index.d4675b4f.js
  42. 10 2
      crmeb/route/route.php
  43. 7 3
      template/admin/src/pages/setting/systemMenus/index.vue
  44. 1 1
      template/admin/src/pages/system/maintain/systemDatabackup/index.vue
  45. 0 8
      template/uni-app/App.vue
  46. 0 55
      template/uni-app/static/html/pc.html

+ 11 - 2
crmeb/app/adminapi/controller/v1/setting/SystemCrud.php

@@ -88,9 +88,10 @@ class SystemCrud extends AuthController
      */
      */
     public function getFilePath()
     public function getFilePath()
     {
     {
-        [$menuName, $tableName, $fromField, $columnField] = $this->request->postMore([
+        [$menuName, $tableName, $isTable, $fromField, $columnField] = $this->request->postMore([
             ['menuName', ''],
             ['menuName', ''],
             ['tableName', ''],
             ['tableName', ''],
+            ['isTable', 0],
             ['fromField', []],
             ['fromField', []],
             ['columnField', []],
             ['columnField', []],
         ], true);
         ], true);
@@ -108,7 +109,15 @@ class SystemCrud extends AuthController
             $makePath[$key] = $item['path'];
             $makePath[$key] = $item['path'];
         }
         }
 
 
-        return app('json')->success($makePath);
+        $tableField = [];
+        if (!$isTable) {
+            $field = $this->services->getColumnNamesList($tableName);
+            foreach ($field as $item) {
+                $tableField[] = ['value' => $item['name'], 'comment' => $item['comment'], 'label' => $item['name']];
+            }
+        }
+
+        return app('json')->success(compact('makePath', 'tableField'));
     }
     }
 
 
     /**
     /**

+ 2 - 3
crmeb/app/adminapi/controller/v1/setting/SystemMenus.php

@@ -256,13 +256,12 @@ class SystemMenus extends AuthController
     public function ruleList()
     public function ruleList()
     {
     {
         //获取所有的路由
         //获取所有的路由
-        $ruleList = app()->make(SystemRouteServices::class)->selectList(['app_name' => 'adminapi'], 'name,path,method,type,id');
+        $ruleList = app()->make(SystemRouteServices::class)->selectList(['app_name' => 'adminapi'], 'name,path,method,type,id')->toArray();
         $menuApiList = $this->services->getColumn(['auth_type' => 2, 'is_del' => 0], "concat(`api_url`,'_',lower(`methods`)) as rule");
         $menuApiList = $this->services->getColumn(['auth_type' => 2, 'is_del' => 0], "concat(`api_url`,'_',lower(`methods`)) as rule");
         if ($menuApiList) $menuApiList = array_column($menuApiList, 'rule');
         if ($menuApiList) $menuApiList = array_column($menuApiList, 'rule');
         $list = [];
         $list = [];
         foreach ($ruleList as $item) {
         foreach ($ruleList as $item) {
-            $item['path'] = str_replace('adminapi/', '', $item['path']);
-            if (!in_array($item['path'] . '_' . $item['method'], $menuApiList)) {
+            if (!in_array($item['path'] . '_' . strtolower($item['method']), $menuApiList)) {
                 $item['real_name'] = $item['name'] ?? '';
                 $item['real_name'] = $item['name'] ?? '';
                 $item['method'] = strtoupper($item['method']);
                 $item['method'] = strtoupper($item['method']);
                 $list[] = $item;
                 $list[] = $item;

+ 25 - 0
crmeb/app/adminapi/controller/v1/system/SystemDatabackup.php

@@ -11,6 +11,7 @@
 namespace app\adminapi\controller\v1\system;
 namespace app\adminapi\controller\v1\system;
 
 
 use think\facade\App;
 use think\facade\App;
+use think\facade\Db;
 use think\facade\Session;
 use think\facade\Session;
 use app\adminapi\controller\AuthController;
 use app\adminapi\controller\AuthController;
 use app\services\system\SystemDatabackupServices;
 use app\services\system\SystemDatabackupServices;
@@ -53,6 +54,30 @@ class SystemDatabackup extends AuthController
         return app('json')->success($this->services->getRead($tablename));
         return app('json')->success($this->services->getRead($tablename));
     }
     }
 
 
+    /**
+     * 更新数据表或者表字段备注
+     * @return \think\Response
+     * @author 吴汐
+     * @email 442384644@qq.com
+     * @date 2023/04/11
+     */
+    public function updateMark()
+    {
+        [$table, $field, $type, $mark] = $this->request->postMore([
+            ['table', ''],
+            ['field', ''],
+            ['type', ''],
+            ['mark', ''],
+        ], true);
+        if ($field == '') {
+            $sql = "ALTER TABLE $table COMMENT '$mark'";
+        } else {
+            $sql = "ALTER TABLE $table MODIFY COLUMN $field $type COMMENT '$mark'";
+        }
+        Db::execute($sql);
+        return app('json')->success(100024);
+    }
+
     /**
     /**
      * 优化表
      * 优化表
      */
      */

+ 2 - 0
crmeb/app/adminapi/route/system.php

@@ -49,6 +49,8 @@ Route::group('system', function () {
     Route::get('backup', 'v1.system.SystemDatabackup/index')->option(['real_name' => '数据库所有表']);
     Route::get('backup', 'v1.system.SystemDatabackup/index')->option(['real_name' => '数据库所有表']);
     //数据备份详情
     //数据备份详情
     Route::get('backup/read', 'v1.system.SystemDatabackup/read')->option(['real_name' => '数据备份详情']);
     Route::get('backup/read', 'v1.system.SystemDatabackup/read')->option(['real_name' => '数据备份详情']);
+    //更新数据表或者表字段备注
+    Route::post('database/update_mark', 'v1.system.SystemDatabackup/updateMark')->option(['real_name' => '更新数据表或者表字段备注']);
     //数据备份 优化表
     //数据备份 优化表
     Route::put('backup/optimize', 'v1.system.SystemDatabackup/optimize')->option(['real_name' => '数据备份优化表']);
     Route::put('backup/optimize', 'v1.system.SystemDatabackup/optimize')->option(['real_name' => '数据备份优化表']);
     //数据备份 修复表
     //数据备份 修复表

+ 30 - 2
crmeb/app/services/system/SystemCrudServices.php

@@ -65,11 +65,39 @@ class SystemCrudServices extends BaseServices
         return compact('list', 'count');
         return compact('list', 'count');
     }
     }
 
 
+    /**
+     * 数据库字段类型
+     * @return \string[][]
+     * @author 等风来
+     * @email 136327134@qq.com
+     * @date 2023/4/11
+     */
     public function getTabelRule()
     public function getTabelRule()
     {
     {
-        $adapter = app()->make(MysqlAdapter::class);
         return [
         return [
-            'types' => $adapter->getColumnTypes(),
+            'types' => [
+                'string',
+                'char',
+                'text',
+                'integer',
+                'biginteger',
+                'float',
+                'decimal',
+                'datetime',
+                'timestamp',
+                'time',
+                'date',
+                'blob',
+                'binary',
+                'varbinary',
+                'boolean',
+                'uuid',
+                // Geospatial data types
+                'geometry',
+                'point',
+                'linestring',
+                'polygon',
+            ]
         ];
         ];
     }
     }
 
 

+ 12 - 0
crmeb/app/services/system/SystemRouteServices.php

@@ -93,6 +93,18 @@ class SystemRouteServices extends BaseServices
                 }
                 }
             ])
             ])
             ->toArray();
             ->toArray();
+
+        foreach ($list as $key => $item) {
+            if (!empty($item['children'])) {
+                foreach ($item['children'] as $k => $v) {
+                    if (isset($v['cate_id']) && isset($v['method']) && $v['method'] === 'DELETE') {
+                        $v['method'] = 'DEL';
+                        $list[$key]['children'][$k] = $v;
+                    }
+                }
+            }
+        }
+
         return get_tree_children($list);
         return get_tree_children($list);
     }
     }
 
 

+ 1 - 1
crmeb/crmeb/services/crud/Controller.php

@@ -109,7 +109,7 @@ class Controller extends Make
      * @email 136327134@qq.com
      * @email 136327134@qq.com
      * @date 2023/3/13
      * @date 2023/3/13
      */
      */
-    protected function getStub(string $type = '')
+    protected function getStub(string $type = 'controller')
     {
     {
         $controllerPath = __DIR__ . DS . 'stubs' . DS . 'controller' . DS;
         $controllerPath = __DIR__ . DS . 'stubs' . DS . 'controller' . DS;
 
 

+ 1 - 1
crmeb/crmeb/services/crud/Route.php

@@ -80,7 +80,7 @@ class Route extends Make
 
 
         $contentStr = str_replace($this->var, $this->value, $content);
         $contentStr = str_replace($this->var, $this->value, $content);
 
 
-        $filePath = $this->getFilePathName($path, $this->value['nameCamel']);
+        $filePath = $this->getFilePathName($path, strtolower($name));
 
 
         return [$this->makeFile($filePath, $contentStr), $filePath];
         return [$this->makeFile($filePath, $contentStr), $filePath];
     }
     }

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 1 - 1
crmeb/public/index.html


+ 26 - 0
crmeb/public/mobile.html

@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+  <meta charset="UTF-8">
+  <title><?=$siteName?></title>
+  <style>
+    #page {
+      width: 375px;
+      height: 60vh;
+      margin: 0 auto;
+      display: block;
+      position: absolute;
+      left: 50%;
+      -webkit-transform: translate(-50%,0);
+      -moz-transform: translate(-50%,0);
+      transform: translate(-50%,0);
+    }
+    body {
+      margin-top: 100px;
+    }
+  </style>
+</head>
+<body>
+<iframe id="page" src="<?=$siteUrl?>" frameborder="0"></iframe>
+</body>
+</html>

+ 0 - 55
crmeb/public/static/html/pc.html

@@ -1,55 +0,0 @@
-<!DOCTYPE html>
-<html lang=zh-CN>
-	<head>
-		<meta charset="utf-8">
-		<meta http-equiv="X-UA-Compatible" content="IE=edge">
-		<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1">
-		<title>crmeb-PC端</title>
-		<meta name="Copyright" content="helang">
-		<link rel="shortcut icon" type="image/png" href="">
-		<meta name="keywords" content="">
-		<meta name="description" content="">
-		<style type="text/css">
-			body{
-				margin: 0;
-				background-color: #f3f3f3;
-			}
-			iframe{
-				width: 375px;
-				height: 667px;
-				background-color: #fff;
-				box-sizing: content-box;
-				border: none;
-			}
-			
-			@media screen and (min-width: 450px) {
-			    iframe {
-					position: fixed;
-					top: 0;
-					right: 0;
-					bottom: 0;
-					left: 0;
-					margin: auto;
-			        border: rgba(0,0,0,0.1) solid 1px;
-			        border-radius: 4px;
-			    }
-			}
-		</style>
-		<script type="text/javascript">
-			window.isPC = true;
-			
-			window.onload = function(){
-				/* 监听电脑浏览器窗口尺寸改变 */
-				window.onresize = function(){
-					/* 窗口宽度 小于或等于420px 时,跳转回H5页面 */
-					if(window.innerWidth <= 420){
-						window.location.pathname = '/';
-					}
-				}
-			}
-		</script>
-	</head>
-	<body>
-		<iframe src="/"></iframe>
-	</body>
-</html>

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 1 - 0
crmeb/public/static/js/index.468ab3a7.js


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 1
crmeb/public/static/js/index.8f27223f.js


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 1 - 0
crmeb/public/static/js/pages-annex-special-index~pages-index-index.1c07f80a.js


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 1
crmeb/public/static/js/pages-annex-special-index~pages-index-index.e640922e.js


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 1
crmeb/public/static/js/pages-annex-vip_paid-index.6862c7d0.js


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 1 - 0
crmeb/public/static/js/pages-annex-vip_paid-index.9dd16dfa.js


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 1
crmeb/public/static/js/pages-annex-vip_paid-index~pages-goods-order_confirm-index~pages-goods-order_details-index~pages-goo~3d1fee3b.8bc08658.js


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 1 - 0
crmeb/public/static/js/pages-annex-web_view-index.6ef08ef8.js


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 1
crmeb/public/static/js/pages-annex-web_view-index.a1fa9330.js


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 1
crmeb/public/static/js/pages-goods-cashier-index.8ed73bb7.js


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 1 - 0
crmeb/public/static/js/pages-goods-cashier-index.a905cbb2.js


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 1 - 0
crmeb/public/static/js/pages-goods-order_confirm-index.5b3df756.js


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 1
crmeb/public/static/js/pages-goods-order_confirm-index.bf6b6cd1.js


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 1 - 0
crmeb/public/static/js/pages-goods-order_confirm-index~pages-goods-order_details-index.2c9c5692.js


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 1
crmeb/public/static/js/pages-goods-order_confirm-index~pages-goods-order_details-index.3eae97c0.js


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 1 - 0
crmeb/public/static/js/pages-goods-order_confirm-index~pages-goods-order_details-index~pages-points_mall-integral_order~pag~4439065e.d8a54078.js


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 1 - 0
crmeb/public/static/js/pages-goods-order_details-index.dfbfa70d.js


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 1
crmeb/public/static/js/pages-goods-order_details-index.e730e8b1.js


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 1
crmeb/public/static/js/pages-goods-order_list-index.333f0fea.js


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 1 - 0
crmeb/public/static/js/pages-goods-order_list-index.b17e0009.js


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 1
crmeb/public/static/js/pages-points_mall-integral_order.706feed8.js


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 1 - 0
crmeb/public/static/js/pages-points_mall-integral_order.acb01ecf.js


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 1
crmeb/public/static/js/pages-points_mall-integral_order_details.8452b486.js


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 1 - 0
crmeb/public/static/js/pages-points_mall-integral_order_details.ca67015b.js


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 1 - 0
crmeb/public/static/js/pages-users-payment_on_behalf-index.00a4134d.js


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 1
crmeb/public/static/js/pages-users-payment_on_behalf-index.1fbc1f9e.js


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 1 - 0
crmeb/public/static/js/pages-users-user_invoice_order-index.28c6d57a.js


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 1
crmeb/public/static/js/pages-users-user_invoice_order-index.705385bd.js


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 1 - 0
crmeb/public/static/js/pages-users-user_payment-index.b5affb79.js


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 1
crmeb/public/static/js/pages-users-user_payment-index.d4675b4f.js


+ 10 - 2
crmeb/route/route.php

@@ -24,8 +24,16 @@ Route::miss(function () {
         case 'pages':
         case 'pages':
             return view(app()->getRootPath() . 'public' . DS . 'index.html');
             return view(app()->getRootPath() . 'public' . DS . 'index.html');
         default:
         default:
-            if (!request()->isMobile() && is_dir(app()->getRootPath() . 'public' . DS . 'home') && !request()->get('type')) {
-                return view(app()->getRootPath() . 'public' . DS . 'home' . DS . 'index.html');
+            if (!request()->isMobile()) {
+                if (is_dir(app()->getRootPath() . 'public' . DS . 'home') && !request()->get('type')) {
+                    return view(app()->getRootPath() . 'public' . DS . 'home' . DS . 'index.html');
+                } else {
+                    if (request()->get('type')) {
+                        return view(app()->getRootPath() . 'public' . DS . 'index.html');
+                    } else {
+                        return view(app()->getRootPath() . 'public' . DS . 'mobile.html', ['siteName' => sys_config('site_name'), 'siteUrl' => sys_config('site_url') . '/pages/index/index']);
+                    }
+                }
             } else {
             } else {
                 return view(app()->getRootPath() . 'public' . DS . 'index.html');
                 return view(app()->getRootPath() . 'public' . DS . 'index.html');
             }
             }

+ 7 - 3
template/admin/src/pages/setting/systemMenus/index.vue

@@ -114,8 +114,8 @@
         <Button @click="init">重置</Button>
         <Button @click="init">重置</Button>
       </div>
       </div>
       <Tabs v-model="routeType" @on-click="changTab">
       <Tabs v-model="routeType" @on-click="changTab">
-        <TabPane label="基础接口" name="1"></TabPane>
-        <TabPane label="公共接口" name="0"></TabPane>
+        <TabPane label="公共接口" name="1"></TabPane>
+        <TabPane label="基础接口" name="0"></TabPane>
       </Tabs>
       </Tabs>
       <div class="rule">
       <div class="rule">
         <div
         <div
@@ -128,7 +128,7 @@
         >
         >
           <div>接口名称:{{ item.real_name }}</div>
           <div>接口名称:{{ item.real_name }}</div>
           <div>请求方式:{{ item.method }}</div>
           <div>请求方式:{{ item.method }}</div>
-          <div>接口地址:{{ item.rule }}</div>
+          <div>接口地址:{{ item.path }}</div>
         </div>
         </div>
       </div>
       </div>
     </Modal>
     </Modal>
@@ -250,6 +250,10 @@ export default {
     // 获取权限列表
     // 获取权限列表
     getRuleList() {
     getRuleList() {
       getRuleList().then((res) => {
       getRuleList().then((res) => {
+        this.foundationList = [];
+        this.openList = [];
+        this.seletRouteIds = [];
+        this.seletRoute = [];
         res.data.map((e) => {
         res.data.map((e) => {
           if (e.type) {
           if (e.type) {
             this.foundationList.push(e);
             this.foundationList.push(e);

+ 1 - 1
template/admin/src/pages/system/maintain/systemDatabackup/index.vue

@@ -22,7 +22,7 @@
                 size="small"
                 size="small"
                 no-filtered-data-text="暂无筛选结果"
                 no-filtered-data-text="暂无筛选结果"
             >
             >
-              <template slot-scope="{ row, index }" slot="action">
+              <template slot-scope="{ row }" slot="action">
                 <a @click="Info(row)">详情</a>
                 <a @click="Info(row)">详情</a>
               </template>
               </template>
             </Table>
             </Table>

+ 0 - 8
template/uni-app/App.vue

@@ -246,14 +246,6 @@
 			// #endif
 			// #endif
 
 
 			// #ifdef H5
 			// #ifdef H5
-			uni.getSystemInfo({
-				success(e) {
-					/* 窗口宽度大于420px且不在PC页面且不在移动设备时跳转至 PC.html 页面 */
-					if (e.windowWidth > 420 && !window.top.isPC && !/iOS|Android/i.test(e.system)) {
-						window.location.pathname = '/static/html/pc.html';
-					}
-				}
-			});
 			if (option.query.hasOwnProperty('type') && option.query.type == "iframeWindow") {
 			if (option.query.hasOwnProperty('type') && option.query.type == "iframeWindow") {
 				this.globalData.isIframe = true;
 				this.globalData.isIframe = true;
 			} else {
 			} else {

+ 0 - 55
template/uni-app/static/html/pc.html

@@ -1,55 +0,0 @@
-<!DOCTYPE html>
-<html lang=zh-CN>
-	<head>
-		<meta charset="utf-8">
-		<meta http-equiv="X-UA-Compatible" content="IE=edge">
-		<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1">
-		<title>crmeb-PC端</title>
-		<meta name="Copyright" content="helang">
-		<link rel="shortcut icon" type="image/png" href="">
-		<meta name="keywords" content="">
-		<meta name="description" content="">
-		<style type="text/css">
-			body{
-				margin: 0;
-				background-color: #f3f3f3;
-			}
-			iframe{
-				width: 375px;
-				height: 667px;
-				background-color: #fff;
-				box-sizing: content-box;
-				border: none;
-			}
-			
-			@media screen and (min-width: 450px) {
-			    iframe {
-					position: fixed;
-					top: 0;
-					right: 0;
-					bottom: 0;
-					left: 0;
-					margin: auto;
-			        border: rgba(0,0,0,0.1) solid 1px;
-			        border-radius: 4px;
-			    }
-			}
-		</style>
-		<script type="text/javascript">
-			window.isPC = true;
-			
-			window.onload = function(){
-				/* 监听电脑浏览器窗口尺寸改变 */
-				window.onresize = function(){
-					/* 窗口宽度 小于或等于420px 时,跳转回H5页面 */
-					if(window.innerWidth <= 420){
-						window.location.pathname = '/';
-					}
-				}
-			}
-		</script>
-	</head>
-	<body>
-		<iframe src="/"></iframe>
-	</body>
-</html>