|
@@ -46,10 +46,12 @@ export default {
|
|
|
methods: {
|
|
methods: {
|
|
|
init(){
|
|
init(){
|
|
|
let amount = this.option.amount?parseFloat(this.option.amount):0
|
|
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){
|
|
if(res.code == 1){
|
|
|
let rechargeAccountLink = res.data.rechargeAccountLink ? res.data.rechargeAccountLink:''
|
|
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: () => {
|
|
success: () => {
|
|
|
uni.showToast({ title: '复制成功', icon: 'success', duration: 2000 })
|
|
uni.showToast({ title: '复制成功', icon: 'success', duration: 2000 })
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
- uni.navigateBack()
|
|
|
|
|
|
|
+ uni.navigateBack()
|
|
|
}, 500)
|
|
}, 500)
|
|
|
},
|
|
},
|
|
|
fail: () => {
|
|
fail: () => {
|
|
|
uni.showToast({ title: '复制失败', icon: 'none', duration: 2000 })
|
|
uni.showToast({ title: '复制失败', icon: 'none', duration: 2000 })
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
- uni.navigateBack()
|
|
|
|
|
|
|
+ uni.navigateBack()
|
|
|
}, 1000)
|
|
}, 1000)
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|