Commit abd9c153 by Sweet Zhang

增加vite配置文件

parent 0088031f
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"id": "vcode-input",
"name": "验证码输入框",
"version": "2.0",
"description": "验证码输入框,密码输入框",
"keywords": [
"验证码输入框",
"支付密码输入框"
],
"displayName": "验证码输入框",
"dcloudext": {
"category": [
"前端组件",
"通用组件"
]
},
"dependencies": {
"@dcloudio/uni-ui": "^1.5.11",
"@uqrcode/js": "^4.0.7",
......@@ -29,7 +14,6 @@
"qrcode": "^1.5.4",
"qrcodejs2": "^0.0.2",
"uqrcodejs": "^4.0.7",
"vite-plugin-top-level-await": "^1.6.0",
"weixin-js-sdk": "^1.6.5"
},
"devDependencies": {
......
{
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
"pages": [
{
"path": "pages/index/index",
"style": {
"topWindow": false,
"navigationBarTitleText": "银盾家办"
}
}, {
},
"lazyLoad": true
},
{
"path": "components/login/login",
"style": {
"topWindow": false,
"navigationBarTitleText": "银盾家办"
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/courselist/courselist",
"style": {
"topWindow": false,
"navigationBarTitleText": "银盾家办"
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/courseDetail/courseDetail",
"style": {
"navigationBarTitleText": "产品详情",
......@@ -27,51 +32,66 @@
"app-plus": {
"softinputMode": "adjustResize"
}
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/product/product",
"style": {
"navigationBarTitleText": "SFP",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/shareFriend/shareFriend",
"style": {
"navigationBarTitleText": "分享好友",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/personalCenter/personalCenter",
"style": {
"navigationBarTitleText": "我的",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/announcement/announcement",
"style": {
"navigationBarTitleText": "公告列表",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/announcement/announcement_detail",
"style": {
"navigationBarTitleText": "公告详情",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/systemMsg/system_msg",
"style": {
"navigationBarTitleText": "消息列表",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/systemMsg/system_msg_detail",
"style": {
"navigationBarTitleText": "消息详情",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/application-process/basic-info",
"style": {
"navigationBarTitleText": "申请加盟-基本资料",
......@@ -79,55 +99,72 @@
"app-plus": {
"softinputMode": "adjustPan"
}
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/application-process/work-experience",
"style": {
"navigationBarTitleText": "从业经历",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/myCertify/myCertify",
"style": {
"navigationBarTitleText": "我的认证",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/inviteJoin/inviteJoin",
"style": {
"navigationBarTitleText": "邀请加盟",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/orderConfirm/orderConfirm",
"style": {
"navigationBarTitleText": "订单确认",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/learnCertify/learnCertify",
"style": {
"navigationBarTitleText": "学习认证",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/authentication-query/authentication-query",
"style": {
"navigationBarTitleText": "认证查询",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/authentication-query/authentication-result",
"style": {
"navigationBarTitleText": "查询结果",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/certifyDetail/certifyDetail",
"style": {
"navigationBarTitleText": "认证详情",
"enablePullDownRefresh": false
}
},
"lazyLoad": true
},
// {
// "path": "pages/myLearning/myLearning",
......@@ -135,157 +172,192 @@
// "navigationBarTitleText": "我的学习",
// "enablePullDownRefresh": false
// }
// },
{
"path": "pages/personalCenter/myTeam",
"style": {
"navigationBarTitleText": "我的团队",
"enablePullDownRefresh": false
}
},
"lazyLoad": true
},
{
"path": "pages/personalCenter/myTeamIncubate",
"style": {
"navigationBarTitleText": "育成团队",
"enablePullDownRefresh": false
}
},
"lazyLoad": true
},
{
"path": "pages/personalCenter/helpCenter",
"style": {
"navigationBarTitleText": "帮助中心",
"enablePullDownRefresh": false
}
},
"lazyLoad": true
},
{
"path": "pages/myShare/myShare",
"style": {
"navigationBarTitleText": "分享数据",
"enablePullDownRefresh": false
}
},
"lazyLoad": true
},
{
"path": "pages/myPoints/myPoints",
"style": {
"navigationBarTitleText": "我的积分",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/commonDetail/commonDetail",
"style": {
"navigationBarTitleText": "明细",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/orderDetail/orderDetail",
"style": {
"navigationBarTitleText": "订单详情",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/afterSales/afterSales",
"style": {
"navigationBarTitleText": "我的售后",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/afterSaleDetail/afterSaleDetail",
"style": {
"navigationBarTitleText": "我的售后",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/saleCourseLists/saleCourseLists",
"style": {
"navigationBarTitleText": "成交订单",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/myPoints/pointsDetail",
"style": {
"navigationBarTitleText": "积分明细",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/pointsExchange/pointsStatus",
"style": {
"navigationBarTitleText": "佣金",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/pointsExchange/pointsExchange",
"style": {
"navigationBarTitleText": "佣金",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/withdrawal/withdrawal",
"style": {
"navigationBarTitleText": "兑换提现",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/exchangeRecord/exchangeRecord",
"style": {
"navigationBarTitleText": "兑换记录",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/withdrawal/withdrawalDetail",
"style": {
"navigationBarTitleText": "提现详情",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/taxRules/taxRules",
"style": {
"navigationBarTitleText": "纳税规则",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/applyDropClass/applyDropClass",
"style": {
"navigationBarTitleText": "申请退款",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/application-process/id-card",
"style": {
"navigationBarTitleText": "申请加盟-个人证件",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/application-process/education",
"style": {
"navigationBarTitleText": "申请加盟-学历信息",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/application-process/bank-card",
"style": {
"navigationBarTitleText": "申请加盟-银行卡号",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/application-process/personal-statement",
"style": {
"navigationBarTitleText": "申请加盟-个人声明",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/application-process/contract",
"style": {
"navigationBarTitleText": "申请加盟-合同文档",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/application-process/signature",
"style": {
"navigationBarTitleText": "申请加盟-电子签名",
......@@ -293,49 +365,56 @@
"app-plus": {
"bounce": "none"
}
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/personalCenter/teamMembers/teamMembers",
"style": {
"navigationBarTitleText": "团队成员",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/personalCenter/teamPerformance/teamPerformance",
"style": {
"navigationBarTitleText": "团队业绩",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/personalCenter/user-information",
"style": {
"navigationBarTitleText": "个人资料",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/personalCenter/system/settings",
"style": {
"navigationBarTitleText": "设置",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/orderStatus/orderStatus",
"style": {
"navigationBarTitleText": "订单支付",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/dropLists/dropLists",
"style": {
"navigationBarTitleText": "已退课",
"enablePullDownRefresh": false
}
},
"lazyLoad": true
},
// {
// "path": "pages/learningStatistics/learningStatistics",
......@@ -349,341 +428,389 @@
"style": {
"navigationBarTitleText": "账号绑定设置",
"enablePullDownRefresh": false
}
},
"lazyLoad": true
},
{
"path": "pages/personalCenter/accountoperation/phonebinding",
"style": {
"navigationBarTitleText": "手机号绑定",
"enablePullDownRefresh": false
}
},
"lazyLoad": true
},
{
"path": "pages/personalCenter/accountoperation/resetpassword",
"style": {
"navigationBarTitleText": "重置密码",
"enablePullDownRefresh": false
}
},
"lazyLoad": true
},
{
"path": "pages/personalCenter/accountoperation/confirmResetpassword",
"style": {
"navigationBarTitleText": "重置密码",
"enablePullDownRefresh": false
}
},
"lazyLoad": true
},
{
"path": "pages/personalCenter/accountoperation/aboutcffp",
"style": {
"navigationBarTitleText": "关于我",
"enablePullDownRefresh": false
}
},
"lazyLoad": true
},
{
"path": "pages/certifyDetail/uploadinformation",
"style": {
"navigationBarTitleText": "上传信息",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/receiptCycleDesc/receiptCycleDesc",
"style": {
"navigationBarTitleText": "到账周期说明",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/invitationRegister/invitationRegister",
"style": {
"navigationBarTitleText": "邀请注册",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/invitationRegister/invitationlogin",
"style": {
"navigationBarTitleText": "邀请登录",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/application-process/application-result",
"style": {
"navigationBarTitleText": "申请加盟-结果",
"enablePullDownRefresh": false
}
}, {
},
"lazyLoad": true
},
{
"path": "pages/downloadApp/index",
"style": {
"navigationBarTitleText": "下载",
"enablePullDownRefresh": false
}
}
, {
},
"lazyLoad": true
},
{
"path": "pages/product/finance-calculator",
"style": {
"navigationBarTitleText": "pages/product/finance-calculator",
"enablePullDownRefresh": false
}
},
"lazyLoad": true
},
{
"path": "components/webview"
"path": "components/webview",
"style": {},
"lazyLoad": true
},
{
"path": "pages/personalCenter/system/cancellation",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
},
"lazyLoad": true
},
{
"path": "components/clause/clauseIOS",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
"style": {},
"lazyLoad": true
},
{
"path": "sfp/index/index",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
},
"lazyLoad": true
},
{
"path": "sfp/housePurchase/housePurchase",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
},
"lazyLoad": true
},
{
"path": "sfp/childEdu/childEdu",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
},
"lazyLoad": true
},
{
"path": "sfp/dataImport/data-import",
"style": {
"topWindow": false,
"navigationBarTitleText": "批量数据计算"
}
},
"lazyLoad": true
},
{
"path" : "pages/personalCenter/detail",
"style" :
{
"navigationBarTitleText" : "",
"path": "pages/personalCenter/detail",
"style": {
"navigationBarTitleText": "",
"disableScroll": false,
"webview": {
// 1. 允许加载本地静态资源(viewer.html /static 目录)
"allowAccessFromFileURLs": true,
// 2. 允许加载外部资源(OSS的PDF)
"allowUniversalAccessFromFileURLs": true,
// 3. 启用JavaScript(PDF.js依赖)
"enableJavaScript": true,
// 4. 关闭安全校验(开发环境测试用,线上可关闭)
"disableWebSecurity": true,
// 5. 允许跳转外部链接
"allowNavigateToExternalPages": true,
// 6. 启用调试(关键:便于查看WebView内部错误)
"webviewDebug": true
}
}
},
"lazyLoad": true
},
{
"path": "pages/lanch/index",
"style": {
"topWindow": false,
"navigationBarTitleText": "启动页"
},
"lazyLoad": true
}
}
],
"subPackages": [{
"subPackages": [
{
"root": "myPackageA",
"pages": [{
"pages": [
{
"path": "lawManual/lawManual",
"style": {
"navigationBarTitleText": "CFFP法条摘要"
}
}, {
},
"lazyLoad": true
},
{
"path": "videoProject/login",
"style": {
"navigationBarTitleText": "登录"
}
}, {
},
"lazyLoad": true
},
{
"path": "videoProject/videoDetail",
"style": {
"navigationBarTitleText": "视频播放"
}
}, {
},
"lazyLoad": true
},
{
"path": "videoProject/wxLogin",
"style": {
"navigationBarTitleText": "微信登录"
}
},{
},
"lazyLoad": true
},
{
"path": "applyFranchise/applyFranchise",
"style": {
"navigationBarTitleText": "申请加盟"
}
},{
},
"lazyLoad": true
},
{
"path": "integralExchange/exchange",
"style": {
"navigationBarTitleText": "积分提现"
}
},{
},
"lazyLoad": true
},
{
"path": "ruleAndContract/taxRules",
"style": {
"navigationBarTitleText": "纳税规则"
}
},{
},
"lazyLoad": true
},
{
"path": "integralExchange/authenticaInfo",
"style": {
"navigationBarTitleText": "实名认证"
}
},{
},
"lazyLoad": true
},
{
"path": "setting/logOff",
"style": {
"navigationBarTitleText": "合伙人解约"
}
},{
},
"lazyLoad": true
},
{
"path": "ruleAndContract/cancelProtocol",
"style": {
"navigationBarTitleText": "合伙人解约协议"
}
}, {
},
"lazyLoad": true
},
{
"path": "login/login",
"style": {
"navigationBarTitleText": "银盾家办"
}
},{
},
"lazyLoad": true
},
{
"path": "ruleAndContract/clause",
"style": {
"navigationBarTitleText": "协议"
}
},{
},
"lazyLoad": true
},
{
"path": "poster/poster",
"style": {
"navigationBarTitleText": "分销海报"
}
},{
},
"lazyLoad": true
},
{
"path": "myTeam/myTeam",
"style": {
"navigationBarTitleText": "我的团队"
}
},{
},
"lazyLoad": true
},
{
"path": "commission/withdrawalRecord",
"style": {
"navigationBarTitleText": "提现记录"
}
},{
},
"lazyLoad": true
},
{
"path": "compare-result/compare-result",
"style": {
"navigationBarTitleText": "对比结果"
}
},{
},
"lazyLoad": true
},
{
"path": "product-list/product-list",
"style": {
"navigationBarTitleText": "产品对比"
}
},{
},
"lazyLoad": true
},
{
"path": "product-list/product-commission",
"style": {
"navigationBarTitleText": "产品佣率查询"
}
},
"lazyLoad": true
},
{
"path": "product-list/commission-detail",
"style": {
"navigationBarTitleText": "佣金详情"
}
},
{
"path" : "businessCard/businessCard",
"style" :
{
"navigationBarTitleText" : "我的名片"
}
"lazyLoad": true
},
{
"path" : "noBusinessCard/noBusinessCard",
"style" :
{
"navigationBarTitleText" : "我的名片"
}
"path": "businessCard/businessCard",
"style": {
"navigationBarTitleText": "我的名片"
},
"lazyLoad": true
},
{
"path" : "salary/salaryList",
"style" :
"path": "noBusinessCard/noBusinessCard",
"style": {
"navigationBarTitleText": "我的名片"
},
"lazyLoad": true
},
{
"navigationBarTitleText" : "积分明细"
}
"path": "salary/salaryList",
"style": {
"navigationBarTitleText": "积分明细"
},
"lazyLoad": true
}
// {
// "path" : "ticket/unUsed",
// "style" :
// {
// "style" : {
// "navigationBarTitleText" : "我的卡券"
// }
// },
// {
// "path" : "ticket/alreadyUsed",
// "style" :
// {
// "style" : {
// "navigationBarTitleText" : "使用记录"
// }
// }
]
},{
},
{
"root": "officialWebsite",
"pages": [{
"pages": [
{
"path": "memberQuery",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false
},
"lazyLoad": true
}
}]
}],
]
}
],
"tabBar": {
"color": "#7A7E83", // tab 上的文字默认颜色
"selectedColor": "#20279b", // tab 上的文字选中时的颜色
"borderStyle": "black", // tabbar 上边框的颜色,可选值 black/white
"backgroundColor": "#ffffff", // tab 的背景色
"color": "#7A7E83",
"selectedColor": "#20279b",
"borderStyle": "black",
"backgroundColor": "#ffffff",
"fontSize": "24rpx",
"iconWidth": "30rpx",
"height": "100rpx",
"list": [{ // 最少2个、最多5 tab
"pagePath": "pages/index/index", // 页面路径,必须在 pages 中先定义
"iconPath": "static/images/home.png",// 图片路径,icon 大小限制为40kb,建议尺寸为 81px * 81px
"list": [
{
"pagePath": "pages/index/index",
"iconPath": "static/images/home.png",
"selectedIconPath": "static/images/selectHome.png",
"text": "首页" // tab 上按钮文字
"text": "首页"
},
{ // 最少2个、最多5 tab
"pagePath": "pages/product/product", // 页面路径,必须在 pages 中先定义
"iconPath": "static/images/tools.png",// 图片路径,icon 大小限制为40kb,建议尺寸为 81px * 81px
{
"pagePath": "pages/product/product",
"iconPath": "static/images/tools.png",
"selectedIconPath": "static/images/selectTools.png",
"text": "金融工具" // tab 上按钮文字
"text": "金融工具"
},
{ // 最少2个、最多5 tab
"pagePath": "pages/courselist/courselist", // 页面路径,必须在 pages 中先定义
"text": "产品中心" ,// tab 上按钮文字
"iconPath": "static/images/product.png",// 图片路径,icon 大小限制为40kb,建议尺寸为 81px * 81px
{
"pagePath": "pages/courselist/courselist",
"text": "产品中心",
"iconPath": "static/images/product.png",
"selectedIconPath": "static/images/selectProduct.png"
}, {
},
{
"pagePath": "pages/personalCenter/personalCenter",
"text": "我的",
"iconPath": "static/images/personal.png",// 图片路径,icon 大小限制为40kb,建议尺寸为 81px * 81px
"iconPath": "static/images/personal.png",
"selectedIconPath": "static/images/selectPersonal.png"
}
]
......@@ -702,12 +829,14 @@
"^my-list-item": "@/components/my-list-item/my-list-item.vue"
}
},
"condition": { //模式配置,仅开发期间生效
"current": 0, //当前激活的模式(list 的索引项)
"list": [{
"name": "", //模式名称
"path": "", //启动页面,必选
"query": "" //启动参数,在页面的onLoad函数里面得到
}]
"condition": {
"current": 0,
"list": [
{
"name": "",
"path": "",
"query": ""
}
]
}
}
\ No newline at end of file
// vite.config.js
import { defineConfig } from 'vite'
import uni from '@dcloudio/vite-plugin-uni'
// 自定义插件:移除 CSS 中的 shadow-grey.png 引用
function removeShadowGrey() {
return {
name: 'remove-shadow-grey',
transform(code, id) {
// 只处理 CSS 和 Vue 文件(含 <style>)
if (id.endsWith('.css') || id.endsWith('.scss') || id.endsWith('.vue')) {
// 将 url(...) 中包含 shadow-grey.png 的替换为 none
const newCode = code.replace(
/url\([^)]*shadow-grey\.png[^)]*\)/g,
'none' // 或 '""' 或 '#000',可根据需要调整
)
if (newCode !== code) {
return { code: newCode, map: null }
}
}
return null // 不处理其他文件
}
}
}
export default defineConfig({
plugins: [
uni(),
removeShadowGrey() // 加入自定义插件
],
build: {
cssCodeSplit: true
// 不再配置 rollupOptions.output.manualChunks,使用 Vite 默认分包策略
}
})
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment