feat(main): update url
This commit is contained in:
parent
7891ea5956
commit
65a6780398
17
main.js
17
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 == '') {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "海之圣",
|
||||
"appid" : "__UNI__A4B56F3",
|
||||
"appid": "__UNI__31B4587",
|
||||
"description": "海之圣",
|
||||
"versionName": "1.6.4",
|
||||
"versionCode": 164,
|
||||
|
@ -49,7 +49,11 @@
|
|||
"<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
||||
],
|
||||
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ]
|
||||
"abiFilters": [
|
||||
"armeabi-v7a",
|
||||
"arm64-v8a",
|
||||
"x86"
|
||||
]
|
||||
},
|
||||
"ios": {
|
||||
"idfa": false,
|
||||
|
@ -72,14 +76,20 @@
|
|||
},
|
||||
"payment": {
|
||||
"weixin": {
|
||||
"__platform__" : [ "ios", "android" ],
|
||||
"__platform__": [
|
||||
"ios",
|
||||
"android"
|
||||
],
|
||||
"appid": "wx6996eec3fdcc8482",
|
||||
"UniversalLinks": "https://hzs.hzs413.com/"
|
||||
}
|
||||
},
|
||||
"geolocation": {
|
||||
"amap": {
|
||||
"__platform__" : [ "ios", "android" ],
|
||||
"__platform__": [
|
||||
"ios",
|
||||
"android"
|
||||
],
|
||||
"appkey_ios": "6f95a1f244b11c5948c4f76bdef74044",
|
||||
"appkey_android": "87dd4017ae554f18176812ddc4ae4c13"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue