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,6 +1,6 @@
{ {
"name": "海之圣", "name": "海之圣",
"appid" : "__UNI__A4B56F3", "appid": "__UNI__31B4587",
"description": "海之圣", "description": "海之圣",
"versionName": "1.6.4", "versionName": "1.6.4",
"versionCode": 164, "versionCode": 164,
@ -49,7 +49,11 @@
"<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,
@ -72,14 +76,20 @@
}, },
"payment": { "payment": {
"weixin": { "weixin": {
"__platform__" : [ "ios", "android" ], "__platform__": [
"ios",
"android"
],
"appid": "wx6996eec3fdcc8482", "appid": "wx6996eec3fdcc8482",
"UniversalLinks": "https://hzs.hzs413.com/" "UniversalLinks": "https://hzs.hzs413.com/"
} }
}, },
"geolocation": { "geolocation": {
"amap": { "amap": {
"__platform__" : [ "ios", "android" ], "__platform__": [
"ios",
"android"
],
"appkey_ios": "6f95a1f244b11c5948c4f76bdef74044", "appkey_ios": "6f95a1f244b11c5948c4f76bdef74044",
"appkey_android": "87dd4017ae554f18176812ddc4ae4c13" "appkey_android": "87dd4017ae554f18176812ddc4ae4c13"
} }