diff --git a/.DS_Store b/.DS_Store index 38ee387c..8085be64 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/pro_v3.5.1/nginx-crmeb.conf b/pro_v3.5.1/nginx-crmeb.conf new file mode 100644 index 00000000..6cab0431 --- /dev/null +++ b/pro_v3.5.1/nginx-crmeb.conf @@ -0,0 +1,33 @@ +server { + listen 80; + server_name 127.0.0.1; + + root /Users/apple/scott2026/huangjingfen/pro_v3.5.1/public; + index index.html index.php; + + location ~* \.(php|jsp|cgi|asp|aspx)$ { + proxy_pass http://127.0.0.1:20199; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header REMOTE-HOST $remote_addr; + } + + location / { + if (!-e $request_filename) { + proxy_pass http://127.0.0.1:20199; + } + proxy_http_version 1.1; + proxy_read_timeout 360s; + proxy_redirect off; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header REMOTE-HOST $remote_addr; + add_header X-Cache $upstream_cache_status; + add_header Cache-Control no-cache; + expires 12h; + } +} diff --git a/pro_v3.5.1/view/admin/package-lock.json b/pro_v3.5.1/view/admin/package-lock.json index 656279f5..cc501972 100644 --- a/pro_v3.5.1/view/admin/package-lock.json +++ b/pro_v3.5.1/view/admin/package-lock.json @@ -7324,88 +7324,6 @@ "sha.js": "^2.4.8" } }, - "node_modules/cross-env": { - "version": "10.1.0", - "resolved": "https://registry.npmmirror.com/cross-env/-/cross-env-10.1.0.tgz", - "integrity": "sha512-GsYosgnACZTADcmEyJctkJIoqAhHjttw7RsFrVoJNXbsWWqaq6Ym+7kZjq6mS45O0jij6vtiReppKQEtqWy6Dw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@epic-web/invariant": "^1.0.0", - "cross-spawn": "^7.0.6" - }, - "bin": { - "cross-env": "dist/bin/cross-env.js", - "cross-env-shell": "dist/bin/cross-env-shell.js" - }, - "engines": { - "node": ">=20" - } - }, - "node_modules/cross-env/node_modules/cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", - "dev": true, - "license": "MIT", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/cross-env/node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmmirror.com/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/cross-env/node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmmirror.com/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "license": "MIT", - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cross-env/node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/cross-env/node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmmirror.com/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, "node_modules/cross-env": { "version": "10.0.0", "resolved": "https://registry.npmmirror.com/cross-env/-/cross-env-10.0.0.tgz", diff --git a/pro_v3.5.1/view/uniapp/App.vue b/pro_v3.5.1/view/uniapp/App.vue index c3681c46..d1b04f8c 100644 --- a/pro_v3.5.1/view/uniapp/App.vue +++ b/pro_v3.5.1/view/uniapp/App.vue @@ -19,8 +19,8 @@ isLogin: false, userInfo: {}, globalData: false, - windowHeight: uni.getWindowInfo().windowHeight + 'px', - sysHeight:uni.getWindowInfo().statusBarHeight, + windowHeight: (uni.getWindowInfo && uni.getWindowInfo() ? uni.getWindowInfo().windowHeight : window.innerHeight || 667) + 'px', + sysHeight: uni.getWindowInfo && uni.getWindowInfo() ? uni.getWindowInfo().statusBarHeight : 0, }, computed: mapGetters(['isLogin', 'cartNum']), watch: { @@ -39,15 +39,15 @@ } }, onShow(options) { - const queryData = uni.getEnterOptionsSync(); // uni-app版本 3.5.1+ 支持 - if (queryData.query.spid) { + const queryData = (uni.getEnterOptionsSync && uni.getEnterOptionsSync()) || { query: {} }; // uni-app版本 3.5.1+ 支持 + if (queryData.query && queryData.query.spid) { this.$Cache.set('spread', queryData.query.spid); this.globalData.spid = queryData.query.spid; this.globalData.pid = queryData.query.spid; silenceBindingSpread(this.globalData); } // #ifdef MP - if (queryData.query.scene) { + if (queryData.query && queryData.query.scene) { let param = this.$util.getUrlParams(decodeURIComponent(queryData.query.scene)); if (param.spid) { this.$Cache.set('spread', param.spid); @@ -90,12 +90,12 @@ this.remoteRegister(option.query.remote_token); } this.setScript(); - const queryData = uni.getEnterOptionsSync(); + const queryData = (uni.getEnterOptionsSync && uni.getEnterOptionsSync()) || { query: {} }; 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'; + window.location.pathname = '/h5/static/html/pc.html'; } } }); diff --git a/pro_v3.5.1/view/uniapp/babel.config.js b/pro_v3.5.1/view/uniapp/babel.config.js new file mode 100644 index 00000000..3a8cd0a4 --- /dev/null +++ b/pro_v3.5.1/view/uniapp/babel.config.js @@ -0,0 +1,8 @@ +const HX_BABEL = '/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules' + +module.exports = { + plugins: [ + require.resolve('@babel/plugin-proposal-optional-chaining', { paths: [HX_BABEL] }), + require.resolve('@babel/plugin-proposal-nullish-coalescing-operator', { paths: [HX_BABEL] }) + ] +} diff --git a/pro_v3.5.1/view/uniapp/index.html b/pro_v3.5.1/view/uniapp/index.html index ca50e5e7..b71cd629 100644 --- a/pro_v3.5.1/view/uniapp/index.html +++ b/pro_v3.5.1/view/uniapp/index.html @@ -15,6 +15,23 @@ window.wx = null; //uniapp默认的wx重置 +
- +