|
|
|
@ -70,7 +70,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
<script setup name="money">
|
|
|
|
<script setup name="money">
|
|
|
|
import { payment, refreshStatus } from "@/api/order/payment";
|
|
|
|
import { payment, refreshStatus } from "@/api/order/payment";
|
|
|
|
import { listOrder } from "@/api/order/order";
|
|
|
|
import { currentUserListOrder } from "@/api/order/order";
|
|
|
|
import { getUserProfile } from "@/api/system/user";
|
|
|
|
import { getUserProfile } from "@/api/system/user";
|
|
|
|
|
|
|
|
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
|
@ -98,12 +98,6 @@ const data = reactive({
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
})
|
|
|
|
const { queryParams, form } = toRefs(data);
|
|
|
|
const { queryParams, form } = toRefs(data);
|
|
|
|
function getUser() {
|
|
|
|
|
|
|
|
getUserProfile().then(response => {
|
|
|
|
|
|
|
|
queryParams.value.userId = response.data.userId
|
|
|
|
|
|
|
|
getList()
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 发起支付
|
|
|
|
// 发起支付
|
|
|
|
function handlePayment() {
|
|
|
|
function handlePayment() {
|
|
|
|
@ -138,14 +132,14 @@ function cancel() {
|
|
|
|
function getList() {
|
|
|
|
function getList() {
|
|
|
|
loading.value = true;
|
|
|
|
loading.value = true;
|
|
|
|
queryParams.value.params = {};
|
|
|
|
queryParams.value.params = {};
|
|
|
|
listOrder(queryParams.value).then(response => {
|
|
|
|
currentUserListOrder(queryParams.value).then(response => {
|
|
|
|
orderList.value = response.rows;
|
|
|
|
orderList.value = response.rows;
|
|
|
|
total.value = response.total;
|
|
|
|
total.value = response.total;
|
|
|
|
loading.value = false;
|
|
|
|
loading.value = false;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
getUser()
|
|
|
|
getList()
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|