Explorar o código

退费只有时间筛选

skyblued %!s(int64=3) %!d(string=hai) anos
pai
achega
0e6a8ebef4
Modificáronse 1 ficheiros con 21 adicións e 16 borrados
  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>
                 </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>
           ></Cell>
         </Sticky>
         </Sticky>