1.diy---选项卡

master
sws 2024-09-19 09:52:10 +08:00
parent c0519ad200
commit c52df12043
2 changed files with 3 additions and 5 deletions

View File

@ -2,6 +2,7 @@
<view class="ht-auto min-ht">
<componentDiyHeader></componentDiyHeader>
<view v-if="value.diy_data.length > 0" :style="diy_content_style">
{{ is_tabs }}
<componentDiyTabs v-if="is_tabs" :value="tabs_data"></componentDiyTabs>
<view v-if="is_tabs_type">
<view v-for="(item, index) in value.diy_data" :key="index">
@ -120,8 +121,8 @@
methods: {
init() {
// tabs
const filter_tabs_list = this.value.diy_data.filter((item) => item.key == 'tabs');
if (filter_tabs_list > 0) {
const filter_tabs_list = this.value.tabs_data;
if (filter_tabs_list.length > 0) {
this.setData({
tabs_data: filter_tabs_list[0].com_data,
is_tabs: true,

View File

@ -52,14 +52,12 @@
},
//
on_load_img(e) {
console.log('123');
const query = uni.createSelectorQuery();
//
query
.in(this)
.select('.container')
.boundingClientRect((res) => {
console.log('1:' + res);
if ((res || null) != null) {
// data
this.setData({
@ -74,7 +72,6 @@
.in(this)
.select('.hot')
.boundingClientRect((res) => {
console.log('2:' + res);
if ((res || null) != null) {
// data
this.setData({