|
@@ -7,7 +7,7 @@
|
|
<view>
|
|
<view>
|
|
<view class="nickname">{{nickname}}</view>
|
|
<view class="nickname">{{nickname}}</view>
|
|
<view>
|
|
<view>
|
|
- <text v-show="user_type===1" class="wddz">网店店主</text>
|
|
|
|
|
|
+ <text v-show="user_type===3" class="wddz">网店店主</text>
|
|
<text v-show="user_type===2" class="zgcj">直供厂家</text>
|
|
<text v-show="user_type===2" class="zgcj">直供厂家</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -113,12 +113,12 @@
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
balance: '',
|
|
balance: '',
|
|
- deposit: '',
|
|
|
|
- user_type: 1,
|
|
|
|
|
|
+ deposit: ''
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: mapState({
|
|
computed: mapState({
|
|
- nickname: state => state.user.nickname
|
|
|
|
|
|
+ nickname: state => state.user.nickname,
|
|
|
|
+ user_type: state => state.user.group_id
|
|
}),
|
|
}),
|
|
onNavigationBarButtonTap(e) {
|
|
onNavigationBarButtonTap(e) {
|
|
// console.log(e)
|
|
// console.log(e)
|