|
|
@@ -47,7 +47,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="content2" v-if="showMess">
|
|
|
- <view class="mark" v-show="showSearch"></view>
|
|
|
+ <view class="mark" v-show="showLeaveMess" @click="toLeaveMess()"></view>
|
|
|
<view class="messageBg1"></view>
|
|
|
<view class="messageBg2"></view>
|
|
|
<view class="messageCard">
|
|
|
@@ -92,7 +92,50 @@
|
|
|
支付
|
|
|
</button>
|
|
|
<text class="okPay" v-if="payStatu2">已支付</text>
|
|
|
- <view class="bottom-a"></view>
|
|
|
+ <view class="bottom-a">
|
|
|
+ <navigator
|
|
|
+ url="#"
|
|
|
+ open-type="navigate"
|
|
|
+ hover-class="navigator-hover"
|
|
|
+ @click="toLeaveMess()"
|
|
|
+ >
|
|
|
+ 信息有误?点击反馈
|
|
|
+ </navigator>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="leaveMess" v-show="showLeaveMess">
|
|
|
+ <view class="top">
|
|
|
+ <text>信息反馈</text>
|
|
|
+ <view class="close" @click="toLeaveMess()">
|
|
|
+ <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>
|
|
|
@@ -105,6 +148,7 @@ export default {
|
|
|
content1: true,
|
|
|
showMess: false,
|
|
|
showSearch: false,
|
|
|
+ showLeaveMess: false,
|
|
|
studentName: "",
|
|
|
studentNo: "",
|
|
|
SeaStudentName: "",
|
|
|
@@ -116,7 +160,11 @@ export default {
|
|
|
Arr: [],
|
|
|
payStatu1: true,
|
|
|
payStatu2: false,
|
|
|
- homeUrl: "https://jtishfw.ncjti.edu.cn/jiaofei/backendApi",
|
|
|
+ feedbackPersonName: "",
|
|
|
+ feedbackPersonPhone: "",
|
|
|
+ feedbackInfo: "",
|
|
|
+ // homeUrl: "https://jtishfw.ncjti.edu.cn/jiaofei/backendApi",
|
|
|
+ homeUrl: "http://192.168.161.230:9999",
|
|
|
notifyUrl:
|
|
|
"https://jtishfw.ncjti.edu.cn/jiaofei/backendApi/pay/jxnxs/notify/",
|
|
|
openId: "",
|
|
|
@@ -132,9 +180,12 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
- this.getOpenId();
|
|
|
+ // this.getOpenId();
|
|
|
},
|
|
|
methods: {
|
|
|
+ toLeaveMess() {
|
|
|
+ this.showLeaveMess = !this.showLeaveMess;
|
|
|
+ },
|
|
|
toSearch() {
|
|
|
this.showSearch = !this.showSearch;
|
|
|
},
|
|
|
@@ -205,7 +256,7 @@ export default {
|
|
|
});
|
|
|
} else {
|
|
|
uni.showToast({
|
|
|
- title: "信息查询中",
|
|
|
+ title: "信息加载中",
|
|
|
icon: "loading",
|
|
|
mask: true,
|
|
|
duration: 500,
|
|
|
@@ -220,6 +271,8 @@ export default {
|
|
|
that.className = res.className;
|
|
|
that.realPayAmount = res.realPayAmount;
|
|
|
that.getPayDetail(res.payItemDetail);
|
|
|
+ that.SeaStudentNo = "";
|
|
|
+ that.SeaStudentName = "";
|
|
|
if (res.pay) {
|
|
|
that.payStatu1 = false;
|
|
|
that.payStatu2 = true;
|
|
|
@@ -453,6 +506,55 @@ export default {
|
|
|
}
|
|
|
return decodeURIComponent(matcher[1]); // 输出指定的参数值 中文也可以
|
|
|
},
|
|
|
+
|
|
|
+ //提交反馈信息
|
|
|
+ putMess() {
|
|
|
+ let that = this;
|
|
|
+
|
|
|
+ let cardNumber = sessionStorage.getItem("cardNumber");
|
|
|
+
|
|
|
+ let url = that.homeUrl + "/tuitionpayment/feedbackmsg/save";
|
|
|
+
|
|
|
+ uni.request({
|
|
|
+ url: url,
|
|
|
+ data: {
|
|
|
+ feedbackPersonName: that.feedbackPersonName,
|
|
|
+ feedbackPersonPhone: that.feedbackPersonPhone,
|
|
|
+ feedbackInfo: that.feedbackInfo,
|
|
|
+ },
|
|
|
+ header: {
|
|
|
+ card_number: cardNumber,
|
|
|
+ Accept: "application/json",
|
|
|
+ "Content-Type": "application/json",
|
|
|
+ "X-Requested-With": "XMLHttpRequest",
|
|
|
+ },
|
|
|
+ method: "POST",
|
|
|
+ sslVerify: true,
|
|
|
+ success: ({ data, statusCode, header }) => {
|
|
|
+ if (data.success) {
|
|
|
+ uni.showToast({
|
|
|
+ title: data.message,
|
|
|
+ icon: "success",
|
|
|
+ mask: true,
|
|
|
+ duration: 1000,
|
|
|
+ });
|
|
|
+ that.toLeaveMess();
|
|
|
+ that.feedbackPersonName = "";
|
|
|
+ that.feedbackPersonPhone = "";
|
|
|
+ that.feedbackInfo = "";
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: data.message,
|
|
|
+ icon: "error",
|
|
|
+ mask: true,
|
|
|
+ duration: 1000,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ fail: (error) => {},
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
//跳转订单页面
|
|
|
toOrder() {
|
|
|
uni.redirectTo({ url: "/pages/order/order" });
|