1.diy---- 热区

This commit is contained in:
sws
2024-09-11 17:47:12 +08:00
parent f177d3a762
commit adfe8bbe8e
3 changed files with 8 additions and 4 deletions

View File

@ -216,9 +216,7 @@
return 'style5';
}
},
// 事件
// 跳转链接
url_event(e) {
app.globalData.url_event(e);
},

View File

@ -78,6 +78,7 @@
})
.exec(); // 执行查询
},
// 跳转链接
url_event(e) {
app.globalData.url_event(e);
},

View File

@ -11,7 +11,7 @@
</view>
</view>
<view class="flex-row align-c" :style="'gap:' + base_data.img_space * 2 + 'rpx;'">
<view v-for="(item, index) in icon_setting" :key="index" :style="{ width: base_data.img_size + 'px', height: base_data.img_size + 'px' }">
<view v-for="(item, index) in icon_setting" :key="index" :style="{ width: base_data.img_size + 'px', height: base_data.img_size + 'px' }" :data-value="item.link.page" @click="url_event">
<image v-if="item.img.length > 0" :src="item.img[0].url" class="border-radius-sm" mode="scaleToFill" :style="{ width: base_data.img_size + 'px', height: base_data.img_size + 'px' }" />
<iconfont v-else :name="'icon-' + item.icon" :size="base_data.img_size + 'rpx'" color="#666"></iconfont>
</view>
@ -30,6 +30,7 @@
</template>
<script>
const app = getApp();
import { common_styles_computer, gradient_computer } from '@/common/js/common/common.js';
export default {
props: {
@ -132,6 +133,10 @@
this.stats_name_style = 'color:' + this.base_data.stats_name_color + ';' + 'font-size:' + this.base_data.stats_name_size * 2 + 'rpx;' + 'font-weight:' + this.base_data.stats_name_weight + ';';
this.stats_number_style = 'color:' + this.base_data.stats_number_color + ';' + 'font-size:' + this.base_data.stats_number_size * 2 + 'rpx;' + 'font-weight:' + this.base_data.stats_number_weight + ';';
},
// 跳转链接
url_event(e) {
app.globalData.url_event(e);
},
},
};
</script>