byItem.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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="title">机油推荐</view>
  10. <view class="lineBox flex">
  11. <view class="line" @click="goEngineOil">
  12. <view class="lineTitle">机油</view>
  13. <view class="lineEnglish">Engine Oil</view>
  14. <view class="lineImgbox">
  15. <image src="../../static/img/icon_jiyou.png" mode="" class="lineImg1"></image>
  16. </view>
  17. </view>
  18. <view class="line" @click="goGearboxOil">
  19. <view class="lineTitle">变速箱油</view>
  20. <view class="lineEnglish">Gearbox Oil</view>
  21. <view class="lineImgbox">
  22. <image src="../../static/img/icon_biansuxiang.png" mode="" class="lineImg2"></image>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. </template>
  28. <script>
  29. export default {
  30. components: {
  31. },
  32. data() {
  33. return {
  34. optdata:'',
  35. }
  36. },
  37. onLoad(opt) {
  38. this.optdata=opt
  39. },
  40. methods: {
  41. goEngineOil(){
  42. uni.navigateTo({
  43. url:'/pages/index/engineOil?nLevelID='+this.optdata.nLevelID+'&logo='+this.optdata.logo+'&value='+this.optdata.value+'&id='+this.optdata.id
  44. })
  45. },
  46. goGearboxOil(){
  47. uni.navigateTo({
  48. url:'/pages/index/gearboxOil?nLevelID='+this.optdata.nLevelID+'&logo='+this.optdata.logo+'&value='+this.optdata.value+'&id='+this.optdata.id
  49. })
  50. }
  51. }
  52. }
  53. </script>
  54. <style scoped>
  55. .content{
  56. min-height: 100vh;
  57. background: #F4F5F7;
  58. }
  59. .box{
  60. padding: 0 24rpx;
  61. background: #ffffff;
  62. }
  63. .historylinecarImg{
  64. width: 46rpx;
  65. height: 46rpx;
  66. }
  67. .historylinecar{
  68. font-weight: 400;font-size: 26rpx;
  69. color: #1A1A1A;
  70. line-height: 37rpx;width: 636rpx;
  71. }
  72. .historyLine{
  73. display: flex;justify-content: space-between;
  74. padding: 30rpx 0;border-top: 1rpx solid #EEEEEE;
  75. }
  76. .title{
  77. font-weight: 500;font-size: 28rpx;
  78. color: #1A1A1A;padding: 30rpx 24rpx;
  79. line-height: 40rpx;
  80. }
  81. .lineBox{
  82. padding: 0 24rpx;
  83. }
  84. .line{
  85. width: 332rpx;
  86. height: 206rpx;
  87. background: #FFFFFF;
  88. border-radius: 16rpx;
  89. }
  90. .lineTitle{
  91. font-weight: 500;font-size: 28rpx;padding-top: 32rpx;
  92. color: #1A1A1A;padding-left: 30rpx;
  93. line-height: 40rpx;
  94. }
  95. .lineEnglish{
  96. font-weight: 400;font-size: 24rpx;
  97. color: #999999;padding-left: 30rpx;
  98. line-height: 34rpx;padding-top: 10rpx;
  99. }
  100. .lineImg1{
  101. width: 82rpx;height: 92rpx;
  102. }
  103. .lineImgbox{
  104. text-align: right;
  105. }
  106. .lineImg2{
  107. width: 106rpx;height: 82rpx; margin-top: 10rpx;
  108. }
  109. </style>