Selaa lähdekoodia

feat: 添加去兑换按钮

zhangyuhan 3 kuukautta sitten
vanhempi
commit
58613c1e95
1 muutettua tiedostoa jossa 22 lisäystä ja 3 poistoa
  1. 22 3
      apps/jy-pc/src/views/equity/Exchange.vue

+ 22 - 3
apps/jy-pc/src/views/equity/Exchange.vue

@@ -201,6 +201,7 @@
                   <span>获取状态</span>
                   <span>获取权益</span>
                   <span>获取时间</span>
+                  <span>操作</span>
                 </div>
                 <div class="t-body">
                   <div
@@ -230,6 +231,16 @@
                       <p>-</p>
                     </span>
                     <span>{{ item.ex_date || '-' }}</span>
+                    <span v-if="item.address">
+                      <el-link
+                        :underline="false"
+                        class="get-code-now"
+                        type="primary"
+                        @click="goExchangePage(item.address)"
+                      >
+                        去兑换
+                      </el-link>
+                    </span>
                   </div>
                 </div>
               </div>
@@ -569,6 +580,11 @@ export default {
         window.open(this.thirdPartyExchange.address)
       }
     },
+    goExchangePage(address) {
+      if (address) {
+        window.open(address)
+      }
+    },
     getCurrentThirdPartySelected() {
       const selectedId = this.thirdPartyExchange.thirdPowerCheck
       const arr = this.thirdPartyExchange.thirdPowerList
@@ -831,11 +847,11 @@ export default {
         }
 
         &:nth-of-type(2) {
-          width: 15%;
+          width: 12%;
         }
 
         &:nth-of-type(3) {
-          width: 15%;
+          width: 12%;
         }
 
         &:nth-of-type(4) {
@@ -843,7 +859,10 @@ export default {
         }
 
         &:nth-of-type(5) {
-          width: 15%;
+          width: 12%;
+        }
+        &:nth-of-type(6) {
+          width: 9%;
         }
       }