Browse Source

feat: 更换api地址

leo 3 weeks atrás
parent
commit
d24a8e491a
6 changed files with 12 additions and 12 deletions
  1. 3 3
      manifest.json
  2. 3 3
      pages/afterSale/addafter.vue
  3. 1 1
      pages/afterSale/index.vue
  4. 1 1
      pages/index/index.vue
  5. 3 3
      pages/login/login.vue
  6. 1 1
      util/api.js

+ 3 - 3
manifest.json

@@ -1,9 +1,9 @@
 {
-    "name" : "云飞智控",
+    "name" : "智控",
     "appid" : "__UNI__DBA6730",
     "description" : "",
-    "versionName" : "1.15.6",
-    "versionCode" : 11506,
+    "versionName" : "1.15.7",
+    "versionCode" : 11507,
     "transformPx" : false,
     "sassImplementationName" : "node-sass",
     /* 5+App特有相关 */

+ 3 - 3
pages/afterSale/addafter.vue

@@ -76,7 +76,7 @@
 		<kps-image-cutter @ok="onok" @cancel="oncancle" :url="imgs" :fixed="false" :blob="false" :maxWidth="500" :maxHeight="500"></kps-image-cutter>
 		<u-modal v-model="videoshow" :mask-close-able="true" :show-confirm-button="false" title="视频预览" class="model">
 			<view class="model_box">
-				<video :src="'http://8.136.98.49:8002'+selfList" controls style="width:90%;"></video>
+				<video :src="'https://web.hnyfwlw.com'+selfList" controls style="width:90%;"></video>
 			</view>
 		</u-modal>
 	</view>
@@ -89,7 +89,7 @@
 		},
 		data() {
 			return {
-				BASE_URL: 'http://8.136.98.49:8002',
+				BASE_URL: 'https://web.hnyfwlw.com',
 				adddata:{//设备参数
 					id:'',
 					name:'',
@@ -198,7 +198,7 @@
 				    success:(res)=> {
 						console.log(res)
 						uni.uploadFile({
-						    url: 'http://8.136.98.49:8002/api/api_gateway?method=after_sale.after_sale_manage.video_upload', //仅为示例,非真实的接口地址
+						    url: 'https://web.hnyfwlw.com/api/api_gateway?method=after_sale.after_sale_manage.video_upload', //仅为示例,非真实的接口地址
 						    filePath: res.tempFilePath,
 						    name: 'upload',
 							fileType:"video",

+ 1 - 1
pages/afterSale/index.vue

@@ -75,7 +75,7 @@
 	export default {
 		data() {
 			return {
-				BASE_URL: 'http://8.136.98.49:8002',
+				BASE_URL: 'https://web.hnyfwlw.com',
 				faultdata: [],
 				title: "", //弹框标题
 				show: false, //弹框先显示

+ 1 - 1
pages/index/index.vue

@@ -499,7 +499,7 @@
 					// pest.pests.insect_discern 虫害
 					uni.uploadFile({
 						// url: 'http://dev.hnyfwlw.com/api/api_gateway?method=base.bases.base_photo', //仅为示例,非真实的接口地址
-						url: 'http://8.136.98.49:8002/api/api_gateway?method=pest.pests.insect_discern', //仅为示例,非真实的接口地址
+						url: 'https://web.hnyfwlw.com/api/api_gateway?method=pest.pests.insect_discern', //仅为示例,非真实的接口地址
 						filePath: ev.path,
 						name: 'img_file',
 						formData: {

+ 3 - 3
pages/login/login.vue

@@ -131,8 +131,8 @@ export default {
       },
       setbgtf: false,
       setTF: false,
-      value: 'http://8.136.98.49:8002',
-      httparr: ['http://8.136.98.49:8002'],
+      value: 'https://web.hnyfwlw.com',
+      httparr: ['https://web.hnyfwlw.com'],
       arrowtf: false,
       showA: false, //
       contentA: '',
@@ -270,7 +270,7 @@ export default {
       } else {
         appName = 'big_data2'; //中性
       }
-      var url = 'http://hnyfwlw.com/app/' + appName + '.apk';
+      var url = 'https://hnyfwlw.com/app/' + appName + '.apk';
       const downloadTask = uni.downloadFile({
         url: url, //仅为示例,并非真实的资源
         success: (res) => {

+ 1 - 1
util/api.js

@@ -7,7 +7,7 @@ export const myRequest = (options) => {
     BASE_URL =
       process.env.NODE_ENV === 'development'
         ? 'https://uat.hnyfwlw.com'
-        : 'http://8.136.98.49:8002';
+        : 'https://web.hnyfwlw.com';
     // BASE_URL = 'http://192.168.1.107:8000'
     // BASE_URL = 'http://218.28.198.186:10508';
     // BASE_URL = 'http://8.136.98.49:8002';