luyisha 2 years ago
parent
commit
059b2814b8
  1. 74
      pages/mainPages/Settled/Settled.vue
  2. 20
      pages/subPages2/hirePlatform/recruitmentDetails/recruitmentDetails.vue

74
pages/mainPages/Settled/Settled.vue

@ -296,7 +296,10 @@
justify-content: space-between;">
<span>企业长图</span>
<button style="display: inline-block;margin:0px;font-size: 14px;color: #ff4444;background-color: transparent;" open-type="contact" hover-class="none" @click="asfd">个性定制</button>
<view v-if="0">
</view>
<view class="twiceTitle" v-if="switchIndex == 1" style="margin-top: 0px;">
<view>
<!-- 图片预览循环模板 -->
<view class="imgPreview" v-for="(item,index) in userInfo.recruit_long_img" :key="index">
<image :src="item" />
@ -309,27 +312,35 @@
</view>
</view>
</view>
<view class="twiceTitle" style="position: relative;">
<span style="color:red;width:10rpx;">*</span>
<view class="twiceTitle">
<!-- <span style="color:red;width:10rpx;">*</span> -->
<span>企业简介</span>
<jinEdit placeholder="请输入内容" @editOk="editOk1" uploadFileUrl="/#" :html="userInfo.introduction" @editFocus="editFocus1"></jinEdit>
<view class="userIntroduceInput">
<view class="userIntroduceInputPackage"><textarea placeholder="请输入企业简介" v-model="userInfo.introduction" :maxlength="-1"></textarea></view>
</view>
<!-- <jinEdit placeholder="请输入内容" @editOk="editOk1" uploadFileUrl="/#" :html="userInfo.introduction" @editFocus="editFocus1"></jinEdit> -->
<!-- <view style="margin-top: 10px;font-size: 11px;color: #999;padding-bottom: 10px;">
<text style="color: #f00;margin: 5px;">*</text>
请点击完成编辑
</view> -->
</view>
<view class="twiceTitle" style="position: relative;">
<span style="color:red;width:10rpx;">*</span>
<view class="twiceTitle">
<!-- <span style="color:red;width:10rpx;">*</span> -->
<span>经营业务</span>
<jinEdit placeholder="请输入内容" @editOk="editOk2" uploadFileUrl="/#" :html="userInfo.business" @editFocus="editFocus2"></jinEdit>
<view class="userIntroduceInput">
<view class="userIntroduceInputPackage"><textarea placeholder="请输入经营业务" v-model="userInfo.business" :maxlength="-1"></textarea></view>
</view>
<!-- <jinEdit placeholder="请输入内容" @editOk="editOk2" uploadFileUrl="/#" :html="userInfo.business" @editFocus="editFocus2"></jinEdit> -->
</view>
<view class="twiceTitle" style="position: relative;">
<view class="twiceTitle">
<span>企业优势</span>
<jinEdit placeholder="请输入内容" @editOk="editOk3" uploadFileUrl="/#" :html="userInfo.advantage" @editFocus="editFocus3"></jinEdit>
<view class="userIntroduceInput">
<view class="userIntroduceInputPackage"><textarea placeholder="请输入企业优势" v-model="userInfo.advantage" :maxlength="-1"></textarea></view>
</view>
<!-- <jinEdit placeholder="请输入内容" @editOk="editOk3" uploadFileUrl="/#" :html="userInfo.advantage" @editFocus="editFocus3"></jinEdit> -->
</view>
</view>
</view>
</view>
</view>
<!-- 企业信息区域 -->
@ -808,6 +819,8 @@
// _this.getloctions();
// _this.init();
this.getNewType();//
_this.init(999);//onHide-onShowonShow
},
onHide() {},
watch: {
@ -862,7 +875,6 @@
this.onshowIshow = false;
return
}
_this.init(999);
},
methods: {
deletcheck(id) {
@ -1464,6 +1476,9 @@
};
console.log(idis);
//
// setTimeout(()=>{ // uni.pageScrollTo({ // scrollTop: 0, // success(res) { // console.log(res,'11111111'); // } // }) // }, 2000)
}, err=>{
uni.navigateBack({
delta: 1
@ -1568,25 +1583,25 @@
});
return;
}
var text1=this.getText(this.userInfo.introduction);
if(this.isNull(text1) && this.userInfo.introduction.indexOf('<img ')==-1 || this.userInfo.introduction.replace(/(^\s*)|(\s*$)/g, "")==""){
uni.showToast({
icon:'none',
title: '企业简介不能为空',
duration: 2000
});
return ;
}
// var text1=this.getText(this.userInfo.introduction);
// if(this.isNull(text1) && this.userInfo.introduction.indexOf('<img ')==-1 || this.userInfo.introduction.replace(/(^\s*)|(\s*$)/g, "")==""){
// uni.showToast({
// icon:'none',
// title: '',
// duration: 2000
// });
// return ;
// }
var text2=this.getText(this.userInfo.business);
if(this.isNull(text2) && this.userInfo.business.indexOf('<img ')==-1 || this.userInfo.business.replace(/(^\s*)|(\s*$)/g, "")==""){
uni.showToast({
icon:'none',
title: '经营业务不能为空',
duration: 2000
});
return ;
}
// var text2=this.getText(this.userInfo.business);
// if(this.isNull(text2) && this.userInfo.business.indexOf('<img ')==-1 || this.userInfo.business.replace(/(^\s*)|(\s*$)/g, "")==""){
// uni.showToast({
// icon:'none',
// title: '',
// duration: 2000
// });
// return ;
// }
if (!_this.storeChecked) {
uni.showToast({
@ -2390,6 +2405,7 @@
display: inline-block;
}
}
}
.twiceTitle1 {

20
pages/subPages2/hirePlatform/recruitmentDetails/recruitmentDetails.vue

@ -108,6 +108,26 @@
<view class="psition-tag" v-if="recruitmentDetails.recruit_long_img.length>0">
<image class="longpic" :src="item" mode="widthFix" v-for="(item, index) in recruitmentDetails.recruit_long_img" :key="index"></image>
</view>
<template v-else>
<view class="psition-title" v-if="recruitmentDetails.introduction">
<view class="title dis-il-block" style="display: inline-block;">企业简介</view>
</view>
<view class="psition-tag" v-if="recruitmentDetails.introduction">
<text v-html="recruitmentDetails.introduction"></text>
</view>
<view class="psition-title" v-if="recruitmentDetails.business">
<view class="title dis-il-block" style="display: inline-block;">经营业务</view>
</view>
<view class="psition-tag" v-if="recruitmentDetails.business">
<text v-html="recruitmentDetails.business"></text>
</view>
<view class="psition-title" v-if="recruitmentDetails.advantage">
<view class="title dis-il-block" style="display: inline-block;">企业优势</view>
</view>
<view class="psition-tag" v-if="recruitmentDetails.advantage">
<text v-html="recruitmentDetails.advantage"></text>
</view>
</template>
</view>
<view class="information">
<view class="dis-flex" @click="nvgeing">

Loading…
Cancel
Save