diff --git a/main.js b/main.js index 80f57a9..3dba024 100644 --- a/main.js +++ b/main.js @@ -117,7 +117,7 @@ Vue.prototype._get = function(path, data, success, fail, complete) { // #endif let callback = function() { uni.request({ - url: host + '/inter-api/' + path, + url: '/prod-api/' + path, data: data, dataType: 'json', header: { @@ -195,7 +195,7 @@ Vue.prototype._post = function(path, data, success, fail, complete) { Source = '3' // #endif uni.request({ - url: host + '/inter-api/' + path, + url: '/prod-api/' + path, data: data, dataType: 'json', method: 'POST', @@ -241,7 +241,7 @@ Vue.prototype._put = function(path, data, success, fail, complete) { host = config.app_url // #endif uni.request({ - url: host + '/inter-api/' + path + '/' + data, + url: '/prod-api/' + path + '/' + data, dataType: 'json', method: 'PUT', header: { @@ -281,7 +281,7 @@ Vue.prototype._putjson = function(path, data, success, fail, complete) { host = config.app_url // #endif uni.request({ - url: host + '/inter-api/' + path, + url: '/prod-api/' + path, data: data, dataType: 'json', method: 'PUT', @@ -321,7 +321,7 @@ Vue.prototype._delete = function(path, data, success, fail, complete) { host = config.app_url // #endif uni.request({ - url: host + '/inter-api/' + path, + url: '/prod-api/' + path, dataType: 'json', method: 'DELETE', header: { @@ -603,18 +603,11 @@ Vue.prototype.topBarTop = function() { // #ifdef MP-WEIXIN return uni.getMenuButtonBoundingClientRect().top; // #endif - // #ifndef MP-WEIXIN - const SystemInfo = uni.getSystemInfoSync(); - return SystemInfo.statusBarHeight; - // #endif }; Vue.prototype.topBarHeight = function() { // #ifdef MP-WEIXIN return uni.getMenuButtonBoundingClientRect().height; // #endif - // #ifndef MP-WEIXIN - return 0 - // #endif }; Vue.prototype.callPhone = function(n) { if (n == '') { diff --git a/manifest.json b/manifest.json index a3452c6..563895d 100644 --- a/manifest.json +++ b/manifest.json @@ -1,35 +1,35 @@ { - "name" : "海之圣", - "appid" : "__UNI__A4B56F3", - "description" : "海之圣", - "versionName" : "1.6.4", - "versionCode" : 164, - "transformPx" : false, - "app-plus" : { - "compatible" : { - "ignoreVersion" : true //true表示忽略版本检查提示框,HBuilderX1.9.0及以上版本支持 + "name": "海之圣", + "appid": "__UNI__31B4587", + "description": "海之圣", + "versionName": "1.6.4", + "versionCode": 164, + "transformPx": false, + "app-plus": { + "compatible": { + "ignoreVersion": true //true表示忽略版本检查提示框,HBuilderX1.9.0及以上版本支持 }, /* 5+App特有相关 */ - "splashscreen" : { - "alwaysShowBeforeRender" : true, - "waiting" : true, - "autoclose" : true, - "delay" : 0 + "splashscreen": { + "alwaysShowBeforeRender": true, + "waiting": true, + "autoclose": true, + "delay": 0 }, - "modules" : { - "Share" : {}, - "VideoPlayer" : {}, - "Payment" : {}, - "Geolocation" : {}, - "Barcode" : {}, - "Camera" : {} + "modules": { + "Share": {}, + "VideoPlayer": {}, + "Payment": {}, + "Geolocation": {}, + "Barcode": {}, + "Camera": {} }, /* 模块配置 */ - "distribute" : { + "distribute": { /* 应用发布信息 */ - "android" : { + "android": { /* android打包配置 */ - "permissions" : [ + "permissions": [ "", "", "", @@ -49,146 +49,156 @@ "", "" ], - "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ] + "abiFilters": [ + "armeabi-v7a", + "arm64-v8a", + "x86" + ] }, - "ios" : { - "idfa" : false, - "privacyDescription" : { - "NSPhotoLibraryUsageDescription" : "评论时需要上传评论图片", - "NSCameraUsageDescription" : "评论时需要上传评论图片", - "NSLocationWhenInUseUsageDescription" : "需要获取您的地理位置,为您推荐最近门店" + "ios": { + "idfa": false, + "privacyDescription": { + "NSPhotoLibraryUsageDescription": "评论时需要上传评论图片", + "NSCameraUsageDescription": "评论时需要上传评论图片", + "NSLocationWhenInUseUsageDescription": "需要获取您的地理位置,为您推荐最近门店" }, - "dSYMs" : false + "dSYMs": false }, /* ios打包配置 */ - "sdkConfigs" : { - "oauth" : {}, - "ad" : {}, - "share" : { - "weixin" : { - "appid" : "wx6996eec3fdcc8482", - "UniversalLinks" : "https://hzs.hzs413.com/" + "sdkConfigs": { + "oauth": {}, + "ad": {}, + "share": { + "weixin": { + "appid": "wx6996eec3fdcc8482", + "UniversalLinks": "https://hzs.hzs413.com/" } }, - "payment" : { - "weixin" : { - "__platform__" : [ "ios", "android" ], - "appid" : "wx6996eec3fdcc8482", - "UniversalLinks" : "https://hzs.hzs413.com/" + "payment": { + "weixin": { + "__platform__": [ + "ios", + "android" + ], + "appid": "wx6996eec3fdcc8482", + "UniversalLinks": "https://hzs.hzs413.com/" } }, - "geolocation" : { - "amap" : { - "__platform__" : [ "ios", "android" ], - "appkey_ios" : "6f95a1f244b11c5948c4f76bdef74044", - "appkey_android" : "87dd4017ae554f18176812ddc4ae4c13" + "geolocation": { + "amap": { + "__platform__": [ + "ios", + "android" + ], + "appkey_ios": "6f95a1f244b11c5948c4f76bdef74044", + "appkey_android": "87dd4017ae554f18176812ddc4ae4c13" } } }, - "icons" : { - "android" : { - "hdpi" : "unpackage/res/icons/72x72.png", - "xhdpi" : "unpackage/res/icons/96x96.png", - "xxhdpi" : "unpackage/res/icons/144x144.png", - "xxxhdpi" : "unpackage/res/icons/192x192.png" + "icons": { + "android": { + "hdpi": "unpackage/res/icons/72x72.png", + "xhdpi": "unpackage/res/icons/96x96.png", + "xxhdpi": "unpackage/res/icons/144x144.png", + "xxxhdpi": "unpackage/res/icons/192x192.png" }, - "ios" : { - "appstore" : "unpackage/res/icons/1024x1024.png", - "ipad" : { - "app" : "unpackage/res/icons/76x76.png", - "app@2x" : "unpackage/res/icons/152x152.png", - "notification" : "unpackage/res/icons/20x20.png", - "notification@2x" : "unpackage/res/icons/40x40.png", - "proapp@2x" : "unpackage/res/icons/167x167.png", - "settings" : "unpackage/res/icons/29x29.png", - "settings@2x" : "unpackage/res/icons/58x58.png", - "spotlight" : "unpackage/res/icons/40x40.png", - "spotlight@2x" : "unpackage/res/icons/80x80.png" + "ios": { + "appstore": "unpackage/res/icons/1024x1024.png", + "ipad": { + "app": "unpackage/res/icons/76x76.png", + "app@2x": "unpackage/res/icons/152x152.png", + "notification": "unpackage/res/icons/20x20.png", + "notification@2x": "unpackage/res/icons/40x40.png", + "proapp@2x": "unpackage/res/icons/167x167.png", + "settings": "unpackage/res/icons/29x29.png", + "settings@2x": "unpackage/res/icons/58x58.png", + "spotlight": "unpackage/res/icons/40x40.png", + "spotlight@2x": "unpackage/res/icons/80x80.png" }, - "iphone" : { - "app@2x" : "unpackage/res/icons/120x120.png", - "app@3x" : "unpackage/res/icons/180x180.png", - "notification@2x" : "unpackage/res/icons/40x40.png", - "notification@3x" : "unpackage/res/icons/60x60.png", - "settings@2x" : "unpackage/res/icons/58x58.png", - "settings@3x" : "unpackage/res/icons/87x87.png", - "spotlight@2x" : "unpackage/res/icons/80x80.png", - "spotlight@3x" : "unpackage/res/icons/120x120.png" + "iphone": { + "app@2x": "unpackage/res/icons/120x120.png", + "app@3x": "unpackage/res/icons/180x180.png", + "notification@2x": "unpackage/res/icons/40x40.png", + "notification@3x": "unpackage/res/icons/60x60.png", + "settings@2x": "unpackage/res/icons/58x58.png", + "settings@3x": "unpackage/res/icons/87x87.png", + "spotlight@2x": "unpackage/res/icons/80x80.png", + "spotlight@3x": "unpackage/res/icons/120x120.png" } } }, - "splashscreen" : { - "androidStyle" : "default", - "iosStyle" : "storyboard", - "android" : { - "hdpi" : "E:/工作/项目/2023客户/一体化/一体化上传20230717/.9/480.9.png", - "xhdpi" : "E:/工作/项目/2023客户/一体化/一体化上传20230717/.9/720.9.png", - "xxhdpi" : "E:/工作/项目/2023客户/一体化/一体化上传20230717/.9/1080.9.png" + "splashscreen": { + "androidStyle": "default", + "iosStyle": "storyboard", + "android": { + "hdpi": "E:/工作/项目/2023客户/一体化/一体化上传20230717/.9/480.9.png", + "xhdpi": "E:/工作/项目/2023客户/一体化/一体化上传20230717/.9/720.9.png", + "xxhdpi": "E:/工作/项目/2023客户/一体化/一体化上传20230717/.9/1080.9.png" }, - "ios" : { - "storyboard" : "E:/工作/项目/2023客户/一体化/一体化上传20230717/CustomStoryboard.zip" + "ios": { + "storyboard": "E:/工作/项目/2023客户/一体化/一体化上传20230717/CustomStoryboard.zip" } } } }, /* SDK配置 */ - "quickapp" : {}, + "quickapp": {}, /* 快应用特有相关 */ - "mp-weixin" : { + "mp-weixin": { /* 小程序特有相关 */ - "appid" : "wx6996eec3fdcc8482", - "setting" : { - "urlCheck" : false, - "es6" : true, - "postcss" : true, - "minified" : true + "appid": "wx6996eec3fdcc8482", + "setting": { + "urlCheck": false, + "es6": true, + "postcss": true, + "minified": true }, - "usingComponents" : true, - "permission" : { - "scope.userLocation" : { - "desc" : "你的位置信息将用于小程序位置接口的效果展示" + "usingComponents": true, + "permission": { + "scope.userLocation": { + "desc": "你的位置信息将用于小程序位置接口的效果展示" } } }, - "h5" : { - "router" : { - "mode" : "hash", - "base" : "" + "h5": { + "router": { + "mode": "hash", + "base": "" }, - "devServer" : { - "https" : false, - "proxy" : { - "/api" : { - "ws" : false, - "target" : "http://f.hzs413.com", - "changeOrigin" : true, - "secure" : false, - "pathRewrite" : { - "^/api" : "/" + "devServer": { + "https": false, + "proxy": { + "/api": { + "ws": false, + "target": "http://f.hzs413.com", + "changeOrigin": true, + "secure": false, + "pathRewrite": { + "^/api": "/" } }, - "/dev-api" : { - "ws" : false, - "target" : "https://yxy.hzs413.com", - "changeOrigin" : true, - "secure" : false, - "pathRewrite" : { - "^/dev-api" : "/" + "/dev-api": { + "ws": false, + "target": "https://yxy.hzs413.com", + "changeOrigin": true, + "secure": false, + "pathRewrite": { + "^/dev-api": "/" } }, - "/oss-api" : { - "ws" : false, - "target" : "https://dny-test.s3.ap-southeast-1.amazonaws.com", - "changeOrigin" : true, - "secure" : false, - "pathRewrite" : { - "^/oss-api" : "/" + "/oss-api": { + "ws": false, + "target": "https://dny-test.s3.ap-southeast-1.amazonaws.com", + "changeOrigin": true, + "secure": false, + "pathRewrite": { + "^/oss-api": "/" } } } }, - "title" : "店铺管理系统" + "title": "店铺管理系统" }, - "fallbackLocale" : "en-US", - "locale" : "en-US" -} + "fallbackLocale": "en-US", + "locale": "en-US" +} \ No newline at end of file