shish 2 years ago
parent
commit
d274fc9779
2 changed files with 8 additions and 4 deletions
  1. 6 2
      hdApp/src/admin/ghs/components/pay-input.vue
  2. 2 2
      hdApp/src/admin/ghs/pay.vue

+ 6 - 2
hdApp/src/admin/ghs/components/pay-input.vue

@@ -41,8 +41,12 @@ export default {
 		num(val) {
 			this.val = val
 		},
-		focus(val) {
-			this.keyShow = val
+		focus: {
+			deep: true,
+			handler: function(val) {
+				this.keyShow = val
+			},
+			immediate:true
 		}
 	},
 	methods: {

+ 2 - 2
hdApp/src/admin/ghs/pay.vue

@@ -139,6 +139,7 @@
 				})
 				
 				this.inpFocus = true
+				// #ifdef MP-WEIXIN
 				// 设置分享
 				let shareParams = {
 					title: `点击结账付款`,
@@ -146,10 +147,9 @@
 					imgUrl: '',
 					pagePath: `/admin/ghs/pay?id=${this.id}&salt=${this.salt}`
 				}
-				// #ifdef MP-WEIXIN
 				this.jweixinFn(shareParams)
-				// #endif
 				console.log(`/admin/ghs/pay?id=${this.id}&salt=${this.salt}`)
+				// #endif
 			},
 			toPay() {
 				if (!this.amount) {