Pārlūkot izejas kodu

feat: 兑换/购买附件下载明细跳转

cuiyalong 1 gadu atpakaļ
vecāks
revīzija
202168f58c

+ 32 - 11
src/web/staticres/frontRouter/pc/fileHistory/js/index-pc.js

@@ -73,13 +73,13 @@ var fileRecorder = new Vue({
       accountInfo: {
         // 权益剩余总数量
         number: 0,
-        // 剩余购买数量(充值)
+        // 剩余购买数量(充值)/number1
         purchaseNum: 0,
-        // 剩余兑换数量
+        // 剩余兑换数量/number2
         exchangeNum: 0,
-        // 剩余定期投放数量(超级订阅剩余权益个数)
+        // 剩余定期投放数量(超级订阅剩余权益个数)/number3
         grantNum: 0,
-        // 剩余留资数量(免费用户权益个数)
+        // 剩余留资数量(免费用户权益个数)/number4
         freeNum: 0
       },
       working: false,
@@ -279,17 +279,38 @@ var fileRecorder = new Vue({
     toBuyWithPoint () {
       console.log('兑换附件下载,跳转工作桌面兑换')
       if (goTemplateData.inIframe) {
-        window.$BRACE.methods.open({
-          route: {
-            link: '/points',
-            appName: 'pointSubApp',
-            appType: 'qiankun'
-          }
-        })
+        try {
+          window.$BRACE.methods.open({
+            route: {
+              link: '/points',
+              appName: 'pointSubApp',
+              appType: 'qiankun'
+            }
+          })
+        } catch (error) {
+          window.open('/swordfish/integral/index')
+        }
       } else {
         window.open('/swordfish/integral/index')
       }
     },
+    goToFileNumberDetail () {
+      if (goTemplateData.inIframe) {
+        try {
+          window.$BRACE.methods.open({
+            route: {
+              link: '/big/filepack/history',
+              appName: 'bigMemberSubApp',
+              appType: 'qiankun'
+            }
+          })
+        } catch (error) {
+          window.open('/swordfish/page_big_pc/filepack/history')
+        }
+      } else {
+        window.open('/swordfish/page_big_pc/filepack/history')
+      }
+    },
     doLeaveInfo: function () {
       vm.isNeedSubmit('pc_mine_member_attach_learnmore',function(){
         // vm.showSuccess = true

+ 18 - 0
src/web/staticres/frontRouter/pc/seeBuyerHistory/css/index-pc.css

@@ -375,3 +375,21 @@
 .content-info-bd .j-f-button {
     margin-left: 16px;
 }
+
+.header-hd {
+    display: flex;
+    align-items: center;
+    justify-content: space-between;
+}
+.tab-button {
+    display: flex;
+    padding: 8px 16px;
+    justify-content: center;
+    align-items: center;
+    border-radius: 6px;
+    border: 1px solid #E0E0E0;
+    background: #FFF;
+    font-size: 14px;
+    color: #1d1d1d;
+    line-height: 22px;
+}

+ 6 - 1
src/web/templates/frontRouter/pc/fileHistory/sess/index.html

@@ -81,7 +81,12 @@
   <section class="see-container" v-cloak>
     <div class="see-header flex w">
       <div class="w1080">
-        <h3 class="tab-title">附件下载</h3>
+       <div class="header-hd">
+          <h3 class="tab-title">附件下载</h3>
+          <div class="header-hd-actions">
+            <button class="tab-button" @click="goToFileNumberDetail">兑换/购买附件下载明细</button>
+          </div>
+       </div>
         <!-- 大会员且有附件下载权益不展示头部 -->
         <div class="show-total-info-group" v-show="showHeaderCard">
           <div class="show-total-info-group-hd">