zhongtianhaoyuan 1 år sedan
förälder
incheckning
74bf89d481
4 ändrade filer med 39 tillägg och 30 borttagningar
  1. 7 1
      App.vue
  2. 2 2
      config/index.js
  3. 29 26
      pages/goodSource/shippingDetails.vue
  4. 1 1
      pages/order/confirmLoading.vue

+ 7 - 1
App.vue

@@ -351,7 +351,7 @@
 										}
 										this.$helper.gjList.push(_data)
 										uni.setStorageSync('mapGJ', this.$helper.gjList);
-										if (uni.getStorageSync('mapGJ').length > 100) {
+										if (uni.getStorageSync('mapGJ').length > 10) {
 											this.$request.baseRequest('post',
 													'/hyOrderTravelPath/api/addInfo', {
 														orderId: that.id,
@@ -536,5 +536,11 @@
 </script>
 
 <style>
+/* 	.uni-input-input{
+		filter: blur(4px);
+	}
+	uni-image{
+		filter: blur(4px);
+	} */
 	/*每个页面公共css */
 </style>

+ 2 - 2
config/index.js

@@ -1,6 +1,6 @@
 const dev = {
-	baseUrlNew: 'https://api.changyuntong56.com',
-	// baseUrlNew: 'http://192.168.110.9:8099',
+	// baseUrlNew: 'https://api.changyuntong56.com',
+	baseUrlNew: 'http://192.168.110.9:8099',
 	// baseUrlNew: 'http://192.168.110.82:8999',
 	// baseUrlNew: 'http://192.168.110.67:8999',
 	h5Appid: 'wxb66b599f7f61b46f',

+ 29 - 26
pages/goodSource/shippingDetails.vue

@@ -24,10 +24,10 @@
 			<view class="content1">
 				<view class="row1 flex flex-space-between">
 					<view class="left flex">
-						<u--image
+						<u-image
 							:src="detailData.cargoOwnerPortrait?detailData.cargoOwnerPortrait:'../../static/images/mine/tx.png'"
 							width='122rpx' height='122rpx' shape="circle">
-						</u--image>
+						</u-image>
 						<view class="fontsize-46 ml20">{{detailData.cargoOwnerCall}}</view>
 					</view>
 					<view class="right">
@@ -124,11 +124,11 @@
 					<view class="left">车型</view>
 					<!-- carModel -->
 					<view class="right">
-						<text v-if="detailData.carModel.indexOf('1') != -1">不限</text>
+						<text>{{this.carModel}}</text>
+						<!-- <text v-show="detailData.carModel.indexOf('1') != -1">不限</text>
 						<text v-show="detailData.carModel.indexOf('2') != -1">高栏 | </text>
 						<text v-show="detailData.carModel.indexOf('3') != -1">集装箱 | </text>
-						<text v-show="detailData.carModel.indexOf('4') != -1">自卸车</text>
-					
+						<text v-show="detailData.carModel.indexOf('4') != -1">自卸车</text> -->
 					</view>
 					<!-- <view class="right" v-else>不限</view> -->
 				</view>
@@ -176,6 +176,7 @@
 				src: 'https://cdn.uviewui.com/uview/album/1.jpg',
 				id: '',
 				detailData: {},
+				carModel:""
 			};
 		},
 		onLoad(options) {
@@ -198,6 +199,23 @@
 				console.log(length)
 				return length
 			},
+			
+			carWeight() {
+				this.detailData.loadWeightSmall
+				this.detailData.loadWeight
+				let weight = ''
+				if (this.detailData.loadWeightSmall && this.detailData.loadWeight) {
+					weight = this.detailData.loadWeightSmall + '~' + this.detailData.loadWeight + '吨'
+				} else if (this.detailData.loadWeightSmall) {
+					weight = "大于" + this.detailData.loadWeightSmall + '吨'
+				} else if (this.detailData.loadWeight) {
+					weight = "小于" + this.detailData.loadWeight + '吨'
+				}
+				console.log(weight)
+				return weight
+			},
+		},
+		methods: {
 			carType() {
 				let _val = '';
 				if (!this.detailData.carModel) this.detailData.carModel = ''
@@ -215,24 +233,8 @@
 					}
 				}
 				console.log(_val)
-				return _val
+				this.carModel = _val
 			},
-			carWeight() {
-				this.detailData.loadWeightSmall
-				this.detailData.loadWeight
-				let weight = ''
-				if (this.detailData.loadWeightSmall && this.detailData.loadWeight) {
-					weight = this.detailData.loadWeightSmall + '~' + this.detailData.loadWeight + '吨'
-				} else if (this.detailData.loadWeightSmall) {
-					weight = "大于" + this.detailData.loadWeightSmall + '吨'
-				} else if (this.detailData.loadWeight) {
-					weight = "小于" + this.detailData.loadWeight + '吨'
-				}
-				console.log(weight)
-				return weight
-			},
-		},
-		methods: {
 			share() {
 				console.log('share')
 			},
@@ -249,14 +251,15 @@
 				// 		uni.$u.toast(res.message);
 				// 	});
 			},
-			async init() {
-				await this.$request.baseRequest('get', '/publishTaskInfo/seeTask', {
+			init() {
+				this.$request.baseRequest('get', '/publishTaskInfo/seeTask', {
 						id: this.id,
 						// id: '8f1f3c624d7946d79a9d44a4057d9623',
 					}).then(res => {
 						if (res.code == 200) {
-							this.detailData = res.data
-						}
+							this.detailData = res.data	
+												this.carType()
+					}
 					})
 					.catch(res => {
 						uni.$u.toast(res.message);

+ 1 - 1
pages/order/confirmLoading.vue

@@ -782,7 +782,7 @@
 								// console.log(this.$helper.gjList)
 								console.log("条数", uni.getStorageSync('mapGJ').length)
 								// console.log("条数", uni.getStorageSync('mapGJ'))
-								if (uni.getStorageSync('mapGJ').length > 100) {
+								if (uni.getStorageSync('mapGJ').length > 10) {
 									// console.log(JSON.stringify(uni.getStorageSync('mapGJ')))
 									// that.send()
 									that.$request.baseRequest('post', '/hyOrderTravelPath/api/addInfo', {