wenmenghao 3 年 前
コミット
f757d4d989
1 ファイル変更8 行追加4 行削除
  1. 8 4
      src/views/order/helpUserOrders.vue

+ 8 - 4
src/views/order/helpUserOrders.vue

@@ -275,14 +275,18 @@ export default {
         goDetail(row) {
             console.log(row)
             const sources = JSON.parse(row.filter).source ? JSON.parse(row.filter).source : ''
-            const news = this.$router.resolve({ path: '/order/helpUserOrders/oderHelpDetail', query: { id: row.id ,proType:row.product_type,type:sources,previousPage:'helpUserOrders'} })
+            const news = this.$router.resolve({ path: '/order/helpUserOrders/oderHelpDetail', query: { id: row.id, proType: row.product_type, type: sources, previousPage: 'helpUserOrders' } })
             window.open(news.href, '_blank')
         },
         copyLink(row) {
             console.log(row)
-            this.copy_(row.copyHref + "", () => {
-                this.$Notice.success({ title: '支付链接复制成功' })
-            })
+            if (row.copyHref) {
+                this.copy_(row.copyHref + "", () => {
+                    this.$Notice.success({ title: '支付链接复制成功' })
+                })
+            }else{
+                this.$Notice.warning({ title: '无复制链接' })
+            }
         },
         goDelate(row) {
             console.log(row)