购物车不分包,首页加载diy优化

This commit is contained in:
gongfuxiang
2025-04-06 11:37:32 +08:00
parent 3e66afb2a1
commit 9bd88d1ef5
7 changed files with 14 additions and 20 deletions

View File

@ -7,10 +7,10 @@
data: {
// 基础配置
// 数据接口请求地址
request_url:'https://new.shopxo.vip/',
request_url:'http://shopxo.com/',
// 静态资源地址如系统根目录不在public目录下面请在静态地址后面加public目录、如https://d1.shopxo.vip/public/
static_url:'https://new.shopxo.vip/',
static_url:'http://shopxo.com/',
// 系统类型默认default、如额外独立小程序、可与程序分身插件实现不同主体小程序及支付独立
system_type: 'default',

View File

@ -11,7 +11,7 @@
<view v-else>
<!-- 1 加载中(0loog, 1名称) -->
<view v-if="propStatus == 1 && network_type_value != 'none'" :class="'no-data-box tc no-data-loading '+(is_loading_use_skeleton == 1 && (propPage || null) != null ? 'skeleton' : '')">
<block v-if="is_loading_use_skeleton == 1 && (propPage || null) != null">
<block v-if="(is_loading_use_skeleton == 1 || propLoadingUseSkeleton) && (propPage || null) != null">
<!-- 是否展示头站位 -->
<view v-if="propIsHeader" class="skeleton-header"></view>
<!-- 首页 -->
@ -141,6 +141,10 @@
propLoadingLogoTop: {
type: String,
default: '50%',
},
propLoadingUseSkeleton: {
type: Boolean,
default: false,
}
},
// 页面被展示

View File

@ -67,13 +67,7 @@
"enablePullDownRefresh": false,
// 禁止页面下拉
"disableScroll": true,
"navigationBarTitleText": "",
"usingComponents": {
"component-cart": "/pages/cart/components/cart/cart"
},
"componentPlaceholder": {
"component-cart": "view"
}
"navigationBarTitleText": ""
}
},
{
@ -172,13 +166,7 @@
"enablePullDownRefresh": false,
// 禁止页面下拉
"disableScroll": true,
"navigationBarTitleText": "",
"usingComponents": {
"component-cart": "/pages/cart/components/cart/cart"
},
"componentPlaceholder": {
"component-cart": "view"
}
"navigationBarTitleText": ""
}
}
]

View File

@ -14,7 +14,7 @@
const app = getApp();
import componentCommon from '@/components/common/common';
import componentQuickNav from '@/components/quick-nav/quick-nav';
import componentCart from '@/pages/cart/components/cart/cart';
import componentCart from '@/components/cart/cart';
export default {
data() {
return {

View File

@ -10,7 +10,7 @@
<script>
const app = getApp();
import componentCommon from '@/components/common/common';
import componentCart from "@/pages/cart/components/cart/cart";
import componentCart from "@/components/cart/cart";
export default {
data() {
return {
@ -46,7 +46,7 @@
// 公共onshow事件
if ((this.$refs.common || null) != null) {
this.$refs.common.on_show({object: this, method: 'init'});
this.$refs.common.on_show();
}
},

View File

@ -5,6 +5,8 @@
<block v-if="data_mode == 3">
<block v-if="(data_list || null) != null && (data_list.config || null) != null">
<component-diy :propValue="data_list.config" :propDataId="data_list.id" :propKey="random_value" @onLocationBack="user_back_choice_location">
<!-- 由于diy组件异步加载默认先加载骨架屏展示 -->
<component-no-data propStatus="1" :propLoadingUseSkeleton="true" propPage="home"></component-no-data>
<!-- 底部内容 -->
<template slot="diy-bottom-content">
<!-- 结尾 -->