zhengjinyi 1 年間 前
コミット
b9f6b616e5
2 ファイル変更8 行追加3 行削除
  1. 1 0
      pages/login/login.vue
  2. 7 3
      pages/user/pay/card-comfirm-sub.vue

+ 1 - 0
pages/login/login.vue

@@ -233,6 +233,7 @@ export default {
 				uni.setStorageSync('token', data.data.token)
 				this.$store.commit('updateStatus', data.data)
 				this.login(data.data)
+				this.$api.switchTabTo('/pages/tabBar/user/user')
 			} else {
 				this.$util.msg(data.msg, 2000)
 			}

+ 7 - 3
pages/user/pay/card-comfirm-sub.vue

@@ -134,10 +134,14 @@ export default {
 				const loadText = this.subType === 1 ? '绑定中...' : '支付中...'
 				const successMsg = this.subType === 1 ? '绑定成功' : '支付成功'
 				const res = await this.PayService.orderPayQuickBindCode(this.codeParams, loadText)
-				this.$util.msg(successMsg, 2000, true, 'success')
-				setTimeout(() => {
+				if(this.subType === 1){
+					this.$util.msg(successMsg, 2000, true, 'success')
+					setTimeout(() => {
+						this.handleSuccessHref()
+					}, 2000)
+				}else{
 					this.handleSuccessHref()
-				}, 2000)
+				}
 			} catch (error) {
 				console.log(error)
 				this.$util.msg(error.msg, 2000)