control.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <template>
  2. <view class="container-view-contril">
  3. <scroll-view class="scroll-view flex-row" scroll-x="true">
  4. <view @tap="tapOpen" v-for="(item,index) of contrilList" :key="index" class="contril-item flex-row">
  5. <img class="contril-item-img" :src="item.iconUrl" alt="">
  6. <text>{{item.name}}</text>
  7. </view>
  8. <view class="contril-item flex-row" @tap="toMoreFunctionSet">
  9. <img class="contril-item-img" src="https://qiniu.bms16.com/Ft3pNyStT22LP8Ds1Mru2LoTHadx" alt="">
  10. <text>{{$t("更多功能")}}</text>
  11. </view>
  12. </scroll-view>
  13. <view v-if="popupShow" class="show-modal">
  14. <view class="modal-info">
  15. <view class="popup-title">{{$t("开启车辆")}}</view>
  16. <view class="popup-content">{{$t("确定打开")}}</view>
  17. <view class="flex-row modal-footer">
  18. <view class="show-btn cencel-btn-pop" @tap="closePopup">{{$t("取消")}}</view>
  19. <view class="show-btn ok-btn-pop" >{{$t("确定")}}</view>
  20. </view>
  21. </view>
  22. </view>
  23. <!-- <u-popup v-model="popupShow" mode="center" border-radius="30" height="30%" length="60%">
  24. <view class="popup-title">开启车辆</view>
  25. <view class="popup-content">确定打开</view>
  26. <view class="flex-row">
  27. <view class="sure-btn cencel-btn" @tap="closePopup">取消</view>
  28. <view class="sure-btn ok-btn" >确定</view>
  29. </view>
  30. </u-popup> -->
  31. <!-- <view v-if="isShowMore" class="show-more">
  32. <view class="more-info">
  33. <view class="flex-row flex-between model-title">
  34. <view>{{$t("更多功能")}}</view>
  35. <view>
  36. <image style="width: 32rpx;height: 32rpx;" @tap="isShowMore = false"
  37. src="https://qiniu.bms16.com/FtoTEHOJiUf_gjPCJGGHMsAtHI5M" />
  38. </view>
  39. </view>
  40. <view style="height: 300rpx;">
  41. <view data-url="test" @tap="navUrl" class="more-item flex-row">
  42. <img class="more-img" src="https://qiniu.bms16.com/FgxiD-W96FGvgyLI_kXUfWVDYLQ9" alt="">
  43. <text>{{$t("胎压")}}</text>
  44. </view>
  45. <view class="more-item flex-row">
  46. <img class="more-img" src="https://qiniu.bms16.com/FgxiD-W96FGvgyLI_kXUfWVDYLQ9" alt="">
  47. <text>{{$t("电池信息")}}</text>
  48. </view>
  49. <view @tap="navCarLocation" class="more-item flex-row">
  50. <img class="more-img" src="https://qiniu.bms16.com/FgxiD-W96FGvgyLI_kXUfWVDYLQ9" alt="">
  51. <text>{{$t("导航")}}</text>
  52. </view>
  53. </view>
  54. <view class="lift-btn-view">
  55. <view class="lift-btn">{{$t("解除绑定")}}</view>
  56. </view>
  57. </view>
  58. </view>
  59. -->
  60. </view>
  61. </template>
  62. <script>
  63. // component/nomore/nomore.js
  64. export default {
  65. props:{
  66. contrilList: {
  67. type: Array,
  68. default: () => []
  69. },
  70. },
  71. data() {
  72. return {
  73. popupShow:false,
  74. controlType:null,//选择的车辆控制
  75. isShowMore:false
  76. };
  77. },
  78. mounted() {
  79. // this.contrilList = getFunctionTag().activeTag
  80. },
  81. /**
  82. * 组件的方法列表
  83. */
  84. methods: {
  85. tapOpen(){
  86. this.popupShow=true
  87. },
  88. closePopup(){
  89. this.popupShow=false
  90. },
  91. tapOpenMore(){
  92. // this.isShowMore=true
  93. },
  94. closeMore(){
  95. this.isShowMore=false
  96. },
  97. navUrl(url){
  98. // ifconsole.log(url,'sj');
  99. },
  100. navCarLocation(){
  101. //前往配置更多功能
  102. uni.navigateTo({
  103. url:'/pages/carLocation/carLocation'
  104. })
  105. },
  106. toMoreFunctionSet() {
  107. uni.navigateTo({
  108. url: '/pages/carFunctionSet/more'
  109. })
  110. }
  111. }
  112. };
  113. </script>
  114. <style>
  115. @import './control.css';
  116. </style>