Blame view

pages/my/myComdetail/myComdetail.vue 3.03 KB
132aa3e8   易尊强   ss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  <template>
  	<view class="personalData-v">
  		<u-cell-group>
  			<u-cell-item title="企业名称" :value="info.enterpriseName" :arrow="false"></u-cell-item>
  			<u-cell-item title="企业规模" :value="info.enterpriseScale" :arrow="false"></u-cell-item>
  			<u-cell-item title="所属行业" :value="info.industry" :arrow="false"></u-cell-item>
  			<u-cell-item title="法人" :value="info.legalPerson" :arrow="false"></u-cell-item>
  			<u-cell-item title="联系人" :value="info.contacts" :arrow="false"></u-cell-item>
  			<u-cell-item title="联系人电话号码" :value="info.contactsPhone" :arrow="false"></u-cell-item>
  			<u-cell-item title="从业人数" :value="info.employees" :arrow="false"></u-cell-item>
  			<u-cell-item title="总产值" :value="info.totalOutputValue" :arrow="false"></u-cell-item>
  			<u-cell-item title="销售收入" :value="info.salesRevenue" :arrow="false"></u-cell-item>
  			<u-cell-item title="固投" :value="info.fixedInvestment" :arrow="false"></u-cell-item>
  			<u-cell-item title="税收" :value="info.taxation" :arrow="false"></u-cell-item>
  			<u-cell-item title="利润" :value="info.profit" :arrow="false"></u-cell-item>
  			<u-cell-item title="进口总额" :value="info.imports" :arrow="false"></u-cell-item>
  			<u-cell-item title="出口总额" :value="info.totalExportValue" :arrow="false"></u-cell-item>
  			<u-cell-item title="主要产品" :value="info.mainProducts" :arrow="false"></u-cell-item>
  			<!-- <u-cell-item title="手机号" :value="userInfo.mobilePhone" :arrow="false"></u-cell-item> -->
  			<!-- <u-cell-item title="邮箱" :value="userInfo.email" :arrow="false"></u-cell-item> -->
  		</u-cell-group>
e6b161ae   易尊强   2/23
22
  		<!-- <button type="primary"
132aa3e8   易尊强   ss
23
24
  			@click="toUpdate()"
  			style="margin: 0 auto; margin-top: 30rpx; width: 90%;margin-bottom: 40rpx;"
e6b161ae   易尊强   2/23
25
  			>修改</button> -->
132aa3e8   易尊强   ss
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
  	</view>
  </template>
  
  <script>
  	import request from '@/utils/request.js'
  	export default {
  		data() {
  			return {
  				gender: '',
  				birthday: '',
  				userInfo: {},
  				baseUrl:'http://deyanggaoxin.fengshiyun.com',
  				id:'',
  				info:{}
  			}
  		},
  		computed: {
  			baseURL() {
  				return this.define.baseURL
  			}
  		},
  		onLoad(options) {
  			console.log("options",options.data)
  			this.id = JSON.parse(options.data)
  			console.log("id",this.id)
  			this.getDetail()
  			this.userInfo = uni.getStorageSync('user') || {};
  			console.log(this.userInfo)
  			this.gender = this.userInfo.gender == 1 ? '男' : this.userInfo.gender == 2 ? '女' : '保密'
  			this.birthday = this.userInfo.birthday ? this.$u.timeFormat(this.userInfo.birthday, 'yyyy-mm-dd') : ''
  		},
  		methods:{
  			// 获取详细信息
  			getDetail(){
  				let that = this
  				request({
  					url:`/api/SubDev/baseenterprisemanager/${this.id}`,
  					method:'get',
  					data:{}
  				}).then(res=>{
  					console.log(res)
  					if(res.code === 200){
  						this.info = res.data
  					}
  				})
  			},
  			// 修改
  			toUpdate(){
  				console.log("ssss")
  				uni.navigateTo({
  					url: `/pages/postCompany/postCompany?data=${JSON.stringify(this.id)}`
  				})
  			}
  		}
  	}
  </script>
  
  <style lang="scss">
  	page {
  		background-color: #f0f2f6;
  	}
  </style>