|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
<template>
|
|
|
<!--支付组件-->
|
|
<!--支付组件-->
|
|
|
<view>
|
|
<view>
|
|
|
- <uni-popup ref="popup" type="bottom" :catchtouchmove="true">
|
|
|
|
|
|
|
+ <uni-popup ref="popup" type="bottom" @maskClick="maskClick()" :catchtouchmove="true">
|
|
|
<view class=" payView">
|
|
<view class=" payView">
|
|
|
<view class="flex-row justify-between">
|
|
<view class="flex-row justify-between">
|
|
|
<text class="payType">请选择支付方式</text>
|
|
<text class="payType">请选择支付方式</text>
|
|
@@ -79,6 +79,7 @@
|
|
|
*
|
|
*
|
|
|
* function 回调函数
|
|
* function 回调函数
|
|
|
* 1,payResult(e),支付结果回调。
|
|
* 1,payResult(e),支付结果回调。
|
|
|
|
|
+ * 2,improperClose 点击遮罩层和关闭按钮x 关闭弹窗时的回调
|
|
|
*/
|
|
*/
|
|
|
export default {
|
|
export default {
|
|
|
name: "myPay",
|
|
name: "myPay",
|
|
@@ -136,6 +137,7 @@
|
|
|
methods: {
|
|
methods: {
|
|
|
closePayPopup() {
|
|
closePayPopup() {
|
|
|
this.$refs.popup.close()
|
|
this.$refs.popup.close()
|
|
|
|
|
+ this.$emit('improperClose')
|
|
|
},
|
|
},
|
|
|
openPopup() {
|
|
openPopup() {
|
|
|
this.password = ''
|
|
this.password = ''
|
|
@@ -147,6 +149,9 @@
|
|
|
}
|
|
}
|
|
|
this.curServiceTab = num
|
|
this.curServiceTab = num
|
|
|
},
|
|
},
|
|
|
|
|
+ maskClick(){
|
|
|
|
|
+ this.$emit('improperClose')
|
|
|
|
|
+ },
|
|
|
|
|
|
|
|
payment() {
|
|
payment() {
|
|
|
this.$refs.popup.close()
|
|
this.$refs.popup.close()
|