|
|
@@ -9,6 +9,18 @@
|
|
|
<view class="nav-model" @click="navto('/pages/user/model/model?mtype=' + mtype+'&type=0')" v-if="mtype != 3">
|
|
|
生成我的名片
|
|
|
</view>
|
|
|
+ <view class="nav-model" @click="navto('/pages/user/model/modelrz?modelid='+userInfo.show_template_id)" v-if="mtype == 3 && hasLogin && userInfo.info_audit_status==-2">
|
|
|
+ 立即认证
|
|
|
+ </view>
|
|
|
+ <view class="nav-model" @click="navto('/pages/user/model/mymodellist')" v-if="mtype == 3 && hasLogin && userInfo.info_audit_status==1">
|
|
|
+ 查看我的名片
|
|
|
+ </view>
|
|
|
+ <view class="nav-model" v-if="mtype == 3 && hasLogin && userInfo.info_audit_status==0">
|
|
|
+ 资料审核中
|
|
|
+ </view>
|
|
|
+ <view class="nav-model" v-if="mtype == 3 && !hasLogin" @click="toLogin">
|
|
|
+ 生成我的名片
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view class="fxmp flex bottom" v-if="type==3">
|
|
|
<button class="share" type="default" open-type="share">
|
|
|
@@ -163,7 +175,7 @@
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState(['baseURL']),
|
|
|
- ...mapState('user', ['userInfo']),
|
|
|
+ ...mapState('user', ['userInfo','hasLogin']),
|
|
|
},
|
|
|
onShow() {
|
|
|
|
|
|
@@ -211,6 +223,10 @@
|
|
|
},
|
|
|
methods: {
|
|
|
...mapMutations('user', ['setUserInfo']),
|
|
|
+ toLogin() {
|
|
|
+ saveUrl();
|
|
|
+ interceptor();
|
|
|
+ },
|
|
|
// 模板预览
|
|
|
preview() {
|
|
|
if (!this.userInfo.uid) {
|