Blame view

src/views/parkPay/coupon.vue 2.11 KB
6e9a3492   刘淇   江阴支付
1
  <template>
eae77c58   刘淇   江阴领取优惠券
2
3
4
5
6
7
8
    <div>
      <img :src="successiconUrl" alt="" style="margin: 10px auto;width: 64px;height: 64px;">
      <div style="padding: 10px 30px 50px">
        <p>尊敬的车主您好:</p>
        <p>尊敬的车主您好:</p>
        <p>尊敬的车主您好:</p>
      </div>
6e9a3492   刘淇   江阴支付
9
10
11
12
13
      <div style="padding: 0 20px">
        <mt-button size="large" type="primary" @click="toPay" style="margin-bottom: 20px;">去支付</mt-button>
        <mt-button size="large" type="danger" @click="toBackPage">返回</mt-button>
      </div>
  
eae77c58   刘淇   江阴领取优惠券
14
    </div>
6e9a3492   刘淇   江阴支付
15
16
17
  </template>
  
  <script>
eae77c58   刘淇   江阴领取优惠券
18
19
20
21
  
  
  import { scanCouponQR } from '@/api/couponPay/couponPay.js'
  
6e9a3492   刘淇   江阴支付
22
23
  export default {
    name: "coupon",
eae77c58   刘淇   江阴领取优惠券
24
25
26
27
28
29
    data() {
      return {
        successiconUrl: require('../../assets/images/successIcon.png'),
        loseiconUrl: require('../../assets/images/loseIcon.png'),
        carNum: '苏BB210V',
        carNumberColor: ''
6e9a3492   刘淇   江阴支付
30
31
      }
    },
eae77c58   刘淇   江阴领取优惠券
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
    created() {
  
      // this.carNum = this.$route.query.carNumber  // 获取车牌号
      // this.carNumberColor = this.$route.query.carNumberColor  // 获取颜色   0:蓝牌;1:黄牌;2:白牌;3:黑牌;4:绿色
      // this.currentTabActive = this.$route.query.parkFlag ? this.$route.query.parkFlag : 0
      // console.log(this.currentTabActive)
      // console.log(this.carNumber)
      this.scanCouponQR()
    },
    methods: {
      scanCouponQR(){
        var salt = this.$utils.myCommonSalt(32);
        var jsondata = {
          app_id: this.$utils.myVarAppid,
          deviceInfo: this.$utils.myDeviceInfo,
          salt: salt,
          sign_type: "md5",
          carType:'02',
          codeType:'2',
          cardRelParkNo:'123qwe',
          key:'1',
          carNum: this.carNum,
          // carNumberColor: this.carNumberColor,
          orgId: this.$utils.myOrgId,
          terminalSource:'7',
          // token:'e2c1e43722dd43a5b7e268001b39e6f0'
        }
        jsondata.sign = this.$utils.signObject(jsondata)
        console.log(jsondata)
        scanCouponQR(jsondata).then(response => {
          console.log(response)
        })
      },
      toPay() {
6e9a3492   刘淇   江阴支付
66
        this.$router.push({
eae77c58   刘淇   江阴领取优惠券
67
          path: 'couponPay'
6e9a3492   刘淇   江阴支付
68
69
        })
      },
eae77c58   刘淇   江阴领取优惠券
70
      toBackPage() {
6e9a3492   刘淇   江阴支付
71
72
73
74
75
76
77
78
79
        this.$router.back()
      }
    }
  };
  </script>
  
  <style scoped>
  
  </style>