Commit f2cbc46d Harvey

tv list

1 个父辈 95bfb21d
<template> <template>
<view class="page-content"> <view>
<image :mode="mode" :src="src"></image> <view class="page-content">
<image :mode="mode" :src="src"></image>
</view>
</view> </view>
</template> </template>
...@@ -14,42 +16,26 @@ ...@@ -14,42 +16,26 @@
return { return {
title: '快乐8 横屏走势图', title: '快乐8 横屏走势图',
mode: 'widthFix', mode: 'widthFix',
text: '快乐8 横屏走势图', text: '快乐8 横屏走势图',
src: 'https://img2.ydniu.com/app/cd/202204122204/%E5%BF%AB%E4%B9%908%E5%9F%BA%E6%9C%AC%E8%B5%B0%E5%8A%BF%E5%9B%BE.png' src: 'https://img2.ydniu.com/app/cd/202204122204/%E5%BF%AB%E4%B9%908%E5%9F%BA%E6%9C%AC%E8%B5%B0%E5%8A%BF%E5%9B%BE.png'
} }
}, },
async onLoad(e) { async onLoad(e) {
//const img = await uni.getStorageSync('tv_list_selected_img') //#ifdef H5
if (e) {
this.title = e.text
this.text = e.text
this.src = e.src
// if (img) { uni.setNavigationBarTitle({
// this.title = img.text title: this.title
// this.text = img.text })
// this.src = img.src }
// uni.setNavigationBarTitle({
// title: this.title
// })
// }
//#ifdef H5
if (e) {
this.title = e.text
this.text = e.text
this.src = e.src
uni.setNavigationBarTitle({
title: this.title
})
}
$h5.head_tv(this.src) $h5.head_tv(this.src)
//#endif //#endif
}, },
methods: { methods: {}
// navChange(e) {
// console.log(e.target.dataset.v)
// }
}
} }
</script> </script>
...@@ -61,8 +47,7 @@ ...@@ -61,8 +47,7 @@
} }
.page-content image { .page-content image {
width: 90vw; width: 90vw;
} }
</style> </style>
...@@ -59,6 +59,16 @@ ...@@ -59,6 +59,16 @@
} }
}, },
async onLoad() { async onLoad() {
//#ifdef H5
try {
if (Android) {
const $h5 = require('@/static/js/h5-utils.js')
$h5.remove_uni_page_head()
}
} catch (e) {}
//#endif
this.bindData() this.bindData()
}, },
methods: { methods: {
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!