yinszhengc.vue 771 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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: '#FF3333'
  13. }
  14. },
  15. url:''
  16. }
  17. },
  18. onLoad() {
  19. var language = uni.getStorageSync('language');
  20. if(language=='yuenan'){
  21. this.url='https://backend.cityexpress168.com.vn/ynszc_vi.html'
  22. }
  23. else if(language=='zh-Hant'){
  24. this.url='https://backend.cityexpress168.com.vn/ynszc_tw.html'
  25. }
  26. else{
  27. this.url='https://backend.cityexpress168.com.vn/ynszc.html'
  28. }
  29. setTimeout(() => {
  30. uni.setNavigationBarTitle({
  31. title: this.$t('index.yinsizc'),
  32. });
  33. }, 2000);
  34. },
  35. methods: {
  36. }
  37. }
  38. </script>
  39. <style>
  40. </style>