|
|
@@ -1,8 +1,6 @@
|
|
|
<template>
|
|
|
<view class="container">
|
|
|
- <button class="order" @click="toOrder()" v-show="showOrder">
|
|
|
- 订单查询
|
|
|
- </button>
|
|
|
+ <button class="order" @click="toOrder()">订单查询</button>
|
|
|
<view
|
|
|
class="mark"
|
|
|
v-show="showSearch || showLeaveMess"
|
|
|
@@ -96,9 +94,7 @@
|
|
|
placeholder-style="color:rgba(0, 0, 0, 0.29);"
|
|
|
/>
|
|
|
</view>
|
|
|
- <view class="remark">
|
|
|
- 备注:新生输入身份证号码代替学号,老生输入学号
|
|
|
- </view>
|
|
|
+ <view class="remark"> 备注:新生输入身份证号代替学号,老生输入学号 </view>
|
|
|
<view class="confirm">
|
|
|
<button hover-class="button-hover" @click="close1">取消</button>
|
|
|
<button hover-class="button-hover" @click="searchDetailMess">
|
|
|
@@ -149,7 +145,6 @@ export default {
|
|
|
return {
|
|
|
showLeaveMess: false,
|
|
|
showSearch: false,
|
|
|
- showOrder: false,
|
|
|
studentName: "",
|
|
|
studentNo: "",
|
|
|
SeaStudentNo: "",
|
|
|
@@ -161,6 +156,7 @@ export default {
|
|
|
Arr: [],
|
|
|
payStatu1: true,
|
|
|
payStatu2: false,
|
|
|
+ // homeUrl: "http://3mb8i8.natappfree.cc ",
|
|
|
homeUrl: "https://jtishfw.ncjti.edu.cn/jiaofei/backendApi",
|
|
|
notifyUrl:
|
|
|
"https://jtishfw.ncjti.edu.cn/jiaofei/backendApi/pay/jxnxs/notify/",
|
|
|
@@ -182,7 +178,7 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
- this.loginFilter(); //获取用户cardNumber
|
|
|
+ this.getDetailMess(); //获取用户详细信息
|
|
|
},
|
|
|
methods: {
|
|
|
toSearch() {
|
|
|
@@ -203,32 +199,32 @@ export default {
|
|
|
this.showSearch = false;
|
|
|
},
|
|
|
|
|
|
- //获取cardNumber
|
|
|
- loginFilter() {
|
|
|
- let cardNumber = sessionStorage.getItem("cardNumber");
|
|
|
-
|
|
|
- if (!cardNumber) {
|
|
|
- let cardNumber = this.getQueryString("cardNumber");
|
|
|
- let error = this.getQueryString("error");
|
|
|
- let errorMsg = this.getQueryString("errorMsg");
|
|
|
- let homeWeb = `https://open.wecard.qq.com/connect/oauth/authorize?app_key=2DDC9DBF32F28845&response_type=code&scope=snsapi_userinfo&ocode=1015730314&redirect_uri=${this.homeUrl}/wechat/weixiao/auth/&connect=curLogin&state=${this.homeUrl}/wechat/weixiao/auth/`;
|
|
|
- if (error) {
|
|
|
- uni.showToast({
|
|
|
- title: errorMsg,
|
|
|
- icon: "error",
|
|
|
- mask: true,
|
|
|
- duration: 1000,
|
|
|
- });
|
|
|
- } else if (!cardNumber) {
|
|
|
- window.location.href = homeWeb;
|
|
|
- } else {
|
|
|
- sessionStorage.setItem("cardNumber", cardNumber);
|
|
|
- this.getDetailMess();
|
|
|
- }
|
|
|
- } else {
|
|
|
- this.getDetailMess();
|
|
|
- }
|
|
|
- },
|
|
|
+ // //获取cardNumber
|
|
|
+ // loginFilter() {
|
|
|
+ // let cardNumber = sessionStorage.getItem("cardNumber");
|
|
|
+
|
|
|
+ // if (!cardNumber) {
|
|
|
+ // let cardNumber = this.getQueryString("cardNumber");
|
|
|
+ // let error = this.getQueryString("error");
|
|
|
+ // let errorMsg = this.getQueryString("errorMsg");
|
|
|
+ // let homeWeb = `https://open.wecard.qq.com/connect/oauth/authorize?app_key=2DDC9DBF32F28845&response_type=code&scope=snsapi_userinfo&ocode=1015730314&redirect_uri=${this.homeUrl}/wechat/weixiao/auth/&connect=curLogin&state=${this.homeUrl}/wechat/weixiao/auth/`;
|
|
|
+ // if (error) {
|
|
|
+ // uni.showToast({
|
|
|
+ // title: errorMsg,
|
|
|
+ // icon: "error",
|
|
|
+ // mask: true,
|
|
|
+ // duration: 1000,
|
|
|
+ // });
|
|
|
+ // } else if (!cardNumber) {
|
|
|
+ // window.location.href = homeWeb;
|
|
|
+ // } else {
|
|
|
+ // sessionStorage.setItem("cardNumber", cardNumber);
|
|
|
+ // this.getDetailMess();
|
|
|
+ // }
|
|
|
+ // } else {
|
|
|
+ // this.getDetailMess();
|
|
|
+ // }
|
|
|
+ // },
|
|
|
|
|
|
//换取详情信息
|
|
|
getDetailMess() {
|
|
|
@@ -255,28 +251,22 @@ export default {
|
|
|
method: "GET",
|
|
|
sslVerify: true,
|
|
|
success: ({ data, statusCode, header }) => {
|
|
|
- if (data.data === null) {
|
|
|
- uni.redirectTo({ url: "/pages/parentPay/parentPay" });
|
|
|
+ let res = data.data;
|
|
|
+ that.studentName = res.studentName;
|
|
|
+ that.studentNo = res.studentNo;
|
|
|
+ that.majorName = res.majorName;
|
|
|
+ that.className = res.className;
|
|
|
+ that.years = res.years;
|
|
|
+ that.realPayAmount = res.realPayAmount;
|
|
|
+ that.getPayDetail(res.payItemDetail);
|
|
|
+ if (res.pay) {
|
|
|
+ that.payStatu1 = false;
|
|
|
+ that.payStatu2 = true;
|
|
|
} else {
|
|
|
- let res = data.data;
|
|
|
- that.studentName = res.studentName;
|
|
|
- that.studentNo = res.studentNo;
|
|
|
- that.majorName = res.majorName;
|
|
|
- that.className = res.className;
|
|
|
- that.years = res.years;
|
|
|
- that.realPayAmount = res.realPayAmount;
|
|
|
-
|
|
|
- that.getPayDetail(res.payItemDetail);
|
|
|
- if (res.pay) {
|
|
|
- that.payStatu1 = false;
|
|
|
- that.payStatu2 = true;
|
|
|
- that.showOrder = true;
|
|
|
- } else {
|
|
|
- that.payStatu1 = true;
|
|
|
- that.payStatu2 = false;
|
|
|
- }
|
|
|
- that.getOpenId();
|
|
|
+ that.payStatu1 = true;
|
|
|
+ that.payStatu2 = false;
|
|
|
}
|
|
|
+ that.getOpenId();
|
|
|
},
|
|
|
fail: (error) => {},
|
|
|
});
|
|
|
@@ -619,7 +609,7 @@ export default {
|
|
|
success: ({ data, statusCode, header }) => {
|
|
|
if (data.success) {
|
|
|
uni.showToast({
|
|
|
- title: data.message,
|
|
|
+ title: "提交成功,静待处理",
|
|
|
icon: "success",
|
|
|
mask: true,
|
|
|
duration: 1000,
|
|
|
@@ -643,7 +633,7 @@ export default {
|
|
|
|
|
|
//跳转订单页面
|
|
|
toOrder() {
|
|
|
- uni.redirectTo({ url: "/pages/order/order" });
|
|
|
+ uni.navigateTo({ url: "/pages/order/order" });
|
|
|
},
|
|
|
},
|
|
|
};
|