ccjgmwz 3 rokov pred
rodič
commit
b5d11d9056

+ 2 - 2
config/index.js

@@ -1,8 +1,8 @@
 const dev = {
 const dev = {
 	// baseUrlNew: 'http://192.168.1.122:9100/',
 	// baseUrlNew: 'http://192.168.1.122:9100/',
 	baseUrl: 'https://www.zthymaoyi.com',
 	baseUrl: 'https://www.zthymaoyi.com',
-	baseUrlNew: 'http://192.168.1.120:8090/',
-	  // baseUrlNew: 'http://api.eliangeyun.com/',
+	// baseUrlNew: 'http://192.168.1.120:8090/',
+	  baseUrlNew: 'http://api.eliangeyun.com/',
 	h5Appid: 'wxb66b599f7f61b46f',
 	h5Appid: 'wxb66b599f7f61b46f',
 	debug: false
 	debug: false
 }
 }

+ 1 - 1
pageA/product/Identity_switching.vue

@@ -143,7 +143,7 @@
 						if(res.data.code==200){
 						if(res.data.code==200){
 							// this.lists = res.data.data.records
 							// this.lists = res.data.data.records
 							
 							
-							wx.navigateBack({
+							uni.navigateBack({
 							 
 							 
 							  delta: 1
 							  delta: 1
 							 
 							 

+ 10 - 10
pageD/identity/companyIdentityEdit.vue

@@ -264,9 +264,9 @@
 				},
 				},
 				license() {
 				license() {
 					var that = this
 					var that = this
-					wx.chooseImage({
+					uni.chooseImage({
 						success: function(res) {
 						success: function(res) {
-							wx.uploadFile({
+							uni.uploadFile({
 								url: 'https://www.zthymaoyi.com/upload/admin',
 								url: 'https://www.zthymaoyi.com/upload/admin',
 								filePath: res.tempFilePaths[0],
 								filePath: res.tempFilePaths[0],
 								name: 'file',
 								name: 'file',
@@ -282,9 +282,9 @@
 				},
 				},
 				idUp(){
 				idUp(){
 					var that = this
 					var that = this
-					wx.chooseImage({
+					uni.chooseImage({
 						success: function(res) {
 						success: function(res) {
-							wx.uploadFile({
+							uni.uploadFile({
 								url: 'https://www.zthymaoyi.com/upload/admin',
 								url: 'https://www.zthymaoyi.com/upload/admin',
 								filePath: res.tempFilePaths[0],
 								filePath: res.tempFilePaths[0],
 								name: 'file',
 								name: 'file',
@@ -300,9 +300,9 @@
 				},
 				},
 				idLow(){
 				idLow(){
 					var that = this
 					var that = this
-					wx.chooseImage({
+					uni.chooseImage({
 						success: function(res) {
 						success: function(res) {
-							wx.uploadFile({
+							uni.uploadFile({
 								url: 'https://www.zthymaoyi.com/upload/admin',
 								url: 'https://www.zthymaoyi.com/upload/admin',
 								filePath: res.tempFilePaths[0],
 								filePath: res.tempFilePaths[0],
 								name: 'file',
 								name: 'file',
@@ -318,9 +318,9 @@
 				},
 				},
 				bankUp(){
 				bankUp(){
 					var that = this
 					var that = this
-					wx.chooseImage({
+					uni.chooseImage({
 						success: function(res) {
 						success: function(res) {
-							wx.uploadFile({
+							uni.uploadFile({
 								url: 'https://www.zthymaoyi.com/upload/admin',
 								url: 'https://www.zthymaoyi.com/upload/admin',
 								filePath: res.tempFilePaths[0],
 								filePath: res.tempFilePaths[0],
 								name: 'file',
 								name: 'file',
@@ -336,9 +336,9 @@
 				},
 				},
 				bankLow(){
 				bankLow(){
 					var that = this
 					var that = this
-					wx.chooseImage({
+					uni.chooseImage({
 						success: function(res) {
 						success: function(res) {
-							wx.uploadFile({
+							uni.uploadFile({
 								url: 'https://www.zthymaoyi.com/upload/admin',
 								url: 'https://www.zthymaoyi.com/upload/admin',
 								filePath: res.tempFilePaths[0],
 								filePath: res.tempFilePaths[0],
 								name: 'file',
 								name: 'file',

+ 4 - 4
pageD/identity/companyIdentityThree.vue

@@ -139,9 +139,9 @@
 			},
 			},
 			bankUp() {
 			bankUp() {
 				var that = this
 				var that = this
-				wx.chooseImage({
+				uni.chooseImage({
 					success: function(res) {
 					success: function(res) {
-						wx.uploadFile({
+						uni.uploadFile({
 							url: 'https://www.zthymaoyi.com/upload/admin',
 							url: 'https://www.zthymaoyi.com/upload/admin',
 							filePath: res.tempFilePaths[0],
 							filePath: res.tempFilePaths[0],
 							name: 'file',
 							name: 'file',
@@ -183,9 +183,9 @@
 			},
 			},
 			bankLow() {
 			bankLow() {
 				var that = this
 				var that = this
-				wx.chooseImage({
+				uni.chooseImage({
 					success: function(res) {
 					success: function(res) {
-						wx.uploadFile({
+						uni.uploadFile({
 							url: 'https://www.zthymaoyi.com/upload/admin',
 							url: 'https://www.zthymaoyi.com/upload/admin',
 							filePath: res.tempFilePaths[0],
 							filePath: res.tempFilePaths[0],
 							name: 'file',
 							name: 'file',

+ 4 - 4
pageD/identity/companyIdentityTwo.vue

@@ -95,9 +95,9 @@
 			},
 			},
 			idUp(){
 			idUp(){
 				var that = this
 				var that = this
-				wx.chooseImage({
+				uni.chooseImage({
 					success: function(res) {
 					success: function(res) {
-						wx.uploadFile({
+						uni.uploadFile({
 							url: 'https://www.zthymaoyi.com/upload/admin',
 							url: 'https://www.zthymaoyi.com/upload/admin',
 							filePath: res.tempFilePaths[0],
 							filePath: res.tempFilePaths[0],
 							name: 'file',
 							name: 'file',
@@ -133,9 +133,9 @@
 			},
 			},
 			idLow(){
 			idLow(){
 				var that = this
 				var that = this
-				wx.chooseImage({
+				uni.chooseImage({
 					success: function(res) {
 					success: function(res) {
-						wx.uploadFile({
+						uni.uploadFile({
 							url: 'https://www.zthymaoyi.com/upload/admin',
 							url: 'https://www.zthymaoyi.com/upload/admin',
 							filePath: res.tempFilePaths[0],
 							filePath: res.tempFilePaths[0],
 							name: 'file',
 							name: 'file',

+ 4 - 4
pageD/identity/driverIdentity.vue

@@ -257,9 +257,9 @@
 			},
 			},
 			idUp() {
 			idUp() {
 				var that = this
 				var that = this
-				wx.chooseImage({
+				uni.chooseImage({
 					success: function(res) {
 					success: function(res) {
-						wx.uploadFile({
+						uni.uploadFile({
 							url: 'https://www.zthymaoyi.com/upload/admin',
 							url: 'https://www.zthymaoyi.com/upload/admin',
 							filePath: res.tempFilePaths[0],
 							filePath: res.tempFilePaths[0],
 							name: 'file',
 							name: 'file',
@@ -295,9 +295,9 @@
 			},
 			},
 			idLow() {
 			idLow() {
 				var that = this
 				var that = this
-				wx.chooseImage({
+				uni.chooseImage({
 					success: function(res) {
 					success: function(res) {
-						wx.uploadFile({
+						uni.uploadFile({
 							url: 'https://www.zthymaoyi.com/upload/admin',
 							url: 'https://www.zthymaoyi.com/upload/admin',
 							filePath: res.tempFilePaths[0],
 							filePath: res.tempFilePaths[0],
 							name: 'file',
 							name: 'file',

+ 14 - 14
pageD/identity/driverIdentityEdit.vue

@@ -403,9 +403,9 @@
 			bankimgs(items){
 			bankimgs(items){
 				console.log(items)
 				console.log(items)
 				var that = this
 				var that = this
-				wx.chooseImage({
+				uni.chooseImage({
 					success: function(res) {
 					success: function(res) {
-						wx.uploadFile({
+						uni.uploadFile({
 							url: 'https://www.zthymaoyi.com/upload/admin',
 							url: 'https://www.zthymaoyi.com/upload/admin',
 							filePath: res.tempFilePaths[0],
 							filePath: res.tempFilePaths[0],
 							name: 'file',
 							name: 'file',
@@ -436,9 +436,9 @@
 			},
 			},
 			idUp(){
 			idUp(){
 				var that = this
 				var that = this
-				wx.chooseImage({
+				uni.chooseImage({
 					success: function(res) {
 					success: function(res) {
-						wx.uploadFile({
+						uni.uploadFile({
 							url: 'https://www.zthymaoyi.com/upload/admin',
 							url: 'https://www.zthymaoyi.com/upload/admin',
 							filePath: res.tempFilePaths[0],
 							filePath: res.tempFilePaths[0],
 							name: 'file',
 							name: 'file',
@@ -454,9 +454,9 @@
 			},
 			},
 			idLow(){
 			idLow(){
 				var that = this
 				var that = this
-				wx.chooseImage({
+				uni.chooseImage({
 					success: function(res) {
 					success: function(res) {
-						wx.uploadFile({
+						uni.uploadFile({
 							url: 'https://www.zthymaoyi.com/upload/admin',
 							url: 'https://www.zthymaoyi.com/upload/admin',
 							filePath: res.tempFilePaths[0],
 							filePath: res.tempFilePaths[0],
 							name: 'file',
 							name: 'file',
@@ -472,9 +472,9 @@
 			},
 			},
 			travel(){
 			travel(){
 				var that = this
 				var that = this
-				wx.chooseImage({
+				uni.chooseImage({
 					success: function(res) {
 					success: function(res) {
-						wx.uploadFile({
+						uni.uploadFile({
 							url: 'https://www.zthymaoyi.com/upload/admin',
 							url: 'https://www.zthymaoyi.com/upload/admin',
 							filePath: res.tempFilePaths[0],
 							filePath: res.tempFilePaths[0],
 							name: 'file',
 							name: 'file',
@@ -491,9 +491,9 @@
 				},
 				},
 				drive(){
 				drive(){
 					var that = this
 					var that = this
-					wx.chooseImage({
+					uni.chooseImage({
 						success: function(res) {
 						success: function(res) {
-							wx.uploadFile({
+							uni.uploadFile({
 								url: 'https://www.zthymaoyi.com/upload/admin',
 								url: 'https://www.zthymaoyi.com/upload/admin',
 								filePath: res.tempFilePaths[0],
 								filePath: res.tempFilePaths[0],
 								name: 'file',
 								name: 'file',
@@ -510,9 +510,9 @@
 					},
 					},
 					operate(){
 					operate(){
 						var that = this
 						var that = this
-						wx.chooseImage({
+						uni.chooseImage({
 							success: function(res) {
 							success: function(res) {
-								wx.uploadFile({
+								uni.uploadFile({
 									url: 'https://www.zthymaoyi.com/upload/admin',
 									url: 'https://www.zthymaoyi.com/upload/admin',
 									filePath: res.tempFilePaths[0],
 									filePath: res.tempFilePaths[0],
 									name: 'file',
 									name: 'file',
@@ -529,9 +529,9 @@
 					},
 					},
 					practice(){
 					practice(){
 						var that = this
 						var that = this
-						wx.chooseImage({
+						uni.chooseImage({
 							success: function(res) {
 							success: function(res) {
-								wx.uploadFile({
+								uni.uploadFile({
 									url: 'https://www.zthymaoyi.com/upload/admin',
 									url: 'https://www.zthymaoyi.com/upload/admin',
 									filePath: res.tempFilePaths[0],
 									filePath: res.tempFilePaths[0],
 									name: 'file',
 									name: 'file',

+ 8 - 8
pageD/identity/driverIdentityThree.vue

@@ -281,9 +281,9 @@
 					},
 					},
 					travel() {
 					travel() {
 						var that = this
 						var that = this
-						wx.chooseImage({
+						uni.chooseImage({
 							success: function(res) {
 							success: function(res) {
-								wx.uploadFile({
+								uni.uploadFile({
 									url: 'https://www.zthymaoyi.com/upload/admin',
 									url: 'https://www.zthymaoyi.com/upload/admin',
 									filePath: res.tempFilePaths[0],
 									filePath: res.tempFilePaths[0],
 									name: 'file',
 									name: 'file',
@@ -300,9 +300,9 @@
 					},
 					},
 					drive() {
 					drive() {
 						var that = this
 						var that = this
-						wx.chooseImage({
+						uni.chooseImage({
 							success: function(res) {
 							success: function(res) {
-								wx.uploadFile({
+								uni.uploadFile({
 									url: 'https://www.zthymaoyi.com/upload/admin',
 									url: 'https://www.zthymaoyi.com/upload/admin',
 									filePath: res.tempFilePaths[0],
 									filePath: res.tempFilePaths[0],
 									name: 'file',
 									name: 'file',
@@ -319,9 +319,9 @@
 					},
 					},
 					practice() {
 					practice() {
 						var that = this
 						var that = this
-						wx.chooseImage({
+						uni.chooseImage({
 							success: function(res) {
 							success: function(res) {
-								wx.uploadFile({
+								uni.uploadFile({
 									url: 'https://www.zthymaoyi.com/upload/admin',
 									url: 'https://www.zthymaoyi.com/upload/admin',
 									filePath: res.tempFilePaths[0],
 									filePath: res.tempFilePaths[0],
 									name: 'file',
 									name: 'file',
@@ -338,9 +338,9 @@
 					},
 					},
 					operate() {
 					operate() {
 						var that = this
 						var that = this
-						wx.chooseImage({
+						uni.chooseImage({
 							success: function(res) {
 							success: function(res) {
-								wx.uploadFile({
+								uni.uploadFile({
 									url: 'https://www.zthymaoyi.com/upload/admin',
 									url: 'https://www.zthymaoyi.com/upload/admin',
 									filePath: res.tempFilePaths[0],
 									filePath: res.tempFilePaths[0],
 									name: 'file',
 									name: 'file',

+ 2 - 2
pageD/identity/driverIdentityTwo.vue

@@ -250,9 +250,9 @@
 			},
 			},
 			bankimgs(items) {
 			bankimgs(items) {
 				var that = this
 				var that = this
-				wx.chooseImage({
+				uni.chooseImage({
 					success: function(res) {
 					success: function(res) {
-						wx.uploadFile({
+						uni.uploadFile({
 							url: 'https://www.zthymaoyi.com/upload/admin',
 							url: 'https://www.zthymaoyi.com/upload/admin',
 							filePath: res.tempFilePaths[0],
 							filePath: res.tempFilePaths[0],
 							name: 'file',
 							name: 'file',

+ 2 - 2
pages/attestation/index.vue

@@ -24,7 +24,7 @@
 			<image src="../../static/img/authentication/siji@3x.png" class="portrait1"></image>
 			<image src="../../static/img/authentication/siji@3x.png" class="portrait1"></image>
 		</view>
 		</view>
 		
 		
-		 <view class="homePage2">
+		 <!-- <view class="homePage2">
 			<image src="../../static/img/authentication/bg@2x.png" class="background"></image>
 			<image src="../../static/img/authentication/bg@2x.png" class="background"></image>
 			<view class="title">
 			<view class="title">
 				粮农身份
 				粮农身份
@@ -33,7 +33,7 @@
 				<view style="margin-right: 30px;">{{changes}}</view>
 				<view style="margin-right: 30px;">{{changes}}</view>
 			</view>
 			</view>
 			<image src="../../static/img/authentication/farmer@2x.png" class="portrait1"></image>
 			<image src="../../static/img/authentication/farmer@2x.png" class="portrait1"></image>
-		</view> 
+		</view> -->
 	</view>
 	</view>
 </template>
 </template>
 
 

+ 13 - 9
websocket_sdk.js

@@ -138,15 +138,19 @@ export default class Websocket {
                         console.log('网络已断开');
                         console.log('网络已断开');
                         _this._netWork = false;
                         _this._netWork = false;
                         // 网络断开后显示model
                         // 网络断开后显示model
-                        uni.showModal({
-                            title: '网络错误',
-                            content: '请重新打开网络',
-                            success: function(res) {
-                                if (res.confirm) {
-                                    console.log('用户点击确定')
-                                }
-                            }
-                        })
+                        // uni.showModal({
+                        //     title: '网络错误',
+                        //     content: '请重新打开网络',
+                        //     success: function(res) {
+                        //         if (res.confirm) {
+                        //             console.log('用户点击确定')
+                        //         }
+                        //     }
+                        // })
+						uni.showToast({
+							title: "网络错误 请重新打开网络",
+							icon: 'none'
+						})
                     }
                     }
                 }
                 }
             })
             })