detail.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <template>
  2. <view class="content-box">
  3. <view class="title">
  4. <view class="logo">
  5. <!-- <image :src="globalUrl + company.pic_url" alt="" class="logo-img" mode="aspectFit"/> -->
  6. <image src="/static/nodata.svg" alt="" class="logo-img" mode="aspectFit"/>
  7. </view>
  8. <view class="name">
  9. {{ company.name || '测试名称'}}
  10. </view>
  11. </view>
  12. <view class="uni-list title-date-box">
  13. <view class="uni-list-cell">
  14. <view class="uni-list-cell-db display-flex-start">
  15. <picker mode="date" fields="year" @change="bindDateChange" class="picker-class">
  16. <view class="uni-input display-between items-center">{{dateYear}}年<image src="/static/arrow_down.svg" mode="aspectFit"></image></view>
  17. </picker>
  18. <picker :range="arrayMonth" :value="dateMonth" @change="bindDateMonthChange" class="picker-class">
  19. <view class="uni-input display-between items-center" style="color: #707070;">{{dateMonth}}<image src="/static/calendar_icon.svg" mode="aspectFit"></image></view>
  20. </picker>
  21. </view>
  22. </view>
  23. </view>
  24. <qiun-title-bar title="工业产值(亿元)"/>
  25. <view class="charts-box">
  26. <qiun-data-charts type="line" :chartData="chartData" background="#4C4C4C"/>
  27. </view>
  28. <view class="item-list">
  29. <view v-for="(item, idx) in itemList" :key="idx" class="term">
  30. <view class="term-name">{{ item.name }}:</view>
  31. <view class="term-value-group" >
  32. <p class="term-value-item">{{ item.value || "-" }}</p>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. </template>
  38. <script>
  39. export default {
  40. data() {
  41. return{
  42. dateYear:new Date().getFullYear(),
  43. dateMonth:new Date().getMonth() + 1 + '月',
  44. arrayMonth:["1月", "2月","3月", "4月","5月", "6月","7月", "8月","9月", "10月","11月", "12月"],
  45. chartData:{
  46. "categories": ["1月", "2月","3月", "4月","5月", "6月","7月", "8月","9月", "10月","11月", "12月"],
  47. "series": [
  48. {name: "本年度",data: [15,10,16,23,21,36,25,7,18,29,33,12]},
  49. ]
  50. },
  51. itemList: [
  52. {
  53. name: "法定代表人",
  54. value: '马须伦',
  55. },
  56. {
  57. name: "成立日期",
  58. value: '2017.11.14',
  59. },
  60. {
  61. name: "注册资本",
  62. value: '1,776,759.3',
  63. },
  64. {
  65. name: "规上工业企业",
  66. value: '是',
  67. },
  68. {
  69. name: "先进制造业",
  70. value: '否',
  71. },
  72. {
  73. name: "亩均排序",
  74. value: 'A',
  75. },
  76. {
  77. name: "规上评定时间",
  78. value: '2021.01.01',
  79. },
  80. {
  81. name: "经营地址",
  82. value: '万联大道以东,宣平大街以北',
  83. },
  84. {
  85. name: "累计研发投入费用",
  86. value: '-',
  87. },
  88. {
  89. name: "本年度生产总值",
  90. value: '-',
  91. },
  92. {
  93. name: "本年度工业产值增速",
  94. value: '-',
  95. },
  96. ],
  97. }
  98. },
  99. onLoad(option) {
  100. console.log(option.id)
  101. },
  102. methods:{
  103. bindDateChange(e){
  104. this.dateYear = e.target.value
  105. },
  106. bindDateMonthChange(e){
  107. this.dateMonth = this.arrayMonth[e.target.value]
  108. },
  109. }
  110. };
  111. </script>
  112. <style lang="scss">
  113. .content-box {
  114. display: flex;
  115. flex-direction: column;
  116. flex: 1;
  117. }
  118. .charts-box-title{
  119. width: 100%;
  120. height: 100rpx;
  121. }
  122. .charts-box {
  123. width: 100%;
  124. height: 600rpx;
  125. }
  126. .title-date-box {
  127. margin-top: 10px;
  128. border-bottom: 1px solid #d7d7d7;
  129. padding-bottom: 10px;
  130. }
  131. .picker-class {
  132. border-radius: 10rpx;
  133. padding: 10rpx;
  134. width: 180rpx;
  135. font-size: 28rpx;
  136. background: #f5f5f5;
  137. margin-left: 20rpx;
  138. }
  139. .picker-class image {
  140. width: 26rpx;
  141. height: 26rpx;
  142. }
  143. .title {
  144. display: flex;
  145. align-items: center;
  146. .logo {
  147. margin-right: 30rpx;
  148. display: flex;
  149. justify-content: center;
  150. align-items: center;
  151. overflow: hidden;
  152. width: 150rpx;
  153. height: 100rpx;
  154. overflow: hidden;
  155. .logo-img {
  156. max-width: 100%;
  157. max-height: 100%;
  158. }
  159. }
  160. }
  161. .item-list {
  162. margin-left: 20rpx;
  163. display: flex;
  164. flex-direction: column;
  165. .term {
  166. display: flex;
  167. .term-name {
  168. font-size: 28rpx;
  169. width: 30%;
  170. display: flex;
  171. margin: 20rpx;
  172. color: #7f7f7f;
  173. }
  174. .term-value-group {
  175. flex: 1;
  176. display: flex;
  177. flex-direction: column;
  178. font-size: 28rpx;
  179. .term-value-item {
  180. margin: 20rpx;
  181. }
  182. .flex_i {
  183. display: flex;
  184. flex-flow: row;
  185. justify-content: space-around;
  186. }
  187. }
  188. }
  189. }
  190. </style>