From faa008ae282d7d653902e273e6015c4fb6c7b354 Mon Sep 17 00:00:00 2001
From: iuu <2167162990@qq.com>
Date: Tue, 20 Aug 2024 23:59:50 +0800
Subject: [PATCH] list
---
app.json | 42 +++---
components/list-nav-bar/list-nav-bar.js | 52 ++++++++
components/list-nav-bar/list-nav-bar.json | 5 +
components/list-nav-bar/list-nav-bar.wxml | 28 ++++
components/list-nav-bar/list-nav-bar.wxss | 65 ++++++++++
images/back.png | Bin 0 -> 2212 bytes
images/back.svg | 1 +
images/home.svg | 1 +
images/logo.png | Bin 0 -> 738 bytes
images/tbg.png | Bin 0 -> 1336 bytes
pages/222.js | 66 ++++++++++
pages/222.json | 3 +
pages/222.wxml | 2 +
pages/222.wxss | 1 +
pages/index/index.js | 50 ++++++--
pages/index/index.wxml | 44 +++----
pages/index/index.wxss | 29 ++++-
pages/list/list.js | 66 ++++++++++
pages/list/list.json | 7 +
pages/list/list.wxml | 150 ++++++++++++++++++++++
pages/list/list.wxss | 51 ++++++++
21 files changed, 606 insertions(+), 57 deletions(-)
create mode 100644 components/list-nav-bar/list-nav-bar.js
create mode 100644 components/list-nav-bar/list-nav-bar.json
create mode 100644 components/list-nav-bar/list-nav-bar.wxml
create mode 100644 components/list-nav-bar/list-nav-bar.wxss
create mode 100644 images/back.png
create mode 100644 images/back.svg
create mode 100644 images/home.svg
create mode 100644 images/logo.png
create mode 100755 images/tbg.png
create mode 100644 pages/222.js
create mode 100644 pages/222.json
create mode 100644 pages/222.wxml
create mode 100644 pages/222.wxss
create mode 100644 pages/list/list.js
create mode 100644 pages/list/list.json
create mode 100644 pages/list/list.wxml
create mode 100644 pages/list/list.wxss
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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CK#?XO?hE&CIZTk=$<)?^oA6c|NTF|@VoF%oG)heSk*kS7iK!g5pqZ#N?;t8z_r
zKCGj-k`S_6XUot^6-2BK@=RHPI#77hd6nWEfW^hADp^mqw=*iwpT{(mMAdm%(~ltu
z(5Zuby;vC1|BK~JfiD@fyZa(nEo>)Z|EDR}{^f`z#Q(e(a*1b<7Q(W62)9^GlO7ia
zZK9!cHjZRF+u0ulodrTxOu1dLFC&Kr@(iDx^tZ`1Peb-l*^!G;j+~drdtR=AN9k75
zG6TQL6gettL~O2
zd4zKzY2WqPw|-ctm$itDnfk5yP1~KkZ}~1l*1#(URO0-8U4*Xi2)nYH_pn5nbrM;t
z2z-{{{^Z+Ml+~R7^o8lNAZcqD3o5DW*|jq_OND4;9MfU$q2<}B!PZ5h&m(hv;ZTX^
zSo<9|A^JKqOtVyORZSr_X9-3az@ad({fjNM9qb04(e6*{ENj#Ysa-
z@2=M$FAjJ9(VPR5D~8^
\ 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 0000000000000000000000000000000000000000..b59a979c82e43f660d08364c454e80a40e81530c
GIT binary patch
literal 738
zcmeAS@N?(olHy`uVBq!ia0vp^xDrJjpQ&Nq(Cb_J>(GWQ>^W$3e>Fd7*#)QpUwst|LcFZh2
z*Lyy;ubpdltucWqTsmi7Rp&czN&cQy^HieV8xYxzx&VceI{c1`TxEX
zG9r`1bN4IFnsw7_`IBSMU#yhB(&Kws_>*7%%xP0+>wE}JW$=40SN`itE9YUEmLgEn
N^mO%eS?83{1OQ9NCuINt
literal 0
HcmV?d00001
diff --git a/images/tbg.png b/images/tbg.png
new file mode 100755
index 0000000000000000000000000000000000000000..cd8e0e4e02ddb0179bc7c9f32520f5ddc5b2a466
GIT binary patch
literal 1336
zcmV-81;_e{P)001`#1^@s6)R7F@00009a7bBm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..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}}