diff --git a/weapp/package.json b/weapp/package.json
index 140a828..fddc20b 100644
--- a/weapp/package.json
+++ b/weapp/package.json
@@ -4,9 +4,9 @@
"description": "",
"main": ".eslintrc.js",
"dependencies": {
+ "@vant/weapp": "^1.10.14",
"tdesign-miniprogram": "^1.0.0-rc.2"
},
- "devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
diff --git a/weapp/package/troubleshooting/index.js b/weapp/package/troubleshooting/index.js
index b51d75d..1219045 100644
--- a/weapp/package/troubleshooting/index.js
+++ b/weapp/package/troubleshooting/index.js
@@ -1,66 +1,117 @@
// package/bindTroubleshooting/index.js
Page({
- /**
- * 页面的初始数据
- */
- data: {
-
- },
-
- /**
- * 生命周期函数--监听页面加载
- */
- onLoad(options) {
-
- },
-
- /**
- * 生命周期函数--监听页面初次渲染完成
- */
- onReady() {
-
- },
-
- /**
- * 生命周期函数--监听页面显示
- */
- onShow() {
-
- },
-
- /**
- * 生命周期函数--监听页面隐藏
- */
- onHide() {
-
- },
-
- /**
- * 生命周期函数--监听页面卸载
- */
- onUnload() {
-
- },
-
- /**
- * 页面相关事件处理函数--监听用户下拉动作
- */
- onPullDownRefresh() {
-
- },
-
- /**
- * 页面上拉触底事件的处理函数
- */
- onReachBottom() {
-
- },
-
- /**
- * 用户点击右上角分享
- */
- onShareAppMessage() {
-
- }
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ // hidden: true,
+ currentTab: '0',
+ // 筛选选择
+ structList: ['a', 'b', 'c'],
+ structResult: ['a', 'b'],
+ pointList: ['a', 'b', 'c'],
+ pointResult: ['a', 'b'],
+
+ },
+
+ // 顶部tab切换
+ clickTab (e) {
+ this.setData({
+ currentTab: e.currentTarget.dataset.current
+ })
+ if (e.currentTarget.dataset.current == '0') {
+ this.setData({
+ page: 0,
+ dataList: []
+ }, () => {
+ // this.getPatrolPlan();
+ })
+ } else if (e.currentTarget.dataset.current == '1') {
+ // this.getPatrolRecord();
+ }
+ },
+
+ // 筛选选择
+ onStructChange (event) {
+ this.setData({
+ structResult: event.detail,
+ });
+ },
+
+ structToggle (event) {
+ const { index } = event.currentTarget.dataset;
+ const checkbox = this.selectComponent(`.checkboxes-struct-${index}`);
+ checkbox.toggle();
+ },
+
+ onPointChange (event) {
+ this.setData({
+ pointResult: event.detail,
+ });
+ },
+
+ pointToggle (event) {
+ const { index } = event.currentTarget.dataset;
+ const checkbox = this.selectComponent(`.checkboxes-point-${index}`);
+ checkbox.toggle();
+ },
+
+ noop () { },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad (options) {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload () {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh () {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom () {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage () {
+
+ }
})
\ No newline at end of file
diff --git a/weapp/package/troubleshooting/index.json b/weapp/package/troubleshooting/index.json
index 8835af0..b5d5be3 100644
--- a/weapp/package/troubleshooting/index.json
+++ b/weapp/package/troubleshooting/index.json
@@ -1,3 +1,14 @@
{
- "usingComponents": {}
+ "usingComponents": {
+ "van-button": "@vant/weapp/button/index",
+ "van-field": "@vant/weapp/field/index",
+ "van-cell": "@vant/weapp/cell/index",
+ "van-cell-group": "@vant/weapp/cell-group/index",
+ "van-dropdown-menu": "@vant/weapp/dropdown-menu/index",
+ "van-dropdown-item": "@vant/weapp/dropdown-item/index",
+ "van-checkbox": "@vant/weapp/checkbox/index",
+ "van-checkbox-group": "@vant/weapp/checkbox-group/index",
+ "van-datetime-picker": "@vant/weapp/datetime-picker/index",
+ "timePicker": "/components/timePicker/index"
+ }
}
\ No newline at end of file
diff --git a/weapp/package/troubleshooting/index.wxml b/weapp/package/troubleshooting/index.wxml
index 6f32331..0734315 100644
--- a/weapp/package/troubleshooting/index.wxml
+++ b/weapp/package/troubleshooting/index.wxml
@@ -1,2 +1,59 @@
-
-package/bindTroubleshooting/index.wxml
+
+
+
+
+
+ 待办事项
+
+
+ 已办事项
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ asd
+ 按钮
+
+
+
+
+
+
+
+
+ 暂无数据~
+
+
+
\ No newline at end of file
diff --git a/weapp/package/troubleshooting/index.wxss b/weapp/package/troubleshooting/index.wxss
index c0f73fc..be72845 100644
--- a/weapp/package/troubleshooting/index.wxss
+++ b/weapp/package/troubleshooting/index.wxss
@@ -1 +1,57 @@
-/* package/bindTroubleshooting/index.wxss */
\ No newline at end of file
+/* package/bindTroubleshooting/index.wxss */
+.page {
+ min-height: 100vh;
+ background: #F7F7FA;
+ position: relative;
+}
+
+/* 顶部tab */
+.swiper-tab {
+ display: flex;
+ height: 98rpx;
+ line-height: 98rpx;
+ width: 100%;
+ /* position: fixed; */
+ top: 0;
+ z-index: 100;
+ background: #fff;
+ border-bottom: 2rpx solid #e8e8e8;
+}
+
+.swiper-tab-item {
+ flex: 1;
+ font-size: 28rpx;
+ text-align: center;
+ color: #333333;
+ position: relative;
+}
+
+.noData {
+ width: 254rpx;
+ height: 298rpx;
+ display: block;
+ margin: 0rpx auto 16rpx;
+}
+
+.noTxt {
+ font-size: 30rpx;
+ color: #999;
+ font-weight: bold;
+ text-align: center;
+}
+
+/* 任务卡片 */
+.mission-card {}
+
+.mission-card-title {
+ background-color: #fff;
+ overflow: auto;
+ padding: 24rpx 16px;
+ display: flex;
+ justify-content: space-between;
+ align-items: center
+}
+
+.value-class {
+ flex: none !important;
+}
\ No newline at end of file
diff --git a/weapp/project.config.json b/weapp/project.config.json
index 62fc226..2387fee 100644
--- a/weapp/project.config.json
+++ b/weapp/project.config.json
@@ -27,9 +27,14 @@
"useApiHook": true,
"useApiHostProcess": true,
"showShadowRootInWxmlPanel": true,
- "packNpmManually": false,
+ "packNpmManually": true,
+ "packNpmRelationList": [
+ {
+ "packageJsonPath": "./package.json",
+ "miniprogramNpmDistDir": "./"
+ }
+ ],
"enableEngineNative": false,
- "packNpmRelationList": [],
"minifyWXSS": true,
"showES6CompileOption": false,
"minifyWXML": true,
diff --git a/weapp/project.private.config.json b/weapp/project.private.config.json
index 86fa333..b16d2d1 100644
--- a/weapp/project.private.config.json
+++ b/weapp/project.private.config.json
@@ -4,5 +4,18 @@
"urlCheck": false,
"compileHotReLoad": true
},
- "projectname": "%E8%BF%90%E7%BB%B4%E5%B7%A1%E6%A3%80"
+ "projectname": "%E8%BF%90%E7%BB%B4%E5%B7%A1%E6%A3%80",
+ "condition": {
+ "miniprogram": {
+ "list": [
+ {
+ "name": "运维巡检",
+ "pathName": "package/troubleshooting/index",
+ "query": "",
+ "launchMode": "default",
+ "scene": null
+ }
+ ]
+ }
+ }
}
\ No newline at end of file