Bläddra i källkod

feat: 附件下载余额页面相关跳转添加

cuiyalong 1 år sedan
förälder
incheckning
d080044b7c
1 ändrade filer med 19 tillägg och 1 borttagningar
  1. 19 1
      src/web/staticres/frontRouter/pc/fileHistory/js/index-pc.js

+ 19 - 1
src/web/staticres/frontRouter/pc/fileHistory/js/index-pc.js

@@ -275,13 +275,31 @@ var fileRecorder = new Vue({
     },
     toBuyWithPoint () {
       console.log('兑换附件下载,跳转工作桌面兑换')
+      if (goTemplateData.inIframe) {
+        window.$BRACE.methods.open({
+          route: {
+            link: '/points',
+            appName: 'pointSubApp',
+            appType: 'qiankun'
+          }
+        })
+      } else {
+        window.open('/swordfish/integral/index')
+      }
     },
     doLeaveInfo: function () {
       vm.isNeedSubmit('pc_mine_member_attach_learnmore',function(){
         // vm.showSuccess = true
       })
     },
-    concatKf () {},
+    concatKf () {
+      if (goTemplateData.inIframe) {
+        window.$BRACE.$emit('open-customer')
+      } else {
+        // 打开客服弹窗
+        checkCustomerService()
+      }
+    },
     detailed (ids) {
       window.open('/swordfish/page_big_pc/unit_portrayal/' + ids, '_blank')
     }