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

706
pages/mainPages/Settled/Settled.vue

@ -1,4 +1,4 @@
<template> <template>
<!-- 商铺入驻 --> <!-- 商铺入驻 -->
<view id="app"> <view id="app">
<loadlogo v-if="!isWxaudit" /> <loadlogo v-if="!isWxaudit" />
@ -26,7 +26,7 @@
</view> </view>
<view class="mainPackage"> <view class="mainPackage">
<!-- 用户信息区域 --> <!-- 用户信息区域 -->
<view class="userInfo"> <view class="userInfo">
<view class="userInfoPackage" style="color: #f00;font-size: 12px;padding-bottom: 4rpx;line-height: 40rpx;" v-if="userInfo.reject">驳回原因{{userInfo.reject}}</view> <view class="userInfoPackage" style="color: #f00;font-size: 12px;padding-bottom: 4rpx;line-height: 40rpx;" v-if="userInfo.reject">驳回原因{{userInfo.reject}}</view>
<view class="userInfoPackage"> <view class="userInfoPackage">
<view class="firstTitle"> <view class="firstTitle">
@ -172,33 +172,33 @@
</view> </view>
</view> </view>
</view> </view>
<!-- 用户信息区域 --> <!-- 用户信息区域 -->
<!-- 营业执照 --> <!-- 营业执照 -->
<view class="userImg"> <view class="userImg">
<view class="userInfoPackage"> <view class="userInfoPackage">
<view class="firstTitle"> <view class="firstTitle">
<view class="firstTitleName"> <view class="firstTitleName">
<view class="line"></view> <view class="line"></view>
<span style="color:red;width:6rpx;">*</span> <span style="color:red;width:6rpx;">*</span>
<span>企业营业执照</span> <span>企业营业执照</span>
</view> </view>
<view class="firstTitleTips"></view> <view class="firstTitleTips"></view>
</view> </view>
<view class="twiceTitle1"> <view class="twiceTitle1">
<view> <view>
<!-- 图片预览循环模板 --> <!-- 图片预览循环模板 -->
<view class="imgPreview" v-if="userInfo.business_license !== null"> <view class="imgPreview" v-if="userInfo.business_license !== null">
<image :src="imageRootNew2 + userInfo.business_license" /> <image :src="imageRootNew2 + userInfo.business_license" />
<image :src="imgfixUrls + 'merchant/close.png'" class="close" @click="closePreview(7)" /> <image :src="imgfixUrls + 'merchant/close.png'" class="close" @click="closePreview(7)" />
</view> </view>
<!-- 图片预览循环模板 --> <!-- 图片预览循环模板 -->
<view class="userImgUpdata" @click="uploadFiles(7, 1)" v-if="userInfo.business_license == null"> <view class="userImgUpdata" @click="uploadFiles(7, 1)" v-if="userInfo.business_license == null">
<image :src="imgfixUrls + 'merchant/addImg.svg'" /> <image :src="imgfixUrls + 'merchant/addImg.svg'" />
</view> </view>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<!-- 营业执照 --> <!-- 营业执照 -->
<!-- 企业信息区域 --> <!-- 企业信息区域 -->
@ -259,24 +259,24 @@
<span></span> <span></span>
</view> </view>
<image :src="imgfixUrls + 'merchant/right.svg'" /> <image :src="imgfixUrls + 'merchant/right.svg'" />
</view>
<view class="userInfoInputMain" v-if="switchIndex == 1">
<span style="color:red;width:10rpx;">*</span>
<span>{{languageStatus!=1?'企业亮点':''}}</span>
<input :placeholder="languageStatus!=1?'请输入企业亮点':''" v-model="userInfo.recruit_brighten" />
</view> </view>
<view class="userInfoInputMain" v-if="switchIndex == 1"> <view class="userInfoInputMain" v-if="switchIndex == 1">
<span style="color:red;width:10rpx;">*</span> <span style="color:red;width:10rpx;">*</span>
<span>{{languageStatus!=1?'企业亮点':''}}</span> <span>企业类型</span>
<input :placeholder="languageStatus!=1?'请输入企业亮点':''" v-model="userInfo.recruit_brighten" /> <view class="timePickerView" style="width: 336rpx;">
</view> <picker @change="newTypeChange" class="dataPicker" :value="newTypeIndex" range-key="name" :range="newTypeList">
<view class="userInfoInputMain" v-if="switchIndex == 1"> <view class="uni-input">{{newTypeList[newTypeIndex].name}}
<span style="color:red;width:10rpx;">*</span> </view>
<span>企业类型</span> </picker>
<view class="timePickerView" style="width: 336rpx;"> <span></span>
<picker @change="newTypeChange" class="dataPicker" :value="newTypeIndex" range-key="name" :range="newTypeList"> </view>
<view class="uni-input">{{newTypeList[newTypeIndex].name}} <image :src="imgfixUrls + 'merchant/right.svg'" />
</view> </view>
</picker>
<span></span>
</view>
<image :src="imgfixUrls + 'merchant/right.svg'" />
</view>
<view class="twiceTitle" v-if="switchIndex == 1 && 0"> <view class="twiceTitle" v-if="switchIndex == 1 && 0">
<span>企业幻灯片(750X560)</span> <span>企业幻灯片(750X560)</span>
<view> <view>
@ -294,42 +294,53 @@
<view class="twiceTitle" v-if="switchIndex == 1" style="display: flex; <view class="twiceTitle" v-if="switchIndex == 1" style="display: flex;
align-items: center; align-items: center;
justify-content: space-between;"> justify-content: space-between;">
<span>企业长图</span> <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> <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="imgPreview" v-for="(item,index) in userInfo.recruit_long_img" :key="index"> <view class="twiceTitle" v-if="switchIndex == 1" style="margin-top: 0px;">
<image :src="item" /> <view>
<image :src="imgfixUrls + 'merchant/close.png'" class="close" <!-- 图片预览循环模板 -->
@click="closePreview(6, item)" /> <view class="imgPreview" v-for="(item,index) in userInfo.recruit_long_img" :key="index">
</view> <image :src="item" />
<!-- 图片预览循环模板 --> <image :src="imgfixUrls + 'merchant/close.png'" class="close"
<view class="userImgUpdata" @click="uploadFiles(6, 6)"> @click="closePreview(6, item)" />
<image :src="imgfixUrls + 'merchant/addImg.svg'" /> </view>
</view> <!-- 图片预览循环模板 -->
</view> <view class="userImgUpdata" @click="uploadFiles(6, 6)">
</view> <image :src="imgfixUrls + 'merchant/addImg.svg'" />
<view class="twiceTitle" style="position: relative;"> </view>
<span style="color:red;width:10rpx;">*</span> </view>
<span>企业简介</span> </view>
<jinEdit placeholder="请输入内容" @editOk="editOk1" uploadFileUrl="/#" :html="userInfo.introduction" @editFocus="editFocus1"></jinEdit> <view class="twiceTitle">
<!-- <view style="margin-top: 10px;font-size: 11px;color: #999;padding-bottom: 10px;"> <!-- <span style="color:red;width:10rpx;">*</span> -->
<text style="color: #f00;margin: 5px;">*</text> <span>企业简介</span>
请点击完成编辑 <view class="userIntroduceInput">
</view> --> <view class="userIntroduceInputPackage"><textarea placeholder="请输入企业简介" v-model="userInfo.introduction" :maxlength="-1"></textarea></view>
</view> </view>
<view class="twiceTitle" style="position: relative;"> <!-- <jinEdit placeholder="请输入内容" @editOk="editOk1" uploadFileUrl="/#" :html="userInfo.introduction" @editFocus="editFocus1"></jinEdit> -->
<span style="color:red;width:10rpx;">*</span> <!-- <view style="margin-top: 10px;font-size: 11px;color: #999;padding-bottom: 10px;">
<span>经营业务</span> <text style="color: #f00;margin: 5px;">*</text>
<jinEdit placeholder="请输入内容" @editOk="editOk2" uploadFileUrl="/#" :html="userInfo.business" @editFocus="editFocus2"></jinEdit> 请点击完成编辑
</view> </view> -->
<view class="twiceTitle" style="position: relative;"> </view>
<span>企业优势</span> <view class="twiceTitle">
<jinEdit placeholder="请输入内容" @editOk="editOk3" uploadFileUrl="/#" :html="userInfo.advantage" @editFocus="editFocus3"></jinEdit> <!-- <span style="color:red;width:10rpx;">*</span> -->
<span>经营业务</span>
<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">
<span>企业优势</span>
<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> </view>
</view> </view>
</view> </view>
<!-- 企业信息区域 --> <!-- 企业信息区域 -->
@ -621,7 +632,7 @@
import Loadlogo from '@/components/template/loadlogo.vue'; import Loadlogo from '@/components/template/loadlogo.vue';
import wPickerb from '@/components/w-picker/w-picker.vue' import wPickerb from '@/components/w-picker/w-picker.vue'
import PhoneMask from '@/components/template/PhoneMask'; import PhoneMask from '@/components/template/PhoneMask';
import getvxphone from '@/components/template/getVXphone.vue' import getvxphone from '@/components/template/getVXphone.vue'
import jinEdit from '@/components/jin-edit/jin-edit.vue'; import jinEdit from '@/components/jin-edit/jin-edit.vue';
// #ifdef H5 // #ifdef H5
import wxApi from '@/common/js/wxApi.js'; import wxApi from '@/common/js/wxApi.js';
@ -636,7 +647,7 @@
Loadlogo, Loadlogo,
PhoneMask, PhoneMask,
wPickerb, wPickerb,
getvxphone, getvxphone,
jinEdit jinEdit
}, },
data() { data() {
@ -685,7 +696,7 @@
visiblec: false, visiblec: false,
userInfo: { userInfo: {
storename: '', storename: '',
name: '', name: '',
position: '', position: '',
mobile: '', mobile: '',
lat: '', lat: '',
@ -704,11 +715,11 @@
album: [], album: [],
examine: [], examine: [],
thumbimages: [], thumbimages: [],
cateidArray: [], cateidArray: [],
business_license: null,// business_license: null,//
recruit_brighten: '',// recruit_brighten: '',//
recruit_adv: [],// recruit_adv: [],//
recruit_long_img: [], recruit_long_img: [],
introduction: '',// introduction: '',//
business: '',// business: '',//
advantage: '',// advantage: '',//
@ -753,12 +764,12 @@
startTime:'00:00' startTime:'00:00'
}], }],
btnOff:false, btnOff:false,
addressDisabled:true, addressDisabled:true,
newTypeList: [],// newTypeList: [],//
newTypeIndex: '', newTypeIndex: '',
setcolor1: '', setcolor1: '',
setcolor2: '', setcolor2: '',
setcolor3: '#666', setcolor3: '#666',
}; };
}, },
@ -806,8 +817,10 @@
_this.storeChecked = false; _this.storeChecked = false;
_this.provinceidName = _this.languageStatus != 1?'请选择省市区':'성/시/구 선택 입력하세요' _this.provinceidName = _this.languageStatus != 1?'请选择省市区':'성/시/구 선택 입력하세요'
// _this.getloctions(); // _this.getloctions();
// _this.init(); // _this.init();
this.getNewType();// this.getNewType();//
_this.init(999);//onHide-onShowonShow
}, },
onHide() {}, onHide() {},
watch: { watch: {
@ -862,7 +875,6 @@
this.onshowIshow = false; this.onshowIshow = false;
return return
} }
_this.init(999);
}, },
methods: { methods: {
deletcheck(id) { deletcheck(id) {
@ -1009,23 +1021,23 @@
that.showP = !that.showP; that.showP = !that.showP;
} }
}); });
/** typelist = [ /** typelist = [
[ [
{ {
twotype:[ twotype:[
{checked: true, id: null}, {checked: true, id: null},
itemT itemT
] ]
}, },
{twotype:[]}, {twotype:[]},
{twotype:[]}, {twotype:[]},
itemI, itemI,
itemI itemI
], ],
1, 1,
2 2
] ]
**/ **/
that.typelist[0].forEach((itemI, index) => { that.typelist[0].forEach((itemI, index) => {
// that.typelist[0][index].twotype.forEach(itemT => { // that.typelist[0][index].twotype.forEach(itemT => {
itemI.twotype.forEach(itemT => { itemI.twotype.forEach(itemT => {
@ -1077,7 +1089,7 @@
for (let i = 0; i < _this.type2Url.length; i++) { for (let i = 0; i < _this.type2Url.length; i++) {
if (url == _this.type2Url[i]) { if (url == _this.type2Url[i]) {
_this.type2Url.splice(i, 1); _this.type2Url.splice(i, 1);
_this.userInfo.adv.splice(i, 1); _this.userInfo.adv.splice(i, 1);
console.log(_this.type2Url, _this.userInfo.adv) console.log(_this.type2Url, _this.userInfo.adv)
} }
} }
@ -1106,14 +1118,14 @@
} }
} }
} }
if (type == 6) { if (type == 6) {
for (let i = 0; i < _this.userInfo.recruit_long_img.length; i++) { for (let i = 0; i < _this.userInfo.recruit_long_img.length; i++) {
if (url == _this.userInfo.recruit_long_img[i]) { if (url == _this.userInfo.recruit_long_img[i]) {
_this.userInfo.recruit_long_img.splice(i, 1); _this.userInfo.recruit_long_img.splice(i, 1);
} }
} }
} }
if (type == 7) { if (type == 7) {
_this.userInfo.business_license=null; _this.userInfo.business_license=null;
} }
}, },
@ -1328,9 +1340,9 @@
'&p=store&do=createChargeOrder', '&p=store&do=createChargeOrder',
data, data,
res => { res => {
if (res.data.status == '0') { if (res.data.status == '0') {
uni.redirectTo({ uni.redirectTo({
url: '/pagesA/identityList/identityList' url: '/pagesA/identityList/identityList'
}) })
// App.navigationTo({ // App.navigationTo({
// url: 'pages/subPages/merchant/merchantChangeShop/merchantChangeShop' // url: 'pages/subPages/merchant/merchantChangeShop/merchantChangeShop'
@ -1366,28 +1378,28 @@
let cityListLeft = []; let cityListLeft = [];
let cityListCenter = []; let cityListCenter = [];
let cityListRight = []; let cityListRight = [];
App._post_form('&p=store&do=storeSettled', data, res => { App._post_form('&p=store&do=storeSettled', data, res => {
// if(res.data.havestore){ // if(res.data.havestore){
// App.showError("", function() { // App.showError("", function() {
// // uni.navigateBack({ // // uni.navigateBack({
// // delta: 1 // // delta: 1
// // }) // // })
// // return; // // return;
// }) // })
// } // }
_this.userInfo = { ..._this.userInfo, _this.userInfo = { ..._this.userInfo,
...res.data.store, ...res.data ...res.data.store, ...res.data
}; };
// if (_this.switchIndex == 1) { // if (_this.switchIndex == 1) {
// this.userInfo.recruit_nature_id = this.userInfo.nature[this.natureIndex].id; // this.userInfo.recruit_nature_id = this.userInfo.nature[this.natureIndex].id;
// this.userInfo.recruit_scale_id = this.userInfo.scale[this.scaleIndex].id; // this.userInfo.recruit_scale_id = this.userInfo.scale[this.scaleIndex].id;
// this.userInfo.recruit_industry_id = this.userInfo.industry[this.industryIndex].id; // this.userInfo.recruit_industry_id = this.userInfo.industry[this.industryIndex].id;
// } // }
// _this.userInfo.address; // _this.userInfo.address;
// _this.provinceidName = _this.userInfo.provinceid; // _this.provinceidName = _this.userInfo.provinceid;
// _this.areaidName = _this.userInfo.areaid; // _this.areaidName = _this.userInfo.areaid;
// _this.distidName = _this.userInfo.distid; // _this.distidName = _this.userInfo.distid;
if(!_this.userInfo.top_img){ if(!_this.userInfo.top_img){
_this.userInfo.top_img = _this.backImages; _this.userInfo.top_img = _this.backImages;
@ -1463,11 +1475,14 @@
_this.userInfo.havestore = 1; _this.userInfo.havestore = 1;
}; };
console.log(idis); console.log(idis);
}, err=>{
uni.navigateBack({ //
delta: 1 // setTimeout(()=>{ // uni.pageScrollTo({ // scrollTop: 0, // success(res) { // console.log(res,'11111111'); // } // }) // }, 2000)
}) }, err=>{
uni.navigateBack({
delta: 1
})
}); });
}, },
checkRight(id) { checkRight(id) {
@ -1502,141 +1517,141 @@
}); });
_this.isWxaudit = !_this.isWxaudit; _this.isWxaudit = !_this.isWxaudit;
_this.isWxaudit = !_this.isWxaudit; _this.isWxaudit = !_this.isWxaudit;
}, },
newSaveUserInfo(){ newSaveUserInfo(){
let _this = this; let _this = this;
if(_this.btnOff == true) return if(_this.btnOff == true) return
_this.btnOff = true; _this.btnOff = true;
setTimeout(()=>{ setTimeout(()=>{
_this.btnOff = false; _this.btnOff = false;
},2000) },2000)
// //
if (_this.userInfo.storename == '') { if (_this.userInfo.storename == '') {
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
title: '企业名称不能为空', title: '企业名称不能为空',
duration: 2000 duration: 2000
}); });
return; return;
} }
if (_this.userInfo.name == '') { if (_this.userInfo.name == '') {
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
title: '姓名不能为空', title: '姓名不能为空',
duration: 2000 duration: 2000
}); });
return; return;
} }
if (_this.userInfo.position == '') { if (_this.userInfo.position == '') {
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
title: '职务不能为空', title: '职务不能为空',
duration: 2000 duration: 2000
}); });
return; return;
} }
let phone_reg = new RegExp(/^(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}$/); let phone_reg = new RegExp(/^(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}$/);
let myreg = /^(((13[0-9]{1})|(14[0-9]{1})|(15[0-9]{1})|(16[0-9]{1})|(17[0-9]{1})|(19[0-9]{1})|(18[0-9]{1}))+\d{8})$/; let myreg = /^(((13[0-9]{1})|(14[0-9]{1})|(15[0-9]{1})|(16[0-9]{1})|(17[0-9]{1})|(19[0-9]{1})|(18[0-9]{1}))+\d{8})$/;
if (!myreg.test(_this.userInfo.mobile) && !phone_reg.test(_this.userInfo.mobile)) { if (!myreg.test(_this.userInfo.mobile) && !phone_reg.test(_this.userInfo.mobile)) {
App.showError("电话号码格式不正确"); App.showError("电话号码格式不正确");
return return
} }
if (_this.userInfo.address == '') { if (_this.userInfo.address == '') {
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
title: '详细地址不能为空', title: '详细地址不能为空',
duration: 2000 duration: 2000
}); });
return; return;
} }
if (_this.userInfo.business_license == null) { if (_this.userInfo.business_license == null) {
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
title: '请上传营业执照', title: '请上传营业执照',
duration: 2000 duration: 2000
}); });
return; return;
} }
if (_this.switchIndex ==1 && _this.userInfo.recruit_brighten == '') { if (_this.switchIndex ==1 && _this.userInfo.recruit_brighten == '') {
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
title: '企业亮点不能为空', title: '企业亮点不能为空',
duration: 2000 duration: 2000
}); });
return; return;
} }
var text1=this.getText(this.userInfo.introduction); // var text1=this.getText(this.userInfo.introduction);
if(this.isNull(text1) && this.userInfo.introduction.indexOf('<img ')==-1 || this.userInfo.introduction.replace(/(^\s*)|(\s*$)/g, "")==""){ // if(this.isNull(text1) && this.userInfo.introduction.indexOf('<img ')==-1 || this.userInfo.introduction.replace(/(^\s*)|(\s*$)/g, "")==""){
uni.showToast({ // uni.showToast({
icon:'none', // icon:'none',
title: '企业简介不能为空', // title: '',
duration: 2000 // duration: 2000
}); // });
return ; // return ;
} // }
var text2=this.getText(this.userInfo.business); // var text2=this.getText(this.userInfo.business);
if(this.isNull(text2) && this.userInfo.business.indexOf('<img ')==-1 || this.userInfo.business.replace(/(^\s*)|(\s*$)/g, "")==""){ // if(this.isNull(text2) && this.userInfo.business.indexOf('<img ')==-1 || this.userInfo.business.replace(/(^\s*)|(\s*$)/g, "")==""){
uni.showToast({ // uni.showToast({
icon:'none', // icon:'none',
title: '经营业务不能为空', // title: '',
duration: 2000 // duration: 2000
}); // });
return ; // return ;
} // }
if (!_this.storeChecked) { if (!_this.storeChecked) {
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
title: '请先阅读《企业入驻相关条款》', title: '请先阅读《企业入驻相关条款》',
duration: 2000 duration: 2000
}); });
return return
} }
if (_this.switchIndex == 1) { if (_this.switchIndex == 1) {
this.userInfo.recruit_switch = this.switchList[this.switchIndex].id; this.userInfo.recruit_switch = this.switchList[this.switchIndex].id;
this.userInfo.recruit_nature_id = this.userInfo.nature[this.natureIndex].id; this.userInfo.recruit_nature_id = this.userInfo.nature[this.natureIndex].id;
this.userInfo.recruit_scale_id = this.userInfo.scale[this.scaleIndex].id; this.userInfo.recruit_scale_id = this.userInfo.scale[this.scaleIndex].id;
this.userInfo.recruit_industry_id = this.userInfo.industry[this.industryIndex].id; this.userInfo.recruit_industry_id = this.userInfo.industry[this.industryIndex].id;
} }
// let store_housekeep = []; // let store_housekeep = [];
// let housekeep_cate = JSON.stringify(store_housekeep); // let housekeep_cate = JSON.stringify(store_housekeep);
let jsonString = JSON.stringify(this.userInfo.cateidArray); let jsonString = JSON.stringify(this.userInfo.cateidArray);
let storehours = JSON.stringify(this.storehours); let storehours = JSON.stringify(this.storehours);
let base64 = new this.$util.Base64(); let base64 = new this.$util.Base64();
this.userInfo.cateidArray = base64.encode(jsonString); this.userInfo.cateidArray = base64.encode(jsonString);
let data = this.userInfo; let data = this.userInfo;
data.storehours = base64.encode(storehours); data.storehours = base64.encode(storehours);
// data.store_housekeep_cate = base64.encode(housekeep_cate); // data.store_housekeep_cate = base64.encode(housekeep_cate);
this.userInfo.sale_id = this.e.sale_id; this.userInfo.sale_id = this.e.sale_id;
data.cc_id = this.newTypeList[this.newTypeIndex].id; data.cc_id = this.newTypeList[this.newTypeIndex].id;
App._post_form('&p=store&do=createStore', data, res => { App._post_form('&p=store&do=createStore', data, res => {
uni.setStorageSync('userId', res.data); uni.setStorageSync('userId', res.data);
_this.userInfo.storeid = res.data.storeid; _this.userInfo.storeid = res.data.storeid;
if(res.data.jump_pay===1){ if(res.data.jump_pay===1){
_this.page = 2; _this.page = 2;
_this.getChargeList(); _this.getChargeList();
_this.btnOff = false; _this.btnOff = false;
_this.userInfo.store_housekeep_cate = []; _this.userInfo.store_housekeep_cate = [];
}else{ }else{
uni.showToast({ uni.showToast({
title: '提交成功' title: '提交成功'
}) })
setTimeout(()=>{ setTimeout(()=>{
uni.navigateBack({ uni.navigateBack({
delta: 1 delta: 1
}) })
}, 1000) }, 1000)
} }
}, err=>{ }, err=>{
_this.btnOff = false; _this.btnOff = false;
_this.userInfo.store_housekeep_cate = []; _this.userInfo.store_housekeep_cate = [];
}); });
}, },
// () // ()
saveUserInfo() { saveUserInfo() {
@ -1700,8 +1715,8 @@
duration: 2000 duration: 2000
}); });
return; return;
} }
// :industryIndextwoLevelList // :industryIndextwoLevelList
if (_this.userInfo.business_license == null) { if (_this.userInfo.business_license == null) {
uni.showToast({ uni.showToast({
@ -1710,7 +1725,7 @@
duration: 2000 duration: 2000
}); });
return; return;
} }
if (_this.switchIndex ==1 && _this.userInfo.recruit_brighten == '') { if (_this.switchIndex ==1 && _this.userInfo.recruit_brighten == '') {
uni.showToast({ uni.showToast({
@ -1780,11 +1795,11 @@
_this.userInfo.storeid = res.data.storeid; _this.userInfo.storeid = res.data.storeid;
_this.page = 2; _this.page = 2;
_this.getChargeList(); _this.getChargeList();
_this.btnOff = false; _this.btnOff = false;
_this.userInfo.store_housekeep_cate = [];
}, err=>{
_this.btnOff = false;
_this.userInfo.store_housekeep_cate = []; _this.userInfo.store_housekeep_cate = [];
}, err=>{
_this.btnOff = false;
_this.userInfo.store_housekeep_cate = [];
}); });
}, },
// id // id
@ -1944,9 +1959,9 @@
_this.onkoc = 0; _this.onkoc = 0;
_this.addressDisabled = false; _this.addressDisabled = false;
_this.getloctions(_this.lblis) _this.getloctions(_this.lblis)
}, },
// fail(err){ // fail(err){
// console.log('-----',err); // console.log('-----',err);
// } // }
}); });
// #endif // #endif
@ -2022,60 +2037,60 @@
month = month > 9 ? month : '0' + month; month = month > 9 ? month : '0' + month;
day = day > 9 ? day : '0' + day; day = day > 9 ? day : '0' + day;
return `${year}-${month}-${day}`; return `${year}-${month}-${day}`;
}, },
// - // -
getNewType(){ getNewType(){
App._post_form('&p=cultivateClass&do=getCultivateClassChildList', { App._post_form('&p=cultivateClass&do=getCultivateClassChildList', {
cc_id: 8 cc_id: 8
}, res => { }, res => {
this.newTypeList = res.data.map(item=>{ this.newTypeList = res.data.map(item=>{
return { return {
...item, ...item,
value: item.name value: item.name
} }
}); });
this.newTypeIndex = 0; this.newTypeIndex = 0;
}); });
}, },
newTypeChange(e){ newTypeChange(e){
this.newTypeIndex = e.detail.value; this.newTypeIndex = e.detail.value;
}, },
// //
editFocus1(){ editFocus1(){
this.setcolor1 = "#509DFD"; this.setcolor1 = "#509DFD";
}, },
editFocus2(){ editFocus2(){
this.setcolor2 = "#509DFD"; this.setcolor2 = "#509DFD";
}, },
editFocus3(){ editFocus3(){
this.setcolor3 = "#509DFD"; this.setcolor3 = "#509DFD";
}, },
editOk1(res) { editOk1(res) {
this.userInfo.introduction = res.html; this.userInfo.introduction = res.html;
}, },
editOk2(res) { editOk2(res) {
this.userInfo.business = res.html; this.userInfo.business = res.html;
}, },
editOk3(res) { editOk3(res) {
this.userInfo.advantage = res.html; this.userInfo.advantage = res.html;
}, },
// //
getText(str){return str.replace(/<[^<>]+>/g, "").replace(/&nbsp;/gi, "");}, getText(str){return str.replace(/<[^<>]+>/g, "").replace(/&nbsp;/gi, "");},
isNull(str){if ( str == "" ) return true;var regu = "^[ ]+$";var re = new RegExp(regu);return re.test(str);}, isNull(str){if ( str == "" ) return true;var regu = "^[ ]+$";var re = new RegExp(regu);return re.test(str);},
// //
asfd(){ asfd(){
//#ifdef MP-WEIXIN //#ifdef MP-WEIXIN
this.CustomerService = uni.getStorageSync('CustomerService'); this.CustomerService = uni.getStorageSync('CustomerService');
wx.openCustomerServiceChat({ wx.openCustomerServiceChat({
extInfo: {url: this.CustomerService.customerurl||''}, extInfo: {url: this.CustomerService.customerurl||''},
corpId: this.CustomerService.enterpriseid, corpId: this.CustomerService.enterpriseid,
success(res) { success(res) {
} }
}) })
//#endif //#endif
} }
} }
}; };
@ -2389,7 +2404,8 @@
vertical-align: middle; vertical-align: middle;
display: inline-block; display: inline-block;
} }
} }
} }
.twiceTitle1 { .twiceTitle1 {

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

@ -108,6 +108,26 @@
<view class="psition-tag" v-if="recruitmentDetails.recruit_long_img.length>0"> <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> <image class="longpic" :src="item" mode="widthFix" v-for="(item, index) in recruitmentDetails.recruit_long_img" :key="index"></image>
</view> </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>
<view class="information"> <view class="information">
<view class="dis-flex" @click="nvgeing"> <view class="dis-flex" @click="nvgeing">

Loading…
Cancel
Save