|
|
@ -36,17 +36,6 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="content"> |
|
|
|
<view class="content"> |
|
|
|
<view class="pay-list"> |
|
|
|
<view class="pay-list"> |
|
|
|
<!-- <view class="row" @tap="paytype='alipay'"> |
|
|
|
|
|
|
|
<view class="left"> |
|
|
|
|
|
|
|
<image src="/static/img/alipay.png"></image> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="center"> |
|
|
|
|
|
|
|
支付宝支付 |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="right"> |
|
|
|
|
|
|
|
<radio :checked="paytype=='alipay'" color="#0083f5" /> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
</view> --> |
|
|
|
|
|
|
|
<view class="row" @tap="paytype='wxpay'"> |
|
|
|
<view class="row" @tap="paytype='wxpay'"> |
|
|
|
<view class="left"> |
|
|
|
<view class="left"> |
|
|
|
<image :src="imagewxUrl+imgadres"></image> |
|
|
|
<image :src="imagewxUrl+imgadres"></image> |
|
|
@ -85,11 +74,11 @@ |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
inputAmount: '', //金额 |
|
|
|
inputAmount: '', //金额 |
|
|
|
amountList: [10, 50, 100], //预设3个可选快捷金额 |
|
|
|
amountList: [100, 200, 300, 500, 800, 1000], //预设3个可选快捷金额 |
|
|
|
paytype: 'wxpay', //支付类型 |
|
|
|
paytype: 'wxpay', //支付类型 |
|
|
|
user: "", |
|
|
|
user: "", |
|
|
|
imagewxUrl: app.globalData.imageWxImg, |
|
|
|
imagewxUrl: app.globalData.imageWxImg, |
|
|
|
imgadres:'wxpay.png' |
|
|
|
imgadres: 'wxpay.png' |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
onLoad() { |
|
|
|
onLoad() { |
|
|
@ -126,7 +115,7 @@ |
|
|
|
title: '正在提交订单...' |
|
|
|
title: '正在提交订单...' |
|
|
|
}) |
|
|
|
}) |
|
|
|
let goods = { |
|
|
|
let goods = { |
|
|
|
"identificationCode":app.globalData.identificationCode, |
|
|
|
"identificationCode": app.globalData.identificationCode, |
|
|
|
"highChildOrderList": [{ |
|
|
|
"highChildOrderList": [{ |
|
|
|
"goodsType": 2, |
|
|
|
"goodsType": 2, |
|
|
|
"goodsId": app.globalData.userInfo.id, |
|
|
|
"goodsId": app.globalData.userInfo.id, |
|
|
@ -214,10 +203,10 @@ |
|
|
|
jweixin.chooseWXPay({ |
|
|
|
jweixin.chooseWXPay({ |
|
|
|
appId: self.return_data.appId, |
|
|
|
appId: self.return_data.appId, |
|
|
|
timestamp: self.return_data |
|
|
|
timestamp: self.return_data |
|
|
|
.timeStamp, // 支付签名时间戳,注意微信jssdk中的所有使用timestamp字段均为小写。但最新版的支付后台生成签名使用的timeStamp字段名需大写其中的S字符 |
|
|
|
.timeStamp, // 支付签名时间戳,注意微信jssdk中的所有使用timestamp字段均为小写。但最新版的支付后台生成签名使用的timeStamp字段名需大写其中的S字符 |
|
|
|
nonceStr: self.return_data.nonceStr, // 支付签名随机串,不长于 32 位 |
|
|
|
nonceStr: self.return_data.nonceStr, // 支付签名随机串,不长于 32 位 |
|
|
|
package: self.return_data |
|
|
|
package: self.return_data |
|
|
|
.package, // 统一支付接口返回的prepay_id参数值,提交格式如:prepay_id=***) |
|
|
|
.package, // 统一支付接口返回的prepay_id参数值,提交格式如:prepay_id=***) |
|
|
|
signType: 'MD5', // 签名方式,默认为'SHA1',使用新版支付需传入'MD5' |
|
|
|
signType: 'MD5', // 签名方式,默认为'SHA1',使用新版支付需传入'MD5' |
|
|
|
paySign: self.return_data.sign, // 支付签名 |
|
|
|
paySign: self.return_data.sign, // 支付签名 |
|
|
|
success: function(res) { |
|
|
|
success: function(res) { |
|
|
@ -271,19 +260,22 @@ |
|
|
|
width: 100%; |
|
|
|
width: 100%; |
|
|
|
|
|
|
|
|
|
|
|
.list { |
|
|
|
.list { |
|
|
|
display: flex; |
|
|
|
display: flow-root; |
|
|
|
justify-content: space-between; |
|
|
|
justify-content: space-between; |
|
|
|
padding: 20upx 0; |
|
|
|
padding: 20upx 0; |
|
|
|
|
|
|
|
|
|
|
|
.box { |
|
|
|
.box { |
|
|
|
width: 30%; |
|
|
|
width: 30%; |
|
|
|
height: 120upx; |
|
|
|
height: 120rpx; |
|
|
|
|
|
|
|
float: left; |
|
|
|
|
|
|
|
margin-left: 3.333%; |
|
|
|
|
|
|
|
margin-top: 20px; |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|
justify-content: center; |
|
|
|
justify-content: center; |
|
|
|
align-items: center; |
|
|
|
align-items: center; |
|
|
|
border-radius: 10upx; |
|
|
|
border-radius: 10rpx; |
|
|
|
box-shadow: 0upx 5upx 20upx rgba(0, 0, 0, 0.05); |
|
|
|
box-shadow: 0rpx 5rpx 20rpx rgba(0, 0, 0, 0.05); |
|
|
|
font-size: 36upx; |
|
|
|
font-size: 36rpx; |
|
|
|
background-color: #f1f1f1; |
|
|
|
background-color: #f1f1f1; |
|
|
|
color: 333; |
|
|
|
color: 333; |
|
|
|
|
|
|
|
|
|
|
@ -295,14 +287,14 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.num { |
|
|
|
.num { |
|
|
|
margin-top: 10upx; |
|
|
|
margin-top: 20upx; |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|
justify-content: flex-end; |
|
|
|
justify-content: flex-end; |
|
|
|
align-items: center; |
|
|
|
align-items: center; |
|
|
|
|
|
|
|
|
|
|
|
.text { |
|
|
|
.text { |
|
|
|
padding-right: 10upx; |
|
|
|
padding-right: 10upx; |
|
|
|
font-size: 30upx; |
|
|
|
font-size: 40upx; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.input { |
|
|
|
.input { |
|
|
@ -315,7 +307,7 @@ |
|
|
|
input { |
|
|
|
input { |
|
|
|
margin: 0 20upx; |
|
|
|
margin: 0 20upx; |
|
|
|
height: 60upx; |
|
|
|
height: 60upx; |
|
|
|
font-size: 30upx; |
|
|
|
font-size: 40upx; |
|
|
|
color: #0083f5; |
|
|
|
color: #0083f5; |
|
|
|
justify-content: flex-end; |
|
|
|
justify-content: flex-end; |
|
|
|
align-items: center; |
|
|
|
align-items: center; |
|
|
|