zhengkaixin hai 1 ano
pai
achega
5dc380ba9c

+ 1 - 1
apis/pagejs/packages.js

@@ -69,7 +69,7 @@ export function uploadPicture(data) {
 }
 
 export function createJobHunt(data) {
- 	return requestWhite({
+ 	return request({
  		method: 'post',
  		data: data,
  		url: '/mobile/job/createJobHunt'

+ 18 - 1
pages/main/index/index.vue

@@ -213,7 +213,8 @@
 			}
 		},
 		onLoad() {
-			this.findRecruitHomePage();
+			this.findRecruitHomePage();
+			this.findByOpenId();
 		},
 		computed:{
 			showRecordsTotal(){
@@ -224,6 +225,22 @@
 			}
 		},
 		methods: {
+			findByOpenId(){
+				
+				 API_weixin.findByOpenId({
+					 openId:this.carhelp.getOpenId(),
+					 noerror:true
+				 }).then((res) => {
+					 
+					 this.carhelp.setPersonInfo(res.data.regUser );
+					 this.carhelp.setToken(res.data.token);
+					 this.carhelp.setPersonInfoPlus(res.data);
+					 
+				 }).catch(error => {
+					
+				 })
+				
+			},
 			findRecruitHomePage(){
 				uni.showLoading({
 					title: "加载中",

+ 4 - 1
pages/packages/mine/employmentService/laborManagement/postMessage.vue

@@ -150,7 +150,10 @@
 			}
 		},
 		methods: {
-
+			submit(){
+				const eventChannel = this.getOpenerEventChannel();
+				eventChannel.emit('refreshData');
+			}
 		}
 	}
 </script>

+ 16 - 5
pages/packages/mine/myJobInformation/myJobInformation.vue

@@ -23,7 +23,7 @@
 
 			</view>
 			
-			<u-select v-model="show" value-name="id" label-name="name"
+			<u-select v-model="show" value-name="value" label-name="name"
 			 :list="list" @confirm="confirm"></u-select>
 
 			<!-- 信息填写 -->
@@ -122,7 +122,7 @@
 				<text>*</text>服务描述
 			</view>
 			<textarea class="textarea"  v-model="formData.serviceDesc"
-			 placeholder="请描述您能提供哪些服务,或者是您擅长的,有足浴您更快、更准确的找到工作。"></textarea>
+			 placeholder="请描述您能提供哪些服务,或者是您擅长的,有助于您更快、更准确的找到工作。"></textarea>
 		</view>
 
 		<button class="save"  @click="submit"
@@ -178,9 +178,20 @@
 				this.formData.photo=this.src
 				API.createJobHunt(this.formData).then((res) => {
 					uni.hideLoading();
-					this.sqlList[k]=res.data.dictionaryList
-					this.list=this.sqlList[k];
-					this.show= true
+					
+					uni.showModal({
+						title: '提示',
+						content: '操作成功',
+						showCancel:false,
+						success: function (res) {
+							if (res.confirm) {
+								
+								uni.navigateBack()
+							} else if (res.cancel) {
+								console.log('用户点击取消');
+							}
+						}
+					});
 					
 				}).catch(error => {
 				

+ 54 - 13
pages/tab/mine/mine.vue

@@ -37,19 +37,19 @@
 				求职信息
 			</view>
 			 <u-grid :col="3" :border="false">
-			 		<u-grid-item>
+			 		<u-grid-item  @click="gotoMyJobInformation">
 			 			<view class="icon">
 			 				<img src="@/assets/img/riLine-folder-user-line@1x.png" alt="">
 			 			</view>
 			 			<view class="grid-text">求职信息</view>
 			 		</u-grid-item>
-			 		<u-grid-item>
+			 		<u-grid-item  @click="gotoUrl('pages/packages/mine/myJobInformation/myRegistration?c=0')">
 			 			<view class="icon">
 			 				<img src="@/assets/img/riLine-todo-line@1x.png" alt="">
 			 			</view>
 			 			<view class="grid-text">我的报名</view>
 			 		</u-grid-item>
-			 		<u-grid-item>
+			 		<u-grid-item  @click="gotoUrl('pages/packages/mine/myJobInformation/myRegistration?c=1')">
 						<u-badge count="1" size="mini" :offset="[28,34]"></u-badge>
 			 			<view class="icon">
 			 				<img src="@/assets/img/riLine-mail-star-line@1x.png" alt="">
@@ -65,25 +65,25 @@
 				用工服务
 			</view>
 			 <u-grid :col="4" :border="false">
-			 		<u-grid-item>
+			 		<u-grid-item  @click="gotoUrl('pages/packages/mine/employmentService/laborManagement/laborManagement')">
 			 			<view class="icon">
 			 				<img src="@/assets/img/riLine-folder-2-line@1x.png" alt="">
 			 			</view>
 			 			<view class="grid-text">用工管理</view>
 			 		</u-grid-item>
-			 		<u-grid-item>
+			 		<u-grid-item @click="gotoUrl('pages/packages/mine/employmentService/receiveRegistration?c=0')">
 			 			<view class="icon">
 			 				<img src="@/assets/img/riLine-inbox-archive-line@1x.png" alt="">
 			 			</view>
 			 			<view class="grid-text">收到报名</view>
 			 		</u-grid-item>
-			 		<u-grid-item>
+			 		<u-grid-item  @click="gotoUrl('pages/packages/mine/employmentService/receiveRegistration?c=1')">
 			 			<view class="icon">
 			 				<img src="@/assets/img/riLine-time-line@1x.png" alt="">
 			 			</view>
 			 			<view class="grid-text">邀请记录</view>
 			 		</u-grid-item>
-					<u-grid-item>
+					<u-grid-item @click="gotoUrl('pages/packages/mine/employmentService/shareEmployment')">
 						<view class="icon">
 							<img src="@/assets/img/riLine-service-line@1x.png" alt="">
 						</view>
@@ -106,7 +106,7 @@
 			 			</view>
 			 			<view class="grid-text">实名认证</view>
 			 		</u-grid-item>
-			 		<u-grid-item>
+			 		<u-grid-item @click="showPhoneMethod">
 			 			<view class="icon">
 			 				<img src="@/assets/img/riLine-customer-service-line@1x.png" alt="">
 			 			</view>
@@ -143,7 +143,9 @@
 				</view>
 			</u-popup>
 		 
-
+		<u-modal v-model="showPhone" @confirm="confirmPhone" :confirm-text="confirmText" confirm-color="#606266" :show-cancel-button="true" ref="uModal"
+			:asyncClose="true" :title="title" :content="content" :content-style="{fontSize: '24px',color: '#101010'}"></u-modal>
+			
 		<tabbar  :current="4"></tabbar>
 	</view>
 </template>
@@ -161,17 +163,55 @@
 		data() {
 			return {
 				src: '',
-				show:true,
+				show:false,
 			    value: 'false',
-				userInfo:{}
-							
+				userInfo:{},
+				showPhone:false,
+				confirmText: '拨打电话',	
+				content:""
 			}
 		},
 		onLoad() {
+			
 			this.findByOpenId();
 			
 		},
 		methods: {
+			gotoMyJobInformation(){
+				//zkx 需要认证
+				uni.navigateTo({
+					url:"/pages/packages/mine/myJobInformation/myJobInformation"
+				})
+			},
+			
+			confirmPhone(){
+				this.showPhone = false;
+				uni.makePhoneCall({
+					phoneNumber:this.content //仅为示例
+				});
+			},
+			showPhoneMethod(){
+				if(this.content==""){
+					uni.showLoading({
+						title: "加载中",
+						mask: true,
+					})
+					 API_weixin.findValueByName({
+						 name:'客服电话'
+					 }).then((res) => {
+						 this.content=res.data
+						
+						 uni.hideLoading();
+						 this.showPhone=true;
+					 }).catch(error => {
+						this.showPhone=false;
+						uni.hideLoading();
+					 })
+				}else{
+					 this.showPhone=true;
+				}
+				
+			},
 			findByOpenId(){
 				uni.showLoading({
 					title: "加载中",
@@ -189,6 +229,7 @@
 					 uni.hideLoading();
 					 this.show=false;
 				 }).catch(error => {
+					  this.show=true;
 					 this.userInfo=null;
 					 uni.hideLoading();
 				 	// uni.showToast({
@@ -236,7 +277,7 @@
 			},
 			toAuthentication() {
 				uni.navigateTo({
-					url: '/pages/mine/otherServices/authentication'
+					url: '/pages/packages/mine/otherServices/authentication'
 				})
 			}
 		}

+ 4 - 2
uni_modules/uview-ui/components/u-input/u-input.vue

@@ -135,7 +135,7 @@ export default {
 		},
 		placeholderStyle: {
 			type: String,
-			default: 'color: #c0c4cc;text-align: end;'
+			default: 'color: #c0c4cc;text-align: start;'
 		},
 		confirmType: {
 			type: String,
@@ -252,7 +252,9 @@ export default {
 			return Number(this.maxlength);
 		},
 		getStyle() {
-			let style = {};
+			let style = {
+				textAlign: "start"
+			};
 			// 如果没有自定义高度,就根据type为input还是textare来分配一个默认的高度
 			style.minHeight = this.height ? this.height + 'rpx' : this.type == 'textarea' ?
 				this.textareaHeight + 'rpx' : this.inputHeight + 'rpx';