feat(main): update url

This commit is contained in:
woody 2025-08-15 14:41:02 +08:00
parent 7891ea5956
commit 65a6780398
2 changed files with 144 additions and 141 deletions

17
main.js
View File

@ -117,7 +117,7 @@ Vue.prototype._get = function(path, data, success, fail, complete) {
// #endif // #endif
let callback = function() { let callback = function() {
uni.request({ uni.request({
url: host + '/inter-api/' + path, url: '/prod-api/' + path,
data: data, data: data,
dataType: 'json', dataType: 'json',
header: { header: {
@ -195,7 +195,7 @@ Vue.prototype._post = function(path, data, success, fail, complete) {
Source = '3' Source = '3'
// #endif // #endif
uni.request({ uni.request({
url: host + '/inter-api/' + path, url: '/prod-api/' + path,
data: data, data: data,
dataType: 'json', dataType: 'json',
method: 'POST', method: 'POST',
@ -241,7 +241,7 @@ Vue.prototype._put = function(path, data, success, fail, complete) {
host = config.app_url host = config.app_url
// #endif // #endif
uni.request({ uni.request({
url: host + '/inter-api/' + path + '/' + data, url: '/prod-api/' + path + '/' + data,
dataType: 'json', dataType: 'json',
method: 'PUT', method: 'PUT',
header: { header: {
@ -281,7 +281,7 @@ Vue.prototype._putjson = function(path, data, success, fail, complete) {
host = config.app_url host = config.app_url
// #endif // #endif
uni.request({ uni.request({
url: host + '/inter-api/' + path, url: '/prod-api/' + path,
data: data, data: data,
dataType: 'json', dataType: 'json',
method: 'PUT', method: 'PUT',
@ -321,7 +321,7 @@ Vue.prototype._delete = function(path, data, success, fail, complete) {
host = config.app_url host = config.app_url
// #endif // #endif
uni.request({ uni.request({
url: host + '/inter-api/' + path, url: '/prod-api/' + path,
dataType: 'json', dataType: 'json',
method: 'DELETE', method: 'DELETE',
header: { header: {
@ -603,18 +603,11 @@ Vue.prototype.topBarTop = function() {
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
return uni.getMenuButtonBoundingClientRect().top; return uni.getMenuButtonBoundingClientRect().top;
// #endif // #endif
// #ifndef MP-WEIXIN
const SystemInfo = uni.getSystemInfoSync();
return SystemInfo.statusBarHeight;
// #endif
}; };
Vue.prototype.topBarHeight = function() { Vue.prototype.topBarHeight = function() {
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
return uni.getMenuButtonBoundingClientRect().height; return uni.getMenuButtonBoundingClientRect().height;
// #endif // #endif
// #ifndef MP-WEIXIN
return 0
// #endif
}; };
Vue.prototype.callPhone = function(n) { Vue.prototype.callPhone = function(n) {
if (n == '') { if (n == '') {

View File

@ -1,35 +1,35 @@
{ {
"name" : "海之圣", "name": "海之圣",
"appid" : "__UNI__A4B56F3", "appid": "__UNI__31B4587",
"description" : "海之圣", "description": "海之圣",
"versionName" : "1.6.4", "versionName": "1.6.4",
"versionCode" : 164, "versionCode": 164,
"transformPx" : false, "transformPx": false,
"app-plus" : { "app-plus": {
"compatible" : { "compatible": {
"ignoreVersion" : true //trueHBuilderX1.9.0 "ignoreVersion": true //trueHBuilderX1.9.0
}, },
/* 5+App */ /* 5+App */
"splashscreen" : { "splashscreen": {
"alwaysShowBeforeRender" : true, "alwaysShowBeforeRender": true,
"waiting" : true, "waiting": true,
"autoclose" : true, "autoclose": true,
"delay" : 0 "delay": 0
}, },
"modules" : { "modules": {
"Share" : {}, "Share": {},
"VideoPlayer" : {}, "VideoPlayer": {},
"Payment" : {}, "Payment": {},
"Geolocation" : {}, "Geolocation": {},
"Barcode" : {}, "Barcode": {},
"Camera" : {} "Camera": {}
}, },
/* */ /* */
"distribute" : { "distribute": {
/* */ /* */
"android" : { "android": {
/* android */ /* android */
"permissions" : [ "permissions": [
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>", "<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>", "<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>", "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
@ -49,146 +49,156 @@
"<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>", "<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>" "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
], ],
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ] "abiFilters": [
"armeabi-v7a",
"arm64-v8a",
"x86"
]
}, },
"ios" : { "ios": {
"idfa" : false, "idfa": false,
"privacyDescription" : { "privacyDescription": {
"NSPhotoLibraryUsageDescription" : "评论时需要上传评论图片", "NSPhotoLibraryUsageDescription": "评论时需要上传评论图片",
"NSCameraUsageDescription" : "评论时需要上传评论图片", "NSCameraUsageDescription": "评论时需要上传评论图片",
"NSLocationWhenInUseUsageDescription" : "需要获取您的地理位置,为您推荐最近门店" "NSLocationWhenInUseUsageDescription": "需要获取您的地理位置,为您推荐最近门店"
}, },
"dSYMs" : false "dSYMs": false
}, },
/* ios */ /* ios */
"sdkConfigs" : { "sdkConfigs": {
"oauth" : {}, "oauth": {},
"ad" : {}, "ad": {},
"share" : { "share": {
"weixin" : { "weixin": {
"appid" : "wx6996eec3fdcc8482", "appid": "wx6996eec3fdcc8482",
"UniversalLinks" : "https://hzs.hzs413.com/" "UniversalLinks": "https://hzs.hzs413.com/"
} }
}, },
"payment" : { "payment": {
"weixin" : { "weixin": {
"__platform__" : [ "ios", "android" ], "__platform__": [
"appid" : "wx6996eec3fdcc8482", "ios",
"UniversalLinks" : "https://hzs.hzs413.com/" "android"
],
"appid": "wx6996eec3fdcc8482",
"UniversalLinks": "https://hzs.hzs413.com/"
} }
}, },
"geolocation" : { "geolocation": {
"amap" : { "amap": {
"__platform__" : [ "ios", "android" ], "__platform__": [
"appkey_ios" : "6f95a1f244b11c5948c4f76bdef74044", "ios",
"appkey_android" : "87dd4017ae554f18176812ddc4ae4c13" "android"
],
"appkey_ios": "6f95a1f244b11c5948c4f76bdef74044",
"appkey_android": "87dd4017ae554f18176812ddc4ae4c13"
} }
} }
}, },
"icons" : { "icons": {
"android" : { "android": {
"hdpi" : "unpackage/res/icons/72x72.png", "hdpi": "unpackage/res/icons/72x72.png",
"xhdpi" : "unpackage/res/icons/96x96.png", "xhdpi": "unpackage/res/icons/96x96.png",
"xxhdpi" : "unpackage/res/icons/144x144.png", "xxhdpi": "unpackage/res/icons/144x144.png",
"xxxhdpi" : "unpackage/res/icons/192x192.png" "xxxhdpi": "unpackage/res/icons/192x192.png"
}, },
"ios" : { "ios": {
"appstore" : "unpackage/res/icons/1024x1024.png", "appstore": "unpackage/res/icons/1024x1024.png",
"ipad" : { "ipad": {
"app" : "unpackage/res/icons/76x76.png", "app": "unpackage/res/icons/76x76.png",
"app@2x" : "unpackage/res/icons/152x152.png", "app@2x": "unpackage/res/icons/152x152.png",
"notification" : "unpackage/res/icons/20x20.png", "notification": "unpackage/res/icons/20x20.png",
"notification@2x" : "unpackage/res/icons/40x40.png", "notification@2x": "unpackage/res/icons/40x40.png",
"proapp@2x" : "unpackage/res/icons/167x167.png", "proapp@2x": "unpackage/res/icons/167x167.png",
"settings" : "unpackage/res/icons/29x29.png", "settings": "unpackage/res/icons/29x29.png",
"settings@2x" : "unpackage/res/icons/58x58.png", "settings@2x": "unpackage/res/icons/58x58.png",
"spotlight" : "unpackage/res/icons/40x40.png", "spotlight": "unpackage/res/icons/40x40.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png" "spotlight@2x": "unpackage/res/icons/80x80.png"
}, },
"iphone" : { "iphone": {
"app@2x" : "unpackage/res/icons/120x120.png", "app@2x": "unpackage/res/icons/120x120.png",
"app@3x" : "unpackage/res/icons/180x180.png", "app@3x": "unpackage/res/icons/180x180.png",
"notification@2x" : "unpackage/res/icons/40x40.png", "notification@2x": "unpackage/res/icons/40x40.png",
"notification@3x" : "unpackage/res/icons/60x60.png", "notification@3x": "unpackage/res/icons/60x60.png",
"settings@2x" : "unpackage/res/icons/58x58.png", "settings@2x": "unpackage/res/icons/58x58.png",
"settings@3x" : "unpackage/res/icons/87x87.png", "settings@3x": "unpackage/res/icons/87x87.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png", "spotlight@2x": "unpackage/res/icons/80x80.png",
"spotlight@3x" : "unpackage/res/icons/120x120.png" "spotlight@3x": "unpackage/res/icons/120x120.png"
} }
} }
}, },
"splashscreen" : { "splashscreen": {
"androidStyle" : "default", "androidStyle": "default",
"iosStyle" : "storyboard", "iosStyle": "storyboard",
"android" : { "android": {
"hdpi" : "E:/工作/项目/2023客户/一体化/一体化上传20230717/.9/480.9.png", "hdpi": "E:/工作/项目/2023客户/一体化/一体化上传20230717/.9/480.9.png",
"xhdpi" : "E:/工作/项目/2023客户/一体化/一体化上传20230717/.9/720.9.png", "xhdpi": "E:/工作/项目/2023客户/一体化/一体化上传20230717/.9/720.9.png",
"xxhdpi" : "E:/工作/项目/2023客户/一体化/一体化上传20230717/.9/1080.9.png" "xxhdpi": "E:/工作/项目/2023客户/一体化/一体化上传20230717/.9/1080.9.png"
}, },
"ios" : { "ios": {
"storyboard" : "E:/工作/项目/2023客户/一体化/一体化上传20230717/CustomStoryboard.zip" "storyboard": "E:/工作/项目/2023客户/一体化/一体化上传20230717/CustomStoryboard.zip"
} }
} }
} }
}, },
/* SDK */ /* SDK */
"quickapp" : {}, "quickapp": {},
/* */ /* */
"mp-weixin" : { "mp-weixin": {
/* */ /* */
"appid" : "wx6996eec3fdcc8482", "appid": "wx6996eec3fdcc8482",
"setting" : { "setting": {
"urlCheck" : false, "urlCheck": false,
"es6" : true, "es6": true,
"postcss" : true, "postcss": true,
"minified" : true "minified": true
}, },
"usingComponents" : true, "usingComponents": true,
"permission" : { "permission": {
"scope.userLocation" : { "scope.userLocation": {
"desc" : "你的位置信息将用于小程序位置接口的效果展示" "desc": "你的位置信息将用于小程序位置接口的效果展示"
} }
} }
}, },
"h5" : { "h5": {
"router" : { "router": {
"mode" : "hash", "mode": "hash",
"base" : "" "base": ""
}, },
"devServer" : { "devServer": {
"https" : false, "https": false,
"proxy" : { "proxy": {
"/api" : { "/api": {
"ws" : false, "ws": false,
"target" : "http://f.hzs413.com", "target": "http://f.hzs413.com",
"changeOrigin" : true, "changeOrigin": true,
"secure" : false, "secure": false,
"pathRewrite" : { "pathRewrite": {
"^/api" : "/" "^/api": "/"
} }
}, },
"/dev-api" : { "/dev-api": {
"ws" : false, "ws": false,
"target" : "https://yxy.hzs413.com", "target": "https://yxy.hzs413.com",
"changeOrigin" : true, "changeOrigin": true,
"secure" : false, "secure": false,
"pathRewrite" : { "pathRewrite": {
"^/dev-api" : "/" "^/dev-api": "/"
} }
}, },
"/oss-api" : { "/oss-api": {
"ws" : false, "ws": false,
"target" : "https://dny-test.s3.ap-southeast-1.amazonaws.com", "target": "https://dny-test.s3.ap-southeast-1.amazonaws.com",
"changeOrigin" : true, "changeOrigin": true,
"secure" : false, "secure": false,
"pathRewrite" : { "pathRewrite": {
"^/oss-api" : "/" "^/oss-api": "/"
} }
} }
} }
}, },
"title" : "店铺管理系统" "title": "店铺管理系统"
}, },
"fallbackLocale" : "en-US", "fallbackLocale": "en-US",
"locale" : "en-US" "locale": "en-US"
} }