|
|
@@ -5,7 +5,7 @@
|
|
|
<view class="ms-title">编辑公司及品牌信息</view>
|
|
|
<view class="ms-item">
|
|
|
<view class="ms-item-title" @click="checkBaseMsg">
|
|
|
- <view class="ms-title-txt">基本信息5/5</view>
|
|
|
+ <view class="ms-title-txt">基本信息{{filledInCount[0]}}/5</view>
|
|
|
<view class="ms-title-icon">
|
|
|
<image
|
|
|
src="@/static/images/my/my/top-up.svg"
|
|
|
@@ -25,35 +25,40 @@
|
|
|
<view class="name-content-item">
|
|
|
<view class="name-item">品牌logo</view>
|
|
|
<view class="value-item">
|
|
|
- <image src="" mode="scaleToFill" />
|
|
|
+ <text v-if="!companyinfo.companyLogo">未添加</text>
|
|
|
+ <image :src="companyinfo.companyLogo" mode="scaleToFill" v-else/>
|
|
|
<u-icon name="arrow-right" color="#999" size="20"></u-icon>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="name-content-item">
|
|
|
<view class="name-item">公司名称</view>
|
|
|
<view class="value-item">
|
|
|
- <text>汉瑞国际</text>
|
|
|
+ <text v-if="!companyinfo.companyName">未添加</text>
|
|
|
+ <text v-else>{{companyinfo.companyName}}</text>
|
|
|
<u-icon name="arrow-right" color="#999" size="20"></u-icon>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="name-content-item">
|
|
|
<view class="name-item">公司全称</view>
|
|
|
<view class="value-item">
|
|
|
- <text>深圳市汉睿国际猎头服务公司</text>
|
|
|
+ <text v-if="!companyinfo.companyAllName">未添加</text>
|
|
|
+ <text v-else>{{companyinfo.companyAllName}}</text>
|
|
|
<u-icon name="arrow-right" color="#999" size="20"></u-icon>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="name-content-item">
|
|
|
<view class="name-item">融资阶段</view>
|
|
|
<view class="value-item">
|
|
|
- <text>未融资</text>
|
|
|
+ <text v-if="!companyinfo.companyDevelop">未添加</text>
|
|
|
+ <text v-else>{{companyinfo.companyDevelop}}</text>
|
|
|
<u-icon name="arrow-right" color="#999" size="20"></u-icon>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="name-content-item">
|
|
|
<view class="name-item">人员规模</view>
|
|
|
<view class="value-item">
|
|
|
- <text>0-20人</text>
|
|
|
+ <text v-if="!companyinfo.companyPeople||companyinfo.companyPeople==='0'">未添加</text>
|
|
|
+ <text v-else>{{companyinfo.companyPeople}}</text>
|
|
|
<u-icon name="arrow-right" color="#999" size="20"></u-icon>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -61,7 +66,7 @@
|
|
|
</view>
|
|
|
<view class="ms-item">
|
|
|
<view class="ms-item-title" @click="checkCompanyFund">
|
|
|
- <view class="ms-title-txt">公司福利 2/2</view>
|
|
|
+ <view class="ms-title-txt">公司福利 {{filledInCount[1]}}/2</view>
|
|
|
<view class="ms-title-icon">
|
|
|
<image
|
|
|
src="@/static/images/my/my/top-up.svg"
|
|
|
@@ -81,39 +86,31 @@
|
|
|
<view class="name-content-item">
|
|
|
<view class="name-item">标准工作时间</view>
|
|
|
<view class="value-item">
|
|
|
- <text>09:00-18:00</text>
|
|
|
+ <text v-if="!companyinfo.workTime">未添加</text>
|
|
|
+ <text v-else>{{companyinfo.workTime}}</text>
|
|
|
<u-icon name="arrow-right" color="#999" size="20"></u-icon>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="name-content-item">
|
|
|
<view class="name-item">福利待遇</view>
|
|
|
<view class="value-item"
|
|
|
- ><text>已添加2项</text>
|
|
|
+ >
|
|
|
+ <text v-if="!companyinfo.welfare">未添加</text>
|
|
|
+ <text v-else>已添加{{companyinfo.welfare.split(',').length}}项</text>
|
|
|
<u-icon name="arrow-right" color="#999" size="20"></u-icon>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="ms-item">
|
|
|
- <view class="ms-item-title" @click="checkCompanyDetail">
|
|
|
+ <view class="ms-item-title">
|
|
|
<view class="ms-title-txt">公司介绍</view>
|
|
|
<view class="ms-title-icon">
|
|
|
- 已添加
|
|
|
- <image
|
|
|
- src="@/static/images/my/my/top-up.svg"
|
|
|
- mode="scaleToFill"
|
|
|
- class="top"
|
|
|
- v-if="companyDetail"
|
|
|
- />
|
|
|
- <image
|
|
|
- src="@/static/images/my/my/right.svg"
|
|
|
- mode="scaleToFill"
|
|
|
- class="right"
|
|
|
- v-else
|
|
|
- />
|
|
|
+ <text v-if="!companyinfo.companyContent">未添加</text>
|
|
|
+ <text v-else>已添加</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="ms-item-content" v-if="companyDetail">
|
|
|
+ <!-- <view class="ms-item-content" v-if="companyDetail">
|
|
|
<view class="name-content-item">
|
|
|
<view class="name-item">标准工作时间</view>
|
|
|
<view class="value-item">
|
|
|
@@ -128,28 +125,17 @@
|
|
|
<u-icon name="arrow-right" color="#999" size="20"></u-icon>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
</view>
|
|
|
<view class="ms-item">
|
|
|
- <view class="ms-item-title" @click="checkMainWork">
|
|
|
+ <view class="ms-item-title">
|
|
|
<view class="ms-title-txt">主营业务</view>
|
|
|
<view class="ms-title-icon">
|
|
|
- 去添加
|
|
|
- <image
|
|
|
- src="@/static/images/my/my/top-up.svg"
|
|
|
- mode="scaleToFill"
|
|
|
- class="top"
|
|
|
- v-if="mainWork"
|
|
|
- />
|
|
|
- <image
|
|
|
- src="@/static/images/my/my/right.svg"
|
|
|
- mode="scaleToFill"
|
|
|
- class="right"
|
|
|
- v-else
|
|
|
- />
|
|
|
+ <text v-if="!companyinfo.companyScope">未添加</text>
|
|
|
+ <text v-else>已添加{{companyinfo.companyScope.split(',').length}}项</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="ms-item-content" v-if="mainWork">
|
|
|
+ <!-- <view class="ms-item-content" v-if="mainWork">
|
|
|
<view class="name-content-item">
|
|
|
<view class="name-item">标准工作时间</view>
|
|
|
<view class="value-item">
|
|
|
@@ -164,28 +150,17 @@
|
|
|
<u-icon name="arrow-right" color="#999" size="20"></u-icon>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
</view>
|
|
|
<view class="ms-item">
|
|
|
- <view class="ms-item-title" @click="checkCompanyImg">
|
|
|
+ <view class="ms-item-title">
|
|
|
<view class="ms-title-txt">公司相册</view>
|
|
|
<view class="ms-title-icon">
|
|
|
- 已添加3张
|
|
|
- <image
|
|
|
- src="@/static/images/my/my/top-up.svg"
|
|
|
- mode="scaleToFill"
|
|
|
- class="top"
|
|
|
- v-if="companyImg"
|
|
|
- />
|
|
|
- <image
|
|
|
- src="@/static/images/my/my/right.svg"
|
|
|
- mode="scaleToFill"
|
|
|
- class="right"
|
|
|
- v-else
|
|
|
- />
|
|
|
+ <text v-if="!companyinfo.photos">未添加</text>
|
|
|
+ <text v-else>已添加{{companyinfo.photos.split(',').length}}张</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="ms-item-content" v-if="companyImg">
|
|
|
+ <!-- <view class="ms-item-content" v-if="companyImg">
|
|
|
<view class="name-content-item">
|
|
|
<view class="name-item">标准工作时间</view>
|
|
|
<view class="value-item">
|
|
|
@@ -200,28 +175,17 @@
|
|
|
<u-icon name="arrow-right" color="#999" size="20"></u-icon>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
</view>
|
|
|
<view class="ms-item">
|
|
|
<view class="ms-item-title" @click="checkPeopleDev">
|
|
|
<view class="ms-title-txt">人才发展</view>
|
|
|
<view class="ms-title-icon">
|
|
|
- 已添加4项
|
|
|
- <image
|
|
|
- src="@/static/images/my/my/top-up.svg"
|
|
|
- mode="scaleToFill"
|
|
|
- class="top"
|
|
|
- v-if="peopleDev"
|
|
|
- />
|
|
|
- <image
|
|
|
- src="@/static/images/my/my/right.svg"
|
|
|
- mode="scaleToFill"
|
|
|
- class="right"
|
|
|
- v-else
|
|
|
- />
|
|
|
+ <text v-if="!companyinfo.companyPeopleDevelop">未添加</text>
|
|
|
+ <text v-else>已添加{{companyinfo.companyPeopleDevelop.split(',').length}}项</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="ms-item-content" v-if="peopleDev">
|
|
|
+ <!-- <view class="ms-item-content" v-if="peopleDev">
|
|
|
<view class="name-content-item">
|
|
|
<view class="name-item">标准工作时间</view>
|
|
|
<view class="value-item">
|
|
|
@@ -236,7 +200,7 @@
|
|
|
<u-icon name="arrow-right" color="#999" size="20"></u-icon>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -253,11 +217,30 @@ export default {
|
|
|
mainWork: false,
|
|
|
companyImg: false,
|
|
|
peopleDev: false,
|
|
|
+ companyinfo:{}
|
|
|
};
|
|
|
},
|
|
|
components: {
|
|
|
navBar,
|
|
|
},
|
|
|
+ onLoad() {
|
|
|
+ this.getcompanystatus()
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ filledInCount() {
|
|
|
+ let arr = [0,0]
|
|
|
+ if(this.companyinfo.companyLogo) arr[0]+=1
|
|
|
+ if(this.companyinfo.companyName) arr[0]+=1
|
|
|
+ if(this.companyinfo.companyAllName) arr[0]+=1
|
|
|
+ if(this.companyinfo.companyDevelop) arr[0]+=1
|
|
|
+ if(this.companyinfo.companyPeople&&this.companyinfo.companyPeople!=='0') arr[0]+=1
|
|
|
+
|
|
|
+ if(this.companyinfo.workTime) arr[1]+=1
|
|
|
+ if(this.companyinfo.welfare) arr[1]+=1
|
|
|
+
|
|
|
+ return arr
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
checkBaseMsg() {
|
|
|
this.baseMsg = !this.baseMsg;
|
|
|
@@ -279,7 +262,29 @@ export default {
|
|
|
},
|
|
|
goCompanyMsg(){
|
|
|
uni.navigateTo({ url: '/my/renzheng/companyMsg' })
|
|
|
- }
|
|
|
+ },
|
|
|
+ // 查询用户企业状态
|
|
|
+ getcompanystatus() {
|
|
|
+ this.$Request.get("/app/company/selectCompanyByUserId", "")
|
|
|
+ .then((res) => {
|
|
|
+ if (res.code != 0) {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.msg || "查询状态失败",
|
|
|
+ icon: "none"
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.companyinfo = res.data || {};
|
|
|
+ console.log("查询用户企业状态", this.companyinfo)
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ console.error("查询失败:", err);
|
|
|
+ uni.showToast({
|
|
|
+ title: "网络异常",
|
|
|
+ icon: "none"
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|