|
|
@@ -31,7 +31,7 @@
|
|
|
<span>编辑</span>
|
|
|
</div> -->
|
|
|
<div class="userInfo-content">
|
|
|
- <div class="userInfo-top" @click="$router.push('/setting')">
|
|
|
+ <div class="userInfo-top" @click="$router.push('/' + $route.params.companyId + '/setting')">
|
|
|
<van-image
|
|
|
radius="100"
|
|
|
width="84"
|
|
|
@@ -81,15 +81,15 @@
|
|
|
</div> -->
|
|
|
|
|
|
<div class="btns">
|
|
|
- <div class="collect" @click="$router.push('/store')">
|
|
|
+ <div class="collect" @click="$router.push('/' + $route.params.companyId + '/store')">
|
|
|
<div class="text1">{{ assetNum }}</div>
|
|
|
<div class="text2">藏品:</div>
|
|
|
</div>
|
|
|
- <div class="collect" @click="$router.push('/mineFollowers')">
|
|
|
+ <div class="collect" @click="$router.push('/' + $route.params.companyId + '/mineFollowers')">
|
|
|
<div class="text1">{{ userInfo.followers }}</div>
|
|
|
<div class="text2">粉丝:</div>
|
|
|
</div>
|
|
|
- <div class="collect" @click="$router.push('/mineFollows')">
|
|
|
+ <div class="collect" @click="$router.push('/' + $route.params.companyId + '/mineFollows')">
|
|
|
<div class="text1">{{ userInfo.follows }}</div>
|
|
|
<div class="text2">关注:</div>
|
|
|
</div>
|
|
|
@@ -98,7 +98,7 @@
|
|
|
</div>
|
|
|
<div class="userInfo" v-else>
|
|
|
<div class="userInfo-content">
|
|
|
- <div class="userInfo-top" @click="$router.push('/login')">
|
|
|
+ <div class="userInfo-top" @click="$router.push('/' + $route.params.companyId + '/login')">
|
|
|
<van-image
|
|
|
round
|
|
|
width="84"
|
|
|
@@ -115,11 +115,11 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="orderList">
|
|
|
- <div class="order-info" @click="$router.push('/orders?type=DEFAULT')">
|
|
|
+ <div class="order-info" @click="$router.push('/' + $route.params.companyId + '/orders?type=DEFAULT')">
|
|
|
<img src="@assets/info_icon_yishuping.png" alt="" />
|
|
|
<span>我的订单</span>
|
|
|
</div>
|
|
|
- <div class="order-info" @click="$router.push('/mineWallet')">
|
|
|
+ <div class="order-info" @click="$router.push('/' + $route.params.companyId + '/mineWallet')">
|
|
|
<img src="@assets/icon_qianbao.png" alt="" />
|
|
|
<span>我的钱包</span>
|
|
|
</div>
|
|
|
@@ -129,27 +129,37 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<van-cell-group class="menus" :border="false">
|
|
|
- <van-cell title="我喜欢的" :to="{ path: '/mineLikes' }" is-link>
|
|
|
+ <van-cell title="我喜欢的" :to="{ path: '/' + $route.params.companyId + '/mineLikes' }" is-link>
|
|
|
<template #icon>
|
|
|
<van-icon :name="require('@assets/icon-woxihuande.png')" class="search-icon" />
|
|
|
</template>
|
|
|
</van-cell>
|
|
|
- <van-cell title="交易历史" :to="{ path: '/mineExchange' }" v-if="!$store.state.review" is-link>
|
|
|
+ <van-cell
|
|
|
+ title="交易历史"
|
|
|
+ :to="{ path: '/' + $route.params.companyId + '/mineExchange' }"
|
|
|
+ v-if="!$store.state.review"
|
|
|
+ is-link
|
|
|
+ >
|
|
|
<template #icon>
|
|
|
<van-icon :name="require('@assets/info_icon_jiaoyijilu.png')" class="search-icon" />
|
|
|
</template>
|
|
|
</van-cell>
|
|
|
- <van-cell title="客服留言" :to="{ path: '/message' }" v-if="!$store.state.review" is-link>
|
|
|
+ <van-cell
|
|
|
+ title="客服留言"
|
|
|
+ :to="{ path: '/' + $route.params.companyId + '/message' }"
|
|
|
+ v-if="!$store.state.review"
|
|
|
+ is-link
|
|
|
+ >
|
|
|
<template #icon>
|
|
|
<van-icon :name="require('@assets/icon_kefuliuyan.png')" class="search-icon" />
|
|
|
</template>
|
|
|
</van-cell>
|
|
|
- <van-cell title="账号与安全" :to="{ path: '/security' }" is-link>
|
|
|
+ <van-cell title="账号与安全" :to="{ path: '/' + $route.params.companyId + '/security' }" is-link>
|
|
|
<template #icon>
|
|
|
<van-icon :name="require('@assets/icon-anquan.png')" class="search-icon" />
|
|
|
</template>
|
|
|
</van-cell>
|
|
|
- <van-cell title="关于我们" :border="false" :to="{ path: '/about' }" is-link>
|
|
|
+ <van-cell title="关于我们" :border="false" :to="{ path: '/' + $route.params.companyId + '/about' }" is-link>
|
|
|
<template #icon>
|
|
|
<van-icon :name="require('@assets/icon-guanyuwomen.png')" class="search-icon" />
|
|
|
</template>
|
|
|
@@ -181,7 +191,7 @@ export default {
|
|
|
},
|
|
|
components: { Level },
|
|
|
computed: {
|
|
|
- ...mapState(['userInfo'])
|
|
|
+ ...mapState(['userInfo', 'companyId'])
|
|
|
},
|
|
|
created() {
|
|
|
this.getInit();
|
|
|
@@ -197,7 +207,8 @@ export default {
|
|
|
page: 0,
|
|
|
size: 1,
|
|
|
userId: this.$store.state.userInfo.id,
|
|
|
- status: 'NORMAL,TRADING,GIFTING,MINTING'
|
|
|
+ status: 'NORMAL,TRADING,GIFTING,MINTING',
|
|
|
+ companyId: this.companyId
|
|
|
}
|
|
|
},
|
|
|
{ body: 'json' }
|
|
|
@@ -227,12 +238,12 @@ export default {
|
|
|
},
|
|
|
goAuth() {
|
|
|
if (this.authStatus === '认证中' || this.authStatus === '认证失败') {
|
|
|
- this.$router.push('/waiting');
|
|
|
+ this.$router.push('/' + this.$route.params.companyId + '/waiting');
|
|
|
} else if (this.authStatus === '未认证') {
|
|
|
if (this.faceAuth) {
|
|
|
- this.$router.push('/faceAuth');
|
|
|
+ this.$router.push('/' + this.$route.params.companyId + '/faceAuth');
|
|
|
} else {
|
|
|
- this.$router.push('/verified');
|
|
|
+ this.$router.push('/' + this.$route.params.companyId + '/verified');
|
|
|
}
|
|
|
}
|
|
|
},
|