kevin_zhangl пре 2 година
родитељ
комит
5b60c1c7ef
3 измењених фајлова са 9 додато и 3 уклоњено
  1. 1 1
      .env.development
  2. 4 1
      src/views/user/member-upgrade.vue
  3. 4 1
      src/views/user/welcome-pack.vue

+ 1 - 1
.env.development

@@ -3,7 +3,7 @@ ENV='development'
 
 # base api
 VUE_APP_BASE_API=''
-VUE_APP_BASE_DO_API=''
+VUE_APP_BASE_DO_API='http://local.ng.frontend.api.com'
 VUE_APP_CDN_API='http://16.163.228.151:8041'
 VUE_APP_BASE_WEBSITE='http://local.ng.frontend.ele.com'
 VUE_APP_BASE_PAY_STACK_PUBLIC_KEY='pk_test_2eed10135c4a958c5073795b22854ded9d1a6c55'

+ 4 - 1
src/views/user/member-upgrade.vue

@@ -560,7 +560,10 @@ export default {
 			// 余额是否充足
 			if ((this.form.payType === 'cash') && ((amountBalance - this.payAmount) < 0)) {
 				// 账户类型提示信息
-				let accountType = this.currency[this.form.payType].name || ''
+				let account = this.payList.filter(item => {
+					return this.form.payType === item.label;
+				})
+				let accountType = account[0] && account[0].name || ''
 				this.$message({
 					message: accountType + this.$t('shop.balanceNotAllow'),
 					type: 'error'

+ 4 - 1
src/views/user/welcome-pack.vue

@@ -622,7 +622,10 @@ export default {
 			// 余额是否充足
 			if ((this.form.payType === 'cash') && ((amountBalance - this.payAmount) < 0)) {
 				// 账户类型提示信息
-				let accountType = this.currency[this.form.payType].name || ''
+				let account = this.payList.filter(item => {
+					return this.form.payType === item.label;
+				})
+				let accountType = account[0] && account[0].name || ''
 				this.$message({
 					message: accountType + this.$t('shop.balanceNotAllow'),
 					type: 'error'