detail.vue 4.6 KB

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