Browse Source

技术信用查询跳转事件;

huan-jie 4 years ago
parent
commit
72a68de21a
1 changed files with 15 additions and 3 deletions
  1. 15 3
      pages/credit/query.vue

+ 15 - 3
pages/credit/query.vue

@@ -54,7 +54,7 @@
                             <p class="p4"><span>被查询人:</span>{{item.nickname}}</p>
                             <p class="p9" v-if="Number(item.status) ===2 ">
                                 <span>技术信用报告:</span>
-                                <span class="point" @click="window.open(item.lookUrl, 'showDetail' + item.id)">点击查看信用报告</span>
+                                <span class="point" @click="handleClickCompanyPoint(item)">点击查看信用报告</span>
                             </p>
                             <p class="p5"><span>报告项: </span>{{item.items_name}}</p>
                             <p class="p6"><span>购买时间:</span>{{item.created_at}}</p>
@@ -62,7 +62,7 @@
                             <p class="p8" v-if="Number(item.status) ===3 "><span>退款日期:</span><span class="date">{{item.updated_at}}</span></p>
                         </div>
                         <div class="right" style="cursor: pointer">
-                            <div class="userInfo" @click="window.open('/wo/'+item.visited_uid)">
+                            <div class="userInfo" @click="handleClickUser(item)">
                                 <img :src="item.icon_url" alt="" />
                                 <div class="uname">{{item.nickname}}</div>
                             </div>
@@ -88,7 +88,7 @@
                     <div class="cBody">
                         <div class="left">
                             <p class="p1">需求方 <span>{{item.nickname}}</span> 希望查看您的技术信用报告,请确认是否授权</p>
-                            <p class="p2">授权报告内容:<span @click="window.open(item.lookUrl, '_black')">
+                            <p class="p2">授权报告内容:<span @click="handleClickPoint(item)">
                                 {{item.lookUrl}}
                             </span></p>
                             <p class="p3">授权同意后您将直接获得一定数量的STD收益,token权益即将上线</p>
@@ -287,6 +287,18 @@ export default {
                 //     window.location.href = '/credit/query?identify=2'
                 // }
             }
+        },
+        /** 我查询的:点击查看信用报告 */
+        handleClickCompanyPoint (item) {
+             window.open(item.lookUrl, 'showDetail' + item.id)
+        },
+        /** 查询我的: */
+        handleClickPoint (item) {
+            window.open(item.lookUrl, '_black')
+        },
+        /** 点击用户 */
+        handleClickUser (item) {
+            window.open('/wo/' + item.visited_uid)
         }
     }
 }