Commit c15765f6 authored by youjie's avatar youjie

no message

parent a4c0e23b
......@@ -16,6 +16,8 @@
<q-btn outline dense label="取消支付" color="primary" class="q-px-md q-mr-md" @click="cancelPayHandler"></q-btn>
<q-btn v-if="isPay" unelevated dense label="已完成付款" :loading="checkLoading" color="primary" class="q-px-md q-mr-md"
@click="checkPaySatausHandler(1)"></q-btn>
<!-- <q-btn unelevated dense label="退款" :loading="checkLoading" color="primary" class="q-px-md q-mr-md"
@click="GetAliPayReturn"></q-btn> -->
<q-btn v-if="!isPay" unelevated dense label="支付" :loading="checkLoading" color="primary" class="q-px-md" @click="Gotopay"></q-btn>
</div>
......@@ -72,7 +74,7 @@ export default {
})
},
checkPaySatausHandler(type){
this.apipost("GetAliPayReturn_post",{OrderNo:this.orderNo},r=>{
this.apipost("GetDetailsByOrderNo_post",{OrderNo:this.orderNo},r=>{
if(r.data.resultCode==1){
if(r.data.data.OrderStatus==2||r.data.data.OrderStatus==3){
if(type==1){
......@@ -86,12 +88,26 @@ export default {
}
}else{
this.isPay = false
// location.reload()
if(type==1){
location.reload()
}
}
},e=>{
this.isPay = false
})
},
// 支付宝退款
GetAliPayReturn(){
this.apipost("GetAliPayReturn_post",{OrderNo:this.orderNo},r=>{
if(r.data.resultCode==1){
this.$message.success("退款成功")
}else{
this.$message.error("退款失败")
}
},e=>{
})
},
cancelPayHandler(){
this.$emit("cancel")
}
......
......@@ -67,12 +67,12 @@
<q-img
src="../../assets/img/pay/wepay.png"
spinner-color="white"
style="width: 100px"
style="width: 100px;"
/>
</div>
<div class="rounded-borders q-pa-sm bg-grey-2 cursor-pointer" @click="showPayFormHandler('alipay')">
<!-- height:25px;max-width: 150px;min-width: 30px -->
<q-img src="../../assets/img/pay/alipay.png" spinner-color="white" style="width: 80px;filter: drop-shadow(0px 0px black);" />
<!-- height:25px;max-width: 150px;min-width: 30px drop-shadow(0px 0px black)-->
<q-img src="../../assets/img/pay/alipay.png" spinner-color="white" style="width: 80px;filter: invert(100%) hue-rotate(180deg);" />
</div>
</div>
<div class="q-mt-md" v-if="showPay != ''">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment