小欧追 2 years ago
parent
commit
f7c315c5c5
4 changed files with 5 additions and 4 deletions
  1. 1 1
      main.js
  2. 1 1
      manifest.json
  3. 1 1
      pages/order/perfect.vue
  4. 2 1
      utils/request.js

+ 1 - 1
main.js

@@ -8,7 +8,7 @@ import uView from "uview-ui";
 Vue.config.productionTip = false;
 Vue.config.productionTip = false;
 Vue.config.productionTip = false;
 Vue.config.productionTip = false;
 
 
-Vue.prototype.url = 'https://pet.hdlkeji.com/api';
+Vue.prototype.url = request.baseUrl;
 Vue.prototype.$EventBus = new Vue();
 Vue.prototype.$EventBus = new Vue();
 
 
 
 

+ 1 - 1
manifest.json

@@ -1,6 +1,6 @@
 {
 {
     "name" : "pet",
     "name" : "pet",
-    "appid" : "__UNI__1EC8183",
+    "appid" : "__UNI__90E6241",
     "description" : "",
     "description" : "",
     "versionName" : "1.0.0",
     "versionName" : "1.0.0",
     "versionCode" : "100",
     "versionCode" : "100",

+ 1 - 1
pages/order/perfect.vue

@@ -86,7 +86,7 @@
 				uni.chooseImage({
 				uni.chooseImage({
 					success(e) {
 					success(e) {
 						uni.uploadFile({
 						uni.uploadFile({
-							url: 'https://pet.hdlkeji.com/api/common/upload', //仅为示例,非真实的接口地址
+							url: _this.url + '/common/upload', //仅为示例,非真实的接口地址
 							filePath: e.tempFilePaths[0],
 							filePath: e.tempFilePaths[0],
 							header: {
 							header: {
 								"token": getToken()
 								"token": getToken()

+ 2 - 1
utils/request.js

@@ -68,5 +68,6 @@ async function request(mehtod, params, type, callBack) {
 	return promise;
 	return promise;
 }
 }
 export default {
 export default {
-	request
+	request,
+	baseUrl
 };
 };