Commit 64e4d047 by Jaxon

chore: 添加项目配置文件和代码片段,更新 .gitignore

1 parent de121fa4
.DS_Store
node_modules
miniprogram_npm
project.config.json
project.private.config.json
/dist
/.history
......@@ -20,8 +18,6 @@ yarn-debug.log*
yarn-error.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
......
{
"小程序页面模板": {
"prefix": "page",
"scope": "javascript",
"body": [
"Page({",
"\tdata: {",
"\t\tnavBarHeight: 0,",
"\t},",
"",
"\tnavbarReady(e) {",
"\t\tlet navBarHeight = e?.detail?.height;",
"\t\tthis.setData({",
"\t\t\tnavBarHeight,",
"\t\t});",
"\t},",
"",
"\tback() {",
"\t\twx.\\$router.back();",
"\t},",
"",
"\tonLoad(options) {",
"\t\t$1",
"\t},",
"",
"\tonRoute(options) {",
"\t\tconsole.log(options);",
"\t},",
"",
"\t/**",
"\t * 生命周期函数--监听页面隐藏",
"\t */",
"\tonHide() {},",
"",
"\t/**",
"\t * 生命周期函数--监听页面卸载",
"\t */",
"\tonUnload() {},",
"",
"\t/**",
"\t * 页面相关事件处理函数--监听用户下拉动作",
"\t */",
"\tonPullDownRefresh() {},",
"",
"\t/**",
"\t * 页面上拉触底事件的处理函数",
"\t */",
"\tonReachBottom() {}",
"});",
],
"description": "微信小程序 Page 页面模板(含 navbarReady / back)",
},
"小程序组件模板": {
"prefix": "component",
"scope": "javascript",
"body": [
"Component({",
" /**",
" * 组件的属性列表",
" */",
" properties: {",
" ${1:exampleProp}: {",
" type: ${2:String},",
" value: ${3:''},",
" observer: function(newVal, oldVal) {",
" $4",
" }",
" }",
" },",
"",
" /**",
" * 组件的初始数据",
" */",
" data: {",
" ${5:exampleData}: ${6:null}",
" },",
"",
" /**",
" * 组件的方法列表",
" */",
" methods: {",
" ${7:exampleMethod}() {",
" $0",
" }",
" },",
"",
" /**",
" * 组件生命周期函数",
" */",
" lifetimes: {",
" created() {",
" ",
" },",
" attached() {",
" ",
" },",
" ready() {",
" ",
" },",
" moved() {",
" ",
" },",
" detached() {",
" ",
" }",
" },",
"",
" /**",
" * 组件数据监听器",
" */",
" observers: {",
" }",
"})",
],
"description": "微信小程序 Component 完整模板(含 properties, data, methods, lifetimes, observers)",
},
}
{
// 使用 Prettier 作为默认格式化器
"editor.defaultFormatter": "esbenp.prettier-vscode",
// 保存时自动格式化
"editor.formatOnSave": true,
// 缩进设置:使用 tab,大小为 4
"editor.tabSize": 4,
"editor.insertSpaces": false,
"editor.detectIndentation": false,
"explorer.compactFolders": false,
"scm.compactFolders": false,
"problems.decorations.enabled": false,
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[wxml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[wxss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[wxs]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"files.associations": {
"*.wxss": "css",
"*.sass": "scss"
},
"cSpell.words": [
// 微信小程序相关
"scrolltolower",
"wxml",
"wxss",
"wxs",
"elif",
"miniprogram",
"usingComponents",
"behaviours",
"onLaunch",
"onShow",
"onHide",
"onLoad",
"onUnload",
"onReady",
"onPullDownRefresh",
"onReachBottom",
"onShareAppMessage",
"setData",
"globalData",
// 项目相关
"glsk",
"glsx",
"dayjs",
"rfdc",
"ucharts",
"vant",
"vanui",
// 业务相关
"artificer",
"boutique",
"crowdfunding",
"technician",
"subvehicle",
"tabbar",
"tabDate",
"tabIndex",
"tabMine",
"tabOperating",
"tabRepairOrder",
"tabWorkOrder",
// 常用英文词汇
"mixins",
"utils",
"jsconfig",
"sitemap",
"unpkg",
"qrcode",
"qrbox",
"popup",
"popups",
"navbar",
"readonly",
"textarea",
// API/接口相关
"errId",
"sessionId",
"moduleType",
"moduleTypes",
"businessType",
"unread",
"pageNum",
"pageSize",
// 中文拼音
"yanbao",
"jingpin",
"quanyi"
],
// GitLens Blame 配置
"gitlens.codeLens.enabled": true,
"gitlens.codeLens.recentChange.enabled": true,
"gitlens.currentLineBlame": true,
"gitlens.currentLineBlame.format": "${author}, ${date} - ${message}",
"gitlens.blame.visibility": "on"
}
{
"appid": "wx6216a8e625e76b00",
"projectname": "regional-assistant",
"compileType": "miniprogram",
"libVersion": "3.13.0",
"scripts": {
"beforeUpload": "node ./scripts/wx-upload-guard.js || exit 1"
},
"packOptions": {
"ignore": [
{
"value": ".vscode",
"type": "folder"
},
{
"value": "\\.scss",
"type": "regexp"
}
],
"include": []
},
"setting": {
"urlCheck": false,
"coverView": true,
"es6": true,
"postcss": true,
"minified": true,
"enhance": true,
"showShadowRootInWxmlPanel": true,
"packNpmManually": true,
"packNpmRelationList": [
{
"packageJsonPath": "./package.json",
"miniprogramNpmDistDir": "./miniprogram_npm"
}
],
"compileHotReLoad": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"useCompilerPlugins": [
"sass"
],
"ignoreDevUnusedFiles": false,
"ignoreUploadUnusedFiles": true
},
"editorSetting": {
"tabIndent": "insertSpaces",
"tabSize": 2
}
}
\ No newline at end of file
{
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
"condition": {
"miniprogram": {
"list": [
{
"name": "申诉列表",
"pathName": "packageWorkspace/pages/appealFormManage/appealFormList/appealFormList",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "考勤列表",
"pathName": "packageWorkspace/pages/attendanceStatis/attendanceList/attendanceList",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "有效引荐数",
"pathName": "packageWorkspace/pages/validReferralCount/referralCountList/referralCountList",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "精品升级",
"pathName": "tabWorkOrder/pages/createOrder/createOrder",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "权战ai",
"pathName": "packageEquity/pages/createDeafeatOrderAi/createDeafeatOrderAi",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "权订单",
"pathName": "packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "质检",
"pathName": "packageEquity/pages/aiInspection/aiInspection",
"query": "badgeId=4827E2F0CD24",
"launchMode": "default",
"scene": null
},
{
"name": "驻店目标",
"pathName": "packageEquity/pages/residentTarget/residentTarget",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "线管理",
"pathName": "packageEquity/pages/clueList/clueList",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "场景",
"pathName": "pages/sceneIndex/sceneIndex",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "员工日报",
"pathName": "tabWorkOrder/pages/staffDaily/staffDaily",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "权益-个人中心",
"pathName": "packageEquity/pages/TabBar/equityPage",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "创建权益订单",
"pathName": "packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "权益列表",
"pathName": "packageEquity/pages/TabBar/equityPage",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "领券预约",
"pathName": "tabMine/pages/collectCoupons/collectCoupons",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "个人中心",
"pathName": "pages/tabMine/pages/index/index",
"query": "",
"launchMode": "default",
"scene": null
}
]
}
},
"libVersion": "3.12.0"
}
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!