diff --git a/app.json b/app.json
index 2a98f69..3743068 100644
--- a/app.json
+++ b/app.json
@@ -1,22 +1,24 @@
{
- "pages": [
- "pages/index/index"
- ],
- "window": {
- "navigationBarTextStyle": "black",
- "navigationStyle": "custom"
- },
- "style": "v2",
- "renderer": "skyline",
- "rendererOptions": {
- "skyline": {
- "defaultDisplayBlock": true,
- "disableABTest": true,
- "sdkVersionBegin": "3.0.0",
- "sdkVersionEnd": "15.255.255"
- }
- },
- "componentFramework": "glass-easel",
- "sitemapLocation": "sitemap.json",
- "lazyCodeLoading": "requiredComponents"
+ "pages": [
+ "pages/index/index",
+ "pages/list/list",
+ "pages/222"
+ ],
+ "window": {
+ "navigationBarTextStyle": "black",
+ "navigationStyle": "custom"
+ },
+ "style": "v2",
+ "renderer": "skyline",
+ "rendererOptions": {
+ "skyline": {
+ "defaultDisplayBlock": true,
+ "disableABTest": true,
+ "sdkVersionBegin": "3.0.0",
+ "sdkVersionEnd": "15.255.255"
+ }
+ },
+ "componentFramework": "glass-easel",
+ "sitemapLocation": "sitemap.json",
+ "lazyCodeLoading": "requiredComponents"
}
\ No newline at end of file
diff --git a/components/list-nav-bar/list-nav-bar.js b/components/list-nav-bar/list-nav-bar.js
new file mode 100644
index 0000000..a12d8ec
--- /dev/null
+++ b/components/list-nav-bar/list-nav-bar.js
@@ -0,0 +1,52 @@
+const app = getApp()
+Component({
+
+ /**
+ * 组件的属性列表
+ */
+ properties: {
+ showNavBtn: {
+ type: Boolean,
+ value: true
+ },
+ title: {
+ type: String,
+ value: '标题'
+ },
+ color: {
+ type: String,
+ value: '#fff'
+ },
+ },
+
+ /**
+ * 组件的初始数据
+ */
+ data: {
+ navBarHeight: app.globalData.navBarHeight,
+ menuRight: app.globalData.menuRight,
+ menuTop: app.globalData.menuTop,
+ menuHeight: app.globalData.menuHeight,
+ },
+
+ /**
+ * 组件的方法列表
+ */
+ methods: {
+ // 回退
+ navBack() {
+ wx.navigateBack()
+ this.triggerEvent('onBack')
+ },
+ // 回主页
+ // navHome() {
+ // wx.switchTab({
+ // url: '/src/pages/home/home'
+ // })
+ // this.triggerEvent('onHome')
+ // },
+ // navIcon() {
+ // this.triggerEvent('onIcon')
+ // }
+ },
+})
\ No newline at end of file
diff --git a/components/list-nav-bar/list-nav-bar.json b/components/list-nav-bar/list-nav-bar.json
new file mode 100644
index 0000000..df865e8
--- /dev/null
+++ b/components/list-nav-bar/list-nav-bar.json
@@ -0,0 +1,5 @@
+{
+ "component": true,
+ "styleIsolation": "apply-shared",
+ "usingComponents": {}
+ }
\ No newline at end of file
diff --git a/components/list-nav-bar/list-nav-bar.wxml b/components/list-nav-bar/list-nav-bar.wxml
new file mode 100644
index 0000000..1455020
--- /dev/null
+++ b/components/list-nav-bar/list-nav-bar.wxml
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{title}}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/components/list-nav-bar/list-nav-bar.wxss b/components/list-nav-bar/list-nav-bar.wxss
new file mode 100644
index 0000000..c6abdd6
--- /dev/null
+++ b/components/list-nav-bar/list-nav-bar.wxss
@@ -0,0 +1,65 @@
+.navbar {
+ position: fixed;
+ width: 100%;
+ top: 0;
+ color: #fff;
+ background: #3c8bf6;
+ display: flex;
+ flex-flow:column;
+ justify-content: flex-end;
+ }
+
+ .navbar-container {
+
+ height: 100rpx;
+ position: relative;
+ /* display: flex;
+ flex-flow:row;
+ align-items: center;
+ justify-content: center; */
+ /* position: relative; */
+ /* width: 100vw;
+ height: 64rpx;
+ z-index: 100;
+ display: flex;
+ box-sizing: border-box; */
+ }
+
+ .navbar-btn {
+ display: flex;
+ flex-flow:row;
+ align-items: center;
+ justify-content: center;
+ margin-left: 20px;
+ width: 60rpx;
+ height: 100rpx;
+ /* position: absolute; */
+ /* left: 24rpx;
+ width: 64rpx;
+ height: 64rpx; */
+ /*
+
+
+ z-index: 100;
+ display: flex;
+ align-items: center; */
+ }
+
+ .navbar-icon {
+ width: 36rpx;
+ height: 36rpx;
+ }
+
+ .navbar_title {
+ position: absolute;
+ width: 100%;
+ height: 100rpx;
+ line-height: 100rpx;
+ font-weight: 700;
+ text-align: center;
+ box-sizing: border-box;
+ text-overflow: ellipsis;
+ overflow: hidden;
+ white-space: nowrap;
+ }
+
\ No newline at end of file
diff --git a/images/back.png b/images/back.png
new file mode 100644
index 0000000..55ac570
Binary files /dev/null and b/images/back.png differ
diff --git a/images/back.svg b/images/back.svg
new file mode 100644
index 0000000..c1570e6
--- /dev/null
+++ b/images/back.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/images/home.svg b/images/home.svg
new file mode 100644
index 0000000..a58b76d
--- /dev/null
+++ b/images/home.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/images/logo.png b/images/logo.png
new file mode 100644
index 0000000..b59a979
Binary files /dev/null and b/images/logo.png differ
diff --git a/images/tbg.png b/images/tbg.png
new file mode 100755
index 0000000..cd8e0e4
Binary files /dev/null and b/images/tbg.png differ
diff --git a/pages/222.js b/pages/222.js
new file mode 100644
index 0000000..5ff1443
--- /dev/null
+++ b/pages/222.js
@@ -0,0 +1,66 @@
+// pages/222.js
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/222.json b/pages/222.json
new file mode 100644
index 0000000..3928faa
--- /dev/null
+++ b/pages/222.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/pages/222.wxml b/pages/222.wxml
new file mode 100644
index 0000000..e1cb8b7
--- /dev/null
+++ b/pages/222.wxml
@@ -0,0 +1,2 @@
+
+pages/222.wxml
\ No newline at end of file
diff --git a/pages/222.wxss b/pages/222.wxss
new file mode 100644
index 0000000..611115a
--- /dev/null
+++ b/pages/222.wxss
@@ -0,0 +1 @@
+/* pages/222.wxss */
\ No newline at end of file
diff --git a/pages/index/index.js b/pages/index/index.js
index a67107d..a87e106 100644
--- a/pages/index/index.js
+++ b/pages/index/index.js
@@ -3,15 +3,45 @@ Page({
data: {
codes: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16],
- faq: [
- { title: '超出焊接时间', date: '08.04 00:48' },
- { title: '时间超长', date: '08.04 00:48' },
- { title: '常见问题常见问题', date: '08.04 00:48' }
+ faq: [{
+ title: '超出焊接时间',
+ date: '08.04 00:48'
+ },
+ {
+ title: '时间超长',
+ date: '08.04 00:48'
+ },
+ {
+ title: '常见问题常见问题',
+ date: '08.04 00:48'
+ }
],
- knowledge: [
- { title: '超出焊接时间', date: '08.04 00:48' },
- { title: '时间超长', date: '08.04 00:48' },
- { title: '常见问题常见问题', date: '08.04 00:48' }
+ knowledge: [{
+ title: '超出焊接时间',
+ date: '08.04 00:48'
+ },
+ {
+ title: '时间超长',
+ date: '08.04 00:48'
+ },
+ {
+ title: '常见问题常见问题',
+ date: '08.04 00:48'
+ }
]
- },
-})
+ },
+
+ jumpPage(e) {
+
+ let jumpType = e.currentTarget.dataset.jumptype;
+ console.log(jumpType == 1);
+ if(jumpType == 1){
+ wx.navigateTo({
+ url: "/pages/list/list?id=1"
+ })
+ }
+ // wx.navigateTo({
+ // url: this.data.category[index].url
+ // })
+ },
+})
\ No newline at end of file
diff --git a/pages/index/index.wxml b/pages/index/index.wxml
index 1bad91f..55452c4 100644
--- a/pages/index/index.wxml
+++ b/pages/index/index.wxml
@@ -17,7 +17,7 @@
故障码快速查询
- {{item}}
+ {{item}}