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.

37 lines
516 B

7 months ago
  1. <template>
  2. <view>
  3. <web-view
  4. :src="'/static/html/local.html?loca=' + getLoca()"></web-view>
  5. <!-- <web-view src="http://btc-h5.shop996.top"></web-view> -->
  6. </view>
  7. </template>
  8. <script>
  9. export default {
  10. data() {
  11. return {
  12. }
  13. },
  14. onShow() {
  15. },
  16. methods: {
  17. getLoca(){
  18. let arr = {
  19. cn : 'tw',
  20. jp : 'ja',
  21. 'zh-Hans' : 'zh-CN',
  22. }
  23. let a = uni.getStorageSync('language')
  24. return arr[a] || a || 'tw'
  25. }
  26. }
  27. }
  28. </script>
  29. <style>
  30. </style>