installation.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <template>
  2. <view class="content">
  3. <homenav :iStatusBarHeight="iStatusBarHeight" :title="'电池安装'"></homenav>
  4. <view class="box">
  5. <!-- <video style="width:750rpx;" class="edui-faked-video twtcs" :src="videoUrl" width="420" height="280" enable-danmu danmu-btn controls></video> -->
  6. <!-- <image :src="imgUrl" mode=""></image> -->
  7. <view v-for="item in mtList" :key="item.id" class="parts-info-detail">
  8. <view v-for="item2 in parseInfo">
  9. <view v-for="item3 in item2">
  10. <view v-for="item4 in Object.keys(item3)">
  11. <h4>{{ item4 }}</h4>
  12. <!-- <video-player class="vjs-custom-skin"
  13. :options="getPlayerOptions(videoUrl)"/> -->
  14. <view v-for="img in item3[item4]">
  15. <image mode="widthFix" style="width: 100%;" :src="imgUrl+img" alt="" v-if="img.substring(img.length-3)!='mp4'"></image>
  16. <!-- <video-player class="vjs-custom-skin"
  17. :options="getPlayerOptions(info.imgUrl+img)" v-else /> -->
  18. <video style="width:750rpx;" class="edui-faked-video twtcs" v-else :src="imgUrl+img" width="420" height="280" enable-danmu danmu-btn controls></video>
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. import homenav from "../../components/homenav/nav.vue"
  29. import nodata from '../../components/nodata/nodata.vue'
  30. export default {
  31. components: {
  32. homenav,nodata
  33. },
  34. data() {
  35. return {
  36. videoUrl:"https://66km.oss-cn-beijing.aliyuncs.com/yanghuziliao/jiyou/%E6%AC%A7%E6%B4%B2%E7%BB%B4%E4%BF%AE%E6%A0%87%E5%87%86%E6%8D%A2%E6%B2%B9SOP%E6%B5%81%E7%A8%8B.mp4",
  37. historyList:[],
  38. iStatusBarHeight:'',
  39. loading:false,
  40. groupIds:'',
  41. componentCode:'',
  42. mtList:'',
  43. imgUrl:'',
  44. //parseInfo:'',
  45. }
  46. },
  47. onLoad(opt) {
  48. this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
  49. //
  50. this.componentCode='005001'//opt.componentCode
  51. this.groupIds=opt.groupIds
  52. this.queryList()
  53. },
  54. methods: {
  55. goDetail(e){
  56. uni.navigateTo({
  57. url:'/pages/index/byItem?nLevelID='+e.nLevelID+'&logo='+e.logo+'&value='+e.title+'&id='+e.groupID+'&isVin='+e.ifVin+'&vin='+e.vin
  58. })
  59. },
  60. queryList(){
  61. this.loading=false;
  62. this.$http('partsByOpen/queryCarmodelhelp', {
  63. componentCode:this.componentCode,
  64. groupId:this.groupIds
  65. },'POST').then(res => {
  66. this.loading=true;
  67. // console.log(res.data.yhzl.imgUrl)
  68. this.imgUrl=res.data.yhzl.imgUrl
  69. this.mtList=res.data.yhzl.mtList
  70. /* var mtList=res.data.yhzl.mtList
  71. mtList?.map(item => {
  72. return JSON.parse(item.content.replace(/'/g, '"'))
  73. })
  74. this.parseInfo=mtList */
  75. })
  76. },
  77. },
  78. computed:{
  79. parseInfo() {
  80. return this.mtList?.map(item => {
  81. return JSON.parse(item.content.replace(/'/g, '"'))
  82. })
  83. }
  84. }
  85. }
  86. </script>
  87. <style scoped>
  88. .box{
  89. }
  90. .historylinecarImg{
  91. width: 54rpx;
  92. height: 54rpx;
  93. }
  94. .historylinecar{
  95. font-weight: 400;font-size: 26rpx;
  96. color: #1A1A1A;
  97. line-height: 46rpx;width: 636rpx;
  98. }
  99. .historyLine{
  100. padding: 30rpx 0;border-top: 1rpx solid #EEEEEE;
  101. }
  102. .historyLineCar{
  103. display: flex;justify-content: space-between;
  104. }
  105. .vinms{
  106. width: 38rpx;
  107. height: 26rpx;
  108. background: linear-gradient(224deg, #FFDA28 0%, #FFBF35 100%);
  109. border-radius: 4rpx;
  110. text-align: center;
  111. line-height: 26rpx;
  112. font-weight: 600;
  113. color: #FFFFFF;
  114. font-size: 18rpx;
  115. margin-top: 2rpx;
  116. }
  117. .historyLineVin{
  118. display: flex;
  119. }
  120. .vinNum{
  121. font-weight: 400;font-size: 22rpx;padding-left: 10rpx;
  122. color: #999999;line-height: 30rpx;
  123. }
  124. .historyLogoBox{
  125. display: flex;align-items: center;
  126. }
  127. </style>