editCompany.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398
  1. <template>
  2. <view class="ms-detail">
  3. <nav-bar title="编辑公司信息" color="#000"></nav-bar>
  4. <view class="ms-content">
  5. <view class="ms-title">编辑公司及品牌信息</view>
  6. <view class="ms-item">
  7. <view class="ms-item-title" @click="checkBaseMsg">
  8. <view class="ms-title-txt">基本信息{{filledInCount[0]}}/5</view>
  9. <view class="ms-title-icon">
  10. <image
  11. src="@/static/images/my/my/top-up.svg"
  12. mode="scaleToFill"
  13. class="top"
  14. v-if="baseMsg"
  15. />
  16. <image
  17. src="@/static/images/my/my/right.svg"
  18. mode="scaleToFill"
  19. class="right"
  20. v-else
  21. />
  22. </view>
  23. </view>
  24. <view class="ms-item-content" v-if="baseMsg" @click="goCompanyMsg">
  25. <view class="name-content-item">
  26. <view class="name-item">品牌logo</view>
  27. <view class="value-item">
  28. <text v-if="!companyinfo.companyLogo">未添加</text>
  29. <image :src="companyinfo.companyLogo" mode="scaleToFill" v-else/>
  30. <u-icon name="arrow-right" color="#999" size="20"></u-icon>
  31. </view>
  32. </view>
  33. <view class="name-content-item">
  34. <view class="name-item">公司名称</view>
  35. <view class="value-item">
  36. <text v-if="!companyinfo.companyName">未添加</text>
  37. <text v-else>{{companyinfo.companyName}}</text>
  38. <u-icon name="arrow-right" color="#999" size="20"></u-icon>
  39. </view>
  40. </view>
  41. <view class="name-content-item" >
  42. <view class="name-item">公司全称</view>
  43. <view class="value-item">
  44. <text v-if="!companyinfo.companyAllName">未添加</text>
  45. <text v-else>{{companyinfo.companyAllName}}</text>
  46. <u-icon name="arrow-right" color="#999" size="20"></u-icon>
  47. </view>
  48. </view>
  49. <view class="name-content-item">
  50. <view class="name-item">融资阶段</view>
  51. <view class="value-item">
  52. <text v-if="!companyinfo.companyDevelop">未添加</text>
  53. <text v-else>{{companyinfo.companyDevelop}}</text>
  54. <u-icon name="arrow-right" color="#999" size="20"></u-icon>
  55. </view>
  56. </view>
  57. <view class="name-content-item">
  58. <view class="name-item">人员规模</view>
  59. <view class="value-item">
  60. <text v-if="!companyinfo.companyPeople||companyinfo.companyPeople==='0'">未添加</text>
  61. <text v-else>{{companyinfo.companyPeople}}</text>
  62. <u-icon name="arrow-right" color="#999" size="20"></u-icon>
  63. </view>
  64. </view>
  65. </view>
  66. </view>
  67. <view class="ms-item">
  68. <view class="ms-item-title" @click="checkCompanyFund">
  69. <view class="ms-title-txt">公司福利 {{filledInCount[1]}}/2</view>
  70. <view class="ms-title-icon">
  71. <image
  72. src="@/static/images/my/my/top-up.svg"
  73. mode="scaleToFill"
  74. class="top"
  75. v-if="companyFund"
  76. />
  77. <image
  78. src="@/static/images/my/my/right.svg"
  79. mode="scaleToFill"
  80. class="right"
  81. v-else
  82. />
  83. </view>
  84. </view>
  85. <view class="ms-item-content" v-if="companyFund" @click="goCompanyMsg">
  86. <view class="name-content-item">
  87. <view class="name-item">标准工作时间</view>
  88. <view class="value-item">
  89. <text v-if="!companyinfo.workTime">未添加</text>
  90. <text v-else>{{companyinfo.workTime}}</text>
  91. <u-icon name="arrow-right" color="#999" size="20"></u-icon>
  92. </view>
  93. </view>
  94. <view class="name-content-item">
  95. <view class="name-item">福利待遇</view>
  96. <view class="value-item"
  97. >
  98. <text v-if="!companyinfo.welfare">未添加</text>
  99. <text v-else>已添加{{companyinfo.welfare.split(',').length}}项</text>
  100. <u-icon name="arrow-right" color="#999" size="20"></u-icon>
  101. </view>
  102. </view>
  103. </view>
  104. </view>
  105. <view class="ms-item">
  106. <view class="ms-item-title" @click="goCompanyMsg">
  107. <view class="ms-title-txt">公司介绍</view>
  108. <view class="ms-title-icon">
  109. <text v-if="!companyinfo.companyContent">未添加</text>
  110. <text v-else>已添加</text>
  111. </view>
  112. </view>
  113. <!-- <view class="ms-item-content" v-if="companyDetail">
  114. <view class="name-content-item">
  115. <view class="name-item">标准工作时间</view>
  116. <view class="value-item">
  117. <text>09:00-18:00</text>
  118. <u-icon name="arrow-right" color="#999" size="20"></u-icon>
  119. </view>
  120. </view>
  121. <view class="name-content-item">
  122. <view class="name-item">福利待遇</view>
  123. <view class="value-item"
  124. ><text>已添加2项</text>
  125. <u-icon name="arrow-right" color="#999" size="20"></u-icon>
  126. </view>
  127. </view>
  128. </view> -->
  129. </view>
  130. <view class="ms-item">
  131. <view class="ms-item-title" @click="goCompanyMsg">
  132. <view class="ms-title-txt">主营业务</view>
  133. <view class="ms-title-icon">
  134. <text v-if="!companyinfo.companyScope">未添加</text>
  135. <text v-else>已添加{{companyinfo.companyScope.split(',').length}}项</text>
  136. </view>
  137. </view>
  138. <!-- <view class="ms-item-content" v-if="mainWork">
  139. <view class="name-content-item">
  140. <view class="name-item">标准工作时间</view>
  141. <view class="value-item">
  142. <text>09:00-18:00</text>
  143. <u-icon name="arrow-right" color="#999" size="20"></u-icon>
  144. </view>
  145. </view>
  146. <view class="name-content-item">
  147. <view class="name-item">福利待遇</view>
  148. <view class="value-item"
  149. ><text>已添加2项</text>
  150. <u-icon name="arrow-right" color="#999" size="20"></u-icon>
  151. </view>
  152. </view>
  153. </view> -->
  154. </view>
  155. <view class="ms-item">
  156. <view class="ms-item-title" @click="goCompanyMsg">
  157. <view class="ms-title-txt">公司相册</view>
  158. <view class="ms-title-icon">
  159. <text v-if="!companyinfo.photos">未添加</text>
  160. <text v-else>已添加{{companyinfo.photos.split(',').length}}张</text>
  161. </view>
  162. </view>
  163. <!-- <view class="ms-item-content" v-if="companyImg">
  164. <view class="name-content-item">
  165. <view class="name-item">标准工作时间</view>
  166. <view class="value-item">
  167. <text>09:00-18:00</text>
  168. <u-icon name="arrow-right" color="#999" size="20"></u-icon>
  169. </view>
  170. </view>
  171. <view class="name-content-item">
  172. <view class="name-item">福利待遇</view>
  173. <view class="value-item"
  174. ><text>已添加2项</text>
  175. <u-icon name="arrow-right" color="#999" size="20"></u-icon>
  176. </view>
  177. </view>
  178. </view> -->
  179. </view>
  180. <view class="ms-item">
  181. <view class="ms-item-title" @click="goCompanyMsg">
  182. <view class="ms-title-txt">人才发展</view>
  183. <view class="ms-title-icon">
  184. <text v-if="!companyinfo.companyPeopleDevelop">未添加</text>
  185. <text v-else>已添加{{companyinfo.companyPeopleDevelop.split(',').length}}项</text>
  186. </view>
  187. </view>
  188. <!-- <view class="ms-item-content" v-if="peopleDev">
  189. <view class="name-content-item">
  190. <view class="name-item">标准工作时间</view>
  191. <view class="value-item">
  192. <text>09:00-18:00</text>
  193. <u-icon name="arrow-right" color="#999" size="20"></u-icon>
  194. </view>
  195. </view>
  196. <view class="name-content-item">
  197. <view class="name-item">福利待遇</view>
  198. <view class="value-item"
  199. ><text>已添加2项</text>
  200. <u-icon name="arrow-right" color="#999" size="20"></u-icon>
  201. </view>
  202. </view>
  203. </view> -->
  204. </view>
  205. </view>
  206. </view>
  207. </template>
  208. <script>
  209. import navBar from "@/components/nav-bar/index.vue";
  210. export default {
  211. data() {
  212. return {
  213. baseMsg: false,
  214. companyFund: false,
  215. companyDetail: false,
  216. mainWork: false,
  217. companyImg: false,
  218. peopleDev: false,
  219. companyinfo:{}
  220. };
  221. },
  222. components: {
  223. navBar,
  224. },
  225. onLoad() {
  226. this.getcompanystatus()
  227. },
  228. computed: {
  229. filledInCount() {
  230. let arr = [0,0]
  231. if(this.companyinfo.companyLogo) arr[0]+=1
  232. if(this.companyinfo.companyName) arr[0]+=1
  233. if(this.companyinfo.companyAllName) arr[0]+=1
  234. if(this.companyinfo.companyDevelop) arr[0]+=1
  235. if(this.companyinfo.companyPeople&&this.companyinfo.companyPeople!=='0') arr[0]+=1
  236. if(this.companyinfo.workTime) arr[1]+=1
  237. if(this.companyinfo.welfare) arr[1]+=1
  238. return arr
  239. }
  240. },
  241. methods: {
  242. checkBaseMsg() {
  243. this.baseMsg = !this.baseMsg;
  244. },
  245. checkCompanyFund() {
  246. this.companyFund = !this.companyFund;
  247. },
  248. checkCompanyDetail() {
  249. this.companyDetail = !this.companyDetail;
  250. },
  251. checkMainWork() {
  252. this.mainWork = !this.mainWork;
  253. },
  254. checkCompanyImg() {
  255. this.companyImg = !this.companyImg;
  256. },
  257. checkPeopleDev() {
  258. this.peopleDev = !this.peopleDev;
  259. },
  260. goCompanyMsg(){
  261. uni.navigateTo({ url: '/my/renzheng/companyMsg' })
  262. },
  263. // 查询用户企业状态
  264. getcompanystatus() {
  265. this.$Request.get("/app/company/selectCompanyByUserId", "")
  266. .then((res) => {
  267. if (res.code != 0) {
  268. uni.showToast({
  269. title: res.msg || "查询状态失败",
  270. icon: "none"
  271. });
  272. return;
  273. }
  274. this.companyinfo = res.data || {};
  275. this.$queue.setData('companyId', res.data.companyId);
  276. console.log("查询用户企业状态", this.companyinfo)
  277. })
  278. .catch((err) => {
  279. console.error("查询失败:", err);
  280. uni.showToast({
  281. title: "网络异常",
  282. icon: "none"
  283. });
  284. });
  285. },
  286. },
  287. };
  288. </script>
  289. <style scoped lang="scss">
  290. .ms-detail {
  291. position: absolute;
  292. left: 0;
  293. right: 0;
  294. bottom: 0;
  295. top: 0;
  296. display: flex;
  297. flex-direction: column;
  298. overflow: hidden;
  299. .ms-content {
  300. flex: 1;
  301. width: 100%;
  302. padding: 40rpx;
  303. box-sizing: border-box;
  304. overflow: hidden;
  305. overflow-y: auto;
  306. .ms-title {
  307. color: rgba(51, 51, 51, 1);
  308. font-family: DM Sans;
  309. font-size: 48rpx;
  310. font-weight: 700;
  311. line-height: 60rpx;
  312. }
  313. .ms-item {
  314. .ms-item-title {
  315. color: rgba(31, 44, 55, 1);
  316. font-family: DM Sans;
  317. font-size: 28rpx;
  318. font-weight: 500;
  319. line-height: 44rpx;
  320. text-align: left;
  321. display: flex;
  322. justify-content: space-between;
  323. align-items: center;
  324. margin-top: 20rpx;
  325. margin-bottom: 16rpx;
  326. .ms-title-txt {
  327. }
  328. .ms-title-icon {
  329. color: rgba(153, 153, 153, 1);
  330. font-family: DM Sans;
  331. font-size: 24rpx;
  332. font-weight: 400;
  333. line-height: 32rpx;
  334. .top {
  335. width: 28rpx;
  336. height: 18rpx;
  337. margin-left: 8rpx;
  338. }
  339. .right {
  340. width: 18rpx;
  341. height: 28rpx;
  342. margin-left: 8rpx;
  343. }
  344. }
  345. }
  346. .ms-item-content {
  347. box-sizing: border-box;
  348. border: 1rpx solid rgba(227, 231, 236, 1);
  349. border-radius: 12rpx;
  350. background: rgba(255, 255, 255, 1);
  351. padding: 36rpx;
  352. .name-content-item {
  353. display: flex;
  354. justify-content: space-between;
  355. align-items: center;
  356. padding: 9rpx 0;
  357. box-sizing: border-box;
  358. .name-item {
  359. color: rgba(153, 153, 153, 1);
  360. font-family: DM Sans;
  361. font-size: 24rpx;
  362. font-weight: 400;
  363. line-height: 32rpx;
  364. }
  365. .value-item {
  366. display: flex;
  367. justify-content: center;
  368. align-items: center;
  369. color: rgba(153, 153, 153, 1);
  370. font-family: DM Sans;
  371. font-size: 24rpx;
  372. font-weight: 400;
  373. line-height: 32rpx;
  374. letter-spacing: 0%;
  375. text {
  376. margin-right: 8rpx;
  377. }
  378. image {
  379. width: 50rpx;
  380. height: 50rpx;
  381. border-radius: 50%;
  382. margin-right: 8rpx;
  383. background: linear-gradient(
  384. 90deg,
  385. rgba(13, 39, 247, 1),
  386. rgba(19, 193, 234, 1) 100%
  387. );
  388. }
  389. }
  390. }
  391. }
  392. }
  393. }
  394. }
  395. </style>