shish 1 год назад
Родитель
Сommit
efad4c3704
2 измененных файлов с 0 добавлено и 34 удалено
  1. 0 18
      hdApp/src/pagesPurchase/gatherPay.vue
  2. 0 16
      hdApp/src/pagesPurchase/wechatPay.vue

+ 0 - 18
hdApp/src/pagesPurchase/gatherPay.vue

@@ -63,13 +63,11 @@ export default {
       actPrice: '',
       hasRequestApi:false,
       needCheck:0,
-      aliPayCodeImg:'',
       remainSecond:0
     };
   },
   onLoad (options) {
     this.id = options.id ? options.id : 0
-    this.aliPayCodeImg = `${this.$constant.imgUrl}/default-img.png`
     detail({ id:this.id }).then(res => {
 				if(res.code == 1) {
           this.orderSn = res.data.orderSn?res.data.orderSn:''
@@ -104,22 +102,6 @@ export default {
       this.actPrice = this.option.actPrice ? this.option.actPrice : 0
       this.$util.pageTo({url: "/pagesPurchase/gatherAliPay?id="+this.id,type:2})
     },
-    savePayCode(){
-      let url = this.aliPayCodeImg
-      uni.downloadFile({
-        url: url,
-        success: (res) => {
-          if (res.statusCode === 200) {
-            uni.saveImageToPhotosAlbum({
-              filePath: res.tempFilePath,
-              success: function (data) {
-                uni.showToast({title:'下载成功'})
-              }
-            });
-          }
-        }
-      })
-    },
     goDetail(){
       this.$util.pageTo({url: "/admin/clear/info?id="+this.id,type:2})
     },

+ 0 - 16
hdApp/src/pagesPurchase/wechatPay.vue

@@ -70,7 +70,6 @@ import { mapGetters } from "vuex";
 import wexinPay from "@/utils/pay/wxPay";
 import { postWxCode } from '@/api/mini'
 import { updateMiniOpenId } from '@/api/admin'
-import { getAliPayCode } from '@/api/purchase'
 export default {
   name: "wechatPay",
   components: {
@@ -141,15 +140,6 @@ export default {
         }
       })
     },
-    getAliPayCodeFn(orderSn){
-      getAliPayCode({orderSn:orderSn}).then(res=>{
-        if(res.code == 1){
-          if(res.data.imgUrl){
-            this.aliPayCodeImg = res.data.imgUrl
-          }
-        }
-      })
-    },
     init(){
       let that = this
       getDetail({id:this.option.id}).then(res=>{
@@ -169,9 +159,6 @@ export default {
               }
             },1000);
           }
-          // #ifdef MP-WEIXIN
-          that.getAliPayCodeFn(this.orderSn)
-          // #endif
         }
       })
     },
@@ -290,9 +277,6 @@ export default {
                     this.pageId = res.data.id
                     this.orderSn = res.data.orderSn
                     wexinPay(res.data, this.getSuccess, this.getError)
-                    // #ifdef MP-WEIXIN
-                    this.getAliPayCodeFn(this.orderSn)
-                    // #endif
                 }
               })
             }