You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
514 B

1 week ago
1 week ago
1 week ago
  1. <template>
  2. <view class="pageBg">
  3. <web-view :src="usecarStore.webLink" :webview-styles="webviewStyles" :update-title="false" @onPostMessage="handerMessage"></web-view>
  4. </view>
  5. </template>
  6. <script setup>
  7. let webviewStyles = {
  8. progress: {
  9. color: '#3877ff'
  10. },
  11. }
  12. import carStore from '@/store/modules/car.js'
  13. let usecarStore = carStore()
  14. function handerMessage(res) {
  15. console.log('监听到了')
  16. let item = res.detail.data[0]
  17. console.log(res)
  18. console.log(item)
  19. }
  20. </script>
  21. <style >
  22. </style>