lyuis 7 місяців тому
батько
коміт
17b1f72fef
3 змінених файлів з 71 додано та 16 видалено
  1. 18 13
      pages/msg/im.vue
  2. 6 0
      pages/msg/interviewInvitation.vue
  3. 47 3
      pages/msg/selectInterview.vue

+ 18 - 13
pages/msg/im.vue

@@ -60,7 +60,7 @@
 						发简历
 					</view>
 				</view>
-				<view class="topSe-box-item flex flex-wrap justify-center">
+				<view class="topSe-box-item flex flex-wrap justify-center" @click="noIdtent()">
 					<image src="../../static/im/nowei.svg" style="width: 48rpx;height: 48rpx;" mode=""></image>
 					<view class="" style="color: #999999;">
 						无兴趣
@@ -388,7 +388,7 @@
 
 						<image @tap="viewImg(item.content)" v-if="item.content && item.messageType === 2"
 							:src="item.content" style="height: 200rpx;width: 200rpx;margin-left: 20rpx;"></image>
-						<image class="chat-listitem-text" @tap="viewImg(item.content)"
+						<image class="chat-listitem-text" 
 							v-if="item.content && item.messageType === 4"
 							:src="'../../static/emoji/' +item.content"
 							style="height: 80rpx;width: 80rpx;margin-left: 20rpx;"></image>
@@ -508,8 +508,8 @@
 						<image @longpress="caozuoActive(item)" @tap="viewImg(item.content)"
 							v-if="item.content && item.messageType === 2" :src="item.content"
 							style="height: 200rpx;width: 200rpx;margin-right: 20rpx;"></image>
-						<image class="chat-listitem-text textColor" @longpress="caozuoActive(item)"
-							@tap="viewImg(item.content)" v-if="item.content && item.messageType === 4"
+						<image class="chat-listitem-text textColor"
+							v-if="item.content && item.messageType === 4"
 							:src="'../../static/emoji/' +item.content"
 							style="height: 80rpx;width: 80rpx;margin-right: 20rpx;">
 						</image>
@@ -737,9 +737,9 @@
 			</view>
 			<view class="avatorm flex justify-center">
 				<view class="avatorm-box flex justify-center">
-					<block v-if="records.userEntity && records.userEntity.userAvatar">
-						<image :src="records.userEntity.userAvatar"
-							style="width: 100rpx;height: 100rpx;border-radius: 50%;" mode="">
+					<block v-if="records.userEntity && records.userEntity.avatar">
+						<image :src="records.userEntity.avatar"
+							style="width: 100rpx;height: 100rpx;border-radius: 50%;" mode="aspectFill">
 						</image>
 					</block>
 					<block v-else>
@@ -747,9 +747,9 @@
 							mode="">
 						</image>
 					</block>
-					<block v-if="records.company && records.company.companyLogo">
-						<image :src="records.company.companyLogo"
-							style="width: 100rpx;height: 100rpx;border-radius: 50%;" mode="">
+					<block v-if="records.hr && records.hr.hrImg">
+						<image :src="records.hr.hrImg"
+							style="width: 100rpx;height: 100rpx;border-radius: 50%;" mode="aspectFill">
 						</image>
 					</block>
 					<block v-else>
@@ -766,7 +766,7 @@
 							面试岗位:
 						</view>
 						<view class="avatorm-box-item-r">
-							{{records.postPush?records.postPush.stationName:'未知'}}
+							{{records.postPush?records.postPush.ruleClassifyName:'未知'}}
 						</view>
 					</view>
 					<view class="avatorm-box-item flex" v-if="records">
@@ -774,7 +774,7 @@
 							面试时间:
 						</view>
 						<view class="avatorm-box-item-r">
-							{{records.interviewDateTime}}
+							{{records.interviewDateTime&&records.interviewDateTime.substring(0, 10)||''}} {{records.detailTime}}
 						</view>
 					</view>
 					<view class="avatorm-box-item flex" @click="goMapDap(records)">
