浏览代码

Update index.tsx

lex 2 年之前
父节点
当前提交
49ab016c2b
共有 1 个文件被更改,包括 16 次插入14 次删除
  1. 16 14
      src/views/shop-mall/shop-order-detail/index.tsx

+ 16 - 14
src/views/shop-mall/shop-order-detail/index.tsx

@@ -266,20 +266,22 @@ export default defineComponent({
                 </div>
               )}
             </div>
-            <ColSticky position="bottom" background="white">
-              <div class={['btnGroup']} style={{ paddingTop: '12px' }}>
-                <Button
-                  block
-                  round
-                  type="primary"
-                  onClick={() => {
-                    onConfirmReceipt(order.value)
-                  }}
-                >
-                  确认收货
-                </Button>
-              </div>
-            </ColSticky>
+            {order.value.status === 2 && (
+              <ColSticky position="bottom" background="white">
+                <div class={['btnGroup']} style={{ paddingTop: '12px' }}>
+                  <Button
+                    block
+                    round
+                    type="primary"
+                    onClick={() => {
+                      onConfirmReceipt(order.value)
+                    }}
+                  >
+                    确认收货
+                  </Button>
+                </div>
+              </ColSticky>
+            )}
           </>
         ) : null}
       </>