Authored by 张文文

Merge branch 'develop' of http://git.yoho.cn/fe/xianyu-ufo-app-web into develop

@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 <div v-if="validStatus === 1"> 3 <div v-if="validStatus === 1">
4 <div class="account"> 4 <div class="account">
5 <p class="account-tip">支付宝账号</p> 5 <p class="account-tip">支付宝账号</p>
6 - <p class="account-name">{{alipayAccount}}</p> 6 + <p class="account-name">{{alipayAccount?alipayAccount:nickName}}</p>
7 </div> 7 </div>
8 <p class="tip"><i class="cubeic-warn"></i><span>已绑定的支付宝账号暂无法提供系统换绑和解除,如 8 <p class="tip"><i class="cubeic-warn"></i><span>已绑定的支付宝账号暂无法提供系统换绑和解除,如
9 需要帮助可致电<a class="phone" href="tel:400-8890-9646"> 400-8890-9646 </a>联系电话客服</span></p> 9 需要帮助可致电<a class="phone" href="tel:400-8890-9646"> 400-8890-9646 </a>联系电话客服</span></p>
@@ -26,7 +26,7 @@ export default { @@ -26,7 +26,7 @@ export default {
26 this.fetchUserAliPayAccount() 26 this.fetchUserAliPayAccount()
27 }, 27 },
28 computed: { 28 computed: {
29 - ...mapState(['alipayAccount','certName', 'validStatus']) 29 + ...mapState(['alipayAccount','certName', 'validStatus','nickName'])
30 }, 30 },
31 methods: { 31 methods: {
32 ...mapActions(['fetchUserAliPayAccount']), 32 ...mapActions(['fetchUserAliPayAccount']),
@@ -5,6 +5,7 @@ export default function() { @@ -5,6 +5,7 @@ export default function() {
5 state: { 5 state: {
6 alipayAccount: '', 6 alipayAccount: '',
7 certName: '', 7 certName: '',
  8 + nickName: '',
8 validStatus: 0 9 validStatus: 0
9 }, 10 },
10 mutations: { 11 mutations: {
@@ -12,10 +13,12 @@ export default function() { @@ -12,10 +13,12 @@ export default function() {
12 let { 13 let {
13 alipayAccount, 14 alipayAccount,
14 certName, 15 certName,
  16 + nickName,
15 validStatus 17 validStatus
16 } = data; 18 } = data;
17 19
18 state.alipayAccount = maskAccount(alipayAccount); 20 state.alipayAccount = maskAccount(alipayAccount);
  21 + state.nickName = nickName || '';
19 state.certName = certName; 22 state.certName = certName;
20 state.validStatus = validStatus; 23 state.validStatus = validStatus;
21 } 24 }