浏览代码

退费只有时间筛选

skyblued 3 年之前
父节点
当前提交
0e6a8ebef4
共有 1 个文件被更改,包括 21 次插入16 次删除
  1. 21 16
      src/student/trade/list/index.tsx

+ 21 - 16
src/student/trade/list/index.tsx

@@ -186,22 +186,27 @@ export default defineComponent({
                   />
                 </div>
               ),
-              value: () => (
-                <div
-                  class={styles.searchType}
-                  onClick={() => {
-                    this.typeStatus = true
-                  }}
-                >
-                  <span>{this.searchName}</span>
-                  <Icon
-                    classPrefix="iconfont"
-                    name="down"
-                    size={12}
-                    color="var(--van-primary)"
-                  />
-                </div>
-              )
+              value: () => {
+                if (this.type === 'buy') {
+                  return (
+                    <div
+                      class={styles.searchType}
+                      onClick={() => {
+                        this.typeStatus = true
+                      }}
+                    >
+                      <span>{this.searchName}</span>
+                      <Icon
+                        classPrefix="iconfont"
+                        name="down"
+                        size={12}
+                        color="var(--van-primary)"
+                      />
+                    </div>
+                  )
+                }
+                return null
+              }
             }}
           ></Cell>
         </Sticky>