engineOil.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. <template>
  2. <view class="content">
  3. <view class="box">
  4. <view class="historyLine">
  5. <image :src="optdata.logo" mode="" class="historylinecarImg"></image>
  6. <view class="historylinecar">{{optdata.value}}</view>
  7. </view>
  8. </view>
  9. <view class="cont">
  10. <view class="topBox">
  11. <view class="topLine" @click="goby">
  12. <image src="../../static/img/icon_baoyang.png" mode="" class="toplineImg"></image>
  13. <view class="topName">保养周期</view>
  14. </view>
  15. <view class="topsx"></view>
  16. <view class="topLine" @click="gopz">
  17. <image src="../../static/img/icon_cheliang.png" mode="" class="toplineImg"></image>
  18. <view class="topName">车辆配置</view>
  19. </view>
  20. </view>
  21. <view class="jiyouBox">
  22. <view class="jiyouTop">
  23. <view class="jiyoutopTitle">机油推荐</view>
  24. <view class="jyzl">机油加注量:<span style="color: #FF4F00;">6.0L</span> </view>
  25. </view>
  26. <view class="jylineBox">
  27. <view class="jyline" v-for="(item,index) in MaintainPartList" @click="godetail(item)">
  28. <view class="jyimgBox">
  29. <image :src="item.imgs" mode="" class="jyimg"></image>
  30. </view>
  31. <view class="jyName">
  32. <!-- <span class="best">最佳</span> -->
  33. <span class="jyNametxt">{{item.name}} </span>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. </template>
  41. <script>
  42. export default {
  43. components: {
  44. },
  45. data() {
  46. return {
  47. optdata:'',
  48. MaintainPartList:[],
  49. }
  50. },
  51. onLoad(opt) {
  52. console.log(opt)
  53. this.optdata=opt;
  54. this.queryMaintainPartList()
  55. },
  56. methods: {
  57. queryMaintainPartList(){
  58. uni.showLoading({ title: '加载中'});
  59. this.$http('partsByOpen/queryMaintainPartList', {
  60. groupId:this.optdata.id,
  61. componentCode:'015001',
  62. },'POST').then(res => {
  63. uni.hideLoading();
  64. this.MaintainPartList=res.data
  65. })
  66. },
  67. goby(){
  68. uni.navigateTo({
  69. url:'/pages/index/maintenance?nLevelID='+this.optdata.nLevelID+'&id='+this.optdata.id
  70. })
  71. },
  72. godetail(e){
  73. uni.navigateTo({
  74. url:'/pages/index/goodsDetail?id='+e.id
  75. })
  76. },
  77. gopz(){
  78. uni.navigateTo({
  79. url:'/pages/index/carConfiguration?nLevelID='+this.optdata.nLevelID
  80. })
  81. }
  82. }
  83. }
  84. </script>
  85. <style scoped>
  86. .content {
  87. min-height: 100vh;
  88. background: #F4F5F7;
  89. }
  90. .box {
  91. padding: 0 24rpx;
  92. background: #ffffff;
  93. }
  94. .historylinecarImg {
  95. width: 46rpx;
  96. height: 46rpx;
  97. }
  98. .historylinecar {
  99. font-weight: 400;
  100. font-size: 26rpx;
  101. color: #1A1A1A;
  102. line-height: 37rpx;
  103. width: 636rpx;
  104. }
  105. .historyLine {
  106. display: flex;
  107. justify-content: space-between;
  108. padding: 30rpx 0;
  109. border-top: 1rpx solid #EEEEEE;
  110. }
  111. .cont {
  112. padding: 30rpx 24rpx;
  113. }
  114. .toplineImg{
  115. width: 35rpx;
  116. height: 34rpx;
  117. }
  118. .topName{
  119. line-height: 34rpx;font-weight: 400;
  120. color: #FFFFFF;font-size: 28rpx;padding-left: 16rpx;
  121. }
  122. .topBox{
  123. width: 702rpx;
  124. height: 98rpx;
  125. background: #FFFFFF linear-gradient(132deg, #FF8635 0%, #FF4828 100%);
  126. border-radius: 16rpx;
  127. display: flex;justify-content: space-around;
  128. }
  129. .topsx{
  130. width: 2rpx;background: #ffffff;
  131. height: 54rpx;margin-top: 22rpx;
  132. }
  133. .topLine{
  134. display: flex;padding-top: 32rpx;
  135. }
  136. .jiyouTop{
  137. display: flex;justify-content: space-between;
  138. }
  139. .jiyouBox{
  140. margin-top: 30rpx;border-radius: 16rpx;
  141. background: #ffffff;padding: 30rpx;
  142. }
  143. .jiyoutopTitle{
  144. font-weight: 500;font-size: 28rpx;
  145. color: #1A1A1A;
  146. line-height: 40rpx;
  147. }
  148. .jyzl{
  149. font-weight: 400;line-height: 40rpx;
  150. color: #666666;font-size: 24rpx;
  151. }
  152. .jyimg{
  153. width: 302rpx;
  154. height: 302rpx;
  155. border-radius: 10rpx;
  156. }
  157. .jyline{
  158. width: 302rpx;padding-top: 30rpx;
  159. }
  160. .jyName{
  161. font-weight: 400;font-size: 22rpx;
  162. color: #1A1A1A;
  163. line-height:36rpx ;
  164. overflow: hidden;
  165. text-overflow: ellipsis;
  166. display: -webkit-box;
  167. -webkit-box-orient: vertical;
  168. -webkit-line-clamp: 2;
  169. padding-top: 10rpx;
  170. }
  171. .best{
  172. color: #FF4F00;border-radius: 6rpx;
  173. padding: 0 8rpx;border: 1px solid #FF4F00;
  174. }
  175. .jylineBox{
  176. display: flex;justify-content: space-between;flex-wrap: wrap;
  177. }
  178. .jyNametxt{
  179. }
  180. </style>