oldCarDetial.vue 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. <template>
  2. <view class="body">
  3. <view style="7vh">
  4. <uniSwiperDot :info="info" :current="current" field="content" mode="default" :dots-styles=dotsStyles>
  5. <swiper autoplay="true" circular="true" interval="4000" duration="500" class="swiper-box">
  6. <swiper-item v-for="(item ,index) in userDetial.images" :key="index">
  7. <image class="imagestyle" :src="item.url" mode=""></image>
  8. </swiper-item>
  9. </swiper>
  10. </uniSwiperDot>
  11. </view>
  12. <view>
  13. <view class="contentcon">
  14. <p style=" margin-top: 2vw; font-size: 1.3rem; font-weight: 550;">{{userDetial.brand_name}}</p>
  15. <view style="display: flex; margin-top: 2vw;">
  16. <view style=" font-size: 1rem; color: #d81e06; font-weight: 550;">¥{{Number(userDetial.sale_price/10000)}}万</view>
  17. <view style="display: flex;">
  18. <p style="margin-top: 0.5vw;">
  19. <image style="width: 4vw; height: 4vw;" src="../../static/biaoqian.png"></image>
  20. </p>
  21. <p style="font-size: 0.9rem; color: #d81e06;">降价提醒</p>
  22. </view>
  23. </view>
  24. <p style="color: grey; text-decoration: line-through; margin-top: 2vw; font-size: 0.9rem;"> 厂家指导价:
  25. {{Number(userDetial.guide_price/10000)}}万 </p>
  26. </view>
  27. </view>
  28. <!-- 基本参数 -->
  29. <view class="parameter">
  30. <p>基本参数</p>
  31. <p>
  32. <image style="width: 5vw; height: 5vw;" src="../../static/youjian.png"></image>
  33. </p>
  34. </view>
  35. <view class="parameterDetial">
  36. <view class="parameterCon">
  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>{{userDetial.gearbox_name}}</span> </p>
  40. <p
  41. style=" color: grey; display: flex; width: 98vw; height: 10vw; line-height: 10vw; justify-content: space-between; box-sizing: border-box;padding: 0 4vw;">
  42. <span>车辆颜色</span> <span>{{userDetial.color_name}}</span> </p>
  43. <p
  44. style=" color: grey; display: flex; width: 98vw; height: 10vw; line-height: 10vw; justify-content: space-between; box-sizing: border-box;padding: 0 4vw;">
  45. <span>排量</span> <span>{{userDetial.displacement_name}}</span> </p>
  46. <p
  47. style=" color: grey; display: flex; width: 98vw; height: 10vw; line-height: 10vw; justify-content: space-between; box-sizing: border-box;padding: 0 4vw;">
  48. <span>车辆所在地</span> <span>{{userDetial.address}}</span> </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>{{userDetial.factory_date}}</span> </p>
  52. <p
  53. style=" color: grey; display: flex; width: 98vw; height: 10vw; line-height: 10vw; justify-content: space-between; box-sizing: border-box;padding: 0 4vw;">
  54. <span>初上牌时间</span> <span>{{userDetial.plate_date}}</span> </p>
  55. <p
  56. style=" color: grey; display: flex; width: 98vw; height: 10vw; line-height: 10vw; justify-content: space-between; box-sizing: border-box;padding: 0 4vw;">
  57. <span>排放标准</span> <span>{{userDetial.emission_name}}</span> </p>
  58. <p
  59. style=" color: grey; display: flex; width: 98vw; height: 10vw; line-height: 10vw; justify-content: space-between; box-sizing: border-box;padding: 0 4vw;">
  60. <span>座位数</span> <span>{{userDetial.seat_count}}座</span> </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>{{userDetial.oil_type_name}}</span> </p>
  64. <p
  65. style=" color: grey; display: flex; width: 98vw; height: 10vw; line-height: 10vw; justify-content: space-between; box-sizing: border-box;padding: 0 4vw;">
  66. <span>表显里程</span> <span>{{Number(userDetial.mileage/10000)}}万公里</span> </p>
  67. <p
  68. style=" color: grey; display: flex; width: 98vw; height: 10vw; line-height: 10vw; justify-content: space-between; box-sizing: border-box;padding: 0 4vw;">
  69. <span>车牌号</span> <span>{{userDetial.number}}</span> </p>
  70. <p
  71. style=" color: grey; display: flex; width: 98vw; height: 10vw; line-height: 10vw; justify-content: space-between; box-sizing: border-box;padding: 0 4vw;">
  72. <span>车型</span> <span>{{userDetial.model}}</span> </p>
  73. </view>
  74. </view>
  75. <view style=" z-index: 999; 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">
  76. <view> <image style="width: 6vw; height: 6vw; margin-top: 2vw;" src="../../static/wxchat.png" mode=""></image> </view>
  77. <view style="color: white; font-size: 0.75rem;">点击咨询</view>
  78. </view>
  79. </view>
  80. </template>
  81. <script>
  82. import uniSwiperDot from '../../uni_modules/uni-swiper-dot/components/uni-swiper-dot/uni-swiper-dot.vue'
  83. export default {
  84. components: {
  85. uniSwiperDot
  86. },
  87. data() {
  88. return {
  89. dotsStyles: {
  90. backgroundColor: 'rgba(83, 200, 249,0.3)',
  91. border: '1px rgba(83, 200, 249,0.3) solid',
  92. color: '#fff',
  93. bottom: 2,
  94. selectedBackgroundColor: 'white',
  95. selectedBorder: '1px rgba(83, 200, 249,0.9) solid'
  96. },
  97. info: [{
  98. imgLink: '../../static/che1.jpg'
  99. },
  100. {
  101. imgLink: '../../static/che2.jpg'
  102. },
  103. {
  104. imgLink: '../../static/che3.jpg'
  105. }
  106. ],
  107. userDetial:{}
  108. }
  109. },
  110. onLoad(option) {
  111. if(option.id){
  112. this.getDetialInfo(option.id)
  113. }
  114. },
  115. methods: {
  116. WeCom(){
  117. console.log('1211')
  118. uni.openCustomerServiceChat({
  119. extInfo: {url: 'https://work.weixin.qq.com/kfid/kfc3e7dfd18c794def3'},
  120. corpId: 'wwb8fbacb965f0006c',
  121. success(res) {
  122. console.log(res)
  123. },
  124. fail(res){
  125. console.log('错误',res)
  126. }
  127. })
  128. },
  129. getDetialInfo(id){
  130. this.$api.getUsedCarDetial(id,res=>{
  131. if(res.code==0){
  132. this.userDetial=res.data
  133. }
  134. })
  135. }
  136. }
  137. }
  138. </script>
  139. <style scoped lang="scss">
  140. .body {
  141. width: 100vw;
  142. height: 100vh;
  143. margin: 0;
  144. background-color: #f8f8f8;
  145. padding: 0;
  146. .swiper-box {
  147. height: 80vw;
  148. }
  149. .imagestyle {
  150. margin-top: 0vw;
  151. width: 100%;
  152. height: 100%
  153. }
  154. .contentcon {
  155. width: 100vw;
  156. position: absolute;
  157. top: 77vw;
  158. background-color: #fff;
  159. box-sizing: border-box;
  160. height: 18vh;
  161. z-index: 99;
  162. border-radius: 10px 10px 10px 10px;
  163. }
  164. .parameter {
  165. width: 100vw;
  166. font-size: 1.2rem;
  167. font-weight: 550;
  168. line-height: 10vw;
  169. box-sizing: border-box;
  170. padding: 0vw 2vw;
  171. height: 10vw;
  172. display: flex;
  173. justify-content: space-between;
  174. margin-top: 17vh;
  175. background-color: white;
  176. }
  177. .parameterDetial {
  178. width: 100vw;
  179. height: 60vh;
  180. background-color: white;
  181. display: flex;
  182. justify-content: center;
  183. .parameterCon {
  184. width: 95vw;
  185. height: 67vh;
  186. background-color: #f8f8f8;
  187. }
  188. }
  189. }
  190. </style>