소스 검색

货主发布页面修改

zhongtianhaoyuan 3 년 전
부모
커밋
6dceb4802d
5개의 변경된 파일21개의 추가작업 그리고 42개의 파일을 삭제
  1. 0 6
      pages/mine/cargoowner/editpersonalinformation.vue
  2. 1 1
      pages/public/login.vue
  3. 1 1
      pages/public/loginOther.vue
  4. 19 31
      pages/release/release.vue
  5. 0 3
      util/request.js

+ 0 - 6
pages/mine/cargoowner/editpersonalinformation.vue

@@ -192,8 +192,6 @@
 			},
 			//设置图片
 			setImage(e) {
-				// 
-				console.log(e);
 				//显示在页面
 				//this.imagesrc = e.path;
 				if (e.dotype == 'idphoto') {
@@ -247,7 +245,6 @@
 				// }
 			},
 			confirmValidityPeriod(e) {
-				console.log('confirm', e)
 				if (e.value[0] == '长期') {
 					this.dataDetails.cardValidityDate = e.value[0]
 				} else {
@@ -328,7 +325,6 @@
 				uni.chooseImage({
 					count: 1,
 					success: function(res) {
-						console.log(JSON.stringify(res.tempFilePaths));
 						uploadImage('image',res.tempFilePaths[0], 'appData/',
 							result => {
 								// 上传成功
@@ -342,8 +338,6 @@
 
 			imgTypeSelect(val) {
 				let that = this
-				console.log(val)
-				console.log(this.uploadType)
 				if (val.name == '相册') {
 					uni.chooseImage({
 						count: 1,

+ 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>
 		<view class="wrapper">
 			<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
 				style='position:relative;width:100%;margin-top:50px;border-bottom:1px solid #E8E9ED;padding:10px;align-items: center;'
 				class="flex">

+ 1 - 1
pages/public/loginOther.vue

@@ -4,7 +4,7 @@
 		<!-- 设置白色背景防止软键盘把下部绝对定位元素顶上来盖住输入框等 -->
 		<view class="wrapper">
 			<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 style='width:100%;margin-top:50px;border-bottom:1px solid #E8E9ED;padding:10px;' class="flex">
 				<view class="phone-before-num NumberMedium">+86</view>
 

+ 19 - 31
pages/release/release.vue

@@ -1,6 +1,6 @@
 <template>
 	<view class="content">
-		<u-navbar  title="发布" :placeholder="true" rightText="记录" @rightClick="goToRecord" @leftClick="back()">
+		<u-navbar title="发布" :placeholder="true" rightText="记录" @rightClick="goToRecord" @leftClick="back()">
 			<!-- view class="u-nav-slot" slot="left">
 				<u-icon name="arrow-left" size="19"></u-icon>
 				<u-line direction="column" :hairline="false" length="16" margin="0 8px"></u-line>
@@ -98,8 +98,7 @@
 			<view class="row">
 				<view class="left">收货方信用代码(选填)</view>
 				<view class="right flex">
-					<input placeholder="输入收货方信用代码" class="input"
-						v-model="dataObj.receiverCreditCode" />
+					<input placeholder="输入收货方信用代码" class="input" v-model="dataObj.receiverCreditCode" />
 				</view>
 			</view>
 			<view class="flex row">
@@ -140,7 +139,7 @@
 						v-model="dataObj.senderPhone" />
 				</view>
 			</view>
-			
+
 			<view class="row">
 				<view class="left">重量(吨)</view>
 				<view class="right flex">
@@ -329,14 +328,13 @@
 			}
 		},
 		onShow() {
-			console.log("点击发布")
 			if (!this.hasLogin) {
 				uni.$u.route('/pages/public/login');
 				return
 			}
-			if (uni.getStorageSync('userInfo').statusFlag == '已认证') {
+			if (uni.getStorageSync('firstAuthentication').authenticationStatus == '已认证') {
 				uni.$u.route('/pages/components/empty/index');
-			} else if (uni.getStorageSync('userInfo').statusFlag == '审核中') {
+			} else if (uni.getStorageSync('firstAuthentication').authenticationStatus == '审核中') {
 				uni.showToast({
 					title: '身份信息审核中'
 				})
@@ -365,7 +363,6 @@
 				this.showCancelButton = false
 				return
 			} else {
-				console.log(1231233212332312312213)
 			}
 			// #endif
 			this.validityPeriod = this.$helper.makeValidityPeriod(0, '随时')
@@ -430,33 +427,28 @@
 						// let _dlhz = res.data.cargoOwnerCompInfoList
 						let _dlhz = res.data.hyCargoOwnerCompInfoList
 						if (!_dlhz) _dlhz = []
-						for (let i = 0; i < _self.length; i++) {
-							if (_self[i].status == '已认证') {
-								this.qyList.push(_self[i])
+						if (!_self) _self = []
+						if (_self.length > 0) {
+							for (let i = 0; i < _self.length; i++) {
+								if (_self[i].status == '已认证') {
+									this.qyList.push(_self[i])
+								}
 							}
 						}
-
-						for (let i = 0; i < _dlhz.length; i++) {
-							if (_dlhz[i].status == '已认证') {
-								this.qyList.push(_dlhz[i])
+						this.columns[0].push("个人货主")
+						if (_dlhz.length > 0) {
+							for (let i = 0; i < _dlhz.length; i++) {
+								if (_dlhz[i].status == '已认证') {
+									this.qyList.push(_dlhz[i])
+								}
 							}
 						}
-						// 		this.columns: [
-						// 	['个人货主', '黑龙江中天昊元贸易有限公司', '黑龙江利润元贸易有限公司']
-						// ],
 						for (let i = 0; i < this.qyList.length; i++) {
 							this.columns[0].push(this.qyList[i].company ? this.qyList[i].company : this.qyList[i]
 								.companyName)
 						}
-						console.log('1111', _this.columns)
-
 					})
 					.catch(res => {
-						uni.showToast({
-							title: res.message,
-							icon: 'none',
-							duration: 2000
-						})
 					});
 
 
@@ -504,7 +496,7 @@
 					})
 					return true
 				}
-				
+
 				if (uni.$u.test.isEmpty(this.dataObj.receiverIdcard)) {
 					this.$refs.uToast.show({
 						type: 'error',
@@ -521,7 +513,7 @@
 				}
 				if (
 					this.dataObj.freightPrice < 0 || this.dataObj.freightPrice > 100000 || (
-						String(this.dataObj.freightPrice).indexOf('.') != -1 && String(tthis.dataObj.freightPrice).length -
+						String(this.dataObj.freightPrice).indexOf('.') != -1 && String(this.dataObj.freightPrice).length -
 						(String(this.dataObj.freightPrice).indexOf(
 							'.') + 1) > 2)
 				) {
@@ -815,7 +807,6 @@
 				});
 			},
 			checkboxChange(n) {
-				console.log('change', n);
 				if (n.length > 1 && n.length < 4 && n.includes('不限')) {
 					n.shift(0)
 				} else if (n.length == 4) {
@@ -826,7 +817,6 @@
 				this.isShowcardValidity = true
 			},
 			confirmValidityPeriod(e) {
-				console.log('confirm', e)
 				if (e.value[0] == '随时') {
 					switch (this.ValidityPeriodType) {
 						case 0:
@@ -859,7 +849,6 @@
 				this.isShowValidity = false
 			},
 			confirmValidityPeriodcq(e) {
-				console.log('confirm', e)
 				if (e.value[0] == '长期') {
 					this.dataObj.taskValidity = e.value[0]
 				} else {
@@ -888,7 +877,6 @@
 				uni.$u.route('/pages/release/record');
 			},
 			radioChange(n) {
-				console.log('radioChange', n);
 				this.dataDetails.type = n
 			},
 			submit() {

+ 0 - 3
util/request.js

@@ -17,12 +17,9 @@ const baseRequest = (method, url, data,header) => {
 			'content-type': contentheader //'application/x-www-form-urlencoded; charset=UTF-8',
 		}
 		}
-		console.log("djewghjdhjcnjgsdf",method)
 		let promise = new Promise(function(resolve, reject) {
 			uni.request(baseDefaultOpts).then(
 				(res) => {
-					console.log("hahahahhahahahahahah")
-					console.log(res)
 					// console.log(JSON.stringify(res[1].data))
 					if(res[1].data.code == '200' || res[1].data.code == 200){
 						// 后端返回的状态码100为成功状态,成功则返回请求结果,在app调试时可以通过console.log(JSON.stringify(res[1].data))来查看返回值(以项目实际情况为准)