|  | @@ -22,7 +22,9 @@ export default defineComponent({
 | 
	
		
			
				|  |  |        users: {} as any,
 | 
	
		
			
				|  |  |        memberStatus: false,
 | 
	
		
			
				|  |  |        background: 'transparent',
 | 
	
		
			
				|  |  | -      color: '#fff'
 | 
	
		
			
				|  |  | +      color: '#fff',
 | 
	
		
			
				|  |  | +      showTips: false,
 | 
	
		
			
				|  |  | +      showMessage: ''
 | 
	
		
			
				|  |  |      };
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    computed: {
 | 
	
	
		
			
				|  | @@ -51,20 +53,24 @@ export default defineComponent({
 | 
	
		
			
				|  |  |          this.color = '#fff';
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |      });
 | 
	
		
			
				|  |  | -    try {
 | 
	
		
			
				|  |  | -      const userInfo = await request.get('/edu-app/student/member');
 | 
	
		
			
				|  |  | -      this.users = userInfo.data || {};
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -      const { data } = await request.post(`/edu-app/cityFeeSetting/member`);
 | 
	
		
			
				|  |  | -      this.selectMember = data;
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -      this.paymentOrderUnpaid();
 | 
	
		
			
				|  |  | -    } catch {
 | 
	
		
			
				|  |  | -      //
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  |      //
 | 
	
		
			
				|  |  | +    this.__init();
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    methods: {
 | 
	
		
			
				|  |  | +    async __init() {
 | 
	
		
			
				|  |  | +      try {
 | 
	
		
			
				|  |  | +        const userInfo = await request.get('/edu-app/student/member');
 | 
	
		
			
				|  |  | +        this.users = userInfo.data || {};
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        const { data } = await request.post(`/edu-app/cityFeeSetting/member`);
 | 
	
		
			
				|  |  | +        this.selectMember = data;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        this.paymentOrderUnpaid();
 | 
	
		
			
				|  |  | +      } catch {
 | 
	
		
			
				|  |  | +        //
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      // 查询未支付订单
 | 
	
		
			
				|  |  |      async paymentOrderUnpaid() {
 | 
	
		
			
				|  |  |        try {
 | 
	
	
		
			
				|  | @@ -130,7 +136,7 @@ export default defineComponent({
 | 
	
		
			
				|  |  |          ]; // 支付参数
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          // 创建订单
 | 
	
		
			
				|  |  | -        const { data } = await request.post(
 | 
	
		
			
				|  |  | +        const result = await request.post(
 | 
	
		
			
				|  |  |            '/edu-app/userPaymentOrder/executeOrder',
 | 
	
		
			
				|  |  |            {
 | 
	
		
			
				|  |  |              data: {
 | 
	
	
		
			
				|  | @@ -143,6 +149,13 @@ export default defineComponent({
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |          );
 | 
	
		
			
				|  |  | +        if (result.code === 5435) {
 | 
	
		
			
				|  |  | +          this.showTips = true;
 | 
	
		
			
				|  |  | +          this.showMessage = result.message;
 | 
	
		
			
				|  |  | +          return;
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        const data = result.data;
 | 
	
		
			
				|  |  |          const res = await request.get(
 | 
	
		
			
				|  |  |            '/edu-app/userPaymentOrder/detail/' + data.orderNo
 | 
	
		
			
				|  |  |          );
 | 
	
	
		
			
				|  | @@ -309,6 +322,25 @@ export default defineComponent({
 | 
	
		
			
				|  |  |            dialogMarginTop="env(safe-area-inset-top)"
 | 
	
		
			
				|  |  |            confirmButtonText="我知道了"
 | 
	
		
			
				|  |  |          />
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        <ODialog
 | 
	
		
			
				|  |  | +          v-model:show={this.showTips}
 | 
	
		
			
				|  |  | +          title="温馨提示"
 | 
	
		
			
				|  |  | +          message={this.showMessage}
 | 
	
		
			
				|  |  | +          messageAlign="center"
 | 
	
		
			
				|  |  | +          dialogMarginTop="env(safe-area-inset-top)"
 | 
	
		
			
				|  |  | +          confirmButtonText="刷新"
 | 
	
		
			
				|  |  | +          onConfirm={async () => {
 | 
	
		
			
				|  |  | +            // window.location.reload();
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            window.scrollTo({
 | 
	
		
			
				|  |  | +              top: 0,
 | 
	
		
			
				|  |  | +              behavior: 'smooth'
 | 
	
		
			
				|  |  | +            });
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            this.__init();
 | 
	
		
			
				|  |  | +          }}
 | 
	
		
			
				|  |  | +        />
 | 
	
		
			
				|  |  |        </div>
 | 
	
		
			
				|  |  |      );
 | 
	
		
			
				|  |  |    }
 |