chore(组件): 组件尽量使用异步导入模式

This commit is contained in:
2026-01-04 14:40:00 +08:00
parent 4da852944e
commit 9415f397d2
172 changed files with 11520 additions and 10979 deletions

View File

@@ -1,6 +1,6 @@
<template>
<view :style="themeColor">
<!-- <view class="tab color-bg">
<!-- <view class="tab color-bg">
<view class="tab-left">
<picker mode="date" :value="searchType.date" @change="bindDateChange" fields="month">
<view class="uni-input">
@@ -26,10 +26,12 @@
<view class="info" @click="toFromDetail(item)">
<view class="event">{{ item.type_name }}</view>
<view class="time-box">
<text class="time color-tip">{{ $util.timeStampTurnTime(item.create_time) }}</text>
<text class="time color-tip">{{ $util.timeStampTurnTime(item.create_time)
}}</text>
</view>
</view>
<view class="num color-base-text" v-if="item.account_data > 0">+{{ parseInt(item.account_data) }}</view>
<view class="num color-base-text" v-if="item.account_data > 0">+{{
parseInt(item.account_data) }}</view>
<view class="num " v-else>{{ parseInt(item.account_data) }}</view>
</view>
</view>
@@ -45,21 +47,15 @@
</template>
<script>
import nsEmpty from '@/components/ns-empty/ns-empty.vue';
import nsLogin from '@/components/ns-login/ns-login.vue';
import loadingCover from '@/components/loading-cover/loading-cover.vue';
import MescrollUni from "@/components/mescroll/my-list-mescroll.vue";
// #ifdef MP-WEIXIN
import privacyPopup from '@/components/wx-privacy-popup/privacy-popup.vue';
// #endif
export default {
components: {
nsEmpty,
nsLogin,
loadingCover,
MescrollUni,
nsEmpty: () => import('@/components/ns-empty/ns-empty.vue'),
nsLogin: () => import('@/components/ns-login/ns-login.vue'),
loadingCover: () => import('@/components/loading-cover/loading-cover.vue'),
MescrollUni: () => import('@/components/mescroll/my-list-mescroll.vue'),
// #ifdef MP-WEIXIN
privacyPopup
privacyPopup: () => import('@/components/wx-privacy-popup/privacy-popup.vue'),
// #endif
},
data() {
@@ -103,7 +99,7 @@ export default {
this.getPointType();
},
methods: {
bindDateChange: function(e) {
bindDateChange: function (e) {
var temp = e.target.value;
var tempArr = temp.split('-');
this.date = tempArr[0] + '年' + tempArr[1] + '月';
@@ -272,11 +268,13 @@ export default {
font-size: $font-size-base;
}
}
.tab-left{
.tab-left {
display: flex;
padding-left: 30rpx;
}
.tab-right{
.tab-right {
display: flex;
justify-content: flex-end;
padding-right: 40rpx;
@@ -297,7 +295,7 @@ export default {
display: flex;
height: 90rpx;
& > view {
&>view {
flex: 1;
text-align: left;
padding: 0 $padding;