mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-21 18:06:52 +08:00
提交更改
This commit is contained in:
@@ -87,7 +87,7 @@ import Myheader from "~/components/header.vue";
|
||||
import tabs from "@/components/tabs.vue";
|
||||
import vueQr from 'vue-qr'
|
||||
|
||||
import { generateOrderAlipay, updateOrderWX } from "../../ajax/getData";
|
||||
import { generateOrderAlipay, updateOrderWX,repayOrde } from "../../ajax/getData";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -108,12 +108,26 @@ export default {
|
||||
dialogFail: false,
|
||||
userPayData: {},
|
||||
qrtext:'',
|
||||
userData:'',
|
||||
};
|
||||
},
|
||||
computed: {},
|
||||
mounted() {
|
||||
this.userPayData = JSON.parse(this.$route.query.userPayData);
|
||||
let stype=this.$route.query.stype;
|
||||
console.log(stype)
|
||||
|
||||
if(stype==1){
|
||||
this.userData = this.$route.query.userData;
|
||||
this.repayOrde(this.userData);
|
||||
this.userPayData = JSON.parse(this.$route.query.userPayData);
|
||||
console.log(this.userPayData);
|
||||
this.qrtext=this.userPayData.wxPay
|
||||
}else{
|
||||
this.userPayData = JSON.parse(this.$route.query.userPayData);
|
||||
}
|
||||
this.qrtext=this.userPayData.wxPay
|
||||
console.log(this.userData);
|
||||
|
||||
},
|
||||
methods: {
|
||||
closeDialogSuccess() {
|
||||
@@ -129,6 +143,14 @@ export default {
|
||||
// });
|
||||
},
|
||||
|
||||
async repayOrde(ordernumber) {
|
||||
let res = await repayOrde(ordernumber);
|
||||
console.log(ordernumber);
|
||||
if (res) {
|
||||
this.qrtext=res.data
|
||||
}
|
||||
},
|
||||
|
||||
async selectGoods(item, index) {
|
||||
this.activeIndex = index;
|
||||
this.paytype = item.paytype;
|
||||
|
||||
Reference in New Issue
Block a user