Browse Source

feat(member): 添加企业信息接口并更新企业信息页面

- 在 member.js 中添加 getEnterpriseInformation 方法获取企业信息
- 更新 firm_info.vue 页面,使用获取的企业信息动态显示内容
- 调整页面布局,优化企业信息展示
master
liutong 1 year ago
parent
commit
64e8061424
  1. 7
      api/member.js
  2. 49
      pages/market/my/firm_info.vue

7
api/member.js

@ -124,6 +124,13 @@ export default {
}) })
}, },
//企业信息
getEnterpriseInformation(data = {}) {
let url = '/member/get_enterprise_information'
return http.get(url, data).then(res => {
return res;
})
},

49
pages/market/my/firm_info.vue

@ -4,7 +4,7 @@
<view style="height: 30rpx;"></view> <view style="height: 30rpx;"></view>
<view class="section_1"> <view class="section_1">
<image class="pic" src="https://res.firstui.cn/static/images/common/img_logo.png" mode="aspectFit"></image> <image class="pic" :src="$util.img(dataInfo.cover)" mode="aspectFit"></image>
</view> </view>
<view class="title_section">基本信息</view> <view class="title_section">基本信息</view>
@ -12,44 +12,41 @@
<view class="section_2"> <view class="section_2">
<view class="item"> <view class="item">
<view class="title">企业名称</view> <view class="title">企业名称</view>
<view class="content">荧幕小将</view> <view class="content">{{dataInfo.enterprise_name}}</view>
</view> </view>
<view class="item"> <view class="item">
<view class="title">企业简称</view> <view class="title">企业简称</view>
<view class="content">Europa</view> <view class="content">{{dataInfo.enterprise_abbreviation}}</view>
</view> </view>
<view class="item"> <view class="item">
<view class="title">企业电话</view> <view class="title">企业电话</view>
<view class="content">0755-88888888</view> <view class="content">{{dataInfo.phone}}</view>
</view> </view>
<view class="item"> <view class="item">
<view class="title">所属行业</view> <view class="title">所属行业</view>
<view class="content">教育培训</view> <view class="content">{{dataInfo.profession}}</view>
</view> </view>
<view class="item">
<view class="title">企业名称</view>
<view class="content">荧幕小将</view>
</view>
<view class="item"> <view class="item">
<view class="title">企业网址</view> <view class="title">企业网址</view>
<view class="content">http://www.ymxj.com</view> <view class="content">{{dataInfo.website}}</view>
</view> </view>
<view class="item"> <view class="item">
<view class="title">成立时间</view> <view class="title">成立时间</view>
<view class="content">201x-08</view> <view class="content">{{dataInfo.establishment_time}}</view>
</view> </view>
</view> </view>
<view class="title_section">企业介绍</view> <view class="title_section">企业介绍</view>
<view class="section_3"> <view class="section_3">
<view class="html" v-html="htmlData"></view> <view class="html" v-html="dataInfo.
content"></view>
</view> </view>
@ -57,13 +54,39 @@
</template> </template>
<script> <script>
import memberApi from '@/api/member.js';
export default { export default {
data() { data() {
return { return {
htmlData:`<div data-v-24249f85="" class="con"><p data-v-24249f85="">爱查线索-爱查 ICP是上海凭安网络科技有限公司旗下产品。</p><p data-v-24249f85=""> 爱查线索-爱查 ICP(aichaicp.com)提供最新、最全的网站域名ICP备案信息查询,每天实时同步更新大量 官方数据。致力于为企业销售人员提供各种增值服务和解决各种问题,不再为找不到客户而苦恼! </p><h4 data-v-24249f85="">本站特色</h4><p data-v-24249f85="">【实时更新】采用全新技术算法,提供毫秒级别加载速度,给您带来前所未有的实时更新体验</p><p data-v-24249f85="">【备案监控】多地区ICP备案信息监控</p><p data-v-24249f85="">【深度功能】百度推广开通状态、整年备案信息导出、提醒功能等,满足大部分满足用户需求</p><p data-v-24249f85="">【联系方式】可以查询到ICP备案网站信息联系方式</p></div>` dataInfo:{},//
} }
}, },
onShow(){
this.init()
},
methods: { methods: {
//
async init(){
await this.getEnterpriseInformation()
},
//
async getEnterpriseInformation(){
let data = {}
let res = await memberApi.getEnterpriseInformation(data)
if(res.code != 1){
uni.showToast({
title: res.msg,
icon: 'none'
})
return
}
this.dataInfo = res.data
console.log(123,this.dataInfo)
},
privacy_agreement(type){ privacy_agreement(type){
uni.navigateTo({ uni.navigateTo({
url: '/pages/common/privacy_agreement?type='+type url: '/pages/common/privacy_agreement?type='+type

Loading…
Cancel
Save