|
@@ -62,7 +62,8 @@
|
|
|
methods: {
|
|
|
// 设置时间
|
|
|
setDate(data) {
|
|
|
- this.entrustForm.entrustStartTime = data.year + '-' + data.month + '-' + data.day + ' ' + data.hour + ':' + data.minute + ':' + data.second
|
|
|
+ this.entrustForm.entrustStartTime = data.year + '-' + data.month + '-' + data.day + ' ' + data.hour + ':' + data.minute +
|
|
|
+ ':' + data.second
|
|
|
},
|
|
|
// 支付
|
|
|
toPay() {
|
|
@@ -71,8 +72,19 @@
|
|
|
mid: this.userData.userId,
|
|
|
nickname: this.userData.userName,
|
|
|
// 数据
|
|
|
- ...this.entrustForm
|
|
|
- }, 'POST').then(res => {}).catch(error => {
|
|
|
+ ...this.entrustForm,
|
|
|
+ entrustDurationTime: JSON.stringify(this.entrustForm.entrustDurationTime)
|
|
|
+ }, 'POST').then(res => {
|
|
|
+ this.$refs.uTips.show({
|
|
|
+ title: '支付成功',
|
|
|
+ type: 'success',
|
|
|
+ })
|
|
|
+ setTimeout(() => {
|
|
|
+ uni.reLaunch({
|
|
|
+ url: '/pagesMain/paySuccess'
|
|
|
+ });
|
|
|
+ }, 1000)
|
|
|
+ }).catch(error => {
|
|
|
this.$refs.uTips.show({
|
|
|
title: '支付失败',
|
|
|
type: 'warning',
|