shish пре 1 година
родитељ
комит
8caef96810
2 измењених фајлова са 8 додато и 6 уклоњено
  1. 6 4
      hdApp/src/admin/refund/shPayCp.vue
  2. 2 2
      hdApp/src/admin/refund/shPayRemind.vue

+ 6 - 4
hdApp/src/admin/refund/shPayCp.vue

@@ -46,10 +46,12 @@ export default {
   methods: {
     init(){
       let amount = this.option.amount?parseFloat(this.option.amount):0
-      getMallRechargeShortLink().then(res=>{
+      let orderId = this.option.orderId?this.option.orderId:0
+      getMallRechargeShortLink({orderId:orderId}).then(res=>{
         if(res.code == 1){
          let rechargeAccountLink = res.data.rechargeAccountLink ? res.data.rechargeAccountLink:''
-         this.copyText = "售后金额¥"+amount+"元,已充值到你的账户\n点击下面链接查看你的账户余额\n"+rechargeAccountLink+"\n链接30天后失效"
+         let orderLink = res.data.orderLink?res.data.orderLink:''
+         this.copyText = "售后金额¥"+amount+"元,已充值到你的账户,点击下面链接查看你的账户余额\n\n余额 "+rechargeAccountLink+"\n\n订单 "+orderLink+"\n\n链接30天后失效"
         }
       })
     },
@@ -59,13 +61,13 @@ export default {
         success: () => {
           uni.showToast({ title: '复制成功', icon: 'success', duration: 2000 })
           setTimeout(() => {
-            uni.navigateBack()      
+            uni.navigateBack()
           }, 500)
         },
         fail: () => {
           uni.showToast({ title: '复制失败', icon: 'none', duration: 2000 })
           setTimeout(() => {
-            uni.navigateBack()      
+            uni.navigateBack()
           }, 1000)
         }
       });

+ 2 - 2
hdApp/src/admin/refund/shPayRemind.vue

@@ -51,13 +51,13 @@
       toRecharge(){
         let that = this
         uni.showLoading({mask:true})
-        let orderId = this.orderInfo.id
+        let orderId = this.option.orderId?this.option.orderId:0
         toManRecharge({amount:this.orderInfo.actPrice,payWay:0,customId:this.orderInfo.customId,shOrderId:orderId}).then(res=>{
           uni.hideLoading()
           if(res.code == 1){
             this.$msg('充值成功')
             setTimeout(() => {
-              that.pageTo({url:`/admin/refund/shPayCp?id=${this.option.orderId}&amount=${this.orderInfo.actPrice}`, type: 2})
+              that.pageTo({url:`/admin/refund/shPayCp?orderId=${orderId}&amount=${this.orderInfo.actPrice}`, type: 2})
             }, 1000)
           }
         })