|
@@ -144,9 +144,36 @@ export default {
|
|
|
let result = res.data
|
|
|
this.$toast.clear()
|
|
|
this.isClick = false
|
|
|
+ console.log(result)
|
|
|
if(result.code == 200) {
|
|
|
this.result = result.data
|
|
|
this.onSubmit()
|
|
|
+ } else if(result.code == 100) {
|
|
|
+ this.$dialog.confirm({
|
|
|
+ // title: '提示',
|
|
|
+ message: result.data,
|
|
|
+ confirmButtonColor: '#269a93',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ confirmButtonText: '继续付款'
|
|
|
+ }).then(() => {
|
|
|
+ this.$toast.loading({
|
|
|
+ duration: 0,
|
|
|
+ message: '加载中...',
|
|
|
+ forbidClick: true,
|
|
|
+ loadingType: 'spinner'
|
|
|
+ })
|
|
|
+ // 继续支付
|
|
|
+ createOrder({ activitiesId: item.id, isContinuePay: true }).then(res => {
|
|
|
+ let result = res.data
|
|
|
+ this.$toast.clear()
|
|
|
+ if(result.code == 200) {
|
|
|
+ this.result = result.data
|
|
|
+ this.onSubmit()
|
|
|
+ } else {
|
|
|
+ this.$toast(result.msg)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
} else {
|
|
|
this.$toast(result.msg)
|
|
|
}
|