newCarDetialInfo.vue 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. <template>
  2. <view class="body">
  3. <view class="hearde">
  4. <image style="width: 96%; height: 100%;" :src="detial.img_url.url"></image>
  5. </view>
  6. <view>
  7. <view class="contentcon">
  8. <p style=" margin-top: 2vw; font-size: 1.3rem; font-weight: 550;">{{detial.name}}</p>
  9. <view style="display: flex; margin-top: 2vw;">
  10. <view style=" font-size: 1rem; color: #d81e06; font-weight: 550;">¥{{detial.sale_price}}万</view>
  11. <view style="display: flex;">
  12. <p style="margin-top: 0.5vw;">
  13. <image style="width: 4vw; height: 4vw;" src="../../static/biaoqian.png"></image>
  14. </p>
  15. <p style="font-size: 0.9rem; color: #d81e06;">降价提醒</p>
  16. </view>
  17. </view>
  18. <p style="color: grey; text-decoration: line-through; margin-top: 2vw; font-size: 0.9rem;"> 厂家指导价:
  19. {{detial.price}}万 </p>
  20. </view>
  21. </view>
  22. <view class="content">
  23. <u-toast ref="uToast" />
  24. <u-collapse :item-style="itemStyle" accordion="true" event-type="close" arrow="true" :accordion="accordion">
  25. <u-collapse-item title="基本参数">
  26. <view class="collapse-item">
  27. <view class="parameterDetial">
  28. <view class="parameterCon">
  29. <p
  30. style=" color: grey; display: flex; width: 98vw; height: 10vw; line-height: 10vw; justify-content: space-between; box-sizing: border-box;padding: 0 4vw;">
  31. <span>变速箱</span> <span>{{detial.transmission}}</span>
  32. </p>
  33. <p
  34. style=" color: grey; display: flex; width: 98vw; height: 10vw; line-height: 10vw; justify-content: space-between; box-sizing: border-box;padding: 0 4vw;">
  35. <span>发动机</span> <span>{{detial.engine}}</span>
  36. </p>
  37. <p
  38. style=" color: grey; display: flex; width: 98vw; height: 10vw; line-height: 10vw; justify-content: space-between; box-sizing: border-box;padding: 0 4vw;">
  39. <span>车身结构</span> <span>{{detial.car_body}}</span>
  40. </p>
  41. <!-- <p
  42. style=" color: grey; display: flex; width: 98vw; height: 10vw; line-height: 10vw; justify-content: space-between; box-sizing: border-box;padding: 0 4vw;">
  43. <span>车辆所在地</span> <span>郑州市</span>
  44. </p>
  45. <p
  46. style=" color: grey; display: flex; width: 98vw; height: 10vw; line-height: 10vw; justify-content: space-between; box-sizing: border-box;padding: 0 4vw;">
  47. <span>出厂日期</span> <span>2020-12-30</span>
  48. </p>
  49. <p
  50. style=" color: grey; display: flex; width: 98vw; height: 10vw; line-height: 10vw; justify-content: space-between; box-sizing: border-box;padding: 0 4vw;">
  51. <span>初上牌时间</span> <span>2021年03月上牌</span>
  52. </p>
  53. <p
  54. style=" color: grey; display: flex; width: 98vw; height: 10vw; line-height: 10vw; justify-content: space-between; box-sizing: border-box;padding: 0 4vw;">
  55. <span>排放标准</span> <span>国六</span>
  56. </p>
  57. <p
  58. style=" color: grey; display: flex; width: 98vw; height: 10vw; line-height: 10vw; justify-content: space-between; box-sizing: border-box;padding: 0 4vw;">
  59. <span>座位数</span> <span>5座</span>
  60. </p>
  61. <p
  62. style=" color: grey; display: flex; width: 98vw; height: 10vw; line-height: 10vw; justify-content: space-between; box-sizing: border-box;padding: 0 4vw;">
  63. <span>燃料类型</span> <span></span>
  64. </p>
  65. <p
  66. style=" color: grey; display: flex; width: 98vw; height: 10vw; line-height: 10vw; justify-content: space-between; box-sizing: border-box;padding: 0 4vw;">
  67. <span>表显里程</span> <span>5.9万公里</span>
  68. </p>
  69. <p
  70. style=" color: grey; display: flex; width: 98vw; height: 10vw; line-height: 10vw; justify-content: space-between; box-sizing: border-box;padding: 0 4vw;">
  71. <span>车牌号</span> <span>豫A</span>
  72. </p>
  73. <p
  74. style=" color: grey; display: flex; width: 98vw; height: 10vw; line-height: 10vw; justify-content: space-between; box-sizing: border-box;padding: 0 4vw;">
  75. <span>车源编码</span> <span>DS20230315132096</span>
  76. </p>
  77. <p
  78. style=" color: grey; display: flex; width: 98vw; height: 10vw; line-height: 10vw; justify-content: space-between; box-sizing: border-box;padding: 0 4vw;">
  79. <span>过户次数</span> <span>0</span>
  80. </p> -->
  81. </view>
  82. </view>
  83. </view>
  84. </u-collapse-item>
  85. <u-collapse-item title="图文介绍">
  86. <view class="collapse-item">
  87. <view class="images">
  88. <image style="width: 96vw; margin-top:margin-top: -2vw;" :src="item.url" v-for="(item,index) in detial.images " :key="index">
  89. </image>
  90. </view>
  91. </view>
  92. </u-collapse-item>
  93. </u-collapse>
  94. </view>
  95. <!-- -->
  96. <view class="contentName">
  97. <view class="PicTile" v-for="(item,index) in detial.stores" :key="index">
  98. <p>
  99. <image style="width: 25vw; height: 25vw;" :src="item.img"></image>
  100. </p>
  101. <view style="margin-left: 3vw;">
  102. <p
  103. style=" width: 64vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.9rem; font-weight: 550;">
  104. {{item.name}} </p>
  105. <p style="margin-top: 2vw;"> <span> 电话:</span> <span>{{item.tel}}</span> </p>
  106. <p style=" width: 64vw; display: -webkit-box; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 2; -webkit-box-orient:vertical; margin-top: 2vw; "> <span>地址:</span> <span
  107. style=" margin-left: 2vw;">{{item.addr}}</span> </p>
  108. </view>
  109. </view>
  110. </view>
  111. <view style="position: fixed; display: flex; justify-content: center; align-items: center; top: 65vw; right:-1vw; width: 23vw;height: 9vw; background-color: green; border-radius:20px 10px 0px 20px;" @click="WeCom">
  112. <view> <image style="width: 6vw; height: 6vw; margin-top: 2vw;" src="../../static/wxchat.png" mode=""></image> </view>
  113. <view style="color: white; font-size: 0.75rem;">点击咨询</view>
  114. </view>
  115. </view>
  116. </template>
  117. <script>
  118. export default {
  119. data() {
  120. return {
  121. dotsStyles: {
  122. backgroundColor: 'rgba(83, 200, 249,0.3)',
  123. border: '1px rgba(83, 200, 249,0.3) solid',
  124. color: '#fff',
  125. bottom: 2,
  126. selectedBackgroundColor: 'white',
  127. selectedBorder: '1px rgba(83, 200, 249,0.9) solid'
  128. },
  129. detial:{}
  130. }
  131. },
  132. onLoad(option) {
  133. console.log(option.id)
  134. if(option.id){
  135. this.getBuyCarDetialInfo(option.id)
  136. }
  137. },
  138. methods: {
  139. WeCom(){
  140. console.log('1211')
  141. uni.openCustomerServiceChat({
  142. extInfo: {url: 'https://work.weixin.qq.com/kfid/kfc3e7dfd18c794def3'},
  143. corpId: 'wwb8fbacb965f0006c',
  144. success(res) {
  145. console.log(res)
  146. },
  147. fail(res){
  148. console.log('错误',res)
  149. }
  150. })
  151. },
  152. getBuyCarDetialInfo(id){
  153. this.$api.getBuyCarDetial(id,res=>{
  154. if(res.code==0){
  155. this.detial=res.data
  156. }
  157. })
  158. }
  159. },
  160. }
  161. </script>
  162. <style scoped lang="scss">
  163. .body {
  164. width: 100vw;
  165. height: 99vh;
  166. box-sizing: border-box;
  167. padding: 0 2vw;
  168. background-color: #f8f8f8;
  169. .images {
  170. width: 100vw;
  171. }
  172. .hearde {
  173. width: 100vw;
  174. height: 30vh;
  175. }
  176. .swiper-box {
  177. height: 80vw;
  178. }
  179. .imagestyle {
  180. margin-top: 0vw;
  181. width: 100%;
  182. height: 100%
  183. }
  184. .contentName {
  185. width: 100vw;
  186. height: 70vh;
  187. border-radius: 10px 0 10px 0;
  188. background-color: #f8f8f8;
  189. overflow: hidden;
  190. .PicTile {
  191. width: 96vw;
  192. height: 17vh;
  193. background-color: white;
  194. display: flex;
  195. box-sizing: border-box;
  196. border-radius: 5px;
  197. padding: 3vw;
  198. }
  199. }
  200. }
  201. </style>