高敬炎 2 yıl önce
ebeveyn
işleme
e308bd8aed
45 değiştirilmiş dosya ile 1088 ekleme ve 2047 silme
  1. 24 22
      .hbuilderx/launch.json
  2. 50 33
      common/helper.js
  3. 31 20
      components/bert-suggest/suggest.vue
  4. 4 2
      config/index.js
  5. 4 6
      manifest.json
  6. 40 58
      pages.json
  7. 0 213
      pages/mine/camera/camera.nvue
  8. 0 246
      pages/mine/camera/idcard/idcard.nvue
  9. 0 240
      pages/mine/camera/idphoto/idphoto.nvue
  10. 0 214
      pages/mine/camera/portrait/portrait.nvue
  11. 0 259
      pages/mine/camera/video/video.nvue
  12. 0 228
      pages/mine/camera/watermark/watermark.nvue
  13. 85 77
      pages/mine/cargoowner/editpersonalinformation.vue
  14. 50 47
      pages/mine/company/addcompany.vue
  15. 54 50
      pages/mine/company/editcompany.vue
  16. 69 9
      pages/mine/helpDescription.vue
  17. 12 11
      pages/mine/index.vue
  18. 1 0
      pages/mine/manageBankCards/addBankCard.vue
  19. 8 6
      pages/mine/manageBankCards/editBankCard.vue
  20. 10 7
      pages/mine/manageVehicles/addVehicle.vue
  21. 10 7
      pages/mine/manageVehicles/editVehicle.vue
  22. 2 2
      pages/mine/myAccount/bill.vue
  23. 3 3
      pages/mine/set.vue
  24. 73 68
      pages/mine/settings/editAvatar.vue
  25. BIN
      pages/mine/tsb/1.png
  26. BIN
      pages/mine/tsb/10.png
  27. BIN
      pages/mine/tsb/2.png
  28. BIN
      pages/mine/tsb/3.png
  29. BIN
      pages/mine/tsb/4.png
  30. BIN
      pages/mine/tsb/5.png
  31. BIN
      pages/mine/tsb/6.png
  32. BIN
      pages/mine/tsb/7.png
  33. BIN
      pages/mine/tsb/8.png
  34. BIN
      pages/mine/tsb/9.png
  35. BIN
      pages/mine/tsb/jjb.png
  36. 1 1
      pages/order/driverDetail.vue
  37. 13 16
      pages/order/index.vue
  38. 403 72
      pages/order/map.nvue
  39. 10 7
      pages/order/map.vue
  40. 0 4
      pages/order/signContract.vue
  41. 1 1
      pages/public/login.vue
  42. 48 46
      pages/release/addAddress.vue
  43. 2 0
      pages/release/editRelease.vue
  44. 14 6
      pages/release/release.vue
  45. 66 66
      pages/release/selectAddress.vue

+ 24 - 22
.hbuilderx/launch.json

@@ -1,24 +1,26 @@
-{ // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
-  // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
-    "version": "0.0",
-    "configurations": [{
-     	"app-plus" : 
-     	{
-     		"launchtype" : "local"
-     	},
-     	"default" : 
-     	{
-     		"launchtype" : "local"
-     	},
-     	"h5" : 
-     	{
-     		"launchtype" : "local"
-     	},
-     	"mp-weixin" : 
-     	{
-     		"launchtype" : "local"
-     	},
-     	"type" : "uniCloud"
-     }
+{
+    // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
+    // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
+    "version" : "0.0",
+    "configurations" : [
+        {
+            "app-plus" : {
+                "launchtype" : "local"
+            },
+            "default" : {
+                "launchtype" : "local"
+            },
+            "h5" : {
+                "launchtype" : "local"
+            },
+            "mp-weixin" : {
+                "launchtype" : "local"
+            },
+            "type" : "uniCloud"
+        },
+        {
+            "playground" : "custom",
+            "type" : "uni-app:app-android"
+        }
     ]
     ]
 }
 }

+ 50 - 33
common/helper.js

@@ -15,18 +15,18 @@ const imgTypeList = [{
 	}
 	}
 ]
 ]
 // 当前日期是否超过今天(校验有效期)
 // 当前日期是否超过今天(校验有效期)
-const periodOfValidity=function(year1,month1,day1){
+const periodOfValidity = function(year1, month1, day1) {
 	let nowDate = new Date();
 	let nowDate = new Date();
 	let year = nowDate.getFullYear()
 	let year = nowDate.getFullYear()
 	let month = nowDate.getMonth() + 1
 	let month = nowDate.getMonth() + 1
 	let day = nowDate.getDate()
 	let day = nowDate.getDate()
-	if(year1<year){
+	if (year1 < year) {
 		return false
 		return false
 	}
 	}
-	if(year1==year&&month1<month){
+	if (year1 == year && month1 < month) {
 		return false
 		return false
 	}
 	}
-	if(year1==year&&month1==month&&day1<=day){
+	if (year1 == year && month1 == month && day1 <= day) {
 		return false
 		return false
 	}
 	}
 	return true
 	return true
@@ -117,39 +117,39 @@ const contactCustomerService = (phone) => {
 	}
 	}
 	const res = uni.getSystemInfoSync();
 	const res = uni.getSystemInfoSync();
 	// ios系统默认有个模态框
 	// ios系统默认有个模态框
-	if(res.platform=='ios'){
+	if (res.platform == 'ios') {
 		uni.makePhoneCall({
 		uni.makePhoneCall({
-		phoneNumber:phone,
-		success(){
-			console.log('拨打成功了');
-		},
-		fail() {
-			console.log('拨打失败了');
-		}
-	})
-	}else{
-	//安卓手机手动设置一个showActionSheet
+			phoneNumber: phone,
+			success() {
+				console.log('拨打成功了');
+			},
+			fail() {
+				console.log('拨打失败了');
+			}
+		})
+	} else {
+		//安卓手机手动设置一个showActionSheet
 		uni.showActionSheet({
 		uni.showActionSheet({
-			itemList: [phone,'呼叫'],
-			success:function(res){
+			itemList: [phone, '呼叫'],
+			success: function(res) {
 				console.log(res);
 				console.log(res);
-			   if(res.tapIndex==1){
-				uni.makePhoneCall({
-				  phoneNumber: phone,
-				success: (res) => {
-					console.log('调用成功!')
-					
-				},
-			  
-				// 失败回调
-				fail: (res) => {
-					console.log('调用失败!')
-					// contactCustomerService(item)
+				if (res.tapIndex == 1) {
+					uni.makePhoneCall({
+						phoneNumber: phone,
+						success: (res) => {
+							console.log('调用成功!')
+
+						},
+
+						// 失败回调
+						fail: (res) => {
+							console.log('调用失败!')
+							// contactCustomerService(item)
+						}
+					})
 				}
 				}
-				})
-			  }
 			}
 			}
-		  })
+		})
 	}
 	}
 	// console.log("联系客服")
 	// console.log("联系客服")
 	// uni.makePhoneCall({
 	// uni.makePhoneCall({
@@ -183,6 +183,7 @@ const filterArea = (q) => {
 // 	return item.match(regex).groups
 // 	return item.match(regex).groups
 // }
 // }
 
 
+// 辽宁省沈阳市新民市公主屯镇委公主屯派出所
 const formatLocation = (str) => {
 const formatLocation = (str) => {
 	// console.log('``````')
 	// console.log('``````')
 	// console.log(str)
 	// console.log(str)
@@ -214,7 +215,23 @@ const formatLocation = (str) => {
 	let index3 = str.indexOf("区")
 	let index3 = str.indexOf("区")
 	if (index3 == -1) {
 	if (index3 == -1) {
 		index3 = str.indexOf("县")
 		index3 = str.indexOf("县")
-		area.Country = str.substring(index2 + 1, index3 + 1)
+		if (index3 == -1) {
+			index3 = str.lastIndexOf("市")
+			if (index3 == -1) {
+				index3 = str.indexOf("镇")
+				if (index3 == -1) {
+
+				} else {
+					area.Country = str.substring(index2 + 1, index3 + 1)
+
+				}
+			} else {
+				area.Country = str.substring(index2 + 1, index3 + 1)
+			}
+		} else {
+			area.Country = str.substring(index2 + 1, index3 + 1)
+		}
+
 	} else {
 	} else {
 		area.Country = str.substring(index2 + 1, index3 + 1)
 		area.Country = str.substring(index2 + 1, index3 + 1)
 	}
 	}

+ 31 - 20
components/bert-suggest/suggest.vue

@@ -1,12 +1,13 @@
 <template>
 <template>
 	<view>
 	<view>
 		<view style='background:#fff;margin:20px 10px 10px;border-radius:10px;'>
 		<view style='background:#fff;margin:20px 10px 10px;border-radius:10px;'>
-			<uni-card class="box" :isFull="true" title="反馈意见" >
+			<uni-card class="box" :isFull="true" title="反馈意见">
 				<textarea v-model="data.content" placeholder="您的反馈对我们非常重要,请在此输入。"></textarea>
 				<textarea v-model="data.content" placeholder="您的反馈对我们非常重要,请在此输入。"></textarea>
-				<view style='position:absolute;right:22px;bottom:16px;font-size:13px;'>{{data.content.length}}/150个字</view>
+				<view style='position:absolute;right:22px;bottom:16px;font-size:13px;'>{{data.content.length}}/150个字
+				</view>
 			</uni-card>
 			</uni-card>
-			<uni-card class="box contact" :isFull="true" title="联系方式" >
-				<input v-model="data.contact" placeholder="请输入您的手机号,方便我们联系您" maxlength="11" type="number"/>
+			<uni-card class="box contact" :isFull="true" title="联系方式">
+				<input v-model="data.contact" placeholder="请输入您的手机号,方便我们联系您" maxlength="11" type="number" />
 			</uni-card>
 			</uni-card>
 		</view>
 		</view>
 		<button class="submit-btn" @click="submit">提交</button>
 		<button class="submit-btn" @click="submit">提交</button>
@@ -16,7 +17,7 @@
 <script>
 <script>
 	import uniCard from '@/components/uni-card/uni-card.vue';
 	import uniCard from '@/components/uni-card/uni-card.vue';
 	export default {
 	export default {
-		components:{
+		components: {
 			uniCard
 			uniCard
 		},
 		},
 		data() {
 		data() {
@@ -35,7 +36,7 @@
 			chooseImage() {
 			chooseImage() {
 				let _self = this;
 				let _self = this;
 				uni.chooseImage({
 				uni.chooseImage({
-					sizeType: ['compressed', 'original'],
+					sizeType: ['compressed'],
 					sourceType: ['album', 'camera'],
 					sourceType: ['album', 'camera'],
 					success: function(res) {
 					success: function(res) {
 						_self.data.imgList = _self.data.imgList.concat(res.tempFiles)
 						_self.data.imgList = _self.data.imgList.concat(res.tempFiles)
@@ -66,6 +67,7 @@
 		margin-bottom: 10rpx;
 		margin-bottom: 10rpx;
 		position: relative;
 		position: relative;
 	}
 	}
+
 	.imgs {
 	.imgs {
 		position: relative;
 		position: relative;
 		display: inline-flex;
 		display: inline-flex;
@@ -73,48 +75,57 @@
 		margin: 10rpx;
 		margin: 10rpx;
 		width: 150rpx;
 		width: 150rpx;
 		height: 150rpx;
 		height: 150rpx;
+
 		.img {
 		.img {
 			width: 100%;
 			width: 100%;
 			height: 100%;
 			height: 100%;
 			border-radius: 10rpx;
 			border-radius: 10rpx;
 			border: 1rpx solid #ebebeb;
 			border: 1rpx solid #ebebeb;
 		}
 		}
+
 		.remove {
 		.remove {
 			line-height: 30rpx;
 			line-height: 30rpx;
 			text-align: center;
 			text-align: center;
 			border-radius: 10rpx;
 			border-radius: 10rpx;
 			position: absolute;
 			position: absolute;
-			right: 0rpx;	
+			right: 0rpx;
 			top: 0rpx;
 			top: 0rpx;
 			width: 30rpx;
 			width: 30rpx;
 			height: 30rpx;
 			height: 30rpx;
 			font-weight: bold;
 			font-weight: bold;
 			background-color: #e53c25;
 			background-color: #e53c25;
 		}
 		}
+
 		.add-img {
 		.add-img {
 			background-color: #f0f0f0;
 			background-color: #f0f0f0;
 		}
 		}
 	}
 	}
+
 	.submit-btn {
 	.submit-btn {
 		background-color: #2772FB;
 		background-color: #2772FB;
-		color:#fff;
-		border-radius:30px;
+		color: #fff;
+		border-radius: 30px;
 		margin: 20rpx;
 		margin: 20rpx;
-		margin-top:30px;
+		margin-top: 30px;
 	}
 	}
-	textarea,input{
-		background:#F9F9FA;
+
+	textarea,
+	input {
+		background: #F9F9FA;
 		border: 1px solid #eee;
 		border: 1px solid #eee;
 	}
 	}
-	textarea{
-		margin:0 auto;
-		padding:10px;
-		font-size:14px;
+
+	textarea {
+		margin: 0 auto;
+		padding: 10px;
+		font-size: 14px;
 	}
 	}
-	input{
-		padding:20px;
+
+	input {
+		padding: 20px;
 	}
 	}
-	.contact{
-		padding-bottom:20px;
+
+	.contact {
+		padding-bottom: 20px;
 	}
 	}
 </style>
 </style>

+ 4 - 2
config/index.js

@@ -1,6 +1,8 @@
 const dev = {
 const dev = {
 	// baseUrlNew: 'https://api.changyuntong56.com',
 	// baseUrlNew: 'https://api.changyuntong56.com',
-	baseUrlNew: 'https://apitest.changyuntong56.com',
+	// baseUrlNew: 'https://apitest.changyuntong56.com',
+	baseUrlNew: 'https://api.changyuntong56.com',
+	// baseUrlNew: 'https://apitest.changyuntong56.com',
 	// baseUrlNew: 'http://192.168.110.9:8099',
 	// baseUrlNew: 'http://192.168.110.9:8099',
 	// baseUrlNew: 'https://apitest.eliangeyun.com',
 	// baseUrlNew: 'https://apitest.eliangeyun.com',
 	// baseUrlNew: 'http://192.168.110.67:8999/',
 	// baseUrlNew: 'http://192.168.110.67:8999/',
@@ -10,4 +12,4 @@ const dev = {
 
 
 export function def() {
 export function def() {
 	return dev
 	return dev
-}
+}

+ 4 - 6
manifest.json

@@ -2,8 +2,8 @@
     "name" : "畅运通-货主端",
     "name" : "畅运通-货主端",
     "appid" : "__UNI__DCD13AC",
     "appid" : "__UNI__DCD13AC",
     "description" : "畅运通",
     "description" : "畅运通",
-    "versionName" : "1.1.0",
-    "versionCode" : 110,
+    "versionName" : "1.1.5",
+    "versionCode" : 115,
     "transformPx" : false,
     "transformPx" : false,
     /* 5+App特有相关 */
     /* 5+App特有相关 */
     "app-plus" : {
     "app-plus" : {
@@ -22,8 +22,9 @@
         /* 模块配置 */
         /* 模块配置 */
         "modules" : {
         "modules" : {
             "Maps" : {},
             "Maps" : {},
+            "Push" : {},
             "Geolocation" : {},
             "Geolocation" : {},
-            "Push" : {}
+            "Camera" : {}
         },
         },
         /* 应用发布信息 */
         /* 应用发布信息 */
         "distribute" : {
         "distribute" : {
@@ -79,9 +80,6 @@
                         "__platform__" : [ "ios", "android" ],
                         "__platform__" : [ "ios", "android" ],
                         "appkey_ios" : "b1ce5ff5cafa861ce00623ac4788a721",
                         "appkey_ios" : "b1ce5ff5cafa861ce00623ac4788a721",
                         "appkey_android" : "77d75fbe6f68fc8e415b990bfc70daaa"
                         "appkey_android" : "77d75fbe6f68fc8e415b990bfc70daaa"
-                    },
-                    "system" : {
-                        "__platform__" : [ "ios", "android" ]
                     }
                     }
                 }
                 }
             },
             },

+ 40 - 58
pages.json

@@ -79,7 +79,7 @@
 				"navigationBarTitleText": "反馈处理结果",
 				"navigationBarTitleText": "反馈处理结果",
 				"enablePullDownRefresh": false
 				"enablePullDownRefresh": false
 			}
 			}
-		},{
+		}, {
 			"path": "pages/news/newsSee",
 			"path": "pages/news/newsSee",
 			"style": {
 			"style": {
 				"navigationBarTitleText": "系统消息",
 				"navigationBarTitleText": "系统消息",
@@ -147,9 +147,9 @@
 						}]
 						}]
 					},
 					},
 					"pullToRefresh": {
 					"pullToRefresh": {
-					    "support": true,
-					    "color": "#2772FB", //小圈圈的颜色
-					    "style": "circle" //小圈圈的样式
+						"support": true,
+						"color": "#2772FB", //小圈圈的颜色
+						"style": "circle" //小圈圈的样式
 					}
 					}
 				}
 				}
 			}
 			}
@@ -176,11 +176,12 @@
 				"enablePullDownRefresh": false
 				"enablePullDownRefresh": false
 			}
 			}
 
 
-		},{
+		}, {
 			"path": "pages/mine/helpDescription",
 			"path": "pages/mine/helpDescription",
 			"style": {
 			"style": {
-				"navigationBarTitleText": "操作说明",
-				"enablePullDownRefresh": false
+				"navigationBarTitleText": "操作流程",
+				"enablePullDownRefresh": false,
+				"navigationStyle": "custom"
 			}
 			}
 
 
 		},
 		},
@@ -248,22 +249,6 @@
 				"enablePullDownRefresh": false
 				"enablePullDownRefresh": false
 			}
 			}
 
 
-		},
-		{
-			"path": "pages/mine/camera/idcard/idcard",
-			"style": {
-				"navigationStyle": "custom",
-				"backgroundColor": "#000000"
-			}
-
-		},
-		{
-			"path": "pages/mine/camera/video/video",
-			"style": {
-				"navigationStyle": "custom",
-				"backgroundColor": "#000000"
-			}
-
 		},
 		},
 		{
 		{
 			"path": "pages/mine/agency/agency",
 			"path": "pages/mine/agency/agency",
@@ -294,7 +279,7 @@
 				"navigationBarTitleText": "提现详情",
 				"navigationBarTitleText": "提现详情",
 				"enablePullDownRefresh": false
 				"enablePullDownRefresh": false
 			}
 			}
-		
+
 		},
 		},
 		{
 		{
 			"path": "pages/mine/myAccount/withdrawal",
 			"path": "pages/mine/myAccount/withdrawal",
@@ -372,7 +357,7 @@
 				"enablePullDownRefresh": false
 				"enablePullDownRefresh": false
 			}
 			}
 
 
-		},{
+		}, {
 			"path": "pages/mine/company/companyvideo",
 			"path": "pages/mine/company/companyvideo",
 			"style": {
 			"style": {
 				"navigationBarTitleText": "视频认证",
 				"navigationBarTitleText": "视频认证",
@@ -467,9 +452,12 @@
 
 
 		}, {
 		}, {
 			"path": "pages/order/map",
 			"path": "pages/order/map",
+			// "style": {
+			// 	"navigationBarTitleText": "运输轨迹",
+			// 	"enablePullDownRefresh": false
+			// }
 			"style": {
 			"style": {
-				"navigationBarTitleText": "运输轨迹",
-				"enablePullDownRefresh": false
+				"navigationStyle": "custom"
 			}
 			}
 
 
 		}, {
 		}, {
@@ -514,9 +502,9 @@
 						}]
 						}]
 					},
 					},
 					"pullToRefresh": {
 					"pullToRefresh": {
-					    "support": true,
-					    "color": "#2772FB", //小圈圈的颜色
-					    "style": "circle" //小圈圈的样式
+						"support": true,
+						"color": "#2772FB", //小圈圈的颜色
+						"style": "circle" //小圈圈的样式
 					}
 					}
 				}
 				}
 			}
 			}
@@ -574,35 +562,29 @@
 				"navigationStyle": "custom"
 				"navigationStyle": "custom"
 			}
 			}
 
 
+		}, {
+			"path": "pages/mine/settings/fankui",
+			"style": {
+				"navigationBarTitleText": "意见反馈",
+				"enablePullDownRefresh": false
+			}
+
+		}, {
+			"path": "pages/public/serviceAgreement/serviceAgreement",
+			"style": {
+				"navigationBarTitleText": "服务协议",
+				"enablePullDownRefresh": false
+			}
+
+		}, {
+			"path": "pages/public/cytScrectAgreement/cytScrectAgreement",
+			"style": {
+				"navigationBarTitleText": "隐私声明",
+				"enablePullDownRefresh": false
+			}
+
 		}
 		}
