From a67f3f9b4835865fb563e2c0a10932b9304d640d Mon Sep 17 00:00:00 2001
From: Runtus <893119806@qq.com>
Date: Fri, 15 Sep 2023 17:31:57 +0800
Subject: [PATCH 1/8] feat: base turn develop over.
---
mock/service.js | 16 ++--
package-lock.json | 3 -
pages/home/components/nav/index.js | 42 +++++++++-
pages/home/components/nav/index.wxml | 8 +-
pages/home/index.js | 3 +
pages/home/index.wxml | 1 +
pages/my/index.js | 3 +
pages/my/index.wxml | 6 +-
project.config.json | 112 +++++++++++++--------------
9 files changed, 119 insertions(+), 75 deletions(-)
diff --git a/mock/service.js b/mock/service.js
index 0fdbde9..8b69d5a 100644
--- a/mock/service.js
+++ b/mock/service.js
@@ -4,14 +4,14 @@ module.exports = {
message:'success',
data:{
service:[
- {image:'/../images/image.png',name:'微信',type:'weixin'},
- {image:'/../images/image(1).png',name:'QQ',type:'QQ'},
- {image:'/../images/image(2).png',name:'腾讯文档',type:'document'},
- {image:'/../images/image(3).png',name:'腾讯地图',type:'map'},
- {image:'/../images/image(4).png',name:'数据中心',type:'data'},
- {image:'/../images/image(4).png',name:'数据中心',type:'data'},
- {image:'/../images/image(4).png',name:'数据中心',type:'data'},
- {image:'/../images/image(4).png',name:'数据中心',type:'data'},
+ {image:'/../images/image.png',name:'微信',type:'weixin', url: ''},
+ {image:'/../images/image(1).png',name:'QQ',type:'QQ', url: ''},
+ {image:'/../images/image(2).png',name:'腾讯文档',type:'document', url: ''},
+ {image:'/../images/image(3).png',name:'腾讯地图',type:'map', url: ''},
+ {image:'/../images/image(4).png',name:'数据中心',type:'data', url: '/pages/dataCenter/index'},
+ {image:'/../images/image(4).png',name:'数据中心',type:'data', url: '/pages/dataCenter/index'},
+ {image:'/../images/image(4).png',name:'数据中心',type:'data', url: '/pages/dataCenter/index'},
+ {image:'/../images/image(4).png',name:'数据中心',type:'data', url: '/pages/dataCenter/index'},
],
}
}
diff --git a/package-lock.json b/package-lock.json
index 8e16b07..f6735c4 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -88,7 +88,6 @@
"version": "0.11.11",
"resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.11.tgz",
"integrity": "sha512-N2brEuAadi0CcdeMXUkhbZB84eskAc8MEX1By6qEchoVywSgXPIjou4rYsl0V3Hj0ZnuGycGCjdNgockbzeWNA==",
-
"dev": true,
"license": "Apache-2.0",
"dependencies": {
@@ -752,7 +751,6 @@
}
},
"node_modules/eslint": {
-
"version": "8.49.0",
"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.49.0.tgz",
"integrity": "sha512-jw03ENfm6VJI0jA9U+8H5zfl5b+FvuU3YYvZRdZHOlU2ggJkxrlkJH4HcDrZpj6YwD8kuYqvQM8LyesoazrSOQ==",
@@ -3183,7 +3181,6 @@
"version": "0.11.11",
"resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.11.tgz",
"integrity": "sha512-N2brEuAadi0CcdeMXUkhbZB84eskAc8MEX1By6qEchoVywSgXPIjou4rYsl0V3Hj0ZnuGycGCjdNgockbzeWNA==",
-
"dev": true,
"requires": {
"@humanwhocodes/object-schema": "^1.2.1",
diff --git a/pages/home/components/nav/index.js b/pages/home/components/nav/index.js
index 9d7c704..f18cef0 100644
--- a/pages/home/components/nav/index.js
+++ b/pages/home/components/nav/index.js
@@ -8,32 +8,52 @@ Component({
data: {
visible: false,
sidebar: [{
- title: '首页'
+ title: '首页',
+ url: "pages/home/index",
+ isSidebar: true
}, {
- title: '搜索页'
+ title: '搜索页',
+ url: "pages/search/index",
+ isSidebar: false
}, {
title: '发布页',
+ url: "pages/release/index",
+ isSidebar: false
},
{
title: '消息列表页',
+ url: "pages/message/index",
+ isSidebar: true
},
{
title: '对话页',
+ url: "pages/chat/index",
+ isSidebar: false
},
{
title: '个人中心页',
+ url: "pages/my/index",
+ isSidebar: true
},
{
title: '个人信息表单页',
+ url: "pages/my/info-edit/index",
+ isSidebar: false
},
{
title: '设置页',
+ url: "pages/setup/index",
+ isSidebar: false
},
{
title: '数据图表页',
+ url: "pages/dataCenter/index",
+ isSidebar: false
},
{
title: '登录注册页',
+ url: "pages/login/login",
+ isSidebar: false
},
]
},
@@ -42,6 +62,24 @@ Component({
this.setData({
visible: true
})
+ },
+ itemClick(e) {
+ const { isSidebar , url } = e.detail.item;
+ if(isSidebar){
+ wx.switchTab({
+ url: `/${url}`,
+ })
+ } else {
+ wx.navigateTo({
+ url: `/${url}`,
+ })
+ }
+ },
+
+ searchTurn() {
+ wx.navigateTo({
+ url: `/pages/search/index`,
+ })
}
}
})
\ No newline at end of file
diff --git a/pages/home/components/nav/index.wxml b/pages/home/components/nav/index.wxml
index 1688f54..328f14b 100644
--- a/pages/home/components/nav/index.wxml
+++ b/pages/home/components/nav/index.wxml
@@ -2,8 +2,12 @@
-
+
-
+
\ No newline at end of file
diff --git a/pages/home/index.js b/pages/home/index.js
index 1ecb0ad..f6f46af 100644
--- a/pages/home/index.js
+++ b/pages/home/index.js
@@ -26,6 +26,8 @@ Page({
cardInfo: cardRes.data,
swiperList: swiperRes.data
})
+
+
},
onLoad(option) {
if (wx.getUserProfile) {
@@ -70,4 +72,5 @@ Page({
url: '/pages/release/index',
});
},
+
})
\ No newline at end of file
diff --git a/pages/home/index.wxml b/pages/home/index.wxml
index 7568820..cd22291 100644
--- a/pages/home/index.wxml
+++ b/pages/home/index.wxml
@@ -1,4 +1,5 @@
+
diff --git a/pages/my/index.js b/pages/my/index.js
index 1a95049..67ce673 100644
--- a/pages/my/index.js
+++ b/pages/my/index.js
@@ -38,4 +38,7 @@ Page({
GotoEdit(){
wx.navigateTo({ url: '/pages/my/info-edit/index' });
},
+ onClick(e){
+ console.log(e)
+ }
})
diff --git a/pages/my/index.wxml b/pages/my/index.wxml
index 904a026..4b789ae 100644
--- a/pages/my/index.wxml
+++ b/pages/my/index.wxml
@@ -44,11 +44,13 @@
推荐服务
-
+
+ class="service-item"
+ url="{{item.url}}"
+ />
diff --git a/project.config.json b/project.config.json
index aa97e5c..eeb1da6 100644
--- a/project.config.json
+++ b/project.config.json
@@ -1,59 +1,55 @@
-{
- "description": "项目配置文件,详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
- "packOptions": {
- "ignore": [],
- "include": []
- },
- "setting": {
- "bundle": false,
- "userConfirmedBundleSwitch": false,
- "urlCheck": true,
- "scopeDataCheck": false,
- "coverView": true,
- "es6": true,
- "postcss": true,
- "compileHotReLoad": false,
- "lazyloadPlaceholderEnable": false,
- "preloadBackgroundData": false,
- "minified": true,
- "autoAudits": false,
- "newFeature": false,
- "uglifyFileName": false,
- "uploadWithSourceMap": true,
- "useIsolateContext": true,
- "nodeModules": false,
- "enhance": true,
- "useMultiFrameRuntime": true,
- "useApiHook": true,
- "useApiHostProcess": true,
- "showShadowRootInWxmlPanel": true,
- "packNpmManually": false,
- "enableEngineNative": false,
- "packNpmRelationList": [],
- "minifyWXSS": true,
- "showES6CompileOption": false,
- "minifyWXML": true,
- "useStaticServer": true,
- "checkInvalidKey": true,
- "babelSetting": {
- "ignore": [],
- "disablePlugins": [],
- "outputPath": ""
- },
- "disableUseStrict": false,
- "useCompilerPlugins": [
- "less"
- ],
- "condition": false,
- "ignoreUploadUnusedFiles": true
- },
- "compileType": "miniprogram",
- "libVersion": "2.19.4",
- "appid": "wxcdfa13a58381f0fc",
- "projectname": "miniprogram-starter",
- "condition": {},
- "editorSetting": {
- "tabIndent": "insertSpaces",
- "tabSize": 2
- }
+{
+ "description": "项目配置文件,详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
+ "setting": {
+ "bundle": false,
+ "userConfirmedBundleSwitch": false,
+ "urlCheck": true,
+ "scopeDataCheck": false,
+ "coverView": true,
+ "es6": true,
+ "postcss": true,
+ "compileHotReLoad": false,
+ "lazyloadPlaceholderEnable": false,
+ "preloadBackgroundData": false,
+ "minified": true,
+ "autoAudits": false,
+ "newFeature": false,
+ "uglifyFileName": false,
+ "uploadWithSourceMap": true,
+ "useIsolateContext": true,
+ "nodeModules": false,
+ "enhance": true,
+ "useMultiFrameRuntime": true,
+ "showShadowRootInWxmlPanel": true,
+ "packNpmManually": false,
+ "enableEngineNative": false,
+ "packNpmRelationList": [],
+ "minifyWXSS": true,
+ "showES6CompileOption": false,
+ "minifyWXML": true,
+ "useStaticServer": true,
+ "checkInvalidKey": true,
+ "babelSetting": {
+ "ignore": [],
+ "disablePlugins": [],
+ "outputPath": ""
+ },
+ "disableUseStrict": false,
+ "useCompilerPlugins": [
+ "less"
+ ],
+ "condition": false,
+ "ignoreUploadUnusedFiles": true
+ },
+ "compileType": "miniprogram",
+ "condition": {},
+ "editorSetting": {
+ "tabIndent": "insertSpaces",
+ "tabSize": 2
+ },
+ "packOptions": {
+ "ignore": [],
+ "include": []
+ },
+ "appid": "wxcdfa13a58381f0fc"
}
\ No newline at end of file
From b430a2697850a2a3aae74516f75765fbd4d1ddc3 Mon Sep 17 00:00:00 2001
From: Runtus <893119806@qq.com>
Date: Fri, 15 Sep 2023 20:49:47 +0800
Subject: [PATCH 2/8] feat: change nav to the common component
---
pages/{home => }/components/card/index.js | 0
pages/{home => }/components/card/index.json | 0
pages/{home => }/components/card/index.less | 0
pages/{home => }/components/card/index.wxml | 0
pages/{home => }/components/nav/index.js | 19 +++-
pages/{home => }/components/nav/index.json | 0
pages/{home => }/components/nav/index.less | 0
pages/components/nav/index.wxml | 16 +++
pages/home/components/nav/index.wxml | 13 ---
pages/home/index.js | 6 ++
pages/home/index.json | 4 +-
pages/home/index.less | 26 +++++
pages/home/index.wxml | 2 +-
pages/message/index.json | 3 +-
pages/message/index.wxml | 5 +-
pages/my/index.js | 2 +-
pages/my/index.json | 3 +-
pages/my/index.wxml | 6 +-
project.config.json | 108 ++++++++++----------
project.private.config.json | 16 +--
20 files changed, 141 insertions(+), 88 deletions(-)
rename pages/{home => }/components/card/index.js (100%)
rename pages/{home => }/components/card/index.json (100%)
rename pages/{home => }/components/card/index.less (100%)
rename pages/{home => }/components/card/index.wxml (100%)
rename pages/{home => }/components/nav/index.js (80%)
rename pages/{home => }/components/nav/index.json (100%)
rename pages/{home => }/components/nav/index.less (100%)
create mode 100644 pages/components/nav/index.wxml
delete mode 100644 pages/home/components/nav/index.wxml
diff --git a/pages/home/components/card/index.js b/pages/components/card/index.js
similarity index 100%
rename from pages/home/components/card/index.js
rename to pages/components/card/index.js
diff --git a/pages/home/components/card/index.json b/pages/components/card/index.json
similarity index 100%
rename from pages/home/components/card/index.json
rename to pages/components/card/index.json
diff --git a/pages/home/components/card/index.less b/pages/components/card/index.less
similarity index 100%
rename from pages/home/components/card/index.less
rename to pages/components/card/index.less
diff --git a/pages/home/components/card/index.wxml b/pages/components/card/index.wxml
similarity index 100%
rename from pages/home/components/card/index.wxml
rename to pages/components/card/index.wxml
diff --git a/pages/home/components/nav/index.js b/pages/components/nav/index.js
similarity index 80%
rename from pages/home/components/nav/index.js
rename to pages/components/nav/index.js
index f18cef0..124e63c 100644
--- a/pages/home/components/nav/index.js
+++ b/pages/components/nav/index.js
@@ -3,7 +3,14 @@ Component({
styleIsolation: 'shared'
},
properties: {
-
+ navType: {
+ type: "string",
+ value: ""
+ },
+ titleText: {
+ type: "string",
+ value: ""
+ }
},
data: {
visible: false,
@@ -64,14 +71,24 @@ Component({
})
},
itemClick(e) {
+ const that = this;
const { isSidebar , url } = e.detail.item;
if(isSidebar){
wx.switchTab({
url: `/${url}`,
+ }).then(() => {
+ // 防止点回tab时,sidebar依旧是展开模式
+ that.setData({
+ visible: false
+ })
})
} else {
wx.navigateTo({
url: `/${url}`,
+ }).then(() => {
+ that.setData({
+ visible: false
+ })
})
}
},
diff --git a/pages/home/components/nav/index.json b/pages/components/nav/index.json
similarity index 100%
rename from pages/home/components/nav/index.json
rename to pages/components/nav/index.json
diff --git a/pages/home/components/nav/index.less b/pages/components/nav/index.less
similarity index 100%
rename from pages/home/components/nav/index.less
rename to pages/components/nav/index.less
diff --git a/pages/components/nav/index.wxml b/pages/components/nav/index.wxml
new file mode 100644
index 0000000..b257ba0
--- /dev/null
+++ b/pages/components/nav/index.wxml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/home/components/nav/index.wxml b/pages/home/components/nav/index.wxml
deleted file mode 100644
index 328f14b..0000000
--- a/pages/home/components/nav/index.wxml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pages/home/index.js b/pages/home/index.js
index f6f46af..47f7aa6 100644
--- a/pages/home/index.js
+++ b/pages/home/index.js
@@ -72,5 +72,11 @@ Page({
url: '/pages/release/index',
});
},
+
+ openDrawer() {
+ this.setData({
+ visible: true
+ })
+ },
})
\ No newline at end of file
diff --git a/pages/home/index.json b/pages/home/index.json
index c7178b5..0017b31 100644
--- a/pages/home/index.json
+++ b/pages/home/index.json
@@ -8,7 +8,7 @@
"t-pull-down-refresh": "tdesign-miniprogram/pull-down-refresh/pull-down-refresh",
"t-message": "tdesign-miniprogram/message/message",
"t-button": "tdesign-miniprogram/button/button",
- "nav": "./components/nav",
- "card": "./components/card"
+ "nav": "../components/nav",
+ "card": "../components/card"
}
}
\ No newline at end of file
diff --git a/pages/home/index.less b/pages/home/index.less
index e54f754..3323991 100644
--- a/pages/home/index.less
+++ b/pages/home/index.less
@@ -8,6 +8,32 @@ page {
font-family: 'PingFang SC', 'Helvetica Neue', sans-serif;
}
+
+.t-navbar {
+ --td-navbar-padding-top: @navbar-padding-top;
+ --td-navbar-height: calc(@nav-bar-height - @navbar-padding-top) !important;
+
+ &__left {
+ margin: 0;
+ }
+ }
+
+ &__left {
+ display: flex;
+ align-items: center;
+ padding: 0 16rpx;
+
+ .t-search {
+ --td-search-height: 64rpx;
+ --td-search-font-size: @font-size-mini;
+ width: 375rpx;
+
+ .t-icon {
+ font-size: @font-size-default !important;
+ }
+ }
+ }
+
.home {
background-color: @bg-color;
diff --git a/pages/home/index.wxml b/pages/home/index.wxml
index cd22291..1e373a7 100644
--- a/pages/home/index.wxml
+++ b/pages/home/index.wxml
@@ -1,6 +1,6 @@
-
+
diff --git a/pages/message/index.json b/pages/message/index.json
index 8ff297a..4ac17f3 100644
--- a/pages/message/index.json
+++ b/pages/message/index.json
@@ -3,7 +3,8 @@
"t-navbar": "tdesign-miniprogram/navbar/navbar",
"t-icon": "tdesign-miniprogram/icon/icon",
"t-cell": "tdesign-miniprogram/cell/cell",
- "t-badge": "tdesign-miniprogram/badge/badge"
+ "t-badge": "tdesign-miniprogram/badge/badge",
+ "nav": "../components/nav"
},
"navigationStyle": "custom",
"disableScroll": true
diff --git a/pages/message/index.wxml b/pages/message/index.wxml
index 47dba9b..2700329 100644
--- a/pages/message/index.wxml
+++ b/pages/message/index.wxml
@@ -1,7 +1,8 @@
-
+
+
-
-
-
+
@@ -56,7 +54,7 @@
-
+
diff --git a/project.config.json b/project.config.json
index eeb1da6..e14b220 100644
--- a/project.config.json
+++ b/project.config.json
@@ -1,55 +1,55 @@
-{
- "description": "项目配置文件,详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
- "setting": {
- "bundle": false,
- "userConfirmedBundleSwitch": false,
- "urlCheck": true,
- "scopeDataCheck": false,
- "coverView": true,
- "es6": true,
- "postcss": true,
- "compileHotReLoad": false,
- "lazyloadPlaceholderEnable": false,
- "preloadBackgroundData": false,
- "minified": true,
- "autoAudits": false,
- "newFeature": false,
- "uglifyFileName": false,
- "uploadWithSourceMap": true,
- "useIsolateContext": true,
- "nodeModules": false,
- "enhance": true,
- "useMultiFrameRuntime": true,
- "showShadowRootInWxmlPanel": true,
- "packNpmManually": false,
- "enableEngineNative": false,
- "packNpmRelationList": [],
- "minifyWXSS": true,
- "showES6CompileOption": false,
- "minifyWXML": true,
- "useStaticServer": true,
- "checkInvalidKey": true,
- "babelSetting": {
- "ignore": [],
- "disablePlugins": [],
- "outputPath": ""
- },
- "disableUseStrict": false,
- "useCompilerPlugins": [
- "less"
- ],
- "condition": false,
- "ignoreUploadUnusedFiles": true
- },
- "compileType": "miniprogram",
- "condition": {},
- "editorSetting": {
- "tabIndent": "insertSpaces",
- "tabSize": 2
- },
- "packOptions": {
- "ignore": [],
- "include": []
- },
- "appid": "wxcdfa13a58381f0fc"
+{
+ "description": "项目配置文件,详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
+ "setting": {
+ "bundle": false,
+ "userConfirmedBundleSwitch": false,
+ "urlCheck": true,
+ "scopeDataCheck": false,
+ "coverView": true,
+ "es6": true,
+ "postcss": true,
+ "compileHotReLoad": false,
+ "lazyloadPlaceholderEnable": false,
+ "preloadBackgroundData": false,
+ "minified": true,
+ "autoAudits": false,
+ "newFeature": false,
+ "uglifyFileName": false,
+ "uploadWithSourceMap": true,
+ "useIsolateContext": true,
+ "nodeModules": false,
+ "enhance": true,
+ "useMultiFrameRuntime": true,
+ "showShadowRootInWxmlPanel": true,
+ "packNpmManually": false,
+ "enableEngineNative": false,
+ "packNpmRelationList": [],
+ "minifyWXSS": true,
+ "showES6CompileOption": false,
+ "minifyWXML": true,
+ "useStaticServer": true,
+ "checkInvalidKey": true,
+ "babelSetting": {
+ "ignore": [],
+ "disablePlugins": [],
+ "outputPath": ""
+ },
+ "disableUseStrict": false,
+ "useCompilerPlugins": [
+ "less"
+ ],
+ "condition": false,
+ "ignoreUploadUnusedFiles": true
+ },
+ "compileType": "miniprogram",
+ "condition": {},
+ "editorSetting": {
+ "tabIndent": "insertSpaces",
+ "tabSize": 2
+ },
+ "packOptions": {
+ "ignore": [],
+ "include": []
+ },
+ "appid": "wxcdfa13a58381f0fc"
}
\ No newline at end of file
diff --git a/project.private.config.json b/project.private.config.json
index 1bf9e31..6371889 100644
--- a/project.private.config.json
+++ b/project.private.config.json
@@ -1,9 +1,9 @@
-{
- "projectname": "tdesign-miniprogram-starter",
- "setting": {
- "compileHotReLoad": true,
- "urlCheck": false
- },
- "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
- "libVersion": "2.32.3"
+{
+ "projectname": "tds-new",
+ "setting": {
+ "compileHotReLoad": true,
+ "urlCheck": false
+ },
+ "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
+ "libVersion": "2.32.3"
}
\ No newline at end of file
From 459f5844cb6ea350ed06e00baef8fe9bb2c93a2d Mon Sep 17 00:00:00 2001
From: Runtus <893119806@qq.com>
Date: Fri, 15 Sep 2023 20:53:48 +0800
Subject: [PATCH 3/8] =?UTF-8?q?fix:=20=E5=A4=8D=E5=8E=9Fconfig?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
project.config.json | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/project.config.json b/project.config.json
index e14b220..aa97e5c 100644
--- a/project.config.json
+++ b/project.config.json
@@ -1,5 +1,9 @@
{
"description": "项目配置文件,详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
+ "packOptions": {
+ "ignore": [],
+ "include": []
+ },
"setting": {
"bundle": false,
"userConfirmedBundleSwitch": false,
@@ -20,6 +24,8 @@
"nodeModules": false,
"enhance": true,
"useMultiFrameRuntime": true,
+ "useApiHook": true,
+ "useApiHostProcess": true,
"showShadowRootInWxmlPanel": true,
"packNpmManually": false,
"enableEngineNative": false,
@@ -42,14 +48,12 @@
"ignoreUploadUnusedFiles": true
},
"compileType": "miniprogram",
+ "libVersion": "2.19.4",
+ "appid": "wxcdfa13a58381f0fc",
+ "projectname": "miniprogram-starter",
"condition": {},
"editorSetting": {
"tabIndent": "insertSpaces",
"tabSize": 2
- },
- "packOptions": {
- "ignore": [],
- "include": []
- },
- "appid": "wxcdfa13a58381f0fc"
+ }
}
\ No newline at end of file
From 977243257dbfe724b7049bc334c70e7d2e981511 Mon Sep 17 00:00:00 2001
From: Runtus <893119806@qq.com>
Date: Fri, 15 Sep 2023 20:56:23 +0800
Subject: [PATCH 4/8] fix: cancel the console.log
---
pages/my/index.js | 3 ---
1 file changed, 3 deletions(-)
diff --git a/pages/my/index.js b/pages/my/index.js
index 7ba5e43..a9f03c7 100644
--- a/pages/my/index.js
+++ b/pages/my/index.js
@@ -38,7 +38,4 @@ Page({
GotoEdit(){
wx.navigateTo({ url: `/pages/my/info-edit/index` });
},
- onClick(e){
- console.log(e)
- }
})
From 759e7dec2b0cd32bb6163182cbd71ee28d37661b Mon Sep 17 00:00:00 2001
From: Runtus <893119806@qq.com>
Date: Fri, 15 Sep 2023 21:04:04 +0800
Subject: [PATCH 5/8] fix: project name
---
project.private.config.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/project.private.config.json b/project.private.config.json
index 6371889..cc0d4a8 100644
--- a/project.private.config.json
+++ b/project.private.config.json
@@ -1,5 +1,5 @@
{
- "projectname": "tds-new",
+ "projectname": "tdesign-miniprogram-starter",
"setting": {
"compileHotReLoad": true,
"urlCheck": false
From 696935112d006d617d01eee922ef2b3bf97bc95b Mon Sep 17 00:00:00 2001
From: Runtus <893119806@qq.com>
Date: Fri, 15 Sep 2023 21:08:25 +0800
Subject: [PATCH 6/8] fix: delete some unnecessary code
---
pages/home/index.js | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/pages/home/index.js b/pages/home/index.js
index 47f7aa6..fb0e467 100644
--- a/pages/home/index.js
+++ b/pages/home/index.js
@@ -71,12 +71,6 @@ Page({
wx.navigateTo({
url: '/pages/release/index',
});
- },
-
- openDrawer() {
- this.setData({
- visible: true
- })
- },
+ }
})
\ No newline at end of file
From d801c682ce54362465841639fe394bcdaec69426 Mon Sep 17 00:00:00 2001
From: Runtus <893119806@qq.com>
Date: Tue, 19 Sep 2023 12:12:42 +0800
Subject: [PATCH 7/8] fix: move the components-dir to project-root
---
.../components => components}/card/index.js | 0
.../components => components}/card/index.json | 0
.../components => components}/card/index.less | 0
.../components => components}/card/index.wxml | 0
{pages/components => components}/nav/index.js | 0
.../components => components}/nav/index.json | 0
.../components => components}/nav/index.less | 0
.../components => components}/nav/index.wxml | 0
pages/home/index.json | 4 +-
pages/message/index.json | 2 +-
pages/my/index.json | 2 +-
project.config.json | 116 +++++++++---------
project.private.config.json | 16 +--
13 files changed, 70 insertions(+), 70 deletions(-)
rename {pages/components => components}/card/index.js (100%)
rename {pages/components => components}/card/index.json (100%)
rename {pages/components => components}/card/index.less (100%)
rename {pages/components => components}/card/index.wxml (100%)
rename {pages/components => components}/nav/index.js (100%)
rename {pages/components => components}/nav/index.json (100%)
rename {pages/components => components}/nav/index.less (100%)
rename {pages/components => components}/nav/index.wxml (100%)
diff --git a/pages/components/card/index.js b/components/card/index.js
similarity index 100%
rename from pages/components/card/index.js
rename to components/card/index.js
diff --git a/pages/components/card/index.json b/components/card/index.json
similarity index 100%
rename from pages/components/card/index.json
rename to components/card/index.json
diff --git a/pages/components/card/index.less b/components/card/index.less
similarity index 100%
rename from pages/components/card/index.less
rename to components/card/index.less
diff --git a/pages/components/card/index.wxml b/components/card/index.wxml
similarity index 100%
rename from pages/components/card/index.wxml
rename to components/card/index.wxml
diff --git a/pages/components/nav/index.js b/components/nav/index.js
similarity index 100%
rename from pages/components/nav/index.js
rename to components/nav/index.js
diff --git a/pages/components/nav/index.json b/components/nav/index.json
similarity index 100%
rename from pages/components/nav/index.json
rename to components/nav/index.json
diff --git a/pages/components/nav/index.less b/components/nav/index.less
similarity index 100%
rename from pages/components/nav/index.less
rename to components/nav/index.less
diff --git a/pages/components/nav/index.wxml b/components/nav/index.wxml
similarity index 100%
rename from pages/components/nav/index.wxml
rename to components/nav/index.wxml
diff --git a/pages/home/index.json b/pages/home/index.json
index 0017b31..f3b5b76 100644
--- a/pages/home/index.json
+++ b/pages/home/index.json
@@ -8,7 +8,7 @@
"t-pull-down-refresh": "tdesign-miniprogram/pull-down-refresh/pull-down-refresh",
"t-message": "tdesign-miniprogram/message/message",
"t-button": "tdesign-miniprogram/button/button",
- "nav": "../components/nav",
- "card": "../components/card"
+ "nav": "/components/nav",
+ "card": "/components/card"
}
}
\ No newline at end of file
diff --git a/pages/message/index.json b/pages/message/index.json
index 4ac17f3..bc81aa6 100644
--- a/pages/message/index.json
+++ b/pages/message/index.json
@@ -4,7 +4,7 @@
"t-icon": "tdesign-miniprogram/icon/icon",
"t-cell": "tdesign-miniprogram/cell/cell",
"t-badge": "tdesign-miniprogram/badge/badge",
- "nav": "../components/nav"
+ "nav": "/components/nav"
},
"navigationStyle": "custom",
"disableScroll": true
diff --git a/pages/my/index.json b/pages/my/index.json
index fa1dd19..0ea6597 100644
--- a/pages/my/index.json
+++ b/pages/my/index.json
@@ -9,7 +9,7 @@
"t-navbar": "tdesign-miniprogram/navbar/navbar",
"t-grid": "tdesign-miniprogram/grid/grid",
"t-grid-item": "tdesign-miniprogram/grid-item/grid-item",
- "nav": "../components/nav"
+ "nav": "/components/nav"
},
"navigationStyle": "custom"
}
\ No newline at end of file
diff --git a/project.config.json b/project.config.json
index aa97e5c..3e8157a 100644
--- a/project.config.json
+++ b/project.config.json
@@ -1,59 +1,59 @@
-{
- "description": "项目配置文件,详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
- "packOptions": {
- "ignore": [],
- "include": []
- },
- "setting": {
- "bundle": false,
- "userConfirmedBundleSwitch": false,
- "urlCheck": true,
- "scopeDataCheck": false,
- "coverView": true,
- "es6": true,
- "postcss": true,
- "compileHotReLoad": false,
- "lazyloadPlaceholderEnable": false,
- "preloadBackgroundData": false,
- "minified": true,
- "autoAudits": false,
- "newFeature": false,
- "uglifyFileName": false,
- "uploadWithSourceMap": true,
- "useIsolateContext": true,
- "nodeModules": false,
- "enhance": true,
- "useMultiFrameRuntime": true,
- "useApiHook": true,
- "useApiHostProcess": true,
- "showShadowRootInWxmlPanel": true,
- "packNpmManually": false,
- "enableEngineNative": false,
- "packNpmRelationList": [],
- "minifyWXSS": true,
- "showES6CompileOption": false,
- "minifyWXML": true,
- "useStaticServer": true,
- "checkInvalidKey": true,
- "babelSetting": {
- "ignore": [],
- "disablePlugins": [],
- "outputPath": ""
- },
- "disableUseStrict": false,
- "useCompilerPlugins": [
- "less"
- ],
- "condition": false,
- "ignoreUploadUnusedFiles": true
- },
- "compileType": "miniprogram",
- "libVersion": "2.19.4",
- "appid": "wxcdfa13a58381f0fc",
- "projectname": "miniprogram-starter",
- "condition": {},
- "editorSetting": {
- "tabIndent": "insertSpaces",
- "tabSize": 2
- }
+{
+ "description": "项目配置文件,详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
+ "packOptions": {
+ "ignore": [],
+ "include": []
+ },
+ "setting": {
+ "bundle": false,
+ "userConfirmedBundleSwitch": false,
+ "urlCheck": true,
+ "scopeDataCheck": false,
+ "coverView": true,
+ "es6": true,
+ "postcss": true,
+ "compileHotReLoad": false,
+ "lazyloadPlaceholderEnable": false,
+ "preloadBackgroundData": false,
+ "minified": true,
+ "autoAudits": false,
+ "newFeature": false,
+ "uglifyFileName": false,
+ "uploadWithSourceMap": true,
+ "useIsolateContext": true,
+ "nodeModules": false,
+ "enhance": true,
+ "useMultiFrameRuntime": true,
+ "useApiHook": true,
+ "useApiHostProcess": true,
+ "showShadowRootInWxmlPanel": true,
+ "packNpmManually": false,
+ "enableEngineNative": false,
+ "packNpmRelationList": [],
+ "minifyWXSS": true,
+ "showES6CompileOption": false,
+ "minifyWXML": true,
+ "useStaticServer": true,
+ "checkInvalidKey": true,
+ "babelSetting": {
+ "ignore": [],
+ "disablePlugins": [],
+ "outputPath": ""
+ },
+ "disableUseStrict": false,
+ "useCompilerPlugins": [
+ "less"
+ ],
+ "condition": false,
+ "ignoreUploadUnusedFiles": true
+ },
+ "compileType": "miniprogram",
+ "libVersion": "2.19.4",
+ "appid": "wxcdfa13a58381f0fc",
+ "projectname": "miniprogram-starter",
+ "condition": {},
+ "editorSetting": {
+ "tabIndent": "insertSpaces",
+ "tabSize": 2
+ }
}
\ No newline at end of file
diff --git a/project.private.config.json b/project.private.config.json
index cc0d4a8..1bf9e31 100644
--- a/project.private.config.json
+++ b/project.private.config.json
@@ -1,9 +1,9 @@
-{
- "projectname": "tdesign-miniprogram-starter",
- "setting": {
- "compileHotReLoad": true,
- "urlCheck": false
- },
- "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
- "libVersion": "2.32.3"
+{
+ "projectname": "tdesign-miniprogram-starter",
+ "setting": {
+ "compileHotReLoad": true,
+ "urlCheck": false
+ },
+ "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
+ "libVersion": "2.32.3"
}
\ No newline at end of file
From c6ff4928430bdd3c770a77e50e3ca76c0d55460d Mon Sep 17 00:00:00 2001
From: Runtus <893119806@qq.com>
Date: Tue, 19 Sep 2023 17:13:39 +0800
Subject: [PATCH 8/8] fix: remove the anno
---
pages/home/index.wxml | 1 -
project.config.json | 116 ++++++++++++++++++------------------
project.private.config.json | 16 ++---
3 files changed, 66 insertions(+), 67 deletions(-)
diff --git a/pages/home/index.wxml b/pages/home/index.wxml
index 1e373a7..fefb07c 100644
--- a/pages/home/index.wxml
+++ b/pages/home/index.wxml
@@ -1,5 +1,4 @@
-
diff --git a/project.config.json b/project.config.json
index 3e8157a..aa97e5c 100644
--- a/project.config.json
+++ b/project.config.json
@@ -1,59 +1,59 @@
-{
- "description": "项目配置文件,详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
- "packOptions": {
- "ignore": [],
- "include": []
- },
- "setting": {
- "bundle": false,
- "userConfirmedBundleSwitch": false,
- "urlCheck": true,
- "scopeDataCheck": false,
- "coverView": true,
- "es6": true,
- "postcss": true,
- "compileHotReLoad": false,
- "lazyloadPlaceholderEnable": false,
- "preloadBackgroundData": false,
- "minified": true,
- "autoAudits": false,
- "newFeature": false,
- "uglifyFileName": false,
- "uploadWithSourceMap": true,
- "useIsolateContext": true,
- "nodeModules": false,
- "enhance": true,
- "useMultiFrameRuntime": true,
- "useApiHook": true,
- "useApiHostProcess": true,
- "showShadowRootInWxmlPanel": true,
- "packNpmManually": false,
- "enableEngineNative": false,
- "packNpmRelationList": [],
- "minifyWXSS": true,
- "showES6CompileOption": false,
- "minifyWXML": true,
- "useStaticServer": true,
- "checkInvalidKey": true,
- "babelSetting": {
- "ignore": [],
- "disablePlugins": [],
- "outputPath": ""
- },
- "disableUseStrict": false,
- "useCompilerPlugins": [
- "less"
- ],
- "condition": false,
- "ignoreUploadUnusedFiles": true
- },
- "compileType": "miniprogram",
- "libVersion": "2.19.4",
- "appid": "wxcdfa13a58381f0fc",
- "projectname": "miniprogram-starter",
- "condition": {},
- "editorSetting": {
- "tabIndent": "insertSpaces",
- "tabSize": 2
- }
+{
+ "description": "项目配置文件,详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
+ "packOptions": {
+ "ignore": [],
+ "include": []
+ },
+ "setting": {
+ "bundle": false,
+ "userConfirmedBundleSwitch": false,
+ "urlCheck": true,
+ "scopeDataCheck": false,
+ "coverView": true,
+ "es6": true,
+ "postcss": true,
+ "compileHotReLoad": false,
+ "lazyloadPlaceholderEnable": false,
+ "preloadBackgroundData": false,
+ "minified": true,
+ "autoAudits": false,
+ "newFeature": false,
+ "uglifyFileName": false,
+ "uploadWithSourceMap": true,
+ "useIsolateContext": true,
+ "nodeModules": false,
+ "enhance": true,
+ "useMultiFrameRuntime": true,
+ "useApiHook": true,
+ "useApiHostProcess": true,
+ "showShadowRootInWxmlPanel": true,
+ "packNpmManually": false,
+ "enableEngineNative": false,
+ "packNpmRelationList": [],
+ "minifyWXSS": true,
+ "showES6CompileOption": false,
+ "minifyWXML": true,
+ "useStaticServer": true,
+ "checkInvalidKey": true,
+ "babelSetting": {
+ "ignore": [],
+ "disablePlugins": [],
+ "outputPath": ""
+ },
+ "disableUseStrict": false,
+ "useCompilerPlugins": [
+ "less"
+ ],
+ "condition": false,
+ "ignoreUploadUnusedFiles": true
+ },
+ "compileType": "miniprogram",
+ "libVersion": "2.19.4",
+ "appid": "wxcdfa13a58381f0fc",
+ "projectname": "miniprogram-starter",
+ "condition": {},
+ "editorSetting": {
+ "tabIndent": "insertSpaces",
+ "tabSize": 2
+ }
}
\ No newline at end of file
diff --git a/project.private.config.json b/project.private.config.json
index 1bf9e31..cc0d4a8 100644
--- a/project.private.config.json
+++ b/project.private.config.json
@@ -1,9 +1,9 @@
-{
- "projectname": "tdesign-miniprogram-starter",
- "setting": {
- "compileHotReLoad": true,
- "urlCheck": false
- },
- "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
- "libVersion": "2.32.3"
+{
+ "projectname": "tdesign-miniprogram-starter",
+ "setting": {
+ "compileHotReLoad": true,
+ "urlCheck": false
+ },
+ "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
+ "libVersion": "2.32.3"
}
\ No newline at end of file