|
@@ -12,30 +12,30 @@
|
|
|
<text class="clamp padding-r-20">
|
|
|
{{ user.nickname || '游客' }}
|
|
|
</text>
|
|
|
-
|
|
|
+
|
|
|
<view class="tipLevel flex-shrink-false">
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="flex-start flex">
|
|
|
<view class="authentication"
|
|
|
- @click="navTo('/pages/user/realName/realNameAuthentication')"
|
|
|
- v-if="!user.mobile"></view>
|
|
|
+ @click="navTo('/pages/user/realName/realNameAuthentication')" v-if="!user.mobile">
|
|
|
+ </view>
|
|
|
<view class="authentication" v-else>{{user.mobile}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="righ-tbox flex">
|
|
|
- <image class="right-tip" src="../../static/icon/ye.png" mode="scaleToFill"></image>
|
|
|
- <block>
|
|
|
+ <image class="right-tip" src="../../static/icon/tiptop.png" mode="scaleToFill"></image>
|
|
|
+ <block v-if="!user.work_type_title">
|
|
|
普通用户
|
|
|
</block>
|
|
|
+ <block v-else>
|
|
|
+ {{user.work_type_title}}
|
|
|
+ </block>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <navigator url="/pages/user/model/mymodel">
|
|
|
-
|
|
|
- <view class="nav-model flex">
|
|
|
- <image class="img" src="../../static/error/emptyList.png" mode="scaleToFill"></image>
|
|
|
+ <view class="nav-model flex" @click="navcard">
|
|
|
<view class="right-card">
|
|
|
<view class="title">
|
|
|
我的名片
|
|
@@ -44,50 +44,86 @@
|
|
|
认证成功即可获得母婴师名片
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="right">
|
|
|
-
|
|
|
+ <image class="next" src="../../static/icon/next2.png" mode="scaleToFill"></image>
|
|
|
+ </view>
|
|
|
+ <view class="nav-model-rz flex" v-if="user.work_type_id>0&&user.type_audit_status!=1" @click="navTo('/pages/user/model/shoprz')">
|
|
|
+ <view class="tiptext" v-if="user.type_audit_status==-2">
|
|
|
+ 您未完成平台认证,请立即认证>>
|
|
|
+ </view>
|
|
|
+ <view class="tiptext" v-if="user.type_audit_status==-1">
|
|
|
+ 您平台认证失败,请重新认证>>
|
|
|
+ </view>
|
|
|
+ <view class="tiptext" v-if="user.type_audit_status==-3">
|
|
|
+ 您平台认证已失效,请重新认证>>
|
|
|
+ </view>
|
|
|
+ <view class="rztext" v-if="user.type_audit_status==-2">
|
|
|
+ 立即认证
|
|
|
+ </view>
|
|
|
+ <view class="rztext" v-else>
|
|
|
+ 重新认证
|
|
|
</view>
|
|
|
</view>
|
|
|
- </navigator>
|
|
|
<view class="cover-container">
|
|
|
<view class="listBox">
|
|
|
<view class="list">
|
|
|
+ <!-- <view class="flex listItem" @click="navTo('/pages/user/myCart/myCart')">
|
|
|
+ <view class="flex titleBox">
|
|
|
+ <image class="listIconImg" src="../../static/icon/mymoney.png" mode="widthFix"></image>
|
|
|
+ <text class="title">我的钱包</text>
|
|
|
+ </view>
|
|
|
+ <view class="right flex">
|
|
|
+ <text></text>
|
|
|
+ <image class="img" src="../../static/icon/next1.png" mode="widthFix"></image>
|
|
|
+ </view>
|
|
|
+ </view> -->
|
|
|
<view class="flex listItem" @click="navTo('/pages/user/myCart/myCart')">
|
|
|
<view class="flex titleBox">
|
|
|
- <image class="listIconImg" src="../../static/icon/myCart.png" mode="widthFix"></image>
|
|
|
- <text class="title">我的车辆</text>
|
|
|
+ <image class="listIconImg" src="../../static/icon/mymodel.png" mode="widthFix"></image>
|
|
|
+ <text class="title">已购模板</text>
|
|
|
</view>
|
|
|
<view class="right flex">
|
|
|
<text></text>
|
|
|
<image class="img" src="../../static/icon/next1.png" mode="widthFix"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="flex listItem" @click="navTo('/pages/user/repair/userRepair')">
|
|
|
+ <!-- <view class="flex listItem" @click="navTo('/pages/user/myCart/myCart')">
|
|
|
<view class="flex titleBox">
|
|
|
- <image class="listIconImg" src="../../static/icon/myWx.png" mode="widthFix"></image>
|
|
|
- <text class="title">维修历史</text>
|
|
|
+ <image class="listIconImg" src="../../static/icon/myaddress.png" mode="widthFix"></image>
|
|
|
+ <text class="title">收货地址</text>
|
|
|
</view>
|
|
|
<view class="right flex">
|
|
|
<text></text>
|
|
|
- <!-- <image class="img" src="../../static/icon/next1.png" mode="widthFix"></image> -->
|
|
|
+ <image class="img" src="../../static/icon/next1.png" mode="widthFix"></image>
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
+ <!-- #ifdef MP -->
|
|
|
+ <button hover-class="none" class="flex listItem" open-type='contact'>
|
|
|
+ <view class="flex titleBox">
|
|
|
+ <image class="listIconImg" src="../../static/icon/myserve.png" mode="widthFix"></image>
|
|
|
+ <text class="title">客服中心</text>
|
|
|
+ </view>
|
|
|
+ <view class="right flex">
|
|
|
+ <text></text>
|
|
|
+ <image class="img" src="../../static/icon/next1.png" mode="widthFix"></image>
|
|
|
+ </view>
|
|
|
+ </button>
|
|
|
+ <!-- #endif -->
|
|
|
<!-- #ifndef APP -->
|
|
|
- <view class="flex listItem" @click="navTo('/pages/user/shareQrCode')">
|
|
|
+ <!-- <view class="flex listItem" @click="navTo('/pages/user/shareQrCode')">
|
|
|
<view class="flex titleBox">
|
|
|
- <image class="listIconImg" src="../../static/icon/myitem.png" mode="widthFix"></image>
|
|
|
+ <image class="listIconImg" src="../../static/icon/myshare.png" mode="widthFix"></image>
|
|
|
<text class="title">邀请好友</text>
|
|
|
</view>
|
|
|
<view class="right flex">
|
|
|
<text></text>
|
|
|
<image class="img" src="../../static/icon/next1.png" mode="widthFix"></image>
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
<!-- #endif -->
|
|
|
<!-- #ifdef APP -->
|
|
|
<view class="flex listItem" @click="shareDomApp">
|
|
|
<view class="flex titleBox">
|
|
|
- <image class="listIconImg" src="../../static/icon/myitem.png" mode="widthFix"></image>
|
|
|
+ <image class="listIconImg" src="../../static/icon/myshare.png" mode="widthFix"></image>
|
|
|
<text class="title">邀请好友</text>
|
|
|
</view>
|
|
|
<view class="right flex">
|
|
@@ -99,7 +135,7 @@
|
|
|
<!-- #ifndef MP -->
|
|
|
<view class="flex listItem" @click="navTo('/pages/public/workwork')">
|
|
|
<view class="flex titleBox">
|
|
|
- <image class="listIconImg" src="../../static/icon/myServer.png" mode="widthFix"></image>
|
|
|
+ <image class="listIconImg" src="../../static/icon/myinfo.png" mode="widthFix"></image>
|
|
|
<text class="title">关于我们</text>
|
|
|
</view>
|
|
|
<view class="right flex">
|
|
@@ -110,7 +146,7 @@
|
|
|
<!-- #endif -->
|
|
|
<view class="flex listItem" @click="navTo('/pages/set/set')">
|
|
|
<view class="flex titleBox">
|
|
|
- <image class="listIconImg" src="../../static/icon/mySet.png" mode="widthFix"></image>
|
|
|
+ <image class="listIconImg" src="../../static/icon/myset.png" mode="widthFix"></image>
|
|
|
<text class="title">设置</text>
|
|
|
</view>
|
|
|
<view class="right flex">
|
|
@@ -149,16 +185,6 @@
|
|
|
user: {
|
|
|
avatar: '', //头像
|
|
|
nickname: '', //昵称
|
|
|
- now_money: 0, //余额
|
|
|
- brokerage_price: 0, //佣金
|
|
|
- record_sum: 0, //行程
|
|
|
- notice_sum: 0, //报警信息
|
|
|
- question_sum: 0, //系统消息
|
|
|
- // 订单数据类型
|
|
|
- orderStatusNum: {
|
|
|
- unpaid_count: 0, //待付款
|
|
|
- received_count: 0, //待收货
|
|
|
- },
|
|
|
},
|
|
|
shareData: {}
|
|
|
};
|
|
@@ -184,13 +210,27 @@
|
|
|
this.getUser();
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 跳转卡片页面
|
|
|
+ navcard() {
|
|
|
+ // 判断是否已经认证
|
|
|
+ if (this.user.work_type_id <=0) {
|
|
|
+ this.navTo('/pages/user/model/mymodel')
|
|
|
+ } else {
|
|
|
+ if (this.user.show_template_code) {
|
|
|
+ this.navTo('/pages/user/model/defaultmodel?code=' + this.user.show_template_code)
|
|
|
+ }else{
|
|
|
+ this.navTo('/pages/user/model/defaultmodel')
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
//#ifdef APP
|
|
|
shareDomApp() {
|
|
|
uni.share({
|
|
|
provider: 'weixin',
|
|
|
type: 0,
|
|
|
title: '母婴界严选',
|
|
|
- summary: '新一代智能电动车,手机开关锁、智能防盗、卫星定位,时刻掌握爱车位置。品牌大厂生产,质量好,款式多,售后优,所有车辆支持0元购新车!',
|
|
|
+ summary: '',
|
|
|
imageUrl: this.shareData.img,
|
|
|
href: this.baseURL + this.urlFile + '/pages/public/register?spread=' + this.userInfo.uid
|
|
|
})
|
|
@@ -203,7 +243,7 @@
|
|
|
getUser({}).then((e) => {
|
|
|
this.user = e.data;
|
|
|
}).catch((e) => {
|
|
|
- console.log(e,'sj');
|
|
|
+ console.log(e, 'sj');
|
|
|
})
|
|
|
// 系统消息
|
|
|
// articleList({}, 1).then((e) => {
|
|
@@ -223,6 +263,7 @@
|
|
|
this.$emit('tab', true)
|
|
|
},
|
|
|
navTo(url) {
|
|
|
+ console.log(this.hasLogin,'this.hasLogin');
|
|
|
if (!this.hasLogin) {
|
|
|
// 保存地址
|
|
|
saveUrl();
|
|
@@ -244,6 +285,7 @@
|
|
|
page {
|
|
|
height: 100%;
|
|
|
}
|
|
|
+
|
|
|
.listBox {
|
|
|
margin-top: 20rpx;
|
|
|
overflow: hidden;
|
|
@@ -255,8 +297,13 @@
|
|
|
margin-bottom: 15rpx;
|
|
|
background-color: #FFFFFF;
|
|
|
border-radius: 20rpx;
|
|
|
+ border: none;
|
|
|
+ line-height: 1;
|
|
|
+ &::after{
|
|
|
+ border: none;
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
.listIconImg {
|
|
|
width: 36rpx;
|
|
|
height: 36rpx;
|
|
@@ -289,7 +336,8 @@
|
|
|
.user-section {
|
|
|
padding: 15rpx 30rpx 0;
|
|
|
position: relative;
|
|
|
- background-color: $base-color;
|
|
|
+ background: url('https://api.myjie.cn/resource/appimage/userbg.png');
|
|
|
+ background-size: 100% 100%;
|
|
|
padding-top: 100rpx;
|
|
|
height: 350rpx;
|
|
|
}
|
|
@@ -307,7 +355,7 @@
|
|
|
height: 130rpx;
|
|
|
flex-grow: 1;
|
|
|
overflow: hidden;
|
|
|
-
|
|
|
+
|
|
|
.portrait-box {
|
|
|
height: 100%;
|
|
|
|
|
@@ -343,14 +391,16 @@
|
|
|
float: left;
|
|
|
}
|
|
|
}
|
|
|
- .righ-tbox{
|
|
|
- padding:10rpx 20rpx ;
|
|
|
+
|
|
|
+ .righ-tbox {
|
|
|
+ padding: 10rpx 20rpx;
|
|
|
border-radius: 12rpx;
|
|
|
- font-size: 25rpx ;
|
|
|
+ font-size: 25rpx;
|
|
|
line-height: 1;
|
|
|
color: $base-color;
|
|
|
background-color: #FFF;
|
|
|
- .right-tip{
|
|
|
+
|
|
|
+ .right-tip {
|
|
|
width: 25rpx;
|
|
|
height: 33rpx;
|
|
|
margin-right: 10rpx;
|
|
@@ -358,26 +408,61 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- .nav-model{
|
|
|
- background: linear-gradient(270deg, #FF99B8, #FF86AB);
|
|
|
+ .nav-model-rz{
|
|
|
+ background-color:#FFD7E3 ;
|
|
|
+ border-radius: 20rpx;
|
|
|
+ margin: 0 auto;
|
|
|
+ padding: 30rpx;
|
|
|
+ padding-bottom: 15rpx;
|
|
|
+ padding-top: 50rpx;
|
|
|
+ line-height: 1;
|
|
|
+ width: 690rpx;
|
|
|
+ margin-top: -38rpx;
|
|
|
+ .tiptext{
|
|
|
+ color:#F65486 ;
|
|
|
+ font-size: 26rpx;
|
|
|
+ font-weight: bold;
|
|
|
+ }
|
|
|
+ .rztext{
|
|
|
+ color: #FFF;
|
|
|
+ background-color: #F65486;
|
|
|
+ border-radius: 100rpx;
|
|
|
+ padding: 15rpx 20rpx;
|
|
|
+ font-size: 22rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .nav-model {
|
|
|
+ background: url('https://api.myjie.cn/resource/appimage/uservip.png');
|
|
|
+ background-size: 100% 100%;
|
|
|
color: #FFF;
|
|
|
border-radius: 20rpx;
|
|
|
- width: 710rpx;
|
|
|
+ width: 690rpx;
|
|
|
+ height: 157rpx;
|
|
|
margin: 0 auto;
|
|
|
- margin-top: -50rpx;
|
|
|
+ margin-top: -80rpx;
|
|
|
font-weight: bold;
|
|
|
z-index: 1;
|
|
|
position: relative;
|
|
|
- .img{
|
|
|
- height: 157rpx;
|
|
|
+
|
|
|
+ .next {
|
|
|
+ width: 26rpx;
|
|
|
+ height: 28rpx;
|
|
|
+ margin-right: 40rpx;
|
|
|
}
|
|
|
- .title{
|
|
|
+
|
|
|
+ .right-card {
|
|
|
+ padding-left: 170rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .title {
|
|
|
font-size: 35rpx;
|
|
|
}
|
|
|
- .tip{
|
|
|
+
|
|
|
+ .tip {
|
|
|
font-size: 26rpx;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
|
|
|
.cover-container {
|