-	    ,{
-            "path" : "pages/mine/settings/fankui",
-            "style" :                                                                                    
-            {
-                "navigationBarTitleText": "意见反馈",
-                "enablePullDownRefresh": false
-            }
-            
-        }
-        ,{
-            "path" : "pages/public/serviceAgreement/serviceAgreement",
-            "style" :                                                                                    
-            {
-                "navigationBarTitleText": "服务协议",
-                "enablePullDownRefresh": false
-            }
-            
-        }
-        ,{
-            "path" : "pages/public/cytScrectAgreement/cytScrectAgreement",
-            "style" :                                                                                    
-            {
-                "navigationBarTitleText": "隐私声明",
-                "enablePullDownRefresh": false
-            }
-            
-        }
-    ],
+	],
 	"globalStyle": {
 	"globalStyle": {
 		"navigationBarTextStyle": "black",
 		"navigationBarTextStyle": "black",
 		"navigationBarTitleText": "uni-app",
 		"navigationBarTitleText": "uni-app",

+ 0 - 213
pages/mine/camera/camera.nvue

@@ -1,213 +0,0 @@
-<template>
-	<view class="live-camera" :style="{ width: windowWidth, height: windowHeight }">
-		<live-pusher
-			id="livePusher"
-			ref="livePusher"
-			class="livePusher"
-			mode="FHD"
-			beauty="0"
-			whiteness="0"
-			:aspect="aspect"
-			min-bitrate="1000"
-			audio-quality="16KHz"
-			device-position="back"
-			:auto-focus="true"
-			:muted="true"
-			:enable-camera="true"
-			:enable-mic="false"
-			:zoom="false"
-			@statechange="statechange"
-			:style="{ width: windowWidth, height: windowHeight }"
-		></live-pusher>
-
-		<view class="menu">
-			<!--底部菜单区域背景-->
-			<cover-image class="menu-mask" src="/static/live-camera/bar.png"></cover-image>
-
-			<!--返回键-->
-			<cover-image class="menu-back" @tap="back" src="/static/live-camera/back.png"></cover-image>
-
-			<!--快门键-->
-			<cover-image class="menu-snapshot" @tap="snapshot" src="/static/live-camera/shutter.png"></cover-image>
-
-			<!--反转键-->
-			<cover-image class="menu-flip" @tap="flip" src="/static/live-camera/flip.png"></cover-image>
-		</view>
-	</view>
-</template>
-
-<script>
-let _this = null;
-export default {
-	data() {
-		return {
-			poenCarmeInterval:null,//打开相机的轮询
-			aspect: '2:3', //比例
-			windowWidth: '', //屏幕可用宽度
-			windowHeight: '', //屏幕可用高度
-			camerastate: false, //相机准备好了
-			livePusher: null, //流视频对象
-			snapshotsrc: null //快照
-		};
-	},
-	onLoad(e) {
-		_this = this;
-		this.initCamera();
-	},
-	onReady() {
-		this.livePusher = uni.createLivePusherContext('livePusher', this);
-		this.startPreview(); //开启预览并设置摄像头
-		this.poenCarme();
-	},
-	methods: {
-		
-		//轮询打开
-		poenCarme(){
-			//#ifdef APP-PLUS
-			if (plus.os.name == 'Android') {
-				this.poenCarmeInterval = setInterval(function() {
-					console.log(_this.camerastate);
-					if (!_this.camerastate) _this.startPreview();
-				}, 2500);
-			}
-			//#endif
-		},
-		//初始化相机
-		initCamera() {
-			uni.getSystemInfo({
-				success: function(res) {
-					_this.windowWidth = res.windowWidth;
-					_this.windowHeight = res.windowHeight;
-					let zcs = _this.aliquot(_this.windowWidth,_this.windowHeight);
-					_this.aspect = (_this.windowWidth/zcs)+':'+(_this.windowHeight/zcs);
-					console.log('画面比例:'+_this.aspect);
-				}
-			});
-		},
-		
-		//整除数计算
-		aliquot(x, y) {
-			if (x % y == 0) return y;
-			return this.aliquot(y, x % y);
-		},
-
-		//开始预览
-		startPreview() {
-			this.livePusher.startPreview({
-				success: a => {
-					console.log(a)
-				}
-			});
-		},
-		
-		//停止预览
-		stopPreview() {
-			this.livePusher.stopPreview({
-				success: a => {
-					_this.camerastate = false; //标记相机未启动
-				}
-			});
-		},
-		
-		//状态
-		statechange(e) {
-			//状态改变
-			console.log(e);
-			if (e.detail.code == 1007) {
-				_this.camerastate = true;
-			} else if (e.detail.code == -1301) {
-				_this.camerastate = false;
-			}
-		},
-		
-
-		//返回
-		back() {
-			uni.navigateBack();
-		},
-
-		//抓拍
-		snapshot() {
-			//震动
-			uni.vibrateShort({
-			    success: function () {
-			        console.log('success');
-			    }
-			});
-			//拍照
-			this.livePusher.snapshot({
-				success: e => {
-					_this.snapshotsrc = e.message.tempImagePath;
-					_this.stopPreview();
-					_this.setImage();
-					uni.navigateBack();
-				}
-			});
-		},
-
-		//反转
-		flip() {
-			this.livePusher.switchCamera();
-		},
-
-		//设置
-		setImage() {
-			let pages = getCurrentPages();
-			let prevPage = pages[pages.length - 2]; //上一个页面
-
-			//直接调用上一个页面的setImage()方法,把数据存到上一个页面中去
-			prevPage.$vm.setImage({ path: _this.snapshotsrc });
-		}
-	}
-};
-</script>
-
-<style lang="scss">
-.live-camera {
-	justify-content: center;
-	align-items: center;
-	.menu {
-		position: absolute;
-		left: 0;
-		bottom: 0;
-		width: 750rpx;
-		height: 180rpx;
-		z-index: 98;
-		align-items: center;
-		justify-content: center;
-		.menu-mask {
-			position: absolute;
-			left: 0;
-			bottom: 0;
-			width: 750rpx;
-			height: 180rpx;
-			z-index: 98;
-		}
-		.menu-back {
-			position: absolute;
-			left: 30rpx;
-			bottom: 50rpx;
-			width: 80rpx;
-			height: 80rpx;
-			z-index: 99;
-			align-items: center;
-			justify-content: center;
-		}
-		.menu-snapshot {
-			width: 130rpx;
-			height: 130rpx;
-			z-index: 99;
-		}
-		.menu-flip {
-			position: absolute;
-			right: 30rpx;
-			bottom: 50rpx;
-			width: 80rpx;
-			height: 80rpx;
-			z-index: 99;
-			align-items: center;
-			justify-content: center;
-		}
-	}
-}
-</style>

+ 0 - 246
pages/mine/camera/idcard/idcard.nvue

@@ -1,246 +0,0 @@
-<template>
-	<view class="live-camera" :style="{ width: windowWidth, height: windowHeight }">
-		<view class="preview" :style="{ width: windowWidth, height: windowHeight - 80 }">
-			<live-pusher
-				id="livePusher"
-				ref="livePusher"
-				class="livePusher"
-				mode="FHD"
-				beauty="0"
-				whiteness="0"
-				:aspect="aspect"
-				min-bitrate="1000"
-				audio-quality="16KHz"
-				device-position="back"
-				:auto-focus="true"
-				:muted="true"
-				:enable-camera="true"
-				:enable-mic="false"
-				:zoom="false"
-				@statechange="statechange"
-				:style="{ width: cameraWidth, height: cameraHeight }"
-			></live-pusher>
-
-			<!--提示语-->
-			<cover-view class="remind">
-				<text class="remind-text" style="">{{ message }}</text>
-			</cover-view>
-
-			<!--辅助线-->
-			<cover-view class="outline-box" :style="{ width: windowWidth, height: windowHeight - 80 }">
-				<cover-image
-					class="outline-img"
-					:src="dotype == 'idcardface' ? '/static/live-camera/outline/idcardface.png' : '/static/live-camera/outline/idcardbadge.png'"
-					style=""
-				></cover-image>
-			</cover-view>
-		</view>
-
-		<view class="menu">
-			<!--底部菜单区域背景-->
-			<cover-image class="menu-mask" src="/static/live-camera/bar.png"></cover-image>
-
-			<!--返回键-->
-			<cover-image class="menu-back" @tap="back" src="/static/live-camera/back.png"></cover-image>
-
-			<!--快门键-->
-			<cover-image class="menu-snapshot" @tap="snapshot" src="/static/live-camera/shutter.png"></cover-image>
-
-			<!--反转键-->
-			<cover-image class="menu-flip" @tap="flip" src="/static/live-camera/flip.png"></cover-image>
-		</view>
-	</view>
-</template>
-
-<script>
-let _this = null;
-export default {
-	data() {
-		return {
-			poenCarmeInterval: null, //打开相机的轮询
-			dotype: 'face', //操作类型
-			message: '', //提示
-			aspect: '2:3', //比例
-			cameraWidth: '', //相机画面宽度
-			cameraHeight: '', //相机画面宽度
-			windowWidth: '', //屏幕可用宽度
-			windowHeight: '', //屏幕可用高度
-			camerastate: false, //相机准备好了
-			livePusher: null, //流视频对象
-			snapshotsrc: null //快照
-		};
-	},
-	onLoad(e) {
-		_this = this;
-		this.dotype = e.dotype;
-		this.initCamera();
-	},
-	onReady() {
-		this.livePusher = uni.createLivePusherContext('livePusher', this);
-		this.startPreview(); //开启预览并设置摄像头
-		this.poenCarme();
-	},
-	methods: {
-		//轮询打开
-		poenCarme() {
-			//#ifdef APP-PLUS
-			if (plus.os.name == 'Android') {
-				this.poenCarmeInterval = setInterval(function() {
-					console.log(_this.camerastate);
-					if (!_this.camerastate) _this.startPreview();
-				}, 2500);
-			}
-			//#endif
-		},
-		//初始化相机
-		initCamera() {
-			//处理安卓手机异步授权问题
-			uni.getSystemInfo({
-				success: function(res) {
-					_this.windowWidth = res.windowWidth;
-					_this.windowHeight = res.windowHeight;
-					_this.cameraWidth = res.windowWidth;
-					_this.cameraHeight = res.windowWidth * 1.5;
-				}
-			});
-		},
-
-		//开始预览
-		startPreview() {
-			this.livePusher.startPreview({
-				success: a => {
-					console.log(a);
-				}
-			});
-		},
-
-		//停止预览
-		stopPreview() {
-			this.livePusher.stopPreview({
-				success: a => {
-					_this.camerastate = false; //标记相机未启动
-				}
-			});
-		},
-
-		//状态
-		statechange(e) {
-			//状态改变
-			console.log(e);
-			if (e.detail.code == 1007) {
-				_this.camerastate = true;
-			} else if (e.detail.code == -1301) {
-				_this.camerastate = false;
-			}
-		},
-
-		//返回
-		back() {
-			uni.navigateBack();
-		},
-
-		//抓拍
-		snapshot() {
-			this.livePusher.snapshot({
-				success: e => {
-					_this.snapshotsrc = e.message.tempImagePath;
-					_this.stopPreview();
-					_this.setImage();
-					uni.navigateBack();
-				}
-			});
-		},
-
-		//反转
-		flip() {
-			this.livePusher.switchCamera();
-		},
-
-		//设置
-		setImage() {
-			let pages = getCurrentPages();
-			let prevPage = pages[pages.length - 2]; //上一个页面
-
-			//直接调用上一个页面的setImage()方法,把数据存到上一个页面中去
-			prevPage.$vm.setImage({ path: _this.snapshotsrc, dotype: this.dotype });
-		}
-	}
-};
-</script>
-
-<style lang="scss">
-.live-camera {
-	.preview {
-		justify-content: center;
-		align-items: center;
-		.outline-box {
-			position: absolute;
-			top: 0;
-			left: 0;
-			bottom: 0;
-			z-index: 99;
-			align-items: center;
-			justify-content: center;
-			.outline-img {
-				width: 750rpx;
-				height: 1125rpx;
-			}
-		}
-		.remind {
-			position: absolute;
-			top: 880rpx;
-			width: 750rpx;
-			z-index: 100;
-			align-items: center;
-			justify-content: center;
-			.remind-text {
-				color: #dddddd;
-				font-weight: bold;
-			}
-		}
-	}
-	.menu {
-		position: absolute;
-		left: 0;
-		bottom: 0;
-		width: 750rpx;
-		height: 180rpx;
-		z-index: 98;
-		align-items: center;
-		justify-content: center;
-		.menu-mask {
-			position: absolute;
-			left: 0;
-			bottom: 0;
-			width: 750rpx;
-			height: 180rpx;
-			z-index: 98;
-		}
-		.menu-back {
-			position: absolute;
-			left: 30rpx;
-			bottom: 50rpx;
-			width: 80rpx;
-			height: 80rpx;
-			z-index: 99;
-			align-items: center;
-			justify-content: center;
-		}
-		.menu-snapshot {
-			width: 130rpx;
-			height: 130rpx;
-			z-index: 99;
-		}
-		.menu-flip {
-			position: absolute;
-			right: 30rpx;
-			bottom: 50rpx;
-			width: 80rpx;
-			height: 80rpx;
-			z-index: 99;
-			align-items: center;
-			justify-content: center;
-		}
-	}
-}
-</style>

+ 0 - 240
pages/mine/camera/idphoto/idphoto.nvue

@@ -1,240 +0,0 @@
-<template>
-	<view class="live-camera" :style="{ width: windowWidth, height: windowHeight }">
-		<view class="preview" :style="{ width: windowWidth, height: windowHeight - 80 }">
-			<live-pusher
-				id="livePusher"
-				ref="livePusher"
-				class="livePusher"
-				mode="FHD"
-				beauty="1"
-				whiteness="0"
-				:aspect="aspect"
-				min-bitrate="1000"
-				audio-quality="16KHz"
-				device-position="back"
-				:auto-focus="true"
-				:muted="true"
-				:enable-camera="true"
-				:enable-mic="false"
-				:zoom="false"
-				@statechange="statechange"
-				:style="{ width: cameraWidth, height: cameraHeight }"
-			></live-pusher>
-
-			<!--提示语-->
-			<cover-view class="remind">
-				<text class="remind-text" style="">{{ message }}</text>
-			</cover-view>
-
-			<!--辅助线-->
-			<cover-view class="outline-box" :style="{ width: windowWidth, height: windowHeight - 80 }">
-				<cover-image class="outline-img" src="/static/live-camera/outline/idphotoskin.png" style=""></cover-image>
-			</cover-view>
-		</view>
-
-		<view class="menu">
-			<!--底部菜单区域背景-->
-			<cover-image class="menu-mask" src="/static/live-camera/bar.png"></cover-image>
-
-			<!--返回键-->
-			<cover-image class="menu-back" @tap="back" src="/static/live-camera/back.png"></cover-image>
-
-			<!--快门键-->
-			<cover-image class="menu-snapshot" @tap="snapshot" src="/static/live-camera/shutter.png"></cover-image>
-
-			<!--反转键-->
-			<cover-image class="menu-flip" @tap="flip" src="/static/live-camera/flip.png"></cover-image>
-		</view>
-	</view>
-</template>
-
-<script>
-let _this = null;
-export default {
-	data() {
-		return {
-			dotype: 'idphoto', //操作类型
-			message: '', //提示
-			aspect: '2:3', //比例
-			cameraWidth: '', //相机画面宽度
-			cameraHeight: '', //相机画面宽度
-			windowWidth: '', //屏幕可用宽度
-			windowHeight: '', //屏幕可用高度
-			camerastate: false, //相机准备好了
-			livePusher: null, //流视频对象
-			snapshotsrc: null //快照
-		};
-	},
-	onLoad(e) {
-		_this = this;
-		if (e.dotype != undefined) this.dotype = e.dotype;
-		this.initCamera();
-	},
-	onReady() {
-		this.livePusher = uni.createLivePusherContext('livePusher', this);
-		this.startPreview(); //开启预览并设置摄像头
-		this.poenCarme();
-	},
-	methods: {
-		//轮询打开
-		poenCarme() {
-			//#ifdef APP-PLUS
-			if (plus.os.name == 'Android') {
-				this.poenCarmeInterval = setInterval(function() {
-					console.log(_this.camerastate);
-					if (!_this.camerastate) _this.startPreview();
-				}, 2500);
-			}
-			//#endif
-		},
-
-		//初始化相机
-		initCamera() {
-			uni.getSystemInfo({
-				success: function(res) {
-					_this.windowWidth = res.windowWidth;
-					_this.windowHeight = res.windowHeight;
-					_this.cameraWidth = res.windowWidth;
-					_this.cameraHeight = res.windowWidth * 1.5;
-				}
-			});
-		},
-
-		//开始预览
-		startPreview() {
-			this.livePusher.startPreview({
-				success: a => {
-					console.log(a);
-				}
-			});
-		},
-		//停止预览
-		stopPreview() {
-			this.livePusher.stopPreview({
-				success: a => {
-					_this.camerastate = false; //标记相机未启动
-				}
-			});
-		},
-
-		//状态
-		statechange(e) {
-			//状态改变
-			console.log(e);
-			if (e.detail.code == 1007) {
-				_this.camerastate = true;
-			} else if (e.detail.code == -1301) {
-				_this.camerastate = false;
-			}
-		},
-
-		//返回
-		back() {
-			uni.navigateBack();
-		},
-
-		//抓拍
-		snapshot() {
-			this.livePusher.snapshot({
-				success: e => {
-					_this.snapshotsrc = e.message.tempImagePath;
-					_this.stopPreview();
-					_this.setImage();
-					uni.navigateBack();
-				}
-			});
-		},
-
-		//反转
-		flip() {
-			this.livePusher.switchCamera();
-		},
-
-		//设置
-		setImage() {
-			let pages = getCurrentPages();
-			let prevPage = pages[pages.length - 2]; //上一个页面
-
-			//直接调用上一个页面的setImage()方法,把数据存到上一个页面中去
-			prevPage.$vm.setImage({ path: _this.snapshotsrc, dotype: this.dotype });
-		}
-	}
-};
-</script>
-
-<style lang="scss">
-.live-camera {
-	.preview {
-		justify-content: center;
-		align-items: center;
-		.outline-box {
-			position: absolute;
-			top: 0;
-			left: 0;
-			bottom: 0;
-			z-index: 99;
-			align-items: center;
-			justify-content: center;
-			.outline-img {
-				width: 750rpx;
-				height: 1125rpx;
-			}
-		}
-		.remind {
-			position: absolute;
-			top: 880rpx;
-			width: 750rpx;
-			z-index: 100;
-			align-items: center;
-			justify-content: center;
-			.remind-text {
-				color: #dddddd;
-				font-weight: bold;
-			}
-		}
-	}
-	.menu {
-		position: absolute;
-		left: 0;
-		bottom: 0;
-		width: 750rpx;
-		height: 180rpx;
-		z-index: 98;
-		align-items: center;
-		justify-content: center;
-		.menu-mask {
-			position: absolute;
-			left: 0;
-			bottom: 0;
-			width: 750rpx;
-			height: 180rpx;
-			z-index: 98;
-		}
-		.menu-back {
-			position: absolute;
-			left: 30rpx;
-			bottom: 50rpx;
-			width: 80rpx;
-			height: 80rpx;
-			z-index: 99;
-			align-items: center;
-			justify-content: center;
-		}
-		.menu-snapshot {
-			width: 130rpx;
-			height: 130rpx;
-			z-index: 99;
-		}
-		.menu-flip {
-			position: absolute;
-			right: 30rpx;
-			bottom: 50rpx;
-			width: 80rpx;
-			height: 80rpx;
-			z-index: 99;
-			align-items: center;
-			justify-content: center;
-		}
-	}
-}
-</style>

+ 0 - 214
pages/mine/camera/portrait/portrait.nvue

@@ -1,214 +0,0 @@
-<template>
-	<view class="live-camera" :style="{ width: windowWidth, height: windowHeight }">
-		<live-pusher
-			id="livePusher"
-			ref="livePusher"
-			class="livePusher"
-			mode="FHD"
-			beauty="0"
-			whiteness="0"
-			:aspect="aspect"
-			min-bitrate="1000"
-			audio-quality="16KHz"
-			device-position="back"
-			:auto-focus="true"
-			:muted="true"
-			:enable-camera="true"
-			:enable-mic="false"
-			:zoom="false"
-			:style="{ width: windowWidth, height: windowHeight }"
-		></live-pusher>
-
-		<!--提示语-->
-		<cover-view class="remind">
-			<text class="remind-text" style="">{{ message }}</text>
-		</cover-view>
-
-		<!--辅助线-->
-		<cover-view class="outline">
-			<cover-image class="outline" src="/static/live-camera/outline/portrait.png" style=""></cover-image>
-		</cover-view>
-		
-
-		<view class="menu">
-			<!--底部菜单区域背景-->
-			<cover-image class="menu-mask" src="/static/live-camera/bar.png"></cover-image>
-
-			<!--返回键-->
-			<cover-image class="menu-back" @tap="back" src="/static/live-camera/back.png"></cover-image>
-
-			<!--快门键-->
-			<cover-image class="menu-snapshot" @tap="snapshot" src="/static/live-camera/shutter.png"></cover-image>
-
-			<!--反转键-->
-			<cover-image class="menu-flip" @tap="flip" src="/static/live-camera/flip.png"></cover-image>
-		</view>
-	</view>
-</template>
-
-<script>
-let _this = null;
-export default {
-	data() {
-		return {
-			message:'请拍摄苛学加',//提示
-			aspect: '2:3', //比例
-			windowWidth: '', //屏幕可用宽度
-			windowHeight: '', //屏幕可用高度
-			camerastate: false, //相机准备好了
-			livePusher: null, //流视频对象
-			snapshotsrc: null //快照
-		};
-	},
-	onLoad(e) {
-		_this = this;
-		this.initCamera();
-	},
-	onReady() {
-		this.livePusher = uni.createLivePusherContext('livePusher', this);
-		this.startPreview(); //开启预览并设置摄像头
-	},
-	methods: {
-		//初始化相机
-		initCamera() {
-			uni.getSystemInfo({
-				success: function(res) {
-					_this.windowWidth = res.windowWidth;
-					_this.windowHeight = res.windowHeight;
-					let zcs = _this.aliquot(_this.windowWidth, _this.windowHeight);
-					_this.aspect = _this.windowWidth / zcs + ':' + _this.windowHeight / zcs;
-				}
-			});
-		},
-
-		//整除数计算
-		aliquot(x, y) {
-			if (x % y == 0) return y;
-			return this.aliquot(y, x % y);
-		},
-
-		//开始预览
-		startPreview() {
-			this.livePusher.startPreview({
-				success: a => {
-					if (a.errMsg == 'startPreview:ok' || a.errMsg == 'operateLivePusher:ok') {
-						_this.camerastate = true; //标记相机启动成功
-					}
-				}
-			});
-		},
-		//停止预览
-		stopPreview() {
-			this.livePusher.stopPreview({
-				success: a => {
-					_this.camerastate = false; //标记相机未启动
-				}
-			});
-		},
-
-		//返回
-		back() {
-			uni.navigateBack();
-		},
-
-		//抓拍
-		snapshot() {
-			this.livePusher.snapshot({
-				success: e => {
-					_this.snapshotsrc = e.message.tempImagePath;
-					_this.stopPreview();
-					_this.setImage();
-					uni.navigateBack();
-				}
-			});
-		},
-
-		//反转
-		flip() {
-			this.livePusher.switchCamera();
-		},
-
-		//设置
-		setImage() {
-			let pages = getCurrentPages();
-			let prevPage = pages[pages.length - 2]; //上一个页面
-
-			//直接调用上一个页面的setImage()方法,把数据存到上一个页面中去
-			prevPage.$vm.setImage({ path: _this.snapshotsrc });
-		}
-	}
-};
-</script>
-
-<style lang="scss">
-.live-camera {
-	justify-content: center;
-	align-items: center;
-	.outline {
-		position: absolute;
-		top: 0;
-		left: 0;
-		bottom: 0;
-		width: 750rpx;
-		height: 1125rpx;
-		z-index: 99;
-		align-items: center;
-		justify-content: center;
-	}
-	.remind {
-		position: absolute;
-		top: 880rpx;
-		width: 750rpx;
-		z-index: 100;
-		align-items: center;
-		justify-content: center;
-		.remind-text {
-			color: #dddddd;
-			font-weight: bold;
-		}
-	}
-	.menu {
-		position: absolute;
-		left: 0;
-		bottom: 0;
-		width: 750rpx;
-		height: 180rpx;
-		z-index: 98;
-		align-items: center;
-		justify-content: center;
-		.menu-mask {
-			position: absolute;
-			left: 0;
-			bottom: 0;
-			width: 750rpx;
-			height: 180rpx;
-			z-index: 98;
-		}
-		.menu-back {
-			position: absolute;
-			left: 30rpx;
-			bottom: 50rpx;
-			width: 80rpx;
-			height: 80rpx;
-			z-index: 99;
-			align-items: center;
-			justify-content: center;
-		}
-		.menu-snapshot {
-			width: 130rpx;
-			height: 130rpx;
-			z-index: 99;
-		}
-		.menu-flip {
-			position: absolute;
-			right: 30rpx;
-			bottom: 50rpx;
-			width: 80rpx;
-			height: 80rpx;
-			z-index: 99;
-			align-items: center;
-			justify-content: center;
-		}
-	}
-}
-</style>

+ 0 - 259
pages/mine/camera/video/video.nvue

@@ -1,259 +0,0 @@
-<template>
-	<view class="live-camera" :style="{ width: windowWidth, height: windowHeight }">
-		<view class="preview" :style="{ width: windowWidth, height: windowHeight - 80 }">
-			<live-pusher id="livePusher" ref="livePusher" class="livePusher" mode="FHD" beauty="0" whiteness="0"
-				:aspect="aspect" min-bitrate="1000" audio-quality="16KHz" device-position="back" :auto-focus="true"
-				:muted="true" :enable-camera="true" :enable-mic="false" :zoom="false" @statechange="statechange"
-				:style="{ width: cameraWidth, height: cameraHeight }"></live-pusher>
-
-			<!--提示语-->
-			<cover-view class="remind">
-				<text class="remind-text" style="">{{ message }}</text>
-			</cover-view>
-
-			<!--辅助线-->
-			<cover-view class="outline-box" :style="{ width: windowWidth, height: windowHeight - 80 }">
-				<cover-image class="outline-img"
-					:src="dotype == 'idcardface' ? '/static/live-camera/outline/idcardface.png' : '/static/live-camera/outline/idcardbadge.png'"
-					style=""></cover-image>
-			</cover-view>
-		</view>
-
-		<view class="menu">
-			<!--底部菜单区域背景-->
-			<cover-image class="menu-mask" src="/static/live-camera/bar.png"></cover-image>
-
-			<!--返回键-->
-			<cover-image class="menu-back" @tap="back" src="/static/live-camera/back.png"></cover-image>
-
-			<!--快门键-->
-			<cover-image class="menu-snapshot" @tap="start" src="/static/live-camera/shutter.png"></cover-image>
-			<cover-image class="menu-snapshot" @tap="stop" src="/static/live-camera/shutter.png"></cover-image>
-
-			<!--反转键-->
-			<cover-image class="menu-flip" @tap="flip" src="/static/live-camera/flip.png"></cover-image>
-		</view>
-	</view>
-</template>
-
-<script>
-	let _this = null;
-	export default {
-		data() {
-			return {
-				poenCarmeInterval: null, //打开相机的轮询
-				dotype: 'face', //操作类型
-				message: '', //提示
-				aspect: '2:3', //比例
-				cameraWidth: '', //相机画面宽度
-				cameraHeight: '', //相机画面宽度
-				windowWidth: '', //屏幕可用宽度
-				windowHeight: '', //屏幕可用高度
-				camerastate: false, //相机准备好了
-				livePusher: null, //流视频对象
-				snapshotsrc: null //快照
-			};
-		},
-		onLoad(e) {
-			_this = this;
-			this.dotype = e.dotype;
-			this.initCamera();
-		},
-		onReady() {
-			this.livePusher = uni.createLivePusherContext('livePusher', this);
-			this.startPreview(); //开启预览并设置摄像头
-			this.poenCarme();
-		},
-		methods: {
-			//轮询打开
-			poenCarme() {
-				//#ifdef APP-PLUS
-				if (plus.os.name == 'Android') {
-					this.poenCarmeInterval = setInterval(function() {
-						console.log(_this.camerastate);
-						if (!_this.camerastate) _this.startPreview();
-					}, 2500);
-				}
-				//#endif
-			},
-			//初始化相机
-			initCamera() {
-				//处理安卓手机异步授权问题
-				uni.getSystemInfo({
-					success: function(res) {
-						_this.windowWidth = res.windowWidth;
-						_this.windowHeight = res.windowHeight;
-						_this.cameraWidth = res.windowWidth;
-						_this.cameraHeight = res.windowWidth * 1.5;
-					}
-				});
-			},
-
-			//开始预览
-			startPreview() {
-				this.livePusher.startPreview({
-					success: a => {
-						console.log(a);
-					}
-				});
-			},
-
-			//停止预览
-			stopPreview() {
-				this.livePusher.stopPreview({
-					success: a => {
-						_this.camerastate = false; //标记相机未启动
-					}
-				});
-			},
-
-			//状态
-			statechange(e) {
-				console.log('````````````````````````````````````')
-				//状态改变
-				console.log(e);
-				if (e.detail.code == 1007) {
-					_this.camerastate = true;
-				} else if (e.detail.code == -1301) {
-					_this.camerastate = false;
-				}
-			},
-
-			//返回
-			back() {
-				uni.navigateBack();
-			},
-			start: function() {
-				console.log('开启直播流')
-				this.livePusher.start({
-					success: (a) => {
-						console.log("livePusher.start:" + JSON.stringify(a));
-					}
-				});
-			},
-			stop: function() {
-				console.log('结束直播流')
-				this.livePusher.stop({
-					success: (a) => {
-						console.log("livePusher.end:" + JSON.stringify(a));
-					}
-				});
-			},
-			//抓拍
-			snapshot() {
-
-				// this.livePusher.snapshot({
-				// 	success: e => {
-				// 		_this.snapshotsrc = e.message.tempImagePath;
-				// 		_this.stopPreview();
-				// 		_this.setImage();
-				// 		uni.navigateBack();
-				// 	}
-				// });
-			},
-
-			//反转
-			flip() {
-				this.livePusher.switchCamera();
-			},
-
-			//设置
-			setImage() {
-				let pages = getCurrentPages();
-				let prevPage = pages[pages.length - 2]; //上一个页面
-
-				//直接调用上一个页面的setImage()方法,把数据存到上一个页面中去
-				prevPage.$vm.setImage({
-					path: _this.snapshotsrc,
-					dotype: this.dotype
-				});
-			}
-		}
-	};
-</script>
-
-<style lang="scss">
-	.live-camera {
-		.preview {
-			justify-content: center;
-			align-items: center;
-
-			.outline-box {
-				position: absolute;
-				top: 0;
-				left: 0;
-				bottom: 0;
-				z-index: 99;
-				align-items: center;
-				justify-content: center;
-
-				.outline-img {
-					width: 750rpx;
-					height: 1125rpx;
-				}
-			}
-
-			.remind {
-				position: absolute;
-				top: 880rpx;
-				width: 750rpx;
-				z-index: 100;
-				align-items: center;
-				justify-content: center;
-
-				.remind-text {
-					color: #dddddd;
-					font-weight: bold;
-				}
-			}
-		}
-
-		.menu {
-			position: absolute;
-			left: 0;
-			bottom: 0;
-			width: 750rpx;
-			height: 180rpx;
-			z-index: 98;
-			align-items: center;
-			justify-content: center;
-
-			.menu-mask {
-				position: absolute;
-				left: 0;
-				bottom: 0;
-				width: 750rpx;
-				height: 180rpx;
-				z-index: 98;
-			}
-
-			.menu-back {
-				position: absolute;
-				left: 30rpx;
-				bottom: 50rpx;
-				width: 80rpx;
-				height: 80rpx;
-				z-index: 99;
-				align-items: center;
-				justify-content: center;
-			}
-
-			.menu-snapshot {
-				width: 130rpx;
-				height: 130rpx;
-				z-index: 99;
-			}
-
-			.menu-flip {
-				position: absolute;
-				right: 30rpx;
-				bottom: 50rpx;
-				width: 80rpx;
-				height: 80rpx;
-				z-index: 99;
-				align-items: center;
-				justify-content: center;
-			}
-		}
-	}
-</style>

+ 0 - 228
pages/mine/camera/watermark/watermark.nvue

@@ -1,228 +0,0 @@
-<template>
-	<view class="live-camera" :style="{ width: windowWidth, height: windowHeight }">
-		<view class="preview" :style="{ width: windowWidth, height: windowHeight}">
-			<live-pusher
-				id="livePusher"
-				ref="livePusher"
-				class="livePusher"
-				mode="FHD"
-				beauty="0"
-				whiteness="0"
-				:aspect="aspect"
-				min-bitrate="1000"
-				audio-quality="16KHz"
-				device-position="back"
-				:auto-focus="true"
-				:muted="true"
-				:enable-camera="true"
-				:enable-mic="false"
-				:zoom="false"
-				@statechange="statechange"
-				:style="{ width: windowWidth, height: windowHeight }"
-			></live-pusher>
-			<!--提示语-->
-			<cover-view class="remind">
-				<text class="remind-text" style="">{{ message }}</text>
-			</cover-view>
-		</view>
-		<view class="menu">
-			<!--底部菜单区域背景-->
-			<cover-image class="menu-mask" src="/static/live-camera/bar.png"></cover-image>
-
-			<!--返回键-->
-			<cover-image class="menu-back" @tap="back" src="/static/live-camera/back.png"></cover-image>
-
-			<!--快门键-->
-			<cover-image class="menu-snapshot" @tap="snapshot" src="/static/live-camera/shutter.png"></cover-image>
-
-			<!--反转键-->
-			<cover-image class="menu-flip" @tap="flip" src="/static/live-camera/flip.png"></cover-image>
-		</view>
-	</view>
-</template>
-
-<script>
-let _this = null;
-export default {
-	data() {
-		return {
-			dotype:'watermark',
-			message:'live-camer',//水印内容
-			poenCarmeInterval: null, //打开相机的轮询
-			aspect: '2:3', //比例
-			windowWidth: '', //屏幕可用宽度
-			windowHeight: '', //屏幕可用高度
-			camerastate: false, //相机准备好了
-			livePusher: null, //流视频对象
-			snapshotsrc: null //快照
-		};
-	},
-	onLoad(e) {
-		_this = this;
-		if (e.dotype != undefined) this.dotype = e.dotype;
-		this.initCamera();
-	},
-	onReady() {
-		this.livePusher = uni.createLivePusherContext('livePusher', this);
-		this.startPreview(); //开启预览并设置摄像头
-		this.poenCarme();
-	},
-	methods: {
-		//轮询打开
-		poenCarme() {
-			//#ifdef APP-PLUS
-			if (plus.os.name == 'Android') {
-				this.poenCarmeInterval = setInterval(function() {
-					console.log(_this.camerastate);
-					if (!_this.camerastate) _this.startPreview();
-				}, 2500);
-			}
-			//#endif
-		},
-		//初始化相机
-		initCamera() {
-			uni.getSystemInfo({
-				success: function(res) {
-					_this.windowWidth = res.windowWidth;
-					_this.windowHeight = res.windowHeight;
-					let zcs = _this.aliquot(_this.windowWidth, _this.windowHeight);
-					_this.aspect = _this.windowWidth / zcs + ':' + _this.windowHeight / zcs;
-					console.log('画面比例:'+_this.aspect);
-				}
-			});
-		},
-
-		//整除数计算
-		aliquot(x, y) {
-			if (x % y == 0) return y;
-			return this.aliquot(y, x % y);
-		},
-
-		//开始预览
-		startPreview() {
-			this.livePusher.startPreview({
-				success: a => {
-					console.log(a);
-				}
-			});
-		},
-
-		//停止预览
-		stopPreview() {
-			this.livePusher.stopPreview({
-				success: a => {
-					_this.camerastate = false; //标记相机未启动
-				}
-			});
-		},
-
-		//状态
-		statechange(e) {
-			//状态改变
-			console.log(e);
-			if (e.detail.code == 1007) {
-				_this.camerastate = true;
-			} else if (e.detail.code == -1301) {
-				_this.camerastate = false;
-			}
-		},
-
-		//返回
-		back() {
-			uni.navigateBack();
-		},
-
-		//抓拍
-		snapshot() {
-			this.livePusher.snapshot({
-				success: e => {
-					_this.snapshotsrc = e.message.tempImagePath;
-					_this.stopPreview();
-					_this.setImage();
-					uni.navigateBack();
-				}
-			});
-		},
-
-		//反转
-		flip() {
-			this.livePusher.switchCamera();
-		},
-
-		//设置
-		setImage() {
-			let pages = getCurrentPages();
-			let prevPage = pages[pages.length - 2]; //上一个页面
-
-			//直接调用上一个页面的setImage()方法,把数据存到上一个页面中去
-			prevPage.$vm.setImage({ path: _this.snapshotsrc , dotype: this.dotype });
-		}
-	}
-};
-</script>
-
-<style lang="scss">
-.live-camera {
-	justify-content: center;
-	align-items: center;
-	.preview {
-		justify-content: center;
-		align-items: center;
-		.remind {
-			position: absolute;
-			top: 60rpx;
-			left: 20rpx;
-			width: 130px;
-			z-index: 100;
-			.remind-text {
-				color: #dddddd;
-				font-size: 40rpx;
-				text-shadow: #fff 1px 0 0, #fff 0 1px 0, #fff -1px 0 0, #fff 0 -1px 0;
-			}
-		}
-	}
-	.menu {
-		position: absolute;
-		left: 0;
-		bottom: 0;
-		width: 750rpx;
-		height: 180rpx;
-		z-index: 98;
-		align-items: center;
-		justify-content: center;
-		.menu-mask {
-			position: absolute;
-			left: 0;
-			bottom: 0;
-			width: 750rpx;
-			height: 180rpx;
-			z-index: 98;
-		}
-		.menu-back {
-			position: absolute;
-			left: 30rpx;
-			bottom: 50rpx;
-			width: 80rpx;
-			height: 80rpx;
-			z-index: 99;
-			align-items: center;
-			justify-content: center;
-		}
-		.menu-snapshot {
-			width: 130rpx;
-			height: 130rpx;
-			z-index: 99;
-		}
-		.menu-flip {
-			position: absolute;
-			right: 30rpx;
-			bottom: 50rpx;
-			width: 80rpx;
-			height: 80rpx;
-			z-index: 99;
-			align-items: center;
-			justify-content: center;
-		}
-	}
-}
-</style>

+ 85 - 77
pages/mine/cargoowner/editpersonalinformation.vue

@@ -48,20 +48,22 @@
 					</u-radio-group>
 					</u-radio-group>
 				</view>
 				</view>
 			</view>
 			</view>
-			<view style='margin-top:10px;padding-bottom:11px;' class="flex row flex-space-between" >
+			<view style='margin-top:10px;padding-bottom:11px;' class="flex row flex-space-between">
 				<view class="left-text" style='font-size:14px;'>称呼</view>
 				<view class="left-text" style='font-size:14px;'>称呼</view>
 				<view style='padding-right:10px;' class='flex flex-space-between'>
 				<view style='padding-right:10px;' class='flex flex-space-between'>
 					<view style="width: 160rpx;">
 					<view style="width: 160rpx;">
-						<u--input style='padding-right:4px;' placeholder="输入姓氏" class="ch-style" inputAlign='right' border="none"
-							v-model="dataDetails.call">
+						<u--input style='padding-right:4px;' placeholder="输入姓氏" class="ch-style" inputAlign='right'
+							border="none" v-model="dataDetails.call">
 						</u--input>
 						</u--input>
 					</view>
 					</view>
-					<view style='position:relative;top:0px;font-size:15px;' class="flex align-center" v-if="dataDetails.sex=='男'">先生</view>
+					<view style='position:relative;top:0px;font-size:15px;' class="flex align-center"
+						v-if="dataDetails.sex=='男'">先生</view>
 					<view style='position:relative;top:0px;font-size:15px;' class="flex align-center" v-else>女士</view>
 					<view style='position:relative;top:0px;font-size:15px;' class="flex align-center" v-else>女士</view>
 				</view>
 				</view>
 			</view>
 			</view>
 
 
-			<view style='border-bottom:1px solid #eee;margin-top:10px;padding-bottom:11px;' class="flex row width100 flex-space-between">
+			<view style='border-bottom:1px solid #eee;margin-top:10px;padding-bottom:11px;'
+				class="flex row width100 flex-space-between">
 				<view class="left-text" style='font-size:14px;'>联系电话</view>
 				<view class="left-text" style='font-size:14px;'>联系电话</view>
 				<view style='padding-right:10px;' class="flex">
 				<view style='padding-right:10px;' class="flex">
 					<u--input disabledColor='#fff' disabled placeholder="输入联系电话" inputAlign='right' border="none"
 					<u--input disabledColor='#fff' disabled placeholder="输入联系电话" inputAlign='right' border="none"
@@ -71,8 +73,8 @@
 			</view>
 			</view>
 			<view style='padding-right:10px;margin-top:10px;padding-bottom:11px;' class="flex row">
 			<view style='padding-right:10px;margin-top:10px;padding-bottom:11px;' class="flex row">
 				<view class="left-text">身份证号</view>
 				<view class="left-text">身份证号</view>
-				<u--input :disabled='dataDetails.id&&firstAuthentication.passOnce?true:false' placeholder="请输入身份证号" inputAlign='right' border="none"
-					v-model="dataDetails.cardNumber" maxlength="18">
+				<u--input :disabled='dataDetails.id&&firstAuthentication.passOnce?true:false' placeholder="请输入身份证号"
+					inputAlign='right' border="none" v-model="dataDetails.cardNumber" maxlength="18">
 				</u--input>
 				</u--input>
 			</view>
 			</view>
 
 
@@ -87,14 +89,16 @@
 				</view>
 				</view>
 			</view>
 			</view>
 			<view class="bz">注:个人信息审核通过后自动认证成为个人货主。</view>
 			<view class="bz">注:个人信息审核通过后自动认证成为个人货主。</view>
-			<itmister-date-picker :overdueContent="'身份证已过期'" :dateStatus="1" :periodOfValidity="true" :futureYear="30" :checkYear="year" :checkMonth="month" :checkDay="day" ref="dateValidityPeriod"  @dateConfirm="confirmValidityPeriod"></itmister-date-picker>
+			<itmister-date-picker :overdueContent="'身份证已过期'" :dateStatus="1" :periodOfValidity="true" :futureYear="30"
+				:checkYear="year" :checkMonth="month" :checkDay="day" ref="dateValidityPeriod"
+				@dateConfirm="confirmValidityPeriod"></itmister-date-picker>
 		</view>
 		</view>
 
 
 		<view class="content4">
 		<view class="content4">
 			<view style='margin:0 0 18px;font-size:12px;color:#999;' class='flex items-center'>
 			<view style='margin:0 0 18px;font-size:12px;color:#999;' class='flex items-center'>
 				<u--image style='margin-right:5px;margin-top: 4rpx;' @click='consent'
 				<u--image style='margin-right:5px;margin-top: 4rpx;' @click='consent'
 					:src="checked?'../../../static/mine/duihao@2x.png':'../../../static/mine/wxz.png'" width="12px"
 					:src="checked?'../../../static/mine/duihao@2x.png':'../../../static/mine/wxz.png'" width="12px"
-					height="12px" ></u--image>
+					height="12px"></u--image>
 				我已阅读并同意全部细则
 				我已阅读并同意全部细则
 			</view>
 			</view>
 			<view class='line'></view>
 			<view class='line'></view>
@@ -132,7 +136,7 @@
 				radioCustomStyle: {
 				radioCustomStyle: {
 					margin: '0 20rpx 0 0'
 					margin: '0 20rpx 0 0'
 				},
 				},
-				submitstatus:false,
+				submitstatus: false,
 				radiolist1: [{
 				radiolist1: [{
 						name: '男',
 						name: '男',
 						disabled: false
 						disabled: false
@@ -142,15 +146,15 @@
 						disabled: false
 						disabled: false
 					},
 					},
 				],
 				],
-				year:'',
-				month:'',
-				day:'',
+				year: '',
+				month: '',
+				day: '',
 				uploadType: '',
 				uploadType: '',
 				isShowimgType: false,
 				isShowimgType: false,
 				dataDetails: {
 				dataDetails: {
 					name: '',
 					name: '',
 					phone: '',
 					phone: '',
-					sex:'男',
+					sex: '男',
 					commonId: '',
 					commonId: '',
 					cardNumber: '',
 					cardNumber: '',
 					cardAddressUrl: '',
 					cardAddressUrl: '',
@@ -165,23 +169,23 @@
 				validityPeriod: [],
 				validityPeriod: [],
 				isShowimgType: false,
 				isShowimgType: false,
 				index: '',
 				index: '',
-				firstAuthentication:{}
+				firstAuthentication: {}
 			};
 			};
 		},
 		},
 		onLoad(options) {
 		onLoad(options) {
 			// this.get_camera_permission()
 			// this.get_camera_permission()
 			var _this = this;
 			var _this = this;
 			// console.log(options)
 			// console.log(options)
-			if(JSON.stringify(options) != "{}"){
+			if (JSON.stringify(options) != "{}") {
 				this.dataDetails = options
 				this.dataDetails = options
-				if(this.dataDetails.cardValidityDate&&this.dataDetails.cardValidityDate!='长期'){
-					const arr=this.dataDetails.cardValidityDate.split('-')
-					this.year=arr[0]
-					this.month=arr[1]
-					this.day=arr[2]
+				if (this.dataDetails.cardValidityDate && this.dataDetails.cardValidityDate != '长期') {
+					const arr = this.dataDetails.cardValidityDate.split('-')
+					this.year = arr[0]
+					this.month = arr[1]
+					this.day = arr[2]
 				}
 				}
-				if(this.dataDetails.cardValidityDate=='长期'){
-					this.year='长期'
+				if (this.dataDetails.cardValidityDate == '长期') {
+					this.year = '长期'
 				}
 				}
 			}
 			}
 			this.dataDetails.phone = this.userInfo.phone
 			this.dataDetails.phone = this.userInfo.phone
@@ -192,7 +196,7 @@
 				phone: this.userInfo.phone
 				phone: this.userInfo.phone
 			}).then(res => {
 			}).then(res => {
 				uni.setStorageSync("firstAuthentication", res.data)
 				uni.setStorageSync("firstAuthentication", res.data)
-				this.firstAuthentication=res.data
+				this.firstAuthentication = res.data
 			})
 			})
 		},
 		},
 		computed: {
 		computed: {
@@ -200,20 +204,20 @@
 		},
 		},
 		methods: {
 		methods: {
 			async get_camera_permission() {
 			async get_camera_permission() {
-				var photol=await permision.requestAndroidPermission("android.permission.CAMERA")
-				if(photol == false){
+				var photol = await permision.requestAndroidPermission("android.permission.CAMERA")
+				if (photol == false) {
 					uni.showModal({
 					uni.showModal({
 						title: '提示',
 						title: '提示',
 						content: '您已经关闭相机权限,去设置',
 						content: '您已经关闭相机权限,去设置',
-						success: function (res) {
+						success: function(res) {
 							if (res.confirm) {
 							if (res.confirm) {
 								permision.gotoAppPermissionSetting()
 								permision.gotoAppPermissionSetting()
-									            // plus.runtime.openURL("app-settings:");
+								// plus.runtime.openURL("app-settings:");
 							} else if (res.cancel) {
 							} else if (res.cancel) {
 								console.log('用户点击取消');
 								console.log('用户点击取消');
 							}
 							}
 						}
 						}
-					});	
+					});
 				}
 				}
 			},
 			},
 			nameinput() {
 			nameinput() {
@@ -222,7 +226,7 @@
 			// 性别切换
 			// 性别切换
 			radioChange(n) {
 			radioChange(n) {
 				console.log('radioChange', n);
 				console.log('radioChange', n);
-				
+
 				this.dataDetails.sex = n
 				this.dataDetails.sex = n
 				this.$forceUpdate()
 				this.$forceUpdate()
 				console.log(this.dataDetails.sex)
 				console.log(this.dataDetails.sex)
@@ -300,7 +304,7 @@
 				// }
 				// }
 			},
 			},
 			confirmValidityPeriod(date) {
 			confirmValidityPeriod(date) {
-				this.dataDetails.cardValidityDate=date.date
+				this.dataDetails.cardValidityDate = date.date
 			},
 			},
 			uploadImg(type, index) {
 			uploadImg(type, index) {
 				this.get_camera_permission()
 				this.get_camera_permission()
@@ -325,7 +329,7 @@
 					})
 					})
 					return true
 					return true
 				}
 				}
