Explorar o código

余额支付的售后

shish hai 1 ano
pai
achega
d625604a5b

+ 1 - 1
hdApp/src/admin/billing/affirm.vue

@@ -599,7 +599,7 @@ export default {
               this.$util.pageTo({ url: '/admin/billing/toPay',type:2,query: {orderId:id,orderSn:orderSn,actPrice:actPrice}})
             }else{
               if(this.form.forward == 1){
-                this.$util.pageTo({ url: '/admin/billing/shPayRemind?orderId='+id,type:2})
+                this.$util.pageTo({ url: '/admin/refund/shPayRemind?orderId='+id,type:2})
               }else{
                 this.$util.pageTo({ url: '/admin/billing/result?orderId='+id,type:2})
               }

+ 6 - 3
hdApp/src/admin/order/refund.vue

@@ -373,11 +373,14 @@ export default {
 				if(res.code == 1){
 					if(res.data.forward && res.data.forward == 1){
 						let orderId = res.data.orderId?res.data.orderId:0
-						this.$util.pageTo({url:'/admin/billing/shPayRemind?orderId='+orderId,type:2})
+						this.$util.pageTo({url:'/admin/refund/shPayRemind?orderId='+orderId,type:2})
 					}else{
-						if(this.orderInfo.onlinePay == 1 && (this.orderInfo.payWay == 0 || this.orderInfo.payWay == 1 || this.orderInfo.payWay == 4 || this.orderInfo.payWay == 5)){
+						if(this.orderInfo.payWay == 2){
+							//余额支付
+							this.$util.pageTo({url:'/admin/refund/balanceCp?orderId='+this.orderInfo.id+'&amount='+this.refundMoney,type:2})
+						}else if(this.orderInfo.onlinePay == 1 && (this.orderInfo.payWay == 0 || this.orderInfo.payWay == 1 || this.orderInfo.payWay == 4 || this.orderInfo.payWay == 5)){
 							//线下付款的,也引导走充值
-							//this.$util.pageTo({url:'/admin/billing/shPayRemind?shPay=0&orderId='+orderId+'&payWay='+this.orderInfo.payWay,type:2})
+							//this.$util.pageTo({url:'/admin/refund/offlineRemind',type:2})
 						}else{
 							this.$util.pageTo({url:'/common/success',query:{titleType:1},type:2})
 						}

+ 143 - 0
hdApp/src/admin/refund/balanceCp.vue

@@ -0,0 +1,143 @@
+<template>
+  <view class="app-content">
+    <view class="billing_box_bg">
+      <view class="top-view"> </view>
+      <view class="result-view">
+        <view :class="['iconfont', 'iconchenggong']"></view>
+        <view class="result-title">充值成功</view>
+        <view class="textarea-container">
+          <textarea 
+            class="result-textarea" 
+            v-model="copyText" 
+            readonly 
+            placeholder=""
+          ></textarea>
+        </view>
+        <view style="font-size:34upx;color:#CCCCCC;">复制上面文字,发给客户</view>
+        <view class="pay-confirm-content">
+          <view>
+              <button class="admin-button-com big" @click="copyBack" style="width:420upx;">复制并返回</button>
+          </view>
+        </view>
+      </view>
+    </view>
+  </view>
+</template>
+<script>
+import { getMallRechargeShortLink } from "@/api/recharge";
+export default {
+  name: "shPayCp",
+  data() {
+    return {
+      orderInfo:[],
+      copyText:""
+    }
+  },
+  onLoad(){
+
+    //返回上一页时刷新
+    let pages = getCurrentPages();
+    let prevPage = pages[ pages.length - 2 ];
+    if(prevPage.$vm){
+      prevPage.$vm.pageAction = {refresh:1}
+    }
+
+  },
+  methods: {
+    init(){
+      let amount = this.option.amount?parseFloat(this.option.amount):0
+      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:''
+         let orderLink = res.data.orderLink?res.data.orderLink:''
+         this.copyText = "售后金额¥"+amount+"元,已退回到你的余额\n点击下面链接查看你的余额\n余额 "+rechargeAccountLink+"\n订单 "+orderLink+"\n链接30天后失效"
+        }
+      })
+    },
+    copyBack(){
+      uni.setClipboardData({
+        data: this.copyText,
+        success: () => {
+          uni.showToast({ title: '复制成功', icon: 'success', duration: 2000 })
+          setTimeout(() => {
+            uni.navigateBack()      
+          }, 800)
+        },
+        fail: () => {
+          uni.showToast({ title: '复制失败', icon: 'none', duration: 2000 })
+          setTimeout(() => {
+            uni.navigateBack()      
+          }, 1000)
+        }
+      });
+    }
+  },
+};
+</script>
+<style lang="scss" scoped>
+.billing_box_bg {
+  position: relative;
+  padding: 30upx 30upx;
+  display: flex;
+  flex-direction: column;
+  background-color: #f5f5f5;
+  .top-view {
+    position: absolute;
+    top: 0;
+    left: 0;
+    width: 100%;
+    height: 299upx;
+    background: #3385ff;
+    border-radius: 0upx 0upx 83upx 83upx;
+  }
+  .result-view {
+    position: relative;
+    display: flex;
+    flex-direction: column;
+    align-items: center;
+    padding: 80upx 0upx 70upx 0upx;
+    width: 100%;
+    background: #ffffff;
+    border-radius: 20upx;
+    z-index: 1;
+    .iconchenggong {
+      font-size: 130upx;
+      color: $mainColor1;
+    }
+    .result-title {
+      margin: 50upx 0 30upx;
+      font-size: 38upx;
+    }
+    
+    .textarea-container {
+      width: 100%;
+      padding: 0 40upx;
+      margin-bottom: 40upx;
+      
+      .result-textarea {
+        width: 100%;
+        min-height: 300upx;
+        padding: 30upx;
+        background: #f8f9fa;
+        border: 2upx solid #e9ecef;
+        border-radius: 16upx;
+        font-size: 32upx;
+        line-height: 1.6;
+        color: #333;
+        resize: none;
+        
+        &:focus {
+          border-color: $mainColor1;
+          background: #fff;
+        }
+      }
+    }
+  }
+}
+
+.pay-confirm-content {
+  padding: 40upx 40upx;
+  text-align: center;
+}
+</style>

+ 2 - 2
hdApp/src/admin/billing/resultCp.vue → hdApp/src/admin/refund/debtResult.vue

@@ -13,7 +13,7 @@
             placeholder=""
           ></textarea>
         </view>
-        <view style="font-size:34upx;">复制上面文字,发给客户</view>
+        <view style="font-size:34upx;color:#CCCCCC;">复制上面文字,发给客户</view>
         <view class="pay-confirm-content">
           <view>
               <button class="admin-button-com big" @click="copyBack" style="width:420upx;">复制并返回</button>
@@ -26,7 +26,7 @@
 <script>
 import { getMallRechargeShortLink } from "@/api/recharge";
 export default {
-  name: "resultCp",
+  name: "shPayCp",
   data() {
     return {
       orderInfo:[],

+ 141 - 0
hdApp/src/admin/refund/offlineCp.vue

@@ -0,0 +1,141 @@
+<template>
+  <view class="app-content">
+    <view class="billing_box_bg">
+      <view class="top-view"> </view>
+      <view class="result-view">
+        <view :class="['iconfont', 'iconchenggong']"></view>
+        <view class="result-title">充值成功</view>
+        <view class="textarea-container">
+          <textarea 
+            class="result-textarea" 
+            v-model="copyText" 
+            readonly 
+            placeholder=""
+          ></textarea>
+        </view>
+        <view style="font-size:34upx;color:#CCCCCC;">复制上面文字,发给客户</view>
+        <view class="pay-confirm-content">
+          <view>
+              <button class="admin-button-com big" @click="copyBack" style="width:420upx;">复制并返回</button>
+          </view>
+        </view>
+      </view>
+    </view>
+  </view>
+</template>
+<script>
+import { getMallRechargeShortLink } from "@/api/recharge";
+export default {
+  name: "shPayCp",
+  data() {
+    return {
+      orderInfo:[],
+      copyText:""
+    }
+  },
+  onLoad(){
+
+    //返回上一页时刷新
+    let pages = getCurrentPages();
+    let prevPage = pages[ pages.length - 2 ];
+    if(prevPage.$vm){
+      prevPage.$vm.pageAction = {refresh:1}
+    }
+
+  },
+  methods: {
+    init(){
+      let amount = this.option.amount?parseFloat(this.option.amount):0
+      getMallRechargeShortLink().then(res=>{
+        if(res.code == 1){
+         let link = res.data.link ? res.data.link:''
+         this.copyText = "售后金额¥"+amount+"元,已充值到你的账户\n点击下面链接查看你的账户余额\n"+link+"\n链接30天后失效"
+        }
+      })
+    },
+    copyBack(){
+      uni.setClipboardData({
+        data: this.copyText,
+        success: () => {
+          uni.showToast({ title: '复制成功', icon: 'success', duration: 2000 })
+          setTimeout(() => {
+            uni.navigateBack()      
+          }, 800)
+        },
+        fail: () => {
+          uni.showToast({ title: '复制失败', icon: 'none', duration: 2000 })
+          setTimeout(() => {
+            uni.navigateBack()      
+          }, 1000)
+        }
+      });
+    }
+  },
+};
+</script>
+<style lang="scss" scoped>
+.billing_box_bg {
+  position: relative;
+  padding: 30upx 30upx;
+  display: flex;
+  flex-direction: column;
+  background-color: #f5f5f5;
+  .top-view {
+    position: absolute;
+    top: 0;
+    left: 0;
+    width: 100%;
+    height: 299upx;
+    background: #3385ff;
+    border-radius: 0upx 0upx 83upx 83upx;
+  }
+  .result-view {
+    position: relative;
+    display: flex;
+    flex-direction: column;
+    align-items: center;
+    padding: 80upx 0upx 70upx 0upx;
+    width: 100%;
+    background: #ffffff;
+    border-radius: 20upx;
+    z-index: 1;
+    .iconchenggong {
+      font-size: 130upx;
+      color: $mainColor1;
+    }
+    .result-title {
+      margin: 50upx 0 30upx;
+      font-size: 38upx;
+    }
+    
+    .textarea-container {
+      width: 100%;
+      padding: 0 40upx;
+      margin-bottom: 40upx;
+      
+      .result-textarea {
+        width: 100%;
+        min-height: 300upx;
+        padding: 30upx;
+        background: #f8f9fa;
+        border: 2upx solid #e9ecef;
+        border-radius: 16upx;
+        font-size: 32upx;
+        line-height: 1.6;
+        color: #333;
+        resize: none;
+        
+        &:focus {
+          border-color: $mainColor1;
+          background: #fff;
+        }
+      }
+    }
+  }
+}
+
+.pay-confirm-content {
+  padding: 40upx 40upx;
+  text-align: center;
+}
+</style>

+ 2 - 2
hdApp/src/admin/billing/remind.vue → hdApp/src/admin/refund/offlineRemind.vue

@@ -25,7 +25,7 @@
   import { getDetB} from "@/api/order";
   import {toManRecharge} from "@/api/recharge"
   export default {
-    name: "remind",
+    name: "shPayRemind",
     data() {
       return {
         orderInfo:[]
@@ -56,7 +56,7 @@
           if(res.code == 1){
             this.$msg('充值成功')
             setTimeout(() => {
-              that.pageTo({url:`/admin/billing/shPayCp?id=${this.option.orderId}&amount=${this.orderInfo.actPrice}`, type: 2})
+              that.pageTo({url:`/admin/refund/shPayCp?id=${this.option.orderId}&amount=${this.orderInfo.actPrice}`, type: 2})
             }, 1000)
           }
         })

+ 141 - 0
hdApp/src/admin/refund/onlineResult.vue

@@ -0,0 +1,141 @@
+<template>
+  <view class="app-content">
+    <view class="billing_box_bg">
+      <view class="top-view"> </view>
+      <view class="result-view">
+        <view :class="['iconfont', 'iconchenggong']"></view>
+        <view class="result-title">充值成功</view>
+        <view class="textarea-container">
+          <textarea 
+            class="result-textarea" 
+            v-model="copyText" 
+            readonly 
+            placeholder=""
+          ></textarea>
+        </view>
+        <view style="font-size:34upx;color:#CCCCCC;">复制上面文字,发给客户</view>
+        <view class="pay-confirm-content">
+          <view>
+              <button class="admin-button-com big" @click="copyBack" style="width:420upx;">复制并返回</button>
+          </view>
+        </view>
+      </view>
+    </view>
+  </view>
+</template>
+<script>
+import { getMallRechargeShortLink } from "@/api/recharge";
+export default {
+  name: "shPayCp",
+  data() {
+    return {
+      orderInfo:[],
+      copyText:""
+    }
+  },
+  onLoad(){
+
+    //返回上一页时刷新
+    let pages = getCurrentPages();
+    let prevPage = pages[ pages.length - 2 ];
+    if(prevPage.$vm){
+      prevPage.$vm.pageAction = {refresh:1}
+    }
+
+  },
+  methods: {
+    init(){
+      let amount = this.option.amount?parseFloat(this.option.amount):0
+      getMallRechargeShortLink().then(res=>{
+        if(res.code == 1){
+         let link = res.data.link ? res.data.link:''
+         this.copyText = "售后金额¥"+amount+"元,已充值到你的账户\n点击下面链接查看你的账户余额\n"+link+"\n链接30天后失效"
+        }
+      })
+    },
+    copyBack(){
+      uni.setClipboardData({
+        data: this.copyText,
+        success: () => {
+          uni.showToast({ title: '复制成功', icon: 'success', duration: 2000 })
+          setTimeout(() => {
+            uni.navigateBack()      
+          }, 800)
+        },
+        fail: () => {
+          uni.showToast({ title: '复制失败', icon: 'none', duration: 2000 })
+          setTimeout(() => {
+            uni.navigateBack()      
+          }, 1000)
+        }
+      });
+    }
+  },
+};
+</script>
+<style lang="scss" scoped>
+.billing_box_bg {
+  position: relative;
+  padding: 30upx 30upx;
+  display: flex;
+  flex-direction: column;
+  background-color: #f5f5f5;
+  .top-view {
+    position: absolute;
+    top: 0;
+    left: 0;
+    width: 100%;
+    height: 299upx;
+    background: #3385ff;
+    border-radius: 0upx 0upx 83upx 83upx;
+  }
+  .result-view {
+    position: relative;
+    display: flex;
+    flex-direction: column;
+    align-items: center;
+    padding: 80upx 0upx 70upx 0upx;
+    width: 100%;
+    background: #ffffff;
+    border-radius: 20upx;
+    z-index: 1;
+    .iconchenggong {
+      font-size: 130upx;
+      color: $mainColor1;
+    }
+    .result-title {
+      margin: 50upx 0 30upx;
+      font-size: 38upx;
+    }
+    
+    .textarea-container {
+      width: 100%;
+      padding: 0 40upx;
+      margin-bottom: 40upx;
+      
+      .result-textarea {
+        width: 100%;
+        min-height: 300upx;
+        padding: 30upx;
+        background: #f8f9fa;
+        border: 2upx solid #e9ecef;
+        border-radius: 16upx;
+        font-size: 32upx;
+        line-height: 1.6;
+        color: #333;
+        resize: none;
+        
+        &:focus {
+          border-color: $mainColor1;
+          background: #fff;
+        }
+      }
+    }
+  }
+}
+
+.pay-confirm-content {
+  padding: 40upx 40upx;
+  text-align: center;
+}
+</style>

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

@@ -13,7 +13,7 @@
             placeholder=""
           ></textarea>
         </view>
-        <view style="font-size:34upx;">复制上面文字,发给客户</view>
+        <view style="font-size:34upx;color:#CCCCCC;">复制上面文字,发给客户</view>
         <view class="pay-confirm-content">
           <view>
               <button class="admin-button-com big" @click="copyBack" style="width:420upx;">复制并返回</button>
@@ -26,7 +26,7 @@
 <script>
 import { getMallRechargeShortLink } from "@/api/recharge";
 export default {
-  name: "resultCp",
+  name: "shPayCp",
   data() {
     return {
       orderInfo:[],
@@ -48,8 +48,8 @@ export default {
       let amount = this.option.amount?parseFloat(this.option.amount):0
       getMallRechargeShortLink().then(res=>{
         if(res.code == 1){
-         let link = res.data.link ? res.data.link:''
-         this.copyText = "售后金额¥"+amount+"元,已充值到你的账户\n点击下面链接查看你的账户余额\n"+link+"\n链接30天后失效"
+         let rechargeAccountLink = res.data.rechargeAccountLink ? res.data.rechargeAccountLink:''
+         this.copyText = "售后金额¥"+amount+"元,已充值到你的账户\n点击下面链接查看你的账户余额\n"+rechargeAccountLink+"\n链接30天后失效"
         }
       })
     },

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

@@ -25,7 +25,7 @@
   import { getDetB} from "@/api/order";
   import {toManRecharge} from "@/api/recharge"
   export default {
-    name: "remind",
+    name: "shPayRemind",
     data() {
       return {
         orderInfo:[]
@@ -56,7 +56,7 @@
           if(res.code == 1){
             this.$msg('充值成功')
             setTimeout(() => {
-              that.pageTo({url:`/admin/billing/shPayCp?id=${this.option.orderId}&amount=${this.orderInfo.actPrice}`, type: 2})
+              that.pageTo({url:`/admin/refund/shPayCp?id=${this.option.orderId}&amount=${this.orderInfo.actPrice}`, type: 2})
             }, 1000)
           }
         })

+ 6 - 1
hdApp/src/pages.json

@@ -358,7 +358,12 @@
 			"root": "admin/refund",
 			"pages": [
 				{ "path": "shPayRemind", "style": { "navigationBarTitleText": "提示"}},
-				{ "path": "shPayCp", "style": { "navigationBarTitleText": "成功"}}
+				{ "path": "shPayCp", "style": { "navigationBarTitleText": "成功"}},
+				{ "path": "offlineRemind", "style": { "navigationBarTitleText": "提示"}},
+				{ "path": "offlineCp", "style": { "navigationBarTitleText": "成功"}},
+				{ "path": "debtResult", "style": { "navigationBarTitleText": "结果"}},
+				{ "path": "onlineResult", "style": { "navigationBarTitleText": "结果"}},
+				{ "path": "balanceCp", "style": { "navigationBarTitleText": "结果"}}
 			]
 		},
 		{