diff --git a/index/passCar.js b/index/passCar.js index ef2a825..5ac3622 100644 --- a/index/passCar.js +++ b/index/passCar.js @@ -199,7 +199,7 @@ Page({ nonceStr: data.nonceStr, package: data.package, signType: data.signType ? data.signType : "MD5", - paySign: res.data.paySign, + paySign: data.paySign, success: res => { wx.showLoading({ title: '订单正在处理中...', @@ -239,9 +239,10 @@ Page({ } }).then(res => { console.log(res, 'res'); - const data = res.data + const data = res.data.data this.callPay(data) }).catch(err => { + console.log(err, 'err'); wx.showToast({ title: err.message, icon: 'none', diff --git a/index/passCar.wxss b/index/passCar.wxss index 8fbc8ee..6af68fd 100644 --- a/index/passCar.wxss +++ b/index/passCar.wxss @@ -7,10 +7,12 @@ page { .container { padding-bottom: 60rpx; } -.cs{ + +.cs { height: 30rpx; background-color: aqua } + .con text { display: block; text-align: center; @@ -70,7 +72,8 @@ page { color: transparent; } -.carLocation, .locationNumber { +.carLocation, +.locationNumber { display: inline-block; height: 40rpx; color: #999; @@ -106,7 +109,7 @@ page { font-size: 26rpx; } -.titleName .fr { +.titleName .fr { color: #999; font-size: 27rpx; } @@ -131,7 +134,8 @@ page { width: 690rpx; /* box-shadow: 0 4rpx 20rpx 0 rgba(153, 153, 153, 0.35); */ border-radius: 12rpx; - /* background: #02c0ff; *//* padding-bottom: 40rpx; */ + /* background: #02c0ff; */ + /* padding-bottom: 40rpx; */ } .myCar { @@ -358,7 +362,8 @@ page { justify-content: space-between;; } -.textV1, .textV2 { +.textV1, +.textV2 { height: 58rpx; width: 100rpx; padding-top: 26rpx; @@ -422,7 +427,7 @@ page { position: absolute; z-index: 100; text-align: center; - bottom: -570rpx; + bottom: -676rpx; left: 100rpx; } @@ -485,7 +490,7 @@ page { height: 44rpx; } -.carmanage image { +.carmanage image { width: 40rpx; vertical-align: middle; } @@ -747,7 +752,8 @@ button::after { background: #fff; /* padding: 30rpx 0 0; */ margin: 0 auto 40rpx; - /* border-radius: 16rpx; *//* border-top: 8rpx solid #02b7ff; */ + /* border-radius: 16rpx; */ + /* border-top: 8rpx solid #02b7ff; */ box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.10); } @@ -893,4 +899,4 @@ button::after { .swiper-box .wx-swiper-dot-active::before { background: #f6792b; -} +} \ No newline at end of file