Bladeren bron

feat: 上传下载相关功能小程序平台跳转

cuiyalong 6 maanden geleden
bovenliggende
commit
fe780febcf

+ 3 - 0
src/jfw/modules/app/src/web/templates/big-member/page_pro_follow_detail.html

@@ -1508,6 +1508,9 @@
                 if (!this.isPayedUser) {
                     return this.openVip()
                 }
+                if (utils.$envs.inWxMini) {
+                    return utils.toDownloadApp()
+                }
                 if (this.isRequestIng) {
                     return
                 }

+ 4 - 0
src/web/staticres/common-module/big-member/js/page_client_follow_detail.js

@@ -1155,6 +1155,10 @@ var vNode = {
             if (!this.isPayedUser) {
                 return this.openVip()
             }
+            if (utils.$envs.inWxMini) {
+                return utils.toDownloadApp()
+            }
+
             if (this.isRequestIng) {
                 return
             }

+ 3 - 0
src/web/staticres/common-module/file-pack/js/index.js

@@ -333,6 +333,9 @@ var vm = new Vue({
     },
     downFile (item) {
       //location.href = item.s_downUrl
+      if (utils.$envs.inWxMini) {
+        return utils.toDownloadApp()
+      }
 		   $.ajax({
 		       type: 'post',
 		       url: '/jypay/resourcePack/consumePack',

+ 3 - 0
src/web/staticres/common-module/mobile-portrayal-footer/js/mobile-portrayal-footer.js

@@ -130,6 +130,9 @@ var mobilePortrayalFooter = {
  },
   methods: {
     downLoad(){
+      if (utils.$envs.inWxMini) {
+        return utils.toDownloadApp()
+      }
       this.$parent.$refs.downloadpopup.show() //触发引用此组件父级组件的下载弹框
     },
     monitorClick: utils.debounce(function(){

+ 3 - 0
src/web/staticres/common-module/share/js/invite-friends.js

@@ -177,6 +177,9 @@ var shareContent = new Vue({
                 scale: 3,
                 imageTimeout: 30000,
             }).then(function(canvas) {
+                if (utils.$envs.inWxMini) {
+                  return utils.toDownloadApp()
+                }
                 var imgUrl = canvas.toDataURL('image/png');
                 if (goTemplateData.platform === 'app') {
                   _this.doAppSaveImg(imgUrl)