companyDetail.vue
1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<template>
<view class="personalData-v">
<u-cell-group>
<u-cell-item title="企业名字" :value="companyInfo.fullName" :arrow="false"></u-cell-item>
<u-cell-item title="负责人" :value="companyInfo.fuzeren ? companyInfo.fuzeren : '暂无'" :arrow="false"></u-cell-item>
<u-cell-item title="负责人电话" :value="companyInfo.fuzerendianhua ? companyInfo.fuzerendianhua : '暂无'" :arrow="false"></u-cell-item>
<u-cell-item title="企业主要产品" :value="companyInfo.product ? companyInfo.product : '暂无'" :arrow="false"></u-cell-item>
<u-cell-item title="用地性质" :value="companyInfo.yongdixingzhi ? companyInfo.yongdixingzhi : '暂无'" :arrow="false"></u-cell-item>
<u-cell-item title="地址" :value="companyInfo.dizhi ? companyInfo.dizhi : '暂无'" :arrow="false"></u-cell-item>
</u-cell-group>
</view>
</template>
<script>
import request from '@/utils/request.js'
export default {
data() {
return {
gender: '',
birthday: '',
info: {},
baseUrl:'http://deyanggaoxin.fengshiyun.com',
// 存放公司详情
companyInfo:{}
}
},
// computed: {
// baseURL() {
// return this.define.baseURL
// }
// },
onLoad(options) {
this.info = JSON.parse(options.data)
this.getCompanyInfo()
console.log(this.info)
},
methods:{
// 获取公司信息
getCompanyInfo(){
request({
url:`/api/permission/organize/${this.info}`,
method:'get',
data:{}
}).then(res=>{
console.log(res)
if(res.code === 200){
this.companyInfo = res.data
}else{
uni.showToast({
icon:'error',
title:"获取信息失败,请重试!"
})
}
})
}
}
}
</script>
<style lang="scss">
page {
background-color: #f0f2f6;
}
</style>