From 7c415b6a02d9c976e47a0adfe218a8aff274bea8 Mon Sep 17 00:00:00 2001
From: xpz2018 <107107461@qq.com>
Date: Tue, 7 Sep 2021 19:02:19 +0800
Subject: [PATCH] no message
---
pages/process/order-info/index.wxml | 2 +-
pages/setting/paper-select/index.js | 17 ++++++++++++++++-
pages/setting/paper-select/index.wxml | 11 +++++++++--
pages/setting/paper-select/index.wxss | 1 -
4 files changed, 26 insertions(+), 5 deletions(-)
diff --git a/pages/process/order-info/index.wxml b/pages/process/order-info/index.wxml
index 691fbca..06a28c6 100644
--- a/pages/process/order-info/index.wxml
+++ b/pages/process/order-info/index.wxml
@@ -198,7 +198,7 @@
客户结算
-
+
diff --git a/pages/setting/paper-select/index.js b/pages/setting/paper-select/index.js
index cddbc48..d4d3db4 100644
--- a/pages/setting/paper-select/index.js
+++ b/pages/setting/paper-select/index.js
@@ -14,9 +14,24 @@ Component({
},
data: {
activeIndex: 0,
- cIndex: -1
+ cIndex: -1,
+ singleList: []
},
methods: {
+ updateSubItems: function(){
+ var single = 0
+ var typeIndex = 0
+ for (let index = 0; index < this.data.paperList.length; index++) {
+ if(this.data.paperList[index].smallProductCategoryInfoList && this.data.paperList[index].smallProductCategoryInfoList.length){
+ single ++
+ typeIndex = index
+ }
+ }
+ if(single == 1){
+ this.data.singleList = this.data.paperList[typeIndex].smallProductCategoryInfoList
+ this.setData({ singleList: this.data.singleList })
+ }
+ },
onClickNav: function({detail}){
this.setData({ activeIndex: Number(detail), cIndex: -1 })
},
diff --git a/pages/setting/paper-select/index.wxml b/pages/setting/paper-select/index.wxml
index 6df3f19..c1880c7 100644
--- a/pages/setting/paper-select/index.wxml
+++ b/pages/setting/paper-select/index.wxml
@@ -6,8 +6,15 @@
-
-
+
+
+
+ {{item.categoryName}}
+
+
+
+
+
diff --git a/pages/setting/paper-select/index.wxss b/pages/setting/paper-select/index.wxss
index 9615958..e69de29 100644
--- a/pages/setting/paper-select/index.wxss
+++ b/pages/setting/paper-select/index.wxss
@@ -1 +0,0 @@
-.van-tree-select__nav__inner{width:100%!important;height:100%}
\ No newline at end of file