页面设计公共初始优化

master
gongfuxiang 2025-01-04 13:54:48 +08:00
parent 9029bee564
commit ac383dcb45
1 changed files with 23 additions and 11 deletions

View File

@ -1,6 +1,6 @@
<template>
<view :class="theme_view">
<view v-if="(data || null) != null">
<block v-if="(data || null) != null">
<!-- 搜索 -->
<block v-if="(data.is_header || 0) == 1">
<!-- 搜索框 -->
@ -17,10 +17,10 @@
<!-- 结尾 -->
<component-bottom-line :propStatus="data_bottom_line_status"></component-bottom-line>
</block>
</view>
<view v-else>
</block>
<block v-else>
<component-no-data :propStatus="data_list_loding_status" :propMsg="data_list_loding_msg"></component-no-data>
</view>
</block>
<!-- 公共 -->
<component-common ref="common"></component-common>
@ -74,10 +74,8 @@
//
this.get_data();
// onshow
if ((this.$refs.common || null) != null) {
this.$refs.common.on_show();
}
// onshow
this.init_common();
},
//
@ -85,7 +83,15 @@
this.get_data();
},
methods: {
methods: {
//
init_common() {
// onshow
if ((this.$refs.common || null) != null) {
this.$refs.common.on_show();
}
},
//
get_data(params = {}) {
//
@ -98,7 +104,10 @@
this.setData(upd_data);
//
params['is_cache'] = 0;
params['is_cache'] = 0;
// onshow
this.init_common();
}
} else {
//
@ -145,7 +154,10 @@
//
uni.setNavigationBarTitle({
title: this.data.name
});
});
// onshow
this.init_common();
}
//