yinszhengc.vue 745 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template>
  2. <view>
  3. <web-view :webview-styles="webviewStyles" :src="url"></web-view>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. webviewStyles: {
  11. progress: {
  12. color: '#40AE36'
  13. }
  14. },
  15. url:''
  16. }
  17. },
  18. onLoad() {
  19. var language = uni.getStorageSync('language');
  20. if(language=='yuenan'){
  21. this.url='https://backend.awayqtw.com/ynszc_vi.html'
  22. }
  23. else if(language=='zh-Hant'){
  24. this.url='https://backend.awayqtw.com/ynszc_tw.html'
  25. }
  26. else{
  27. this.url='https://backend.awayqtw.com/ynszc.html'
  28. }
  29. setTimeout(() => {
  30. uni.setNavigationBarTitle({
  31. title: this.$t('user.yinsizhc'),
  32. });
  33. }, 2000);
  34. },
  35. methods: {
  36. }
  37. }
  38. </script>
  39. <style>
  40. </style>