-				if (this.dataDetails.call.length==0) {
+				if (this.dataDetails.call.length == 0) {
 					this.$refs.uToast.show({
 					this.$refs.uToast.show({
 						type: 'error',
 						type: 'error',
 						message: "称呼不能为空!",
 						message: "称呼不能为空!",
@@ -339,7 +343,7 @@
 					})
 					})
 					return true
 					return true
 				}
 				}
-				
+
 				if (uni.$u.test.isEmpty(this.dataDetails.cardValidityDate)) {
 				if (uni.$u.test.isEmpty(this.dataDetails.cardValidityDate)) {
 					this.$refs.uToast.show({
 					this.$refs.uToast.show({
 						type: 'error',
 						type: 'error',
@@ -347,10 +351,10 @@
 					})
 					})
 					return true
 					return true
 				}
 				}
-				
-				if(this.dataDetails.cardValidityDate!='长期'){
-					var arr=this.dataDetails.cardValidityDate.split('-')
-					if(!this.$helper.periodOfValidity(arr[0],arr[1],arr[2])){
+
+				if (this.dataDetails.cardValidityDate != '长期') {
+					var arr = this.dataDetails.cardValidityDate.split('-')
+					if (!this.$helper.periodOfValidity(arr[0], arr[1], arr[2])) {
 						this.$refs.uToast.show({
 						this.$refs.uToast.show({
 							type: 'error',
 							type: 'error',
 							message: "身份证已过期!",
 							message: "身份证已过期!",
@@ -396,36 +400,37 @@
 			},
 			},
 			submit() {
 			submit() {
 				if (this.validate()) return
 				if (this.validate()) return
-					uni.showLoading({
-						title: '加载中',
-						mask: true
+				uni.showLoading({
+					title: '加载中',
+					mask: true
+				})
+				var _this = this
+				delete _this.dataDetails.hyCargoOwnerCompInfoList
+				_this.dataDetails.accountNumber = uni.getStorageSync("userInfo").phone
+				_this.$request.baseRequest('post', '/cargoOwnerInfo/api/editCargoOwner', _this.dataDetails).then(res => {
+						// console.log(res)
+						// uni.$u.route('/pages/mine/cargoowner/cargoowner')
+						uni.hideLoading()
+						uni.$u.toast('提交成功')
+						uni.navigateBack({
+							delta: 1
+						})
 					})
 					})
-					var _this = this
-					delete _this.dataDetails.hyCargoOwnerCompInfoList
-					_this.dataDetails.accountNumber = uni.getStorageSync("userInfo").phone
-					_this.$request.baseRequest('post', '/cargoOwnerInfo/api/editCargoOwner', _this.dataDetails).then(res => {
-							// console.log(res)
-							// uni.$u.route('/pages/mine/cargoowner/cargoowner')
-							uni.hideLoading()
-							uni.$u.toast('提交成功')
-							uni.navigateBack({
-								delta: 1
-							})
+					.catch(res => {
+						console.log(res)
+						uni.hideLoading()
+						uni.showToast({
+							title: res.message,
+							icon: 'none',
+							duration: 2000
 						})
 						})
-						.catch(res => {
-							console.log(res)
-							uni.hideLoading()
-							uni.showToast({
-								title: res.message,
-								icon: 'none',
-								duration: 2000
-							})
-						});
+					});
 			},
 			},
 			photograph() {
 			photograph() {
 				console.log('拍照')
 				console.log('拍照')
 				let that = this;
 				let that = this;
 				uni.chooseImage({
 				uni.chooseImage({
+					sizeType: ['compressed'],
 					count: 1,
 					count: 1,
 					success: function(res) {
 					success: function(res) {
 						console.log(JSON.stringify(res.tempFilePaths));
 						console.log(JSON.stringify(res.tempFilePaths));
@@ -462,21 +467,22 @@
 													flag: 1
 													flag: 1
 												}).then(res => {
 												}).then(res => {
 												// if(!that.dataDetails.id){
 												// if(!that.dataDetails.id){
-													if (res.data.recPersonNo) {
-														that.dataDetails.cardNumber = res.data.recPersonNo.replace(/\s*/g,"")
-														if(that.dataDetails.cardNumber[16]%2==0){
-															that.dataDetails.sex='女'
-														}else{
-															that.dataDetails.sex='男'
-														}
-													}
-													if (res.data.recPerson) {
-														that.dataDetails.name = res.data.recPerson
-														that.dataDetails.call=that.dataDetails.name[0]
+												if (res.data.recPersonNo) {
+													that.dataDetails.cardNumber = res.data.recPersonNo
+														.replace(/\s*/g, "")
+													if (that.dataDetails.cardNumber[16] % 2 == 0) {
+														that.dataDetails.sex = '女'
+													} else {
+														that.dataDetails.sex = '男'
 													}
 													}
+												}
+												if (res.data.recPerson) {
+													that.dataDetails.name = res.data.recPerson
+													that.dataDetails.call = that.dataDetails.name[0]
+												}
 												// }
 												// }
-												
-												
+
+
 												that.$forceUpdate()
 												that.$forceUpdate()
 											})
 											})
 											.catch(res => {
 											.catch(res => {
@@ -713,9 +719,11 @@
 	.bz {
 	.bz {
 		font-size: 28rpx;
 		font-size: 28rpx;
 	}
 	}
-	.right{
-		width:16px;height:16px;
-		position:relative;
-		top:1px;
+
+	.right {
+		width: 16px;
+		height: 16px;
+		position: relative;
+		top: 1px;
 	}
 	}
 </style>
 </style>

+ 50 - 47
pages/mine/company/addcompany.vue

@@ -126,7 +126,8 @@
 			<view class="flex row border-bottom mt20 flex-space-between">
 			<view class="flex row border-bottom mt20 flex-space-between">
 				<view class="left-text">卡号</view>
 				<view class="left-text">卡号</view>
 				<view class="flex right">
 				<view class="flex right">
-					<u--input maxlength='19' placeholder="输入银行卡号码" inputAlign='right' border="none" v-model="dataDetails.bankCard">
+					<u--input maxlength='19' placeholder="输入银行卡号码" inputAlign='right' border="none"
+						v-model="dataDetails.bankCard">
 					</u--input>
 					</u--input>
 					<view class="" @click="uploadImg(5)" style="display: flex;align-items: center;margin-left: 20rpx;">
 					<view class="" @click="uploadImg(5)" style="display: flex;align-items: center;margin-left: 20rpx;">
 						<image src="../../../static/images/xiangji-2.png" mode="" style="width: 40rpx ;height: 40rpx;">
 						<image src="../../../static/images/xiangji-2.png" mode="" style="width: 40rpx ;height: 40rpx;">
@@ -252,7 +253,8 @@
 			<!-- <view @click="goDetailPage('/pages/mine/company/addcompanythree')" class='newlyIncreased'>下一步</view> -->
 			<!-- <view @click="goDetailPage('/pages/mine/company/addcompanythree')" class='newlyIncreased'>下一步</view> -->
 			<view @click="$u.throttle(submit(), 1000)" class='newlyIncreased'>提交</view>
 			<view @click="$u.throttle(submit(), 1000)" class='newlyIncreased'>提交</view>
 		</view>
 		</view>
-		<itmister-date-picker :overdueContent="overdueContent" :dateStatus="1" :periodOfValidity="true" :futureYear="30"  ref="dateValidityPeriod"  @dateConfirm="confirmValidityPeriod"></itmister-date-picker>
+		<itmister-date-picker :overdueContent="overdueContent" :dateStatus="1" :periodOfValidity="true" :futureYear="30"
+			ref="dateValidityPeriod" @dateConfirm="confirmValidityPeriod"></itmister-date-picker>
 		<u-picker :show="isShowBank" :columns="columns" :closeOnClickOverlay='true' @close='zhBankClose'
 		<u-picker :show="isShowBank" :columns="columns" :closeOnClickOverlay='true' @close='zhBankClose'
 			@cancel='zhBankClose' @confirm='confirmBank'></u-picker>
 			@cancel='zhBankClose' @confirm='confirmBank'></u-picker>
 		</u-picker>
 		</u-picker>
@@ -285,7 +287,7 @@
 				value: false,
 				value: false,
 				isShowBank: false,
 				isShowBank: false,
 				columns: [],
 				columns: [],
-				overdueContent:'',
+				overdueContent: '',
 				radioCustomStyle: {
 				radioCustomStyle: {
 					margin: '0 0 0 20rpx'
 					margin: '0 0 0 20rpx'
 				},
 				},
@@ -359,10 +361,10 @@
 			},
 			},
 			selectData(num) {
 			selectData(num) {
 				this.dataType = num
 				this.dataType = num
-				if(num==0){
-					this.overdueContent='营业执照已过期'
-				}else if(num==1){
-					this.overdueContent='身份证已过期'
+				if (num == 0) {
+					this.overdueContent = '营业执照已过期'
+				} else if (num == 1) {
+					this.overdueContent = '身份证已过期'
 				}
 				}
 				this.$refs.dateValidityPeriod.show()
 				this.$refs.dateValidityPeriod.show()
 			},
 			},
@@ -415,14 +417,14 @@
 			// 	// this.isShowimgType = true
 			// 	// this.isShowimgType = true
 			// },
 			// },
 			confirmValidityPeriod(date) {
 			confirmValidityPeriod(date) {
-				console.log(date,this.dataType)
+				console.log(date, this.dataType)
 				switch (this.dataType) {
 				switch (this.dataType) {
 					case 0:
 					case 0:
-							this.dataDetails.businessTermDate = date.date
+						this.dataDetails.businessTermDate = date.date
 
 
 						break
 						break
 					case 1:
 					case 1:
-							this.dataDetails.cardValidityDate = date.date
+						this.dataDetails.cardValidityDate = date.date
 						break
 						break
 				}
 				}
 				this.$forceUpdate()
 				this.$forceUpdate()
@@ -529,7 +531,7 @@
 						commonId: this.userInfo.id
 						commonId: this.userInfo.id
 					}).then(res => {
 					}).then(res => {
 						if (res.code == 200) {
 						if (res.code == 200) {
-							console.log(this,res.data)
+							console.log(this, res.data)
 							if (uni.getStorageSync('companydata')) {
 							if (uni.getStorageSync('companydata')) {
 								this.dataDetails = uni.getStorageSync('companydata')
 								this.dataDetails = uni.getStorageSync('companydata')
 								if (!this.dataDetails.businessLicenseAddressUrl) {
 								if (!this.dataDetails.businessLicenseAddressUrl) {
@@ -543,7 +545,7 @@
 							that.dataDetails.cardBackAddressUrl = res.data.cardBackAddressUrl
 							that.dataDetails.cardBackAddressUrl = res.data.cardBackAddressUrl
 							that.dataDetails.cardNumber = res.data.cardNumber
 							that.dataDetails.cardNumber = res.data.cardNumber
 							that.dataDetails.cardValidityDate = res.data.cardValidityDate
 							that.dataDetails.cardValidityDate = res.data.cardValidityDate
-							
+
 						}
 						}
 					})
 					})
 					.catch(res => {
 					.catch(res => {
@@ -638,43 +640,43 @@
 					})
 					})
 					return true
 					return true
 				}
 				}
-				if (this.dataDetails.unifiedSocialCreditCode.length!=18) {
+				if (this.dataDetails.unifiedSocialCreditCode.length != 18) {
 					this.$refs.uToast.show({
 					this.$refs.uToast.show({
 						type: 'error',
 						type: 'error',
 						message: "统一社会信用代码输出错误!",
 						message: "统一社会信用代码输出错误!",
 					})
 					})
 					return true
 					return true
 				}
 				}
-				if(uni.$u.test.isEmpty(this.dataDetails.bankCard)){
+				if (uni.$u.test.isEmpty(this.dataDetails.bankCard)) {
 					this.$refs.uToast.show({
 					this.$refs.uToast.show({
 						type: 'error',
 						type: 'error',
 						message: "卡号不能为空!",
 						message: "卡号不能为空!",
 					})
 					})
 					return true
 					return true
 				}
 				}
-				if(this.dataDetails.bankCard.length<16||this.dataDetails.bankCard.length>19){
+				if (this.dataDetails.bankCard.length < 16 || this.dataDetails.bankCard.length > 19) {
 					this.$refs.uToast.show({
 					this.$refs.uToast.show({
 						type: 'error',
 						type: 'error',
 						message: "卡号输出错误!",
 						message: "卡号输出错误!",
 					})
 					})
 					return true
 					return true
 				}
 				}
-				
-				if(uni.$u.test.isEmpty(this.dataDetails.bankDeposit)){
+
+				if (uni.$u.test.isEmpty(this.dataDetails.bankDeposit)) {
 					this.$refs.uToast.show({
 					this.$refs.uToast.show({
 						type: 'error',
 						type: 'error',
 						message: "开户行不能为空!",
 						message: "开户行不能为空!",
 					})
 					})
 					return true
 					return true
 				}
 				}
-				if(uni.$u.test.isEmpty(this.dataDetails.bankDepositBranch)){
+				if (uni.$u.test.isEmpty(this.dataDetails.bankDepositBranch)) {
 					this.$refs.uToast.show({
 					this.$refs.uToast.show({
 						type: 'error',
 						type: 'error',
 						message: "开户支行不能为空!",
 						message: "开户支行不能为空!",
 					})
 					})
 					return true
 					return true
 				}
 				}
-				
+
 				//先注释掉
 				//先注释掉
 				// if (this.dataDetails.advanceFreightService == 1 && uni.$u.test.isEmpty(this.dataDetails
 				// if (this.dataDetails.advanceFreightService == 1 && uni.$u.test.isEmpty(this.dataDetails
 				// 		.propertyAddressUrl)) {
 				// 		.propertyAddressUrl)) {
@@ -704,38 +706,38 @@
 			},
 			},
 			submit() {
 			submit() {
 				if (this.validate()) return
 				if (this.validate()) return
-					if (!this.consentStatus) {
+				if (!this.consentStatus) {
+					uni.showToast({
+						title: '请勾选协议',
+						icon: 'none',
+						duration: 2000
+					})
+					return
+				}
+				uni.showLoading({
+					title: '加载中',
+					mask: true
+				})
+				var _this = this
+				this.$request.baseRequest('post', '/companyInfo/api/addCompanyInfo', _this.dataDetails).then(res => {
+						uni.hideLoading()
+						uni.$u.toast('提交成功')
+						this.submitstatus = false
+						uni.removeStorageSync("videoSrc")
+						uni.navigateBack({
+							delta: 1
+						})
+
+					})
+					.catch(res => {
+						uni.hideLoading()
+						this.submitstatus = false
 						uni.showToast({
 						uni.showToast({
-							title: '请勾选协议',
+							title: res.message,
 							icon: 'none',
 							icon: 'none',
 							duration: 2000
 							duration: 2000
 						})
 						})
-						return
-					}
-					uni.showLoading({
-						title: '加载中',
-						mask: true
-					})
-					var _this = this
-					this.$request.baseRequest('post', '/companyInfo/api/addCompanyInfo', _this.dataDetails).then(res => {
-							uni.hideLoading()
-							uni.$u.toast('提交成功')
-							this.submitstatus = false
-							uni.removeStorageSync("videoSrc")
-							uni.navigateBack({
-								delta: 1
-							})
-
-						})
-						.catch(res => {
-							uni.hideLoading()
-							this.submitstatus = false
-							uni.showToast({
-								title: res.message,
-								icon: 'none',
-								duration: 2000
-							})
-						});
+					});
 
 
 			},
 			},
 			consent() {
 			consent() {
@@ -786,6 +788,7 @@
 				// if (val.name == '相册') {
 				// if (val.name == '相册') {
 				uni.chooseImage({
 				uni.chooseImage({
 					count: 1,
 					count: 1,
+					sizeType: ['compressed'],
 					// sourceType: ,
 					// sourceType: ,
 					success: function(res) {
 					success: function(res) {
 						console.log(_this.uploadType);
 						console.log(_this.uploadType);

+ 54 - 50
pages/mine/company/editcompany.vue

@@ -117,14 +117,15 @@
 			<view style='padding-top:10rpx;' class="flex row border-bottom mt20 align-center flex-space-between">
 			<view style='padding-top:10rpx;' class="flex row border-bottom mt20 align-center flex-space-between">
 				<view class="left">卡号</view>
 				<view class="left">卡号</view>
 				<view class="flex">
 				<view class="flex">
-					<u--input maxlength='19' placeholder="输入银行卡号码" inputAlign='left' border="none" v-model="dataDetails.bankCard">
+					<u--input maxlength='19' placeholder="输入银行卡号码" inputAlign='left' border="none"
+						v-model="dataDetails.bankCard">
 					</u--input>
 					</u--input>
 					<view class="" @click="uploadImg(5)">
 					<view class="" @click="uploadImg(5)">
 						<image src="../../../static/images/xiangji-2.png" mode=""
 						<image src="../../../static/images/xiangji-2.png" mode=""
 							style="width: 40rpx ;height: 40rpx;margin-top: 10rpx;"></image>
 							style="width: 40rpx ;height: 40rpx;margin-top: 10rpx;"></image>
 					</view>
 					</view>
 				</view>
 				</view>
-				
+
 			</view>
 			</view>
 			<view style='padding-top:10rpx;' class="flex row border-bottom mt20 align-center">
 			<view style='padding-top:10rpx;' class="flex row border-bottom mt20 align-center">
 				<view class="left">开户行</view>
 				<view class="left">开户行</view>
@@ -177,8 +178,8 @@
 					</u-button>
 					</u-button>
 				</view>
 				</view>
 			</view> -->
 			</view> -->
-			<!-- <video class="myVideo" :src="dataDetails.videoAddressUrl" controls></video> -->
-			<!-- <view>
+		<!-- <video class="myVideo" :src="dataDetails.videoAddressUrl" controls></video> -->
+		<!-- <view>
 				<view class="video-icon">
 				<view class="video-icon">
 					<u-icon size="40" name="play-circle-fill" @click="videoShow()"></u-icon>
 					<u-icon size="40" name="play-circle-fill" @click="videoShow()"></u-icon>
 				</view>
 				</view>
@@ -259,7 +260,9 @@
 		<!-- <u-picker :show="isShowcardValidity" ref="uPicker" :columns="validityPeriod" @confirm="confirmValidityPeriod"
 		<!-- <u-picker :show="isShowcardValidity" ref="uPicker" :columns="validityPeriod" @confirm="confirmValidityPeriod"
 			@change="changeHandler" @cancel="isShowcardValidity=false">
 			@change="changeHandler" @cancel="isShowcardValidity=false">
 		</u-picker> -->
 		</u-picker> -->
-		<itmister-date-picker :overdueContent="'身份证已过期'" :dateStatus="1" :periodOfValidity="true" :futureYear="30" :checkYear="year" :checkMonth="month" :checkDay="day" ref="dateValidityPeriod"  @dateConfirm="confirmValidityPeriod"></itmister-date-picker>
+		<itmister-date-picker :overdueContent="'身份证已过期'" :dateStatus="1" :periodOfValidity="true" :futureYear="30"
+			:checkYear="year" :checkMonth="month" :checkDay="day" ref="dateValidityPeriod"
+			@dateConfirm="confirmValidityPeriod"></itmister-date-picker>
 		<u-action-sheet :actions="$helper.imgTypeList" :title="$helper.imgType" :show="isShowimgType"
 		<u-action-sheet :actions="$helper.imgTypeList" :title="$helper.imgType" :show="isShowimgType"
 			@select="imgTypeSelect" :closeOnClickOverlay="true" :closeOnClickAction="true" @close="isShowimgType=false">
 			@select="imgTypeSelect" :closeOnClickOverlay="true" :closeOnClickAction="true" @close="isShowimgType=false">
 		</u-action-sheet>
 		</u-action-sheet>
@@ -301,14 +304,14 @@
 					},
 					},
 
 
 				],
 				],
-				year:'',
-				month:'',
-				day:'',
+				year: '',
+				month: '',
+				day: '',
 				isShowManualInput: false,
 				isShowManualInput: false,
 				isShowcardValidity: false,
 				isShowcardValidity: false,
 				uploadType: '',
 				uploadType: '',
 				index: '',
 				index: '',
-				submitstatus:false,
+				submitstatus: false,
 				isShowimgType: false,
 				isShowimgType: false,
 				checked: false,
 				checked: false,
 				checked1: false,
 				checked1: false,
@@ -385,30 +388,30 @@
 				this.dataType = num
 				this.dataType = num
 				switch (this.dataType) {
 				switch (this.dataType) {
 					case 0:
 					case 0:
-						if(this.dataDetails.businessTermDate=='长期'){
-							this.year=this.dataDetails.businessTermDate
-						}else{
-							var arr=this.dataDetails.businessTermDate.split('-')
-							this.year=arr[0]
-							this.month=arr[1]
-							this.day=arr[2]
+						if (this.dataDetails.businessTermDate == '长期') {
+							this.year = this.dataDetails.businessTermDate
+						} else {
+							var arr = this.dataDetails.businessTermDate.split('-')
+							this.year = arr[0]
+							this.month = arr[1]
+							this.day = arr[2]
 						}
 						}
 						break
 						break
 					case 1:
 					case 1:
-						if(this.dataDetails.cardValidityDate=='长期'){
-							this.year=this.dataDetails.cardValidityDate
-						}else{
-							var arr=this.dataDetails.cardValidityDate.split('-')
-							this.year=arr[0]
-							this.month=arr[1]
-							this.day=arr[2]
+						if (this.dataDetails.cardValidityDate == '长期') {
+							this.year = this.dataDetails.cardValidityDate
+						} else {
+							var arr = this.dataDetails.cardValidityDate.split('-')
+							this.year = arr[0]
+							this.month = arr[1]
+							this.day = arr[2]
 						}
 						}
 						break
 						break
 				}
 				}
-				if(num==0){
-					this.overdueContent='营业执照已过期'
-				}else if(num==1){
-					this.overdueContent='身份证已过期'
+				if (num == 0) {
+					this.overdueContent = '营业执照已过期'
+				} else if (num == 1) {
+					this.overdueContent = '身份证已过期'
 				}
 				}
 				this.$refs.dateValidityPeriod.show()
 				this.$refs.dateValidityPeriod.show()
 			},
 			},
@@ -435,11 +438,11 @@
 			confirmValidityPeriod(date) {
 			confirmValidityPeriod(date) {
 				switch (this.dataType) {
 				switch (this.dataType) {
 					case 0:
 					case 0:
-							this.dataDetails.businessTermDate = date.date
-				
+						this.dataDetails.businessTermDate = date.date
+
 						break
 						break
 					case 1:
 					case 1:
-							this.dataDetails.cardValidityDate = date.date
+						this.dataDetails.cardValidityDate = date.date
 						break
 						break
 				}
 				}
 				this.$forceUpdate()
 				this.$forceUpdate()
@@ -471,13 +474,13 @@
 						id: this.dataDetails.id
 						id: this.dataDetails.id
 					}).then(res => {
 					}).then(res => {
 						uni.hideLoading()
 						uni.hideLoading()
-						if(res.data){
+						if (res.data) {
 							_this.dataDetails = res.data
 							_this.dataDetails = res.data
-							if(_this.dataDetails.advanceFreightService==1){
-								this.value=true
-							}else{
-								this.value=false
-							}	
+							if (_this.dataDetails.advanceFreightService == 1) {
+								this.value = true
+							} else {
+								this.value = false
+							}
 						}
 						}
 					})
 					})
 					.catch(res => {
 					.catch(res => {
@@ -589,36 +592,36 @@
 					})
 					})
 					return true
 					return true
 				}
 				}
-				if (this.dataDetails.unifiedSocialCreditCode.length!=18) {
+				if (this.dataDetails.unifiedSocialCreditCode.length != 18) {
 					this.$refs.uToast.show({
 					this.$refs.uToast.show({
 						type: 'error',
 						type: 'error',
 						message: "统一社会信用代码输出错误!",
 						message: "统一社会信用代码输出错误!",
 					})
 					})
 					return true
 					return true
 				}
 				}
-				if(uni.$u.test.isEmpty(this.dataDetails.bankCard)){
+				if (uni.$u.test.isEmpty(this.dataDetails.bankCard)) {
 					this.$refs.uToast.show({
 					this.$refs.uToast.show({
 						type: 'error',
 						type: 'error',
 						message: "卡号不能为空!",
 						message: "卡号不能为空!",
 					})
 					})
 					return true
 					return true
 				}
 				}
-				if(this.dataDetails.bankCard.length<16||this.dataDetails.bankCard.length>19){
+				if (this.dataDetails.bankCard.length < 16 || this.dataDetails.bankCard.length > 19) {
 					this.$refs.uToast.show({
 					this.$refs.uToast.show({
 						type: 'error',
 						type: 'error',
 						message: "卡号输出错误!",
 						message: "卡号输出错误!",
 					})
 					})
 					return true
 					return true
 				}
 				}
-				
-				if(uni.$u.test.isEmpty(this.dataDetails.bankDeposit)){
+
+				if (uni.$u.test.isEmpty(this.dataDetails.bankDeposit)) {
 					this.$refs.uToast.show({
 					this.$refs.uToast.show({
 						type: 'error',
 						type: 'error',
 						message: "开户行不能为空!",
 						message: "开户行不能为空!",
 					})
 					})
 					return true
 					return true
 				}
 				}
-				if(uni.$u.test.isEmpty(this.dataDetails.bankDepositBranch)){
+				if (uni.$u.test.isEmpty(this.dataDetails.bankDepositBranch)) {
 					this.$refs.uToast.show({
 					this.$refs.uToast.show({
 						type: 'error',
 						type: 'error',
 						message: "开户支行不能为空!",
 						message: "开户支行不能为空!",
@@ -658,8 +661,8 @@
 			},
 			},
 			submit() {
 			submit() {
 				if (this.validate()) return
 				if (this.validate()) return
-				if(!this.submitstatus){
-					this.submitstatus=true
+				if (!this.submitstatus) {
+					this.submitstatus = true
 					if (!this.consentStatus) {
 					if (!this.consentStatus) {
 						uni.showToast({
 						uni.showToast({
 							title: '请勾选协议',
 							title: '请勾选协议',
@@ -676,7 +679,7 @@
 					this.$request.baseRequest('post', '/companyInfo/api/editCompanyInfo', _this.dataDetails).then(res => {
 					this.$request.baseRequest('post', '/companyInfo/api/editCompanyInfo', _this.dataDetails).then(res => {
 							uni.hideLoading()
 							uni.hideLoading()
 							uni.$u.toast('提交成功')
 							uni.$u.toast('提交成功')
-							this.submitstatus=false
+							this.submitstatus = false
 							uni.navigateBack({
 							uni.navigateBack({
 								delta: 1
 								delta: 1
 							})
 							})
@@ -684,7 +687,7 @@
 						})
 						})
 						.catch(res => {
 						.catch(res => {
 							uni.hideLoading()
 							uni.hideLoading()
-							this.submitstatus=false
+							this.submitstatus = false
 							uni.showToast({
 							uni.showToast({
 								title: res.message,
 								title: res.message,
 								icon: 'none',
 								icon: 'none',
@@ -692,7 +695,7 @@
 							})
 							})
 						});
 						});
 				}
 				}
-				
+
 			},
 			},
 			consent() {
 			consent() {
 				this.consentStatus = !this.consentStatus
 				this.consentStatus = !this.consentStatus
@@ -745,6 +748,7 @@
 				// if (val.name == '相册') {
 				// if (val.name == '相册') {
 				uni.chooseImage({
 				uni.chooseImage({
 					count: 1,
 					count: 1,
+					sizeType: ['compressed'],
 					// sourceType: ,
 					// sourceType: ,
 					success: function(res) {
 					success: function(res) {
 						console.log(JSON.stringify(res.tempFilePaths));
 						console.log(JSON.stringify(res.tempFilePaths));
@@ -838,7 +842,7 @@
 												}
 												}
 
 
 												// 开户支行LIst
 												// 开户支行LIst
-												_this.columns=[]
+												_this.columns = []
 												if (res.data.bankNameZhihang) {
 												if (res.data.bankNameZhihang) {
 													_this.columns.push(res.data
 													_this.columns.push(res.data
 														.bankNameZhihang)
 														.bankNameZhihang)
@@ -967,7 +971,7 @@
 
 
 	.wrap {
 	.wrap {
 		background: #fff;
 		background: #fff;
-		padding:10rpx 30rpx 20rpx;
+		padding: 10rpx 30rpx 20rpx;
 		border-radius: 5px;
 		border-radius: 5px;
 		margin: 20rpx;
 		margin: 20rpx;
 
 
@@ -1037,7 +1041,7 @@
 
 
 	.content1 {
 	.content1 {
 		background: #fff;
 		background: #fff;
-		padding:20rpx 20rpx 0;
+		padding: 20rpx 20rpx 0;
 		margin: 20rpx;
 		margin: 20rpx;
 		border-radius: 10rpx;
 		border-radius: 10rpx;
 
 

+ 69 - 9
pages/mine/helpDescription.vue

@@ -1,10 +1,43 @@
 <!-- 帮助说明 -->
 <!-- 帮助说明 -->
 <template>
 <template>
-	<view class="content flex-center">
-		<image class="img" src="@/static/images/help/banner@2x.png" mode="widthFix"></image>
-		<image class="img" src="@/static/images/help/tu1@2x.png" mode="widthFix"></image>
-	<image class="img" src="@/static/images/help/zy.png" mode="widthFix"></image>
+	<view class="content">
+		<u-navbar leftText="返回" title="操作流程" placeholder titleStyle="font-size:36rpx;font-weight:700" :autoBack="true">
+			<view class="u-nav-slot" slot="left">
+				<u-icon name="arrow-left" size="20" color="#303137"></u-icon>
+			</view>
+			<view class="u-nav-slot" slot="right">
+				<view class="top-right" v-if="!isShowType" @click="btnClick(false)">
+					切换简洁版
+				</view>
+				<view class="top-right" v-if="isShowType" @click="btnClick(true)">
+					切换图示版
+				</view>
 
 
+			</view>
+		</u-navbar>
+		<image src="@/static/images/mine/tsb/jjb.png" mode="widthFix" class="banner" v-if="isShowType"></image>
+		<view class="content1" v-if="!isShowType">
+			<image src="@/static/images/mine/tsb/1.png" mode="widthFix" class="content-img">
+			</image>
+			<image src="@/static/images/mine/tsb/2.png" mode="widthFix" class="content-img">
+			</image>
+			<image src="@/static/images/mine/tsb/3.png" mode="widthFix" class="content-img">
+			</image>
+			<image src="@/static/images/mine/tsb/4.png" mode="widthFix" class="content-img">
+			</image>
+			<image src="@/static/images/mine/tsb/5.png" mode="widthFix" class="content-img">
+			</image>
+			<image src="@/static/images/mine/tsb/6.png" mode="widthFix" class="content-img">
+			</image>
+			<image src="@/static/images/mine/tsb/7.png" mode="widthFix" class="content-img">
+			</image>
+			<image src="@/static/images/mine/tsb/8.png" mode="widthFix" class="content-img">
+			</image>
+			<image src="@/static/images/mine/tsb/9.png" mode="widthFix" class="content-img">
+			</image>
+			<image src="@/static/images/mine/tsb/10.png" mode="widthFix" class="content-img">
+			</image>
+		</view>
 	</view>
 	</view>
 </template>
 </template>
 
 
@@ -12,14 +45,41 @@
 	export default {
 	export default {
 		data() {
 		data() {
 			return {
 			return {
-
+				isShowType: true
 			};
 			};
+		},
+		methods: {
+			btnClick(type) {
+				console.log(type)
+				this.isShowType = !type
+			}
 		}
 		}
 	}
 	}
 </script>
 </script>
 
 
-<style lang="scss">
-.img{
-	width: 100%;
-}
+<style lang="scss" scoped>
+	.content {
+		background: white;
+	}
+
+	.banner {
+		width: 100%;
+	}
+
+	.content1 {
+		width: 100%;
+		display: flex;
+		flex-direction: column;
+
+		.content-img {
+			width: 100%;
+		}
+	}
+
+	.top-right {
+		background: #F7F8FA;
+		padding: 11rpx 23rpx;
+		border-radius: 33px;
+		font-size: 700;
+	}
 </style>
 </style>

+ 12 - 11
pages/mine/index.vue

@@ -23,7 +23,7 @@
 								class='currectstatus1'> -->
 								class='currectstatus1'> -->
 							<!-- 	<view class="" v-if="CargoOwner.authenticationStatus">{{CargoOwner.authenticationStatus=="已过期"?"身份已过期":CargoOwner.authenticationStatus}}</view>
 							<!-- 	<view class="" v-if="CargoOwner.authenticationStatus">{{CargoOwner.authenticationStatus=="已过期"?"身份已过期":CargoOwner.authenticationStatus}}</view>
 								<view class="" v-else>未认证</view> -->
 								<view class="" v-else>未认证</view> -->
-								<!-- {{CargoOwner.authenticationStatus?CargoOwner.authenticationStatus:'未认证'}} -->
+							<!-- {{CargoOwner.authenticationStatus?CargoOwner.authenticationStatus:'未认证'}} -->
 							<!-- </view> -->
 							<!-- </view> -->
 						</view>
 						</view>
 						<view class='phone'>{{starUserphone}}</view>
 						<view class='phone'>{{starUserphone}}</view>
@@ -42,7 +42,7 @@
 			</view>
 			</view>
 
 
 			<view class='flex operate flex-space-around'>
 			<view class='flex operate flex-space-around'>
-				<view style='font-size:14px;' class='flex items-center' @click="toMyRelease">
+				<view style='font-size:14px;' class='flex items-center' @click="goDetailPage('/pages/release/record')">
 					<u--image style='margin-right:8px;position:relative;top:3px;' :showLoading="true"
 					<u--image style='margin-right:8px;position:relative;top:3px;' :showLoading="true"
 						src="../../static/mine/wodefabu.png" width="42px" height="42px"></u--image>我的发布
 						src="../../static/mine/wodefabu.png" width="42px" height="42px"></u--image>我的发布
 				</view>
 				</view>
@@ -91,10 +91,11 @@
 					<view class='flex items-center'>
 					<view class='flex items-center'>
 						<u--image style='margin-right:8px;' :showLoading="true" src="../../static/mine/huozhu.png"
 						<u--image style='margin-right:8px;' :showLoading="true" src="../../static/mine/huozhu.png"
 							width="20px" height="20px"></u--image>
 							width="20px" height="20px"></u--image>
-							<view>货主认证</view>
+						<view>货主认证</view>
 					</view>
 					</view>
-					<view >
-						<text class="version_css" v-if="CargoOwner.authenticationStatus">{{CargoOwner.authenticationStatus == '已过期'?'认证已过期':CargoOwner.authenticationStatus}}</text>
+					<view>
+						<text class="version_css"
+							v-if="CargoOwner.authenticationStatus">{{CargoOwner.authenticationStatus == '已过期'?'认证已过期':CargoOwner.authenticationStatus}}</text>
 						<text class="version_css" v-else>未认证</text>
 						<text class="version_css" v-else>未认证</text>
 						<image class='right' src="@/static/mine/right.png" mode=""></image>
 						<image class='right' src="@/static/mine/right.png" mode=""></image>
 					</view>
 					</view>
@@ -138,7 +139,7 @@
 					@click="goDetailPage('/pages/mine/helpDescription',true)">
 					@click="goDetailPage('/pages/mine/helpDescription',true)">
 					<view class='flex items-center'>
 					<view class='flex items-center'>
 						<u--image style='margin-right:8px;' :showLoading="true"
 						<u--image style='margin-right:8px;' :showLoading="true"
-							src="../../static/mine/bangzhushuoming.png" width="20px" height="20px"></u--image>帮助说明
+							src="../../static/mine/bangzhushuoming.png" width="20px" height="20px"></u--image>操作流程
 					</view>
 					</view>
 					<view>
 					<view>
 						<image class='right' src="@/static/mine/right.png" mode=""></image>
 						<image class='right' src="@/static/mine/right.png" mode=""></image>
@@ -147,8 +148,8 @@
 				</view>
 				</view>
 				<view class="flex flex-space-between content1-item">
 				<view class="flex flex-space-between content1-item">
 					<view class="flex align-center">
 					<view class="flex align-center">
-						<u--image style='margin-right:8px;' :showLoading="true" src="../../static/images/mine/appUpdate.png"
-							width="20px" height="20px"></u--image>
+						<u--image style='margin-right:8px;' :showLoading="true"
+							src="../../static/images/mine/appUpdate.png" width="20px" height="20px"></u--image>
 						<view>检查更新</view>
 						<view>检查更新</view>
 					</view>
 					</view>
 					<view @click="onAPPUpdate">
 					<view @click="onAPPUpdate">
@@ -326,15 +327,15 @@
 					},
 					},
 					method: 'GET',
 					method: 'GET',
 					success: (res) => {
 					success: (res) => {
-						console.log("查看1111",this.version)
-						console.log("查看11111",res)
+						console.log("查看1111", this.version)
+						console.log("查看11111", res)
 						// var versionNo = plus.runtime.version
 						// var versionNo = plus.runtime.version
 						// if (versionNo == res.data.data.version) {
 						// if (versionNo == res.data.data.version) {
 						// 	this.version = "当前为最新版" + res.data.data.version
 						// 	this.version = "当前为最新版" + res.data.data.version
 						// } else {
 						// } else {
 						// 	this.version = "发现新版本,立即更新"
 						// 	this.version = "发现新版本,立即更新"
 						// }
 						// }
-						if (!res.data.data.version) {//有返回值证明需要更新   没有则不需要
+						if (!res.data.data.version) { //有返回值证明需要更新   没有则不需要
 							this.version = "当前为最新版" + this.version
 							this.version = "当前为最新版" + this.version
 						} else {
 						} else {
 							this.version = "发现新版本,立即更新"
 							this.version = "发现新版本,立即更新"

+ 1 - 0
pages/mine/manageBankCards/addBankCard.vue

@@ -348,6 +348,7 @@
 				console.log(val)
 				console.log(val)
 				// if (val.name == '相册') {
 				// if (val.name == '相册') {
 				uni.chooseImage({
 				uni.chooseImage({
+					sizeType: ['compressed'],
 					count: 1,
 					count: 1,
 					// sourceType: this.$helper.chooseImage.sourceType,
 					// sourceType: this.$helper.chooseImage.sourceType,
 					success: function(res) {
 					success: function(res) {

+ 8 - 6
pages/mine/manageBankCards/editBankCard.vue

@@ -70,7 +70,7 @@
 				dataDetails: {},
 				dataDetails: {},
 				imagesrc: '',
 				imagesrc: '',
 				bankType: [],
 				bankType: [],
-				submitstatus:false,
+				submitstatus: false,
 				isShowBank: false,
 				isShowBank: false,
 				isShowManualInput: false,
 				isShowManualInput: false,
 				index: ''
 				index: ''
@@ -82,20 +82,20 @@
 		},
 		},
 		methods: {
 		methods: {
 			async get_camera_permission() {
 			async get_camera_permission() {
-				var photol=await permision.requestAndroidPermission("android.permission.CAMERA")
-				if(photol == false){
+				var photol = await permision.requestAndroidPermission("android.permission.CAMERA")
+				if (photol == false) {
 					uni.showModal({
 					uni.showModal({
 						title: '提示',
 						title: '提示',
 						content: '您已经关闭相机权限,去设置',
 						content: '您已经关闭相机权限,去设置',
-						success: function (res) {
+						success: function(res) {
 							if (res.confirm) {
 							if (res.confirm) {
 								permision.gotoAppPermissionSetting()
 								permision.gotoAppPermissionSetting()
-									            // plus.runtime.openURL("app-settings:");
+								// plus.runtime.openURL("app-settings:");
 							} else if (res.cancel) {
 							} else if (res.cancel) {
 								console.log('用户点击取消');
 								console.log('用户点击取消');
 							}
 							}
 						}
 						}
-					});	
+					});
 				}
 				}
 			},
 			},
 			manualInput() {
 			manualInput() {
@@ -156,6 +156,7 @@
 				let that = this;
 				let that = this;
 				uni.chooseImage({
 				uni.chooseImage({
 					count: 1,
 					count: 1,
+					sizeType: ['compressed'],
 					success: function(res) {
 					success: function(res) {
 						console.log(JSON.stringify(res.tempFilePaths));
 						console.log(JSON.stringify(res.tempFilePaths));
 						uploadImage(res.tempFilePaths[0], 'appData/',
 						uploadImage(res.tempFilePaths[0], 'appData/',
@@ -173,6 +174,7 @@
 				if (val.name == '相册') {
 				if (val.name == '相册') {
 					uni.chooseImage({
 					uni.chooseImage({
 						count: 1,
 						count: 1,
+						sizeType: ['compressed'],
 						sourceType: this.$helper.chooseImage.sourceType,
 						sourceType: this.$helper.chooseImage.sourceType,
 						success: function(res) {
 						success: function(res) {
 							console.log(JSON.stringify(res.tempFilePaths));
 							console.log(JSON.stringify(res.tempFilePaths));

+ 10 - 7
pages/mine/manageVehicles/addVehicle.vue

@@ -29,9 +29,10 @@
 			unloadGroupPhoto() {
 			unloadGroupPhoto() {
 				uni.chooseImage({
 				uni.chooseImage({
 					count: 1,
 					count: 1,
+					sizeType: ['compressed'],
 					success: function(res) {
 					success: function(res) {
 						console.log(JSON.stringify(res.tempFilePaths));
 						console.log(JSON.stringify(res.tempFilePaths));
-						uploadImage('image',res.tempFilePaths[0], 'appData/',
+						uploadImage('image', res.tempFilePaths[0], 'appData/',
 							result => {
 							result => {
 								// 上传成功
 								// 上传成功
 								console.log('图片地址', result)
 								console.log('图片地址', result)
@@ -40,13 +41,15 @@
 					}
 					}
 				});
 				});
 			},
 			},
-			submit(){
+			submit() {
 				let params = {
 				let params = {
-						type: 'success',
-						message: "提交成功",
-						iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png'
-					}
-				this.$refs.uToast.show({...params})
+					type: 'success',
+					message: "提交成功",
+					iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png'
+				}
+				this.$refs.uToast.show({
+					...params
+				})
 			},
 			},
 		},
 		},
 	}
 	}

+ 10 - 7
pages/mine/manageVehicles/editVehicle.vue

@@ -29,9 +29,10 @@
 			unloadGroupPhoto() {
 			unloadGroupPhoto() {
 				uni.chooseImage({
 				uni.chooseImage({
 					count: 1,
 					count: 1,
+					sizeType: ['compressed'],
 					success: function(res) {
 					success: function(res) {
 						console.log(JSON.stringify(res.tempFilePaths));
 						console.log(JSON.stringify(res.tempFilePaths));
-						uploadImage('image',res.tempFilePaths[0], 'appData/',
+						uploadImage('image', res.tempFilePaths[0], 'appData/',
 							result => {
 							result => {
 								// 上传成功
 								// 上传成功
 								console.log('图片地址', result)
 								console.log('图片地址', result)
@@ -40,13 +41,15 @@
 					}
 					}
 				});
 				});
 			},
 			},
-			submit(){
+			submit() {
 				let params = {
 				let params = {
-						type: 'success',
-						message: "修改成功",
-						iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png'
-					}
-				this.$refs.uToast.show({...params})
+					type: 'success',
+					message: "修改成功",
+					iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png'
+				}
+				this.$refs.uToast.show({
+					...params
+				})
 			},
 			},
 		},
 		},
 	}
 	}

+ 2 - 2
pages/mine/myAccount/bill.vue

@@ -39,11 +39,11 @@
 				companyId: "",
 				companyId: "",
 				pageSize: 10,
 				pageSize: 10,
 				currentPage: 1,
 				currentPage: 1,
-				data: "2022",
+				data: "2023",
 				dataShow: false,
 				dataShow: false,
 				value1: Number(new Date()),
 				value1: Number(new Date()),
 				columns: [
 				columns: [
-					["2022", "2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030", "2031", "2032", "2033",
+					["2023", "2024", "2025", "2026", "2027", "2028", "2029", "2030", "2031", "2032", "2033",
 						"2034", "2035"
 						"2034", "2035"
 					],
 					],
 				],
 				],

+ 3 - 3
pages/mine/set.vue

@@ -43,13 +43,13 @@
 				</view>
 				</view>
 				<image src="../../static/images/myimg/gengduo1@3x.png" class="arrow"></image>
 				<image src="../../static/images/myimg/gengduo1@3x.png" class="arrow"></image>
 			</view>
 			</view>
-			<!-- <u-line color="#EEEEEE" class="line"></u-line>
+			<u-line color="#EEEEEE" class="line"></u-line>
 			<view class='flex flex-space-between wrap-item' @click='clearStorage'>
 			<view class='flex flex-space-between wrap-item' @click='clearStorage'>
 				<view>
 				<view>
-					<text>清除缓存</text>
+					<text>注销账号</text>
 				</view>
 				</view>
 				<image src="../../static/images/myimg/gengduo1@3x.png" class="arrow"></image>
 				<image src="../../static/images/myimg/gengduo1@3x.png" class="arrow"></image>
-			</view> -->
+			</view>
 		</view>
 		</view>
 		<view class='exitloginwrap'>
 		<view class='exitloginwrap'>
 			<button @click='logoutAlert()' class='exitlogin'>退出登录</button>
 			<button @click='logoutAlert()' class='exitlogin'>退出登录</button>

+ 73 - 68
pages/mine/settings/editAvatar.vue

@@ -1,14 +1,14 @@
 <template>
 <template>
 	<view class="content">
 	<view class="content">
 		<view @click="upload" class="picture">
 		<view @click="upload" class="picture">
-			<image class="xj-image"  v-if="!deptListurl.avatarUrl" src="@/static/images/common/tianjiazhaopian@2x.png"></image>
+			<image class="xj-image" v-if="!deptListurl.avatarUrl" src="@/static/images/common/tianjiazhaopian@2x.png">
+			</image>
 			<image class="xj-image" :src="deptListurl.avatarUrl" v-if="deptListurl.avatarUrl"></image>
 			<image class="xj-image" :src="deptListurl.avatarUrl" v-if="deptListurl.avatarUrl"></image>
-			
+
 		</view>
 		</view>
-			<view @click="$u.throttle(submit, 1000)" class="submit">提交</view>
+		<view @click="$u.throttle(submit, 1000)" class="submit">提交</view>
 		<u-action-sheet :actions="$helper.imgTypeList" :title="$helper.imgType" :show="isShowimgType"
 		<u-action-sheet :actions="$helper.imgTypeList" :title="$helper.imgType" :show="isShowimgType"
-			@select="imgTypeSelect" :closeOnClickOverlay="true" :closeOnClickAction="true"
-			@close="isShowimgType=false">
+			@select="imgTypeSelect" :closeOnClickOverlay="true" :closeOnClickAction="true" @close="isShowimgType=false">
 		</u-action-sheet>
 		</u-action-sheet>
 	</view>
 	</view>
 </template>
 </template>
@@ -23,12 +23,12 @@
 	export default {
 	export default {
 		data() {
 		data() {
 			return {
 			return {
-					isShowimgType:false,
-					imgSrc:'',
-					deptListurl:{
-						avatarUrl:'',
-						id:''
-					}
+				isShowimgType: false,
+				imgSrc: '',
+				deptListurl: {
+					avatarUrl: '',
+					id: ''
+				}
 			}
 			}
 		},
 		},
 		onLoad() {
 		onLoad() {
@@ -40,33 +40,34 @@
 		methods: {
 		methods: {
 			upload() {
 			upload() {
 				// this.isShowimgType = true
 				// this.isShowimgType = true
-			this.imgTypeSelect()
+				this.imgTypeSelect()
 			},
 			},
 			imgTypeSelect(val) {
 			imgTypeSelect(val) {
 				console.log(val)
 				console.log(val)
 				// if (val.name == '相册') {
 				// if (val.name == '相册') {
-					uni.chooseImage({
-						count: 1,
-						// sourceType: this.$helper.chooseImage.sourceType,
-						success: function(res) {
-							console.log(JSON.stringify(res.tempFilePaths));
-							uploadImage('image',res.tempFilePaths[0], 'appData/',
-								result => {
-									// 上传成功
-									console.log('图片地址', result)
+				uni.chooseImage({
+					count: 1,
+					sizeType: ['compressed'],
+					// sourceType: this.$helper.chooseImage.sourceType,
+					success: function(res) {
+						console.log(JSON.stringify(res.tempFilePaths));
+						uploadImage('image', res.tempFilePaths[0], 'appData/',
+							result => {
+								// 上传成功
+								console.log('图片地址', result)
 								that.deptListurl.avatarUrl = result
 								that.deptListurl.avatarUrl = result
-			
-								}
-							)
-						}
-					});
-			
-			// 	} else {
-			
-			// 	}
-			
+
+							}
+						)
+					}
+				});
+
+				// 	} else {
+
+				// 	}
+
 			},
 			},
-			submit(){
+			submit() {
 				this.deptListurl.id = this.userInfo.id
 				this.deptListurl.id = this.userInfo.id
 				this.$request.baseRequest('post', '/commonUser/editUserInfo', this.deptListurl).then(res => {
 				this.$request.baseRequest('post', '/commonUser/editUserInfo', this.deptListurl).then(res => {
 						uni.showToast({
 						uni.showToast({
@@ -74,7 +75,7 @@
 							icon: 'success',
 							icon: 'success',
 							duration: 2000,
 							duration: 2000,
 							success() {
 							success() {
-								setTimeout(()=>{
+								setTimeout(() => {
 									that.userInfo.avatarUrl = that.deptListurl.avatarUrl
 									that.userInfo.avatarUrl = that.deptListurl.avatarUrl
 									var _student = uni.getStorageSync('userInfo');
 									var _student = uni.getStorageSync('userInfo');
 									_student.avatarUrl = that.deptListurl.avatarUrl;
 									_student.avatarUrl = that.deptListurl.avatarUrl;
@@ -87,15 +88,15 @@
 									});
 									});
 									// this.$api.msg('修改成功2!')
 									// this.$api.msg('修改成功2!')
 									uni.navigateBack({
 									uni.navigateBack({
-										delta:1
+										delta: 1
 									})
 									})
-								},2000)
+								}, 2000)
 							}
 							}
 						})
 						})
-				
+
 					})
 					})
 					.catch(res => {
 					.catch(res => {
-					uni.$u.toast( res.message);
+						uni.$u.toast(res.message);
 					});
 					});
 			}
 			}
 		}
 		}
@@ -103,38 +104,42 @@
 </script>
 </script>
 
 
 <style>
 <style>
-	.content{
+	.content {
 		background: white;
 		background: white;
 		padding: 20rpx;
 		padding: 20rpx;
 	}
 	}
-.left-text {
-			width: 290rpx;
-			color: #333333;
-			display: flex;
-			align-items: center;
-		}
-		.picture {
-			margin-top: 20rpx;
-			background: #F5F6FA;
-			width: 212rpx;
-			height: 212rpx;
-			border-radius: 10rpx;
-			display: flex;
-			flex-direction: column;
-			justify-content: center;
-			align-items: center;
-			color: #6A7282;
-		}
-		.xj-image {
-			width: 100%;
-			height: 100%;
-		}
-		.submit{
-			margin-top: 20rpx;
-			background: #2772FB;
-			border-radius: 50rpx;
-			padding: 20rpx 0;
-			color: white;
-			text-align: center;
-		}
+
+	.left-text {
+		width: 290rpx;
+		color: #333333;
+		display: flex;
+		align-items: center;
+	}
+
+	.picture {
+		margin-top: 20rpx;
+		background: #F5F6FA;
+		width: 212rpx;
+		height: 212rpx;
+		border-radius: 10rpx;
+		display: flex;
+		flex-direction: column;
+		justify-content: center;
+		align-items: center;
+		color: #6A7282;
+	}
+
+	.xj-image {
+		width: 100%;
+		height: 100%;
+	}
+
+	.submit {
+		margin-top: 20rpx;
+		background: #2772FB;
+		border-radius: 50rpx;
+		padding: 20rpx 0;
+		color: white;
+		text-align: center;
+	}
 </style>
 </style>

BIN
pages/mine/tsb/1.png


BIN
pages/mine/tsb/10.png


BIN
pages/mine/tsb/2.png


BIN
pages/mine/tsb/3.png


BIN
pages/mine/tsb/4.png


BIN
pages/mine/tsb/5.png


BIN
pages/mine/tsb/6.png


BIN
pages/mine/tsb/7.png


BIN
pages/mine/tsb/8.png


BIN
pages/mine/tsb/9.png


BIN
pages/mine/tsb/jjb.png


+ 1 - 1
pages/order/driverDetail.vue

@@ -86,7 +86,7 @@
 									{{item.createDate?item.createDate.split(' ')[0]:''}}
 									{{item.createDate?item.createDate.split(' ')[0]:''}}
 								</view>
 								</view>
 								<view class="flex m-top10">
 								<view class="flex m-top10">
-									<view class="branch_css ">{{item.driverScoreObtained}}</view>
+									<!-- <view class="branch_css ">{{item.driverScoreObtained}}</view> -->
 									<view class="">
 									<view class="">
 										<start count="5" v-model="item.driverScoreObtained" size="35" activeColor="#ffaa00" :size="18"
 										<start count="5" v-model="item.driverScoreObtained" size="35" activeColor="#ffaa00" :size="18"
 											:allowHalf='true' :disabled='true'>
 											:allowHalf='true' :disabled='true'>

+ 13 - 16
pages/order/index.vue

@@ -14,7 +14,6 @@
 							}"></u-tabs>
 							}"></u-tabs>
 			</view> -->
 			</view> -->
 		<view class="top-content">
 		<view class="top-content">
-
 			<view class="fixed1"></view>
 			<view class="fixed1"></view>
 			<view class="fix-content">
 			<view class="fix-content">
 				<u-search placeholder="搜索订单" v-model="searchKeyWord" bgColor='white' :actionStyle='searchStyle'
 				<u-search placeholder="搜索订单" v-model="searchKeyWord" bgColor='white' :actionStyle='searchStyle'
@@ -38,7 +37,6 @@
 					</view>
 					</view>
 				</view>
 				</view>
 			</view>
 			</view>
-
 		</view>
 		</view>
 		<view class="all-menu">
 		<view class="all-menu">
 			<u-transition :show="showMenu" mode="fade">
 			<u-transition :show="showMenu" mode="fade">
@@ -140,8 +138,9 @@
 						<!-- <image class="jt-icon" src="@/static/images/order/position.png" mode='widthFix'
 						<!-- <image class="jt-icon" src="@/static/images/order/position.png" mode='widthFix'
 								@click.stop="toMap(good)">
 								@click.stop="toMap(good)">
 							</image> -->
 							</image> -->
-						<view v-if="good.cargoOwnerStatus=='运输中'||good.cargoOwnerStatus=='已完结'||good.cargoOwnerStatus=='待收货'||good.cargoOwnerStatus=='已终止'"
-						 style='border:1px solid #2772FB'	class="start normal look-map" @click.stop="toMap(good)">
+						<view
+							v-if="good.cargoOwnerStatus=='运输中'||good.cargoOwnerStatus=='已完结'||good.cargoOwnerStatus=='待收货'"
+							style='border:1px solid #2772FB' class="start normal look-map" @click.stop="toMap(good)">
 							查看轨迹</view>
 							查看轨迹</view>
 						<view class="stop" @click.stop="accept(good,1)" v-if="good.cargoOwnerStatus=='待接单'">接受
 						<view class="stop" @click.stop="accept(good,1)" v-if="good.cargoOwnerStatus=='待接单'">接受
 						</view>
 						</view>
@@ -263,7 +262,7 @@
 					margin: '0 20rpx 0 0',
 					margin: '0 20rpx 0 0',
 					"border-radius": '30rpx',
 					"border-radius": '30rpx',
 				},
 				},
-				isdblclick:0,
+				isdblclick: 0,
 				upOption: {
 				upOption: {
 					page: {
 					page: {
 						size: 10 // 每页数据的数量,默认10
 						size: 10 // 每页数据的数量,默认10
@@ -272,8 +271,8 @@
 					empty: {
 					empty: {
 						tip: '暂无记录!'
 						tip: '暂无记录!'
 					},
 					},
-					toTop:{
-						src:''
+					toTop: {
+						src: ''
 					}
 					}
 				},
 				},
 				searchKeyWord: '',
 				searchKeyWord: '',
@@ -353,18 +352,18 @@
 		onTabItemTap(e) {
 		onTabItemTap(e) {
 			this.isdblclick++
 			this.isdblclick++
 			// tab 点击时执行,此处直接接收单击事件
 			// tab 点击时执行,此处直接接收单击事件
-			if(this.scrollTop>1200){
-				if(this.isdblclick>1){
+			if (this.scrollTop > 1200) {
+				if (this.isdblclick > 1) {
 					uni.pageScrollTo({
 					uni.pageScrollTo({
 						scrollTop: 0,
 						scrollTop: 0,
 						duration: 300
 						duration: 300
 					});
 					});
 				}
 				}
-				
+
 			}
 			}
 		},
 		},
-		onHide(){
-			this.isdblclick=0
+		onHide() {
+			this.isdblclick = 0
 		},
 		},
 		created() {
 		created() {
 			//#ifdef APP-PLUS
 			//#ifdef APP-PLUS
@@ -395,7 +394,7 @@
 
 
 		},
 		},
 		onShow() {
 		onShow() {
-			let that = this 
+			let that = this
 			if (this.scrollTop > 1200) {
 			if (this.scrollTop > 1200) {
 				uni.setTabBarItem({
 				uni.setTabBarItem({
 					index: 0,
 					index: 0,
@@ -457,7 +456,7 @@
 				this.show = false
 				this.show = false
 			},
 			},
 			moveHandle() {
 			moveHandle() {
-				this.showMenu=false
+				this.showMenu = false
 				// console.log(1111)
 				// console.log(1111)
 			},
 			},
 			open() {
 			open() {
@@ -518,7 +517,6 @@
 									})
 									})
 								}
 								}
 							})
 							})
-
 						}
 						}
 					})
 					})
 					.catch(res => {
 					.catch(res => {
@@ -549,7 +547,6 @@
 			},
 			},
 			radioChange(n) {
 			radioChange(n) {
 				console.log('radioChange', n);
 				console.log('radioChange', n);
-
 			},
 			},
 			stop(item) {
 			stop(item) {
 				// // 货主接单
 				// // 货主接单

+ 403 - 72
pages/order/map.nvue

@@ -1,5 +1,35 @@
 <template>
 <template>
-	<view>
+	<view class="content">
+		<div class="top_btn">
+			<div class="returnPage">
+				<image class="return-icon" src="@/static/images/order/returnPage.png" mode='widthFix'
+					@click="returnPage">
+				</image>
+			</div>
+			<div class="qiehuan" @click="mapChange">
+				<image class="qiehuan-icon" src="@/static/images/order/qiehuan.png" mode='widthFix'>
+				</image>
+				<text class="tips">{{tips}}</text>
+			</div>
+		</div>
+		<div class="infoBox">
+			<div class="infoBox_left">
+				<text class="title">{{infoData.cargoOwnerStatus}}</text>
+				<text class="address estimate">预计{{infoData.tranEndDate}}送达</text>
+			</div>
+			<div class="infoBox_right">
+				<div class="send">
+					<text class="title">{{infoData.sendCity}}</text>
+					<text class="address">{{infoData.sendArea}}</text>
+				</div>
+				<image class="jt-icon" src="@/static/images/order/jt.png" mode='widthFix'>
+				</image>
+				<div class="end">
+					<text class="title">{{infoData.unloadCity}}</text>
+					<text class="address">{{infoData.unloadArea}}</text>
+				</div>
+			</div>
+		</div>
 		<map v-if="polyline[0].points.length > 0" ref="myMap" id="myMap" :markers="markers" :polyline="polyline"
 		<map v-if="polyline[0].points.length > 0" ref="myMap" id="myMap" :markers="markers" :polyline="polyline"
 			:latitude="polyline[0].points[0].latitude" :longitude="polyline[0].points[0].longitude"
 			:latitude="polyline[0].points[0].latitude" :longitude="polyline[0].points[0].longitude"
 			style="width: 100%; height: 2000rpx" @updated="test" />
 			style="width: 100%; height: 2000rpx" @updated="test" />
@@ -7,11 +37,30 @@
 			<button v-if="startMove" @click="handleStopMove()">暂停移动</button>
 			<button v-if="startMove" @click="handleStopMove()">暂停移动</button>
 			<button v-else @click="handleStartMove()">开始移动</button>
 			<button v-else @click="handleStartMove()">开始移动</button>
 		</view> -->
 		</view> -->
+		<u-modal :show="show" :title="title" :showCancelButton="true" confirmText="确定支付" @close="show=false"
+			@cancel="show = false" @confirm="payment" :closeOnClickOverlay="true">
+			<div class="slot-content" style="align-items: flex-start;">
+				<text style="width: 270px;">{{content}}</text>
+				<text style="width: 270px;color: #587aec;margin-top: 20rpx;" @click="ruleShow=true">查看收费规则</text>
+			</div>
+			<!-- <div class="slot-content" style="align-items: flex-start;">
+				<text style="width: 270px;">规则</text>
+			</div> -->
+		</u-modal>
+		
+		<u-modal :show="ruleShow" :title="ruleTitle" confirmText="关闭" @close="ruleShow=false"
+			@cancel="ruleShow = false" @confirm="ruleShow = false" :closeOnClickOverlay="true">
+			<div class="slot-content" style="align-items: flex-start;">
+				<text style="width: 270px;">{{ruleContent}}</text>
+			</div>
+			</u-modal>
+		<u-toast ref="uToast"></u-toast>
 	</view>
 	</view>
 </template>
 </template>
 
 
 <script>
 <script>
-	const img = '/static/logo.png';
+	// const img = '/static/logo.png';
+	const img = '/static/live-camera/shutter.png';
 	import * as config from '@/config'
 	import * as config from '@/config'
 	let baseUrl = config.def().baseUrlNew
 	let baseUrl = config.def().baseUrlNew
 	export default {
 	export default {
@@ -41,103 +90,275 @@
 						x: 0.5,
 						x: 0.5,
 						y: 1
 						y: 1
 					}
 					}
-				}]
+				}],
+				infoData: {},
+				tips: "切换北斗轨迹",
+				title: "支付",
+				content: "",
+				show: false,
+				obj: {},
+				ruleShow:false,
+				ruleContent:"运单结束前,每天首次查看需支付费用,费用金额等于两次付费的跨度天数减1。运单结束后的首次查看需支付费用,金额等于运单运输跨度天数减累计支付金额。",
 			}
 			}
 		},
 		},
 		onLoad(option) {
 		onLoad(option) {
 			this.id = option.id
 			this.id = option.id
-			console.log(this.id)
-			this.getTrack() //获取轨迹信息(只做演示,未进行远程请求)
-
+			this.infoData = option
+			let date = new Date(this.infoData.tranEndDate)
+			if (!this.infoData.lookBeiDouDate) {
+				this.infoData.lookBeiDouDate = ""
+			}
+			let getMonth = date.getMonth() + 1
+			let day = date.getDate()
+			this.infoData.tranEndDate = getMonth + "月" + day + "日"
+			this.getTrack(0) //获取轨迹信息(只做演示,未进行远程请求)
 		},
 		},
 		methods: {
 		methods: {
-			//模拟获取远程数据
-			getTrack() {
+			returnPage() {
+				// uni.$u.route('/pages/order/index');
+				uni.switchTab({
+					url: '/pages/order/index'
+				});
+			},
+			// isSameDay(date, dateB){
+			// const {
+			// 	getFullYear,
+			// 	getMonth,
+			// 	getDate] = Date.prototypereturn[getFullYear, getMonth, getDate].every(fn =>
+			// 	return fn.call(dateA) === fn.cal1(dateB)
+			// },
+			countDay(d1, d2) {
+				var days = d1 - d2
+				var time = parseInt(days / (1000 * 60 * 60 * 24))
+				time = time ==0?time+1:time//为零代表当天
+				return time 
+			},
+			mapChange() {
+				if (this.tips == "切换北斗轨迹") {
+					// this.infoData.lookBeiDouDate = "2023-02-13 02:05:21"
+					if (this.infoData.lookBeiDouDate) { //查看北斗最新时间
+						let date1 = this.infoData.lookBeiDouDate.split(" ")[0]
+						let date2 = new Date()
+						let year = date2.getFullYear();
+						let month = (date2.getMonth() + 1) < 10 ? "0" + (date2.getMonth() + 1) : date2.getMonth() + 1;
+						let day = date2.getDate() < 10 ? "0" + date2.getDate() : date2.getDate();
+						let date3 = year + "-" + month + "-" + day
+						if(this.infoData.cargoOwnerStatus == "已完结"){//如果订单完成 用卸车时间计算天数
+							 date3 = this.infoData.unloadingDate.split(" ")[0]//卸车时间
+						}
+						if (date1 != date3) { //查看北斗更新时间 != 今天
+							// unloadingDate 卸车时间
+							var k1 = new Date(new Date().toLocaleDateString()).getTime() //当前零点时间蹉
+							if(this.infoData.cargoOwnerStatus == "已完结"){
+								k1 = new Date(new Date(this.infoData.unloadingDate).toLocaleDateString()).getTime() //卸车时间
+							}
+							var k2 = new Date(new Date(this.infoData.lookBeiDouDate).toLocaleDateString()).getTime()
+							this.obj.amountMoney = this.countDay(k1, k2)
+							this.content = "本次查看北斗轨迹将从您的账户余额扣除 " + this.obj.amountMoney + " 元,确认支付查看轨迹?"
+							this.show = true
+						} else { ////查看北斗更新时间 == 今天(不需要支付)
+							this.show = false
+							this.getTrack(1) //北斗轨迹
+						}
+					} else { //没有更新时间证明该订单没有查看过北斗轨迹(需支付)
+						let date1 = this.infoData.loadingDate.split(" ")[0]
+						let date2 = new Date()
+						let year = date2.getFullYear();
+						let month = (date2.getMonth() + 1) < 10 ? "0" + (date2.getMonth() + 1) : date2.getMonth() + 1;
+						let day = date2.getDate() < 10 ? "0" + date2.getDate() : date2.getDate();
+						let date3 = year + "-" + month + "-" + day
+						// if(this.infoData.cargoOwnerStatus == "已完结"){//如果订单完成 用卸车时间计算天数
+						// 	 date3 = this.infoData.unloadingDate.split(" ")[0]//卸车时间
+						// }
+						if (date1 == date3) { //装车时间==当前时间
+							this.obj.amountMoney = 1
+							this.content = "本次查看北斗轨迹将从您的账户余额扣除 " + this.obj.amountMoney + " 元,确认支付查看轨迹?"
+							this.show = true
+						} else { //装车时间 != 当前时间  且没有查看过北斗轨迹
+							var k1 = new Date(new Date().toLocaleDateString()).getTime() //当前零点时间蹉
+							var k2 = new Date(new Date(this.infoData.loadingDate).toLocaleDateString()).getTime()
+							if(this.infoData.cargoOwnerStatus == "已完结"){//如果订单完成 用卸车时间计算天数
+								// let date3 = this.infoData.unloadingDate.split(" ")[0]//卸车时间
+								k1 = new Date(new Date(this.infoData.unloadingDate).toLocaleDateString()).getTime()
+							}
+							this.obj.amountMoney = this.countDay(k1, k2)+1//加1算装车当天
+							this.show = true
+							this.content = "本次查看北斗轨迹将从您的账户余额扣除" + this.obj.amountMoney + "元,确认支付查看轨迹?"
+						}
+					}
+				} else {
+					this.tips == "切换北斗轨迹"
+					this.getTrack(0)
+				}
+			},
+			payment() {
+				if (this.infoData.compName != "个人货主") { //查看北斗轨迹 标识(1个人2企业)
+					this.obj.companyId = this.infoData.compId
+					this.obj.flag = 2
+				} else {
+					this.obj.commonId = this.infoData.cargoCommonId
+					this.obj.flag = 1
+				}
+				this.obj.orderId = this.infoData.id
+				this.obj.orderNo = this.infoData.orderNo
 				uni.request({
 				uni.request({
-					url: baseUrl + '/hyOrderTravelPath/getInfo',
-					data: {
-						orderId: this.id,
-						currentPage: 1,
-						pageSize: 9999
-					},
-					method: 'get',
+					url: baseUrl + '/hyCargoOwnerCapitalInfo/api/lookBeiDou',
+					data: this.obj,
+					method: 'post',
 					header: {
 					header: {
 						'content-type': 'application/json' //'application/x-www-form-urlencoded; charset=UTF-8',
 						'content-type': 'application/json' //'application/x-www-form-urlencoded; charset=UTF-8',
 					},
 					},
 					success: (res) => {
 					success: (res) => {
+						console.log("支付状态",res)
+						this.show = false
 						if (res.data.code == 200) {
 						if (res.data.code == 200) {
-							if (res.data.data) {
-								var patharr = []
-								for (let num = 0; num < res.data.data.records.length; num++) {
-									if(res.data.data.records[num].longitudeLatitude){
-										patharr.push(JSON.parse(res.data.data.records[num].longitudeLatitude));
+							this.$refs.uToast.show({
+								type: 'success',
+								message: "支付成功!",
+							})
+							this.getTrack(1) //调北斗
+						} else {
+							uni.showToast({
+								title: res.data.message,
+								icon: 'none',
+								duration: 2000
+							})
+							return
+						}
+					}
+				})
+			},
+			// /hyOrderTravelPath/orderPath   
+			//模拟获取远程数据
+			getTrack(num) {
+				var that = this
+				uni.showLoading({
+					title: '加载中'
+				})
+				if (num == 0) { //平台轨迹
+					uni.request({
+						url: baseUrl + '/hyOrderTravelPath/getInfo',
+						data: {
+							orderId: this.id,
+							currentPage: 1,
+							pageSize: 9999
+						},
+						method: 'get',
+						header: {
+							'content-type': 'application/json' //'application/x-www-form-urlencoded; charset=UTF-8',
+						},
+						success: (res) => {
+							uni.hideLoading()
+							if (res.data.code == 200) {
+								that.tips = "切换北斗轨迹"
+								if (res.data.data.records.length >0) {
+									var trajectory = []
+									for (let i = 0; i < res.data.data.records.length; i++) {
+										let maplist = []
+										if (res.data.data.records[i].longitudeLatitude) {
+											maplist = JSON.parse(res.data.data.records[i]
+												.longitudeLatitude)
+											for (let j = 0; j < maplist.length; j++) {
+												trajectory.push({
+													latitude: maplist[j].latitude,
+													longitude: maplist[j].longitude
+												})
+											}
+										}
 									}
 									}
-									// for (let i = 0; i < patharr.length; i++) {
-									//   that.path2.push([patharr[i].longitude, patharr[i].latitude]);
-									// }
+									this.polyline[0].points = trajectory
+								} else {
+									this.polyline[0].points = []
+									uni.showToast({
+										title: '暂无平台运输轨迹',
+										icon: 'none',
+										duration: 2000
+									})
+									return
 								}
 								}
-								this.polyline[0].points = patharr
-								// if (res.data.data.longitudeLatitude) {
-								// 	// console.log(JSON.parse(res.data.data.longitudeLatitude));
-								// 	this.polyline[0].points = JSON.parse(res.data.data.longitudeLatitude)
-								// }
-							} else {
-								uni.showToast({
-									title: '暂无运输轨迹',
-									icon: 'none',
-									duration: 2000
-								})
 							}
 							}
 						}
 						}
-					}
-				})
+					})
+				} else if (num == 1) {
+					uni.request({
+						url: baseUrl + '/hyOrderTravelPath/orderPath   ',
+						data: {
+							orderId: this.id,
+						},
+						method: 'post',
+						header: {
+							'content-type': 'application/json' //'application/x-www-form-urlencoded; charset=UTF-8',
+						},
+						success: (res) => {
+							uni.hideLoading()
+							if (res.data.code == 200) {
+								this.tips = "切换平台轨迹"
+								if (res.data.data.longitudeLatitude) {
+									var trajectory = []
+									var patharr = JSON.parse(res.data.data.longitudeLatitude)
+									for (let i = 0; i < patharr.length; i++) {
+										trajectory.push({
+											latitude: patharr[i].lat,
+											longitude: patharr[i].lon
+										});
+									}
+									this.polyline[0].points = trajectory
+								} else {
+									this.polyline[0].points = []
+									uni.showToast({
+										title: '暂无北斗运输轨迹',
+										icon: 'none',
+										duration: 2000
+									})
+								}
+							}
+						}
+					})
+				}
+
 				// this.$request.baseRequest('post', '/hyOrderTravelPath/getInfo', {
 				// this.$request.baseRequest('post', '/hyOrderTravelPath/getInfo', {
 				// 		orderId: this.id,
 				// 		orderId: this.id,
 				// 	}).then(res => {
 				// 	}).then(res => {
 				// 	console.log("res",res)
 				// 	console.log("res",res)
-				// 	// this.polyline[0].points = [
-				// 	// 	{latitude: 39.997761, longitude: 116.478935},
-				// 	// 	{latitude: 39.997825, longitude: 116.478939},
-				// 	// 	{latitude: 39.998549, longitude: 116.478912},
-				// 	// 	{latitude: 39.998555, longitude: 116.478998},
-				// 	// 	{latitude: 39.998566, longitude: 116.479282},
-				// 	// 	{latitude: 39.998528, longitude: 116.479658},
-				// 	// 	{latitude: 39.998453, longitude: 116.480151},
-				// 	// 	{latitude: 39.998302, longitude: 116.480784},
-				// 	// 	{latitude: 39.998184, longitude: 116.481149},
-				// 	// 	{latitude: 39.997997, longitude: 116.481573},
-				// 	// 	{latitude: 39.997846, longitude: 116.481863},
-				// 	// 	{latitude: 39.997718, longitude: 116.482072},
-				// 	// 	{latitude: 39.997718, longitude: 116.482362},
-				// 	// 	{latitude: 39.998935, longitude: 116.483633},
-				// 	// 	{latitude: 39.998968, longitude: 116.48367},
-				// 	// 	{latitude: 39.999861, longitude: 116.484648}
-				// 	// ]
-				// 	// for(var i =0 ;i<7200;i++){
-				// 	// 	var latitude = this.polyline[0].points[this.polyline[0].points.length -1].latitude + 0.0001
-				// 	// 	var longitude = this.polyline[0].points[this.polyline[0].points.length -1].longitude + 0.0001
-				// 	// 	this.polyline[0].points.push({latitude,longitude})
-				// 	// }
+				// this.polyline[0].points = [
+				// 	{latitude: 39.997761, longitude: 116.478935},
+				// 	{latitude: 39.997825, longitude: 116.478939},
+				// 	{latitude: 39.998549, longitude: 116.478912},
+				// 	{latitude: 39.998555, longitude: 116.478998},
+				// 	{latitude: 39.998566, longitude: 116.479282},
+				// 	{latitude: 39.998528, longitude: 116.479658},
+				// 	{latitude: 39.998453, longitude: 116.480151},
+				// 	{latitude: 39.998302, longitude: 116.480784},
+				// 	{latitude: 39.998184, longitude: 116.481149},
+				// 	{latitude: 39.997997, longitude: 116.481573},
+				// 	{latitude: 39.997846, longitude: 116.481863},
+				// 	{latitude: 39.997718, longitude: 116.482072},
+				// 	{latitude: 39.997718, longitude: 116.482362},
+				// 	{latitude: 39.998935, longitude: 116.483633},
+				// 	{latitude: 39.998968, longitude: 116.48367},
+				// 	{latitude: 39.999861, longitude: 116.484648}
+				// ]
+				// for(var i =0 ;i<7200;i++){
+				// 	var latitude = this.polyline[0].points[this.polyline[0].points.length -1].latitude + 0.0001
+				// 	var longitude = this.polyline[0].points[this.polyline[0].points.length -1].longitude + 0.0001
+				// 	this.polyline[0].points.push({latitude,longitude})
+				// }
 				var that = this
 				var that = this
 				setTimeout(() => {
 				setTimeout(() => {
-					that.durationTime = Math.ceil(30000 / that.polyline[0].points.length) //默认播放全程使用30秒,计算相连两点动画时长
+					that.durationTime = Math.ceil(30000 / that.polyline[0].points
+						.length) //默认播放全程使用30秒,计算相连两点动画时长
 					that.initMapData()
 					that.initMapData()
 				}, 1000)
 				}, 1000)
-
-				// 	})
-				// 	.catch(res => {
-				// 		uni.hideLoading()
-				// 		uni.showToast({
-				// 			title: res.message,
-				// 			icon: 'none',
-				// 			duration: 2000
-				// 		})
-				// 	});
 			},
 			},
 			//设置地图
 			//设置地图
 			initMapData() {
 			initMapData() {
 				this.initMarkers()
 				this.initMarkers()
 				this.mapContext = uni.createMapContext('myMap', this)
 				this.mapContext = uni.createMapContext('myMap', this)
+				// this.mapContext.includePoints({
+				// 	points: this.polyline[0].points,
+				// 	padding: [100, 100, 1000, 100]
+				// })
+				this.mapContext.getRegion()
 			},
 			},
 			test() {
 			test() {
 				this.mapContext.includePoints({
 				this.mapContext.includePoints({
@@ -147,7 +368,6 @@
 			},
 			},
 			//设置位置(从起点开始)
 			//设置位置(从起点开始)
 			initMarkers() {
 			initMarkers() {
-				console.log(this.polyline[0])
 				this.markers[0].latitude = this.polyline[0].points[0].latitude
 				this.markers[0].latitude = this.polyline[0].points[0].latitude
 				this.markers[0].longitude = this.polyline[0].points[0].longitude
 				this.markers[0].longitude = this.polyline[0].points[0].longitude
 			},
 			},
@@ -211,6 +431,117 @@
 		left: 0;
 		left: 0;
 		bottom: 0;
 		bottom: 0;
 		width: 750rpx;
 		width: 750rpx;
-		position: fixed;
+		// position: fixed;
+	}
+
+	.content {
+		.top_btn {
+			// background-color: red;
+			position: fixed;
+			top: 30rpx;
+			left: 10px;
+			right: 30rpx;
+			flex-direction: row;
+			display: flex;
+			margin-top: 30px;
+			justify-content: space-between;
+
+			.returnPage {
+				flex-direction: row;
+				display: flex;
+
+				.return-icon {
+					width: 70rpx;
+					height: 70rpx;
+				}
+
+			}
+
+			.qiehuan {
+				flex-direction: row;
+				display: flex;
+				// width: 240rpx;
+				height: 70rpx;
+				background-color: #ffffff;
+				border-radius: 50rpx;
+				padding: 0 30rpx;
+
+				.tips {
+					line-height: 70rpx;
+					font-size: 28rpx;
+				}
+
+				.qiehuan-icon {
+					width: 30rpx;
+					height: 30rpx;
+					margin-top: 20rpx;
+					margin-right: 10rpx;
+				}
+			}
+		}
+
+		.infoBox {
+			height: 200rpx;
+			background-color: #FFFFFF;
+			position: fixed;
+			top: 30rpx;
+			left: 10px;
+			right: 30rpx;
+			border-radius: 40rpx;
+			// padding:50rpx;
+			display: flex;
+			flex-direction: row;
+			margin-top: 160rpx;
+
+			.infoBox_left {
+				width: 250rpx;
+				padding-top: 50rpx;
+				// background-color: #18BC37;
+			}
+
+			.infoBox_right {
+				background-image: linear-gradient(to right, #f9f7f7, #ffffff);
+				display: flex;
+				flex-direction: row;
+				border-bottom-right-radius: 40rpx;
+				border-top-right-radius: 40rpx;
+
+				.jt-icon {
+					position: relative;
+					top: 40rpx;
+					width: 60rpx;
+					margin: auto 10rpx;
+				}
+
+				.send {
+					padding-top: 50rpx;
+					width: 180rpx;
+					// background-color: #0077AA;
+				}
+
+				.end {
+					padding-top: 50rpx;
+					width: 180rpx;
+				}
+			}
+
+			.title {
+				font-size: 40rpx;
+				font-weight: 600;
+				text-align: center;
+			}
+
+			.address {
+				text-align: center;
+				color: #8F8F8F;
+				font-size: 30rpx;
+				margin-top: 15rpx;
+			}
+
+			.estimate {
+				width: 120px;
+				text-align: center;
+			}
+		}
 	}
 	}
 </style>
 </style>

+ 10 - 7
pages/order/map.vue

@@ -1,5 +1,5 @@
 <template>
 <template>
-	<view>
+	<view class="center">
 		<map v-if="polyline[0].points.length > 0" id="myMap" :markers="markers" :polyline="polyline"
 		<map v-if="polyline[0].points.length > 0" id="myMap" :markers="markers" :polyline="polyline"
 			:include-points="polyline[0].points" :latitude="polyline[0].points[0].latitude"
 			:include-points="polyline[0].points" :latitude="polyline[0].points[0].latitude"
 			:longitude="polyline[0].points[0].longitude" style="width: 100%; height: calc(100vh - 90px)" />
 			:longitude="polyline[0].points[0].longitude" style="width: 100%; height: calc(100vh - 90px)" />
@@ -39,12 +39,14 @@
 						x: 0.5,
 						x: 0.5,
 						y: 1
 						y: 1
 					}
 					}
-				}]
+				}],
+				// infoData:{}
 			}
 			}
 		},
 		},
 		onLoad(option) {
 		onLoad(option) {
 			this.id = option.id
 			this.id = option.id
-			console.log(option.id)
+			// this.infoData = option
+			// console.log(option)
 			this.getTrack() //获取轨迹信息(只做演示,未进行远程请求)
 			this.getTrack() //获取轨迹信息(只做演示,未进行远程请求)
 		},
 		},
 		methods: {
 		methods: {
@@ -55,8 +57,8 @@
 						currentPage: 1,
 						currentPage: 1,
 						pageSize: 9999
 						pageSize: 9999
 					}).then(res => {
 					}).then(res => {
-						console.log("res", res)
-						// this.polyline[0].points = [
+						// console.log("res", res)
+						// let arr = [
 						// 	{latitude: 39.997761, longitude: 116.478935},
 						// 	{latitude: 39.997761, longitude: 116.478935},
 						// 	{latitude: 39.997825, longitude: 116.478939},
 						// 	{latitude: 39.997825, longitude: 116.478939},
 						// 	{latitude: 39.998549, longitude: 116.478912},
 						// 	{latitude: 39.998549, longitude: 116.478912},
@@ -74,6 +76,7 @@
 						// 	{latitude: 39.998968, longitude: 116.48367},
 						// 	{latitude: 39.998968, longitude: 116.48367},
 						// 	{latitude: 39.999861, longitude: 116.484648}
 						// 	{latitude: 39.999861, longitude: 116.484648}
 						// ]
 						// ]
+						// this.polyline[0].points.push(arr)
 						// this.durationTime = Math.ceil(30000 / this.polyline[0].points.length)	//默认播放全程使用30秒,计算相连两点动画时长
 						// this.durationTime = Math.ceil(30000 / this.polyline[0].points.length)	//默认播放全程使用30秒,计算相连两点动画时长
 						// this.initMapData()
 						// this.initMapData()
 					})
 					})
@@ -85,12 +88,11 @@
 							duration: 2000
 							duration: 2000
 						})
 						})
 					});
 					});
-
 			},
 			},
 			//设置地图
 			//设置地图
 			initMapData() {
 			initMapData() {
 				this.initMarkers()
 				this.initMarkers()
-				this.mapContext = uni.createMapContext('myMap', this)
+				this.mapContext = uni.createMapContext('myMap',this)
 			},
 			},
 			//设置位置(从起点开始)
 			//设置位置(从起点开始)
 			initMarkers() {
 			initMarkers() {
@@ -160,4 +162,5 @@
 		width: 750rpx;
 		width: 750rpx;
 		position: fixed;
 		position: fixed;
 	}
 	}
+	
 </style>
 </style>

+ 0 - 4
pages/order/signContract.vue

@@ -174,15 +174,12 @@
 										src: res.data.signImg,
 										src: res.data.signImg,
 										success(res) {
 										success(res) {
 											var ctx = uni.createCanvasContext('handWriting')
 											var ctx = uni.createCanvasContext('handWriting')
-											console.log(res.width);
-											console.log(res.height);
 											ctx.drawImage(res.path, 0, 0)
 											ctx.drawImage(res.path, 0, 0)
 											// ctx.drawImage(res.path, 0, 0, 330, 244)
 											// ctx.drawImage(res.path, 0, 0, 330, 244)
 											ctx.save()
 											ctx.save()
 											ctx.draw()
 											ctx.draw()
 										},
 										},
 										fail(res) {
 										fail(res) {
-											console.log("fail -> res", res)
 											uni.showToast({
 											uni.showToast({
 												title: "图片下载异常",
 												title: "图片下载异常",
 												duration: 2000,
 												duration: 2000,
@@ -252,7 +249,6 @@
 					destWidth: 330,
 					destWidth: 330,
 					destHeight: 244,
 					destHeight: 244,
 					success(res) {
 					success(res) {
-						console.log(res.tempFilePath, 'canvas生成图片地址');
 						uploadImage('image', res.tempFilePath, 'appData/',
 						uploadImage('image', res.tempFilePath, 'appData/',
 							result => {
 							result => {
 								// 上传成功
 								// 上传成功

+ 1 - 1
pages/public/login.vue

@@ -3,7 +3,7 @@
 		<u-icon class="back-btn" name="arrow-left" color="black" size="20" @click="navBack"></u-icon>
 		<u-icon class="back-btn" name="arrow-left" color="black" size="20" @click="navBack"></u-icon>
 		<view class="wrapper">
 		<view class="wrapper">
 			<image style='width:38px;height:38px;margin:223rpx 0 20px 0;' src='@/static/logo.png'></image>
 			<image style='width:38px;height:38px;margin:223rpx 0 20px 0;' src='@/static/logo.png'></image>
-			<h2 class="title Semibold">欢迎使用畅运通货主端</h2>
+			<h2 class="title Semibold">欢迎使用畅运通-货主端</h2>
 			<view
 			<view
 				style='position:relative;width:93%;margin-top:50px;border-bottom:1px solid #E8E9ED;padding:10px;align-items: center;'
 				style='position:relative;width:93%;margin-top:50px;border-bottom:1px solid #E8E9ED;padding:10px;align-items: center;'
 				class="flex">
 				class="flex">

+ 48 - 46
pages/release/addAddress.vue

@@ -68,7 +68,7 @@
 					contactPhone: "",
 					contactPhone: "",
 					longitude: "",
 					longitude: "",
 					latitude: "",
 					latitude: "",
-					adCode:"",
+					adCode: "",
 				},
 				},
 				// rules: {
 				// rules: {
 				// 	// 'addressInfo.name': {
 				// 	// 'addressInfo.name': {
@@ -122,56 +122,58 @@
 			},
 			},
 			toMap() {
 			toMap() {
 				let that = this
 				let that = this
-				// this.isShowMap = true
-				uni.getLocation({
-					type: 'gcj02',
-					geocode: true,
-					altitude: true,
-					isHighAccuracy: true,
+				uni.chooseLocation({
 					success: function(res) {
 					success: function(res) {
-						console.log('当前位置的经度:' + res.longitude);
-						console.log('当前位置的纬度:' + res.latitude);
-						uni.chooseLocation({
-							latitude: res.latitude,
-							longitude: res.longitude,
-							success: function(res) {
-								console.log(res);
-								console.log('位置名称:' + res.name);
-								console.log('详细地址:' + res.address);
-								console.log('纬度:' + res.latitude);
-								console.log('经度:' + res.longitude);
-								let _address = that.$helper.formatLocation(res.address)
-								that.addressInfo.latitude = res.latitude
-								that.addressInfo.longitude = res.longitude
-								that.addressInfo.detailedAddress = _address.Village
-								that.addressInfo.province = _address.Province
-								that.addressInfo.city = _address.City
-								that.addressInfo.area = _address.Country
-								that.addressInfo.commonId = that.userInfo.id
-								uni.request({
-									url: 'https://restapi.amap.com/v3/config/district?key=d29a9d10160efaca0dd616bbec936d7f&subdistrict=1&keywords=' +
-										_address.City,
-									success: (res) => {
-									  for(let i = 0 ; i < res.data.districts[0].districts.length ; i++){
-										  if(res.data.districts[0].districts[i].name == _address.Country){
-											  that.addressInfo.adCode = res.data.districts[0].districts[i].adcode
-											  console.log("行政区划代码"+that.addressInfo.adCode)
-											  break
-										  } 
-									  }
+						console.log(res);
+						console.log('位置名称:' + res.name);
+						console.log('详细地址:' + res.address);
+						console.log('纬度:' + res.latitude);
+						console.log('经度:' + res.longitude);
+						let _address = that.$helper.formatLocation(res.address)
+						that.addressInfo.latitude = res.latitude
+						that.addressInfo.longitude = res.longitude
+						that.addressInfo.detailedAddress = _address.Village ? _address.Village : res.name
+						that.addressInfo.province = _address.Province
+						that.addressInfo.city = _address.City
+						that.addressInfo.area = _address.Country
+						that.addressInfo.commonId = that.userInfo.id
+						uni.request({
+							url: 'https://restapi.amap.com/v3/config/district?key=d29a9d10160efaca0dd616bbec936d7f&subdistrict=1&keywords=' +
+								_address.City,
+							success: (res) => {
+								for (let i = 0; i < res.data.districts[0].districts.length; i++) {
+									if (res.data.districts[0].districts[i].name == _address
+										.Country) {
+										that.addressInfo.adCode = res.data.districts[0].districts[
+											i].adcode
+										console.log("行政区划代码" + that.addressInfo.adCode)
+										break
 									}
 									}
-								});
-								that.$forceUpdate()
-							},
-							fail(err) {
-								console.log(err)
-							},
-							complete(res1) {
-								console.log(res1)
+								}
 							}
 							}
 						});
 						});
+						that.$forceUpdate()
+					},
+					fail(err) {
+						console.log(err)
+					},
+					complete(res1) {
+						console.log(res1)
 					}
 					}
-				})
+				});
+
+				// this.isShowMap = true
+				// uni.getLocation({
+				// 	type: 'gcj02',
+				// 	geocode: true,
+				// 	altitude: true,
+				// 	isHighAccuracy: true,
+				// 	success: function(res) {
+				// 		console.log('当前位置的经度:' + res.longitude);
+				// 		console.log('当前位置的纬度:' + res.latitude);
+
+				// 	}
+				// })
 
 
 				// console.log(123)
 				// console.log(123)
 				// uni.$u.route('/pages/release/map', {
 				// uni.$u.route('/pages/release/map', {

+ 2 - 0
pages/release/editRelease.vue

@@ -354,6 +354,7 @@
 				this.dataObj.sendLatitude = _faddress.latitude
 				this.dataObj.sendLatitude = _faddress.latitude
 				this.dataObj.senderPhone = _faddress.contactPhone
 				this.dataObj.senderPhone = _faddress.contactPhone
 				this.dataObj.sender = _faddress.contacts
 				this.dataObj.sender = _faddress.contacts
+				this.dataObj.sendAdCode = _faddress.adCode
 			}
 			}
 			if (_saddress) {
 			if (_saddress) {
 				this.dataObj.unloadDetailedAddress = _saddress.detailedAddress
 				this.dataObj.unloadDetailedAddress = _saddress.detailedAddress
@@ -364,6 +365,7 @@
 				this.dataObj.unsendLatitude = _saddress.latitude
 				this.dataObj.unsendLatitude = _saddress.latitude
 				this.dataObj.receiver = _saddress.contacts
 				this.dataObj.receiver = _saddress.contacts
 				this.dataObj.receiverPhone = _saddress.contactPhone
 				this.dataObj.receiverPhone = _saddress.contactPhone
+				this.dataObj.unsendAdCode = _faddress.adCode
 			}
 			}
 		},
 		},
 		onLoad(options) {
 		onLoad(options) {

+ 14 - 6
pages/release/release.vue

@@ -22,7 +22,8 @@
 			<view class="row" @click="selectCargoOwner">
 			<view class="row" @click="selectCargoOwner">
 
 
 				<view class="left select-sf" :class='dataObj.cargoOwner?"":"select-sf1"'>
 				<view class="left select-sf" :class='dataObj.cargoOwner?"":"select-sf1"'>
-					{{dataObj.cargoOwner?dataObj.cargoOwner:'选择货主身份'}}</view>
+					{{dataObj.cargoOwner?dataObj.cargoOwner:'选择货主身份'}}
+				</view>
 				<view class="right">
 				<view class="right">
 					<image src="../../static/right.png" style="width: 22rpx;height: 22rpx;margin-top:14rpx;"></image>
 					<image src="../../static/right.png" style="width: 22rpx;height: 22rpx;margin-top:14rpx;"></image>
 				</view>
 				</view>
@@ -520,7 +521,7 @@
 			...mapState(['hasLogin', 'userInfo']),
 			...mapState(['hasLogin', 'userInfo']),
 		},
 		},
 		methods: {
 		methods: {
-			lookContract(){
+			lookContract() {
 				uni.downloadFile({
 				uni.downloadFile({
 					url: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/pcfiles/hzContract.pdf",
 					url: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/pcfiles/hzContract.pdf",
 					success: function(res) {
 					success: function(res) {
@@ -540,6 +541,7 @@
 					constId: "CON1"
 					constId: "CON1"
 				}).then(res => {
 				}).then(res => {
 					this.dataObj.goodsType = res.data[0].constValue
 					this.dataObj.goodsType = res.data[0].constValue
+					this.dataObj.goodsTypeKey = res.data[0].constKey
 					this.goodsList.push(res.data)
 					this.goodsList.push(res.data)
 				})
 				})
 			},
 			},
@@ -548,6 +550,7 @@
 					constId: "BUS1"
 					constId: "BUS1"
 				}).then(res => {
 				}).then(res => {
 					this.dataObj.businessType = res.data[0].constValue
 					this.dataObj.businessType = res.data[0].constValue
+					this.dataObj.businessTypeKey = res.data[0].constKey
 					this.businessList.push(res.data)
 					this.businessList.push(res.data)
 				})
 				})
 			},
 			},
@@ -573,6 +576,10 @@
 				this.isBusinessType = false
 				this.isBusinessType = false
 			},
 			},
 			getSFList() {
 			getSFList() {
+				uni.showLoading({
+					mask: true,
+					title: '加载中'
+				})
 				this.dataObj.commonId = this.userInfo.id
 				this.dataObj.commonId = this.userInfo.id
 				this.$request.baseRequest('get', '/cargoOwnerCompInfo/cargoOwnerList', {
 				this.$request.baseRequest('get', '/cargoOwnerCompInfo/cargoOwnerList', {
 						commonId: this.userInfo.id
 						commonId: this.userInfo.id
@@ -620,6 +627,7 @@
 								.companyName)
 								.companyName)
 						}
 						}
 						this.$forceUpdate()
 						this.$forceUpdate()
+						uni.hideLoading()
 					})
 					})
 					.catch(res => {});
 					.catch(res => {});
 
 
@@ -852,7 +860,6 @@
 				uni.$u.throttle(this.requestdata, 500)
 				uni.$u.throttle(this.requestdata, 500)
 			},
 			},
 			requestdata() {
 			requestdata() {
-				console.log(this.dataObj)
 				// // #ifdef APP-PLUS
 				// // #ifdef APP-PLUS
 				// if (this.alertTitle == '账号审核中') {
 				// if (this.alertTitle == '账号审核中') {
 				// 	if (uni.getSystemInfoSync().platform == 'ios') {
 				// 	if (uni.getSystemInfoSync().platform == 'ios') {
@@ -904,10 +911,10 @@
 				this.dataObj.commonId = this.userInfo.id
 				this.dataObj.commonId = this.userInfo.id
 				uni.$u.route('/pages/order/signContract', {
 				uni.$u.route('/pages/order/signContract', {
 					obj: JSON.stringify(this.dataObj),
 					obj: JSON.stringify(this.dataObj),
-					type:1
+					type: 1
 				});
 				});
 				// this.$request.baseRequest('post', '/publishTaskInfo/api/addTask', this.dataObj).then(res => {
 				// this.$request.baseRequest('post', '/publishTaskInfo/api/addTask', this.dataObj).then(res => {
-					
+
 				// 	if(res.code == 200){
 				// 	if(res.code == 200){
 				// 		uni.removeStorage({
 				// 		uni.removeStorage({
 				// 			key: 'storage_saddress'
 				// 			key: 'storage_saddress'
@@ -925,7 +932,7 @@
 				// 		// 		url: "/pages/release/release"
 				// 		// 		url: "/pages/release/release"
 				// 		// })
 				// 		// })
 				// 		this.dataObj.id = res.data 
 				// 		this.dataObj.id = res.data 
-						
+
 				// 	}
 				// 	}
 				// 	})
 				// 	})
 				// 	.catch(res => {
 				// 	.catch(res => {
@@ -1370,6 +1377,7 @@
 		box-sizing: border-box;
 		box-sizing: border-box;
 		border-radius: 10rpx;
 		border-radius: 10rpx;
 	}
 	}
+
 	uni-navigator {
 	uni-navigator {
 		display: inline-block;
 		display: inline-block;
 		color: #2772FB;
 		color: #2772FB;

+ 66 - 66
pages/release/selectAddress.vue

@@ -19,9 +19,8 @@
 				</view>
 				</view>
 				<view class="row flex row3">
 				<view class="row flex row3">
 					<u-radio-group placement="row" class="select-type" v-model="item.radiovalue">
 					<u-radio-group placement="row" class="select-type" v-model="item.radiovalue">
-						<u-radio :customStyle="radioCustomStyle" v-for="item1 in radiolist1"
-							:label="item1.name" :name="item1.name" @change="radioChange($event,item)" labelSize='12px'
-							:iconSize='10'>
+						<u-radio :customStyle="radioCustomStyle" v-for="item1 in radiolist1" :label="item1.name"
+							:name="item1.name" @change="radioChange($event,item)" labelSize='12px' :iconSize='10'>
 						</u-radio>
 						</u-radio>
 					</u-radio-group>
 					</u-radio-group>
 					<view class="flex">
 					<view class="flex">
@@ -53,8 +52,8 @@
 			<view class="btn-right" @click="selectAddress(1)">新增常用地址</view>
 			<view class="btn-right" @click="selectAddress(1)">新增常用地址</view>
 		</view>
 		</view>
 		<u-modal :show="isShowAlert" :title="alertTitle" :content='alertContent' :closeOnClickOverlay='true'
 		<u-modal :show="isShowAlert" :title="alertTitle" :content='alertContent' :closeOnClickOverlay='true'
-			:showCancelButton='showCancelButton' confirmColor='#2772FB' @confirm="$u.throttle(confirmClick, 1000)" @close="cancelClick"
-			@cancel="cancelClick"></u-modal>
+			:showCancelButton='showCancelButton' confirmColor='#2772FB' @confirm="$u.throttle(confirmClick, 1000)"
+			@close="cancelClick" @cancel="cancelClick"></u-modal>
 		<u-toast ref="uToast"></u-toast>
 		<u-toast ref="uToast"></u-toast>
 	</view>
 	</view>
 </template>
 </template>
@@ -99,7 +98,7 @@
 				isShowAlert: false,
 				isShowAlert: false,
 				alertTitle: "",
 				alertTitle: "",
 				alertContent: "",
 				alertContent: "",
-				showCancelButton:false
+				showCancelButton: false
 			}
 			}
 		},
 		},
 		computed: {
 		computed: {
@@ -170,7 +169,6 @@
 										/(\d{3})(\d{4})(\d{4})/, "$1****$3")
 										/(\d{3})(\d{4})(\d{4})/, "$1****$3")
 								}
 								}
 							}
 							}
-							console.log(res.data.records)
 							this.dataList = res.data.records
 							this.dataList = res.data.records
 							this.$forceUpdate()
 							this.$forceUpdate()
 							for (let i = 0; i < this.dataList.length; i++) {
 							for (let i = 0; i < this.dataList.length; i++) {
@@ -182,7 +180,7 @@
 								}
 								}
 							}
 							}
 
 
-							
+
 						}
 						}
 
 
 					})
 					})
@@ -196,8 +194,6 @@
 					});
 					});
 			},
 			},
 			radioChange(n, val) {
 			radioChange(n, val) {
-				console.log('radioChange', n);
-				console.log('radioChange', val);
 				for (var i = 0; i < this.dataList.length; i++) {
 				for (var i = 0; i < this.dataList.length; i++) {
 					if (this.dataList[i].defaultShipment == 1 && n == '默认装货') {
 					if (this.dataList[i].defaultShipment == 1 && n == '默认装货') {
 						this.dataList[i].radiovalue = ''
 						this.dataList[i].radiovalue = ''
@@ -270,66 +266,70 @@
 			selectAddress(type) {
 			selectAddress(type) {
 				// 0临时地址 1 新增地址
 				// 0临时地址 1 新增地址
 				if (type == 0) {
 				if (type == 0) {
-					console.log(111111111)
-					let that = this
-					uni.getLocation({
-						type: 'gcj02',
-						geocode:true,
-						altitude:true,
-						isHighAccuracy:true,
+					var that = this
+					uni.chooseLocation({
 						success: function(res) {
 						success: function(res) {
-							console.log('当前位置的经度:' + res.longitude);
-							console.log('当前位置的纬度:' + res.latitude);
-							uni.chooseLocation({
-								success: function(res) {
-									// var locationObj = that.$helper.formatLocation(res);
-									// console.log(locationObj)
-									console.log(res);
-									console.log('位置名称:' + res.name);
-									console.log('详细地址:' + res.address);
-									console.log('纬度:' + res.latitude);
-									console.log('经度:' + res.longitude);
-									let _address = that.$helper.formatLocation(res.address)
-									console.log('----------------------------')
-									console.log(_address, that.type)
-									var data = {}
-									data.latitude = res.latitude
-									data.longitude = res.longitude
-									data.detailedAddress = _address.Village
-									data.province = _address.Province
-									data.city = _address.City
-									data.area = _address.Country
-									data.commonId = that.userInfo.id
-									if (that.type == 0) {
-										uni.setStorageSync('storage_faddress', data)
-									} else {
-										uni.setStorageSync('storage_saddress', data)
+							// var locationObj = that.$helper.formatLocation(res);
+							// console.log(locationObj)
+							console.log(res);
+							console.log('位置名称:' + res.name);
+							console.log('详细地址:' + res.address);
+							console.log('纬度:' + res.latitude);
+							console.log('经度:' + res.longitude);
+							let _address = that.$helper.formatLocation(res.address)
+							console.log('----------------------------')
+							console.log(_address, that.type)
+							var data = {}
+							data.latitude = res.latitude
+							data.longitude = res.longitude
+							data.detailedAddress = _address.Village ? _address.Village : res.name
+							data.province = _address.Province
+							data.city = _address.City
+							data.area = _address.Country
+							data.commonId = that.userInfo.id
+							
+							console.log("城市",_address.City)
+							uni.request({
+								url: 'https://restapi.amap.com/v3/config/district?key=d29a9d10160efaca0dd616bbec936d7f&subdistrict=1&keywords=' +
+									_address.City,
+								success: (res) => {
+									for (let i = 0; i < res.data.districts[0].districts.length; i++) {
+										if (res.data.districts[0].districts[i].name == _address.Country) {
+											data.adCode = res.data.districts[0].districts[i].adcode
+											console.log("行政区划代码" + data.adCode)
+											// that.$forceUpdate()
+											if (that.type == 0) {
+												uni.setStorageSync('storage_faddress', data)
+											} else {
+												uni.setStorageSync('storage_saddress', data)
+											}
+											uni.navigateBack({
+												delta: 1
+											})
+											break
+										}
 									}
 									}
-
-									uni.navigateBack({
-										delta: 1
-									})
-									// uni.$u.route('/pages/release/release');
-									// that.temporaryAddress.latitude = res.latitude
-									// that.temporaryAddress.longitude = res.longitude
-									// that.temporaryAddress.detailedAddress = locationObj.ADDRESS
-									// that.temporaryAddress.province = locationObj.REGION_PROVINCE
-									// that.temporaryAddress.city = locationObj.REGION_CITY
-									// that.temporaryAddress.area = locationObj.REGION_COUNTRY
-									// that.temporaryAddress.commonId = that.userInfo.id
-									// that.configAddress(that.temporaryAddress)
-									// that.$forceUpdate()
-								},
-
-								fail(err) {
-									console.log(err)
-								},
-								complete(res1) {
-									console.log(res1)
 								}
 								}
 							});
 							});
+						},
+
+						fail(err) {
+							console.log(err)
+						},
+						complete(res1) {
+							console.log(res1)
 						}
 						}
-					})
+					});
+					// uni.getLocation({
+					// 	type: 'gcj02',
+					// 	geocode: true,
+					// 	isHighAccuracy: true,
+					// 	success: function(res) {
+					// 		console.log('当前位置的经度:' + res.longitude);
+					// 		console.log('当前位置的纬度:' + res.latitude);
+
+					// 	}
+					// })
 				} else {
 				} else {
 					uni.$u.route('/pages/release/addAddress', {
 					uni.$u.route('/pages/release/addAddress', {
 						type: type,
 						type: type,
@@ -349,7 +349,7 @@
 
 
 	.content {
 	.content {
 		height: 100vh;
 		height: 100vh;
-		overflow:scroll;
+		overflow: scroll;
 	}
 	}
 
 
 	.content2-wrap {
 	.content2-wrap {