index.vue 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. <template>
  2. <view class="content">
  3. <view class="one">
  4. <u-notice-bar :text="text"></u-notice-bar>
  5. </view>
  6. <view class="two">
  7. <view class="two_1">
  8. <view class="table_column">
  9. <view class="left">
  10. 商品编号
  11. </view>
  12. <view class="right">
  13. {{info.num||'暂无'}}
  14. </view>
  15. </view>
  16. <view class="table_column">
  17. <view class="left">
  18. 商品名称
  19. </view>
  20. <view class="right">
  21. {{info.name||'暂无'}}
  22. </view>
  23. </view>
  24. <view class="table_column">
  25. <view class="left">
  26. 车辆识别号(VIN)
  27. </view>
  28. <view class="right">
  29. {{info.feel||'暂无'}}
  30. </view>
  31. </view>
  32. </view>
  33. <view class="text">档案手续</view>
  34. <view class="two_2">
  35. <view class="table_column">
  36. <view class="left">
  37. 表显里程
  38. </view>
  39. <view class="right">
  40. {{info.km||'暂无'}}
  41. </view>
  42. </view>
  43. <view class="table_column">
  44. <view class="left">
  45. 排放标准
  46. </view>
  47. <view class="right">
  48. {{info.emission||'暂无'}}
  49. </view>
  50. </view>
  51. <view class="table_column">
  52. <view class="left">
  53. 首次上牌
  54. </view>
  55. <view class="right">
  56. {{info.first||'暂无'}}
  57. </view>
  58. </view>
  59. <view class="table_column">
  60. <view class="left">
  61. 过户次数
  62. </view>
  63. <view class="right">
  64. {{info.number||'暂无'}}
  65. </view>
  66. </view>
  67. <view class="table_column">
  68. <view class="left">
  69. 车源地
  70. </view>
  71. <view class="right">
  72. {{info.city||'暂无'}}
  73. </view>
  74. </view>
  75. <view class="table_column">
  76. <view class="left">
  77. 车牌地
  78. </view>
  79. <view class="right">
  80. {{info.address||'暂无'}}
  81. </view>
  82. </view>
  83. <view class="table_column">
  84. <view class="left">
  85. 外观颜色
  86. </view>
  87. <view class="right">
  88. {{info.color||'暂无'}}
  89. </view>
  90. </view>
  91. <view class="table_column">
  92. <view class="left">
  93. 内饰颜色
  94. </view>
  95. <view class="right">
  96. {{info.colorn||'暂无'}}
  97. </view>
  98. </view>
  99. <view class="table_column">
  100. <view class="left">
  101. 车辆使用性质
  102. </view>
  103. <view class="right">
  104. {{info.nature||'暂无'}}
  105. </view>
  106. </view>
  107. </view>
  108. <view class="text">功能配置</view>
  109. <view class="two_2">
  110. <view class="table_column">
  111. <view class="left">
  112. 能源类型
  113. </view>
  114. <view class="right">
  115. {{info.type||'暂无'}}
  116. </view>
  117. </view>
  118. <view class="table_column">
  119. <view class="left">
  120. 排量
  121. </view>
  122. <view class="right">
  123. {{info.displacement||'暂无'}}
  124. </view>
  125. </view>
  126. <view class="table_column">
  127. <view class="left">
  128. 级别
  129. </view>
  130. <view class="right">
  131. {{info.level||'暂无'}}
  132. </view>
  133. </view>
  134. <view class="table_column">
  135. <view class="left">
  136. 变速箱
  137. </view>
  138. <view class="right">
  139. {{info.gearbox||'暂无'}}
  140. </view>
  141. </view>
  142. <view class="table_column">
  143. <view class="left">
  144. 驱动方式
  145. </view>
  146. <view class="right">
  147. {{info.way||'暂无'}}
  148. </view>
  149. </view>
  150. <view class="table_column">
  151. <view class="left">
  152. 座位数
  153. </view>
  154. <view class="right">
  155. {{info.seat||'暂无'}}
  156. </view>
  157. </view>
  158. </view>
  159. <u-divider text="以上为全部内容"></u-divider>
  160. </view>
  161. </view>
  162. </template>
  163. <script setup lang="ts">
  164. import { getCurrentInstance, computed, ref } from 'vue';
  165. //该依赖已内置不需要单独安装
  166. import { onLoad } from "@dcloudio/uni-app";
  167. // 请求接口
  168. const $api = getCurrentInstance()?.appContext.config.globalProperties.$api;
  169. // openid
  170. const openid = computed(() => {
  171. return uni.getStorageSync('openid');
  172. })
  173. // 基本信息
  174. const config = ref({});
  175. const id = ref('');
  176. const text = ref('以下内容为商家填写 购车前请谨慎核对,以实际情况为准');
  177. const info = ref({
  178. num: '13238468', name: '雅阁 2015款 2.0L LX 舒适版', feel: '车辆识别号(VIN)', km: '8.70万公里', emission: '国V', first: "2016-03",
  179. number: '0次', city: '长春', address: '长春', color: '黑色', colorn: '深色', nature: '非营运', type: '汽油', displacement: '2.0L', level: '中型车', gearbox: '自动', way: '前驱', seat: '5座'
  180. });
  181. onLoad(async (options) => {
  182. id.value = options && options.id
  183. await searchConfig();
  184. await searchOther();
  185. await search();
  186. })
  187. // 查询其他信息
  188. const searchOther = async () => {
  189. let res;
  190. };
  191. // config信息
  192. const searchConfig = async () => {
  193. config.value = uni.getStorageSync('config');
  194. };
  195. // 查询
  196. const search = async () => { };
  197. </script>
  198. <style lang="scss" scoped>
  199. .content {
  200. display: flex;
  201. flex-direction: column;
  202. width: 100vw;
  203. height: 100vh;
  204. .two {
  205. padding: 2vw;
  206. .two_1 {
  207. margin: 2vw;
  208. .table_column {
  209. display: flex;
  210. font-size: var(--font12Size);
  211. .left {
  212. width: 25vw;
  213. text-align: center;
  214. padding: 2vw;
  215. border: 1px solid #e7e6e4;
  216. }
  217. .right {
  218. width: 65vw;
  219. padding: 2vw;
  220. border: 1px solid #e7e6e4;
  221. background-color: #f4f4f5;
  222. }
  223. }
  224. }
  225. .text {
  226. margin: 2vw;
  227. font-size: var(--font16Size);
  228. font-weight: bold;
  229. }
  230. .two_2 {
  231. margin: 2vw;
  232. display: flex;
  233. flex-wrap: wrap;
  234. .table_column {
  235. display: flex;
  236. font-size: var(--font12Size);
  237. width: 46vw;
  238. .left {
  239. display: flex;
  240. align-items: center;
  241. justify-content: center;
  242. padding: 2vw;
  243. border: 1px solid #e7e6e4;
  244. width: 20vw;
  245. }
  246. .right {
  247. padding: 2vw;
  248. border: 1px solid #e7e6e4;
  249. background-color: #f4f4f5;
  250. width: 24vw;
  251. }
  252. }
  253. }
  254. }
  255. }
  256. </style>