|
|
- <template>
- <view>
- <web-view
- :src="'/static/html/local.html?loca=' + getLoca()"></web-view>
-
- <!-- <web-view src="http://btc-h5.shop996.top"></web-view> -->
- </view>
- </template>
-
- <script>
- export default {
- data() {
- return {
-
- }
- },
- onShow() {
- },
- methods: {
- getLoca(){
- let arr = {
- cn : 'tw',
- jp : 'ja',
- 'zh-Hans' : 'zh-CN',
- }
-
- let a = uni.getStorageSync('language')
-
- return arr[a] || a || 'tw'
- }
- }
- }
- </script>
-
- <style>
-
- </style>
|