@@ -1434,7 +1434,7 @@
 			//获取用户是否有面试记录
 			getInterviewList() {
 				let data = {
-					userId: uni.getStorageSync('userId'),
+					/* userId: uni.getStorageSync('userId'), */
 					status: 1,
 					postPushId: this.postPushId
 				}
@@ -1713,6 +1713,7 @@
 					}
 				})
 			},
+			
 			//交换微信号弹窗
 			currentWchat() {
 				let that = this
@@ -1832,6 +1833,10 @@
 					}
 				})
 			},
+			noIdtent(){
+				this.content='抱歉,我对该岗位暂无兴趣';
+				this.setChatSave(1)
+			},
 			gotoInfo(id) {
 				uni.navigateTo({
 					url: '/pages/index/game/order?postPushId=' + id

+ 6 - 0
pages/msg/interviewInvitation.vue

@@ -220,6 +220,8 @@
 				remarks: "",
 				detailedAddress: "",
 				address: "",
+				latitude:0,
+				longitude:0,
 				detailTime: "",
 				onlineType: "",
 				onlineMsg: "",
@@ -344,6 +346,8 @@
 									this.selectedAddress = data.address + data.floor
 									this.detailedAddress = data.floor
 									this.address = data.address
+									this.latitude=data.latitude
+									this.longitude=data.longitude
 								} else if (type === 'addPerson') {
 									this.personList.push(data)
 								} else if (type === 'editPerson') {
@@ -442,6 +446,8 @@
 					detailedAddress: this.detailedAddress,
 					type: this.radioValue,
 					address: this.address,
+					lat:this.latitude,
+					lng:this.longitude,
 					detailTime: this.selectedTime,
 					onlineType: this.selecteMethodText,
 					onlineMsg: this.onlineMsg,

+ 47 - 3
pages/msg/selectInterview.vue

@@ -4,7 +4,9 @@
 		<view class="content">
 			<view class="cell-box">
 				<view class="cell-title">{{type == 'address'?'面试地点':'姓名'}}</view>
-				<u-input v-model="address" type="text" :border="true"
+				<u-input disabled v-model="address" v-if="type=='address'" type="text" @click="selectAddress" :border="true"
+					placeholder="请选择地址"/>
+				<u-input v-else v-model="address" type="text" :border="true"
 					:placeholder="type == 'address'?'请输入办公大楼名称,例:碧桂园凤凰智谷':'请输入联系人姓名'" />
 			</view>
 
@@ -34,6 +36,8 @@
 				title: '面试地址',
 				id: '',
 				address: '',
+				latitude:0,
+				longitude:0,
 				floor: '',
 				floorLength: 0,
 				callback: null,
@@ -76,7 +80,9 @@
 					if (this.type === 'address') {
 						this.callback({
 							address: this.address,
-							floor: this.floor
+							floor: this.floor,
+							latitude:this.latitude,
+							longitude:this.longitude
 						})
 					} else if (this.type === 'addPerson') {
 
@@ -115,7 +121,45 @@
 					}
 				}
 				uni.navigateBack();
-			}
+			},
+			selectAddress: function() {
+				var that = this;
+				var latitude;
+				var longitude;
+				if (this.latitude != "") {
+					latitude = this.latitude;
+					longitude = this.longitude;
+					that.chooseLocation(latitude, longitude);
+				} else {
+					if(this.$queue.getData('latitude')){
+						latitude = this.$queue.getData('latitude');
+						longitude = this.$queue.getData('longitude');
+					}
+					that.chooseLocation(latitude, longitude);
+				}
+			},
+			chooseLocation(latitude, longitude) {
+				var that = this;
+				if (parseInt(latitude) <= 0) {
+					latitude = "";
+					longitude = "";
+				}
+				uni.chooseLocation({
+					latitude: latitude,
+					longitude: longitude,
+					success: function(res) {
+						console.log(res);
+						if (res.latitude == undefined)
+							return that.$common.toast("请选择一个地址");
+						that.address = res.address + res.name;
+						that.latitude = res.latitude;
+						that.longitude = res.longitude;
+					},
+					fail: function(err) {
+						console.log("选择位置失败:", err);
+					},
+				});
+			},
 		}
 	};
 </script>