|
@@ -1,10 +1,6 @@
|
|
|
<template>
|
|
<template>
|
|
|
<view class="container">
|
|
<view class="container">
|
|
|
- <view
|
|
|
|
|
- class="mark"
|
|
|
|
|
- v-show="showDetail || showLeaveMess"
|
|
|
|
|
- @click="markClose()"
|
|
|
|
|
- ></view>
|
|
|
|
|
|
|
+ <view class="mark" v-show="showDetail" @click="toShowDetail()"></view>
|
|
|
<view class="list">
|
|
<view class="list">
|
|
|
<template v-if="orderList.length !== 0">
|
|
<template v-if="orderList.length !== 0">
|
|
|
<view class="messCard" v-for="item in orderList">
|
|
<view class="messCard" v-for="item in orderList">
|
|
@@ -99,40 +95,6 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <!-- <view class="leaveMess" v-show="showLeaveMess">
|
|
|
|
|
- <view class="top">
|
|
|
|
|
- <text>信息反馈</text>
|
|
|
|
|
- <view class="close" @click="toShowLeaveMess()">
|
|
|
|
|
- <view class="image"></view>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="name">
|
|
|
|
|
- <text>姓 名 :</text>
|
|
|
|
|
- <input
|
|
|
|
|
- type="text"
|
|
|
|
|
- placeholder="请输入姓名"
|
|
|
|
|
- v-model="feedbackPersonName"
|
|
|
|
|
- placeholder-style="color: #B3B3B3;"
|
|
|
|
|
- />
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="tel">
|
|
|
|
|
- <text>联系人 :</text>
|
|
|
|
|
- <input
|
|
|
|
|
- type="text"
|
|
|
|
|
- placeholder="请输入联系人手机号码"
|
|
|
|
|
- v-model="feedbackPersonPhone"
|
|
|
|
|
- placeholder-style="color: #B3B3B3;"
|
|
|
|
|
- />
|
|
|
|
|
- </view>
|
|
|
|
|
- <text class="title">反馈信息 :</text>
|
|
|
|
|
- <textarea
|
|
|
|
|
- placeholder=""
|
|
|
|
|
- placeholder-class="textarea-placeholder"
|
|
|
|
|
- maxlength="512"
|
|
|
|
|
- v-model="feedbackInfo"
|
|
|
|
|
- />
|
|
|
|
|
- <button hover-class="button-hover" @click="putMess">提交</button>
|
|
|
|
|
- </view> -->
|
|
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -141,11 +103,7 @@ export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
showDetail: false, //订单详情弹窗
|
|
showDetail: false, //订单详情弹窗
|
|
|
- showLeaveMess: false, //订单反馈弹窗
|
|
|
|
|
paySuccess: true, //缴费成功隐藏按钮
|
|
paySuccess: true, //缴费成功隐藏按钮
|
|
|
- feedbackPersonName: "", //订单反馈联系人姓名
|
|
|
|
|
- feedbackInfo: "", //订单反馈留言
|
|
|
|
|
- feedbackPersonPhone: "", //订单反馈联系人电话
|
|
|
|
|
orderList: [],
|
|
orderList: [],
|
|
|
studentName: "",
|
|
studentName: "",
|
|
|
payForIdentify: "",
|
|
payForIdentify: "",
|
|
@@ -163,16 +121,9 @@ export default {
|
|
|
this.getOrderList();
|
|
this.getOrderList();
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- markClose() {
|
|
|
|
|
- this.showDetail = false;
|
|
|
|
|
- this.showLeaveMess = false;
|
|
|
|
|
- },
|
|
|
|
|
toShowDetail() {
|
|
toShowDetail() {
|
|
|
this.showDetail = !this.showDetail;
|
|
this.showDetail = !this.showDetail;
|
|
|
},
|
|
},
|
|
|
- toShowLeaveMess() {
|
|
|
|
|
- this.showLeaveMess = !this.showLeaveMess;
|
|
|
|
|
- },
|
|
|
|
|
searchDetail() {
|
|
searchDetail() {
|
|
|
this.detailMess();
|
|
this.detailMess();
|
|
|
this.showDetail = !this.showDetail;
|
|
this.showDetail = !this.showDetail;
|
|
@@ -235,45 +186,6 @@ export default {
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- //提交订单反馈
|
|
|
|
|
- putMess(orderNo) {
|
|
|
|
|
- let cardNumber = sessionStorage.getItem("cardNumber");
|
|
|
|
|
-
|
|
|
|
|
- let url = this.homeUrl + `/tuitionpayment/payorder/${orderNo}/orderStatu`;
|
|
|
|
|
-
|
|
|
|
|
- uni.request({
|
|
|
|
|
- url: url,
|
|
|
|
|
- data: {},
|
|
|
|
|
- header: {
|
|
|
|
|
- card_number: cardNumber,
|
|
|
|
|
- Accept: "application/json",
|
|
|
|
|
- "Content-Type": "application/json",
|
|
|
|
|
- "X-Requested-With": "XMLHttpRequest",
|
|
|
|
|
- },
|
|
|
|
|
- method: "GET",
|
|
|
|
|
- sslVerify: true,
|
|
|
|
|
- success: ({ data, statusCode, header }) => {
|
|
|
|
|
- let res = data.data;
|
|
|
|
|
- if (res.status == 2) {
|
|
|
|
|
- uni.showToast({
|
|
|
|
|
- title: "支付成功",
|
|
|
|
|
- icon: "error",
|
|
|
|
|
- mask: true,
|
|
|
|
|
- duration: 1000,
|
|
|
|
|
- });
|
|
|
|
|
- } else {
|
|
|
|
|
- uni.showToast({
|
|
|
|
|
- title: "支付失败",
|
|
|
|
|
- icon: "error",
|
|
|
|
|
- mask: true,
|
|
|
|
|
- duration: 1000,
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- fail: (error) => {},
|
|
|
|
|
- });
|
|
|
|
|
- },
|
|
|
|
|
-
|
|
|
|
|
//跳转支付页面
|
|
//跳转支付页面
|
|
|
toPay() {
|
|
toPay() {
|
|
|
uni.navigateTo({ url: "/pages/Pay/pay" });
|
|
uni.navigateTo({ url: "/pages/Pay/pay" });
|