HolyKnightIX 2 роки тому
джерело
коміт
4deb9d74cb
2 змінених файлів з 18 додано та 11 видалено
  1. +3
    -2
      index/passCar.js
  2. +15
    -9
      index/passCar.wxss

+ 3
- 2
index/passCar.js Переглянути файл

@@ -199,7 +199,7 @@ Page({
nonceStr: data.nonceStr, nonceStr: data.nonceStr,
package: data.package, package: data.package,
signType: data.signType ? data.signType : "MD5", signType: data.signType ? data.signType : "MD5",
paySign: res.data.paySign,
paySign: data.paySign,
success: res => { success: res => {
wx.showLoading({ wx.showLoading({
title: '订单正在处理中...', title: '订单正在处理中...',
@@ -239,9 +239,10 @@ Page({
} }
}).then(res => { }).then(res => {
console.log(res, 'res'); console.log(res, 'res');
const data = res.data
const data = res.data.data
this.callPay(data) this.callPay(data)
}).catch(err => { }).catch(err => {
console.log(err, 'err');
wx.showToast({ wx.showToast({
title: err.message, title: err.message,
icon: 'none', icon: 'none',


+ 15
- 9
index/passCar.wxss Переглянути файл

@@ -7,10 +7,12 @@ page {
.container { .container {
padding-bottom: 60rpx; padding-bottom: 60rpx;
} }
.cs{

.cs {
height: 30rpx; height: 30rpx;
background-color: aqua background-color: aqua
} }

.con text { .con text {
display: block; display: block;
text-align: center; text-align: center;
@@ -70,7 +72,8 @@ page {
color: transparent; color: transparent;
} }


.carLocation, .locationNumber {
.carLocation,
.locationNumber {
display: inline-block; display: inline-block;
height: 40rpx; height: 40rpx;
color: #999; color: #999;
@@ -106,7 +109,7 @@ page {
font-size: 26rpx; font-size: 26rpx;
} }


.titleName .fr {
.titleName .fr {
color: #999; color: #999;
font-size: 27rpx; font-size: 27rpx;
} }
@@ -131,7 +134,8 @@ page {
width: 690rpx; width: 690rpx;
/* box-shadow: 0 4rpx 20rpx 0 rgba(153, 153, 153, 0.35); */ /* box-shadow: 0 4rpx 20rpx 0 rgba(153, 153, 153, 0.35); */
border-radius: 12rpx; border-radius: 12rpx;
/* background: #02c0ff; *//* padding-bottom: 40rpx; */
/* background: #02c0ff; */
/* padding-bottom: 40rpx; */
} }


.myCar { .myCar {
@@ -358,7 +362,8 @@ page {
justify-content: space-between;; justify-content: space-between;;
} }


.textV1, .textV2 {
.textV1,
.textV2 {
height: 58rpx; height: 58rpx;
width: 100rpx; width: 100rpx;
padding-top: 26rpx; padding-top: 26rpx;
@@ -422,7 +427,7 @@ page {
position: absolute; position: absolute;
z-index: 100; z-index: 100;
text-align: center; text-align: center;
bottom: -570rpx;
bottom: -676rpx;
left: 100rpx; left: 100rpx;
} }


@@ -485,7 +490,7 @@ page {
height: 44rpx; height: 44rpx;
} }


.carmanage image {
.carmanage image {
width: 40rpx; width: 40rpx;
vertical-align: middle; vertical-align: middle;
} }
@@ -747,7 +752,8 @@ button::after {
background: #fff; background: #fff;
/* padding: 30rpx 0 0; */ /* padding: 30rpx 0 0; */
margin: 0 auto 40rpx; 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); 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 { .swiper-box .wx-swiper-dot-active::before {
background: #f6792b; background: #f6792b;
}
}

Завантаження…
Відмінити
Зберегти