Browse Source

8.21最终版 线上缴费v1.0.0

4 years ago
parent
commit
e43459a46f
3 changed files with 4 additions and 93 deletions
  1. 1 1
      pages/Pay/pay.vue
  2. 1 89
      pages/order/order.vue
  3. 2 3
      pages/parentPay/parentPay.vue

+ 1 - 1
pages/Pay/pay.vue

@@ -182,7 +182,7 @@ export default {
     };
     };
   },
   },
   onLoad(options) {
   onLoad(options) {
-    // this.loginFilter(); //获取用户cardNumber
+    this.loginFilter(); //获取用户cardNumber
   },
   },
   methods: {
   methods: {
     toSearch() {
     toSearch() {

+ 1 - 89
pages/order/order.vue

@@ -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>姓&#12288;名 :</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" });

+ 2 - 3
pages/parentPay/parentPay.vue

@@ -163,8 +163,7 @@ export default {
       feedbackPersonName: "",
       feedbackPersonName: "",
       feedbackPersonPhone: "",
       feedbackPersonPhone: "",
       feedbackInfo: "",
       feedbackInfo: "",
-      // homeUrl: "https://jtishfw.ncjti.edu.cn/jiaofei/backendApi",
-      homeUrl: "http://192.168.161.230:9999",
+      homeUrl: "https://jtishfw.ncjti.edu.cn/jiaofei/backendApi",
       notifyUrl:
       notifyUrl:
         "https://jtishfw.ncjti.edu.cn/jiaofei/backendApi/pay/jxnxs/notify/",
         "https://jtishfw.ncjti.edu.cn/jiaofei/backendApi/pay/jxnxs/notify/",
       openId: "",
       openId: "",
@@ -180,7 +179,7 @@ export default {
     };
     };
   },
   },
   onLoad(options) {
   onLoad(options) {
-    // this.getOpenId();
+    this.getOpenId();
   },
   },
   methods: {
   methods: {
     toLeaveMess() {
     toLeaveMess() {