|
|
@@ -1,12 +1,11 @@
|
|
|
<template>
|
|
|
- <view class="page">
|
|
|
- <uni-nav-bar :fixed="true" background-color="#F7F7F7" :border="false" :statusBar="true" title="个人中心" />
|
|
|
-
|
|
|
+ <view class="page" :style="{height:height}">
|
|
|
+<!-- <uni-nav-bar :fixed="true" background-color="#F7F7F7" :border="false" :statusBar="true" title="个人中心" />-->
|
|
|
<view class="flex-row use">
|
|
|
<view class="avatar" @click="goUserInfo">
|
|
|
- <image :src="userInfo.img || '/static/ud4.png'"></image>
|
|
|
+ <image :src="userInfo.selfPhotoUrl || '/static/ud4.png'"></image>
|
|
|
</view>
|
|
|
- <view class="flex-col justify-around useMsg">
|
|
|
+ <view class="flex-col justify-evenly useMsg">
|
|
|
<view class="flex-row">
|
|
|
<text class="name">{{userInfo.name}}</text>
|
|
|
<view class="tag">{{userInfo.isManager === 1? '拓客经理':'拓客专员'}}</view>
|
|
|
@@ -18,38 +17,65 @@
|
|
|
</view>
|
|
|
|
|
|
<view class="statistics flex-col">
|
|
|
- <view class="statisticsTitle">
|
|
|
- <text >拓客统计</text>
|
|
|
- </view>
|
|
|
- <view class="flex-col justify-start">
|
|
|
- <uni-list :border="false">
|
|
|
- <uni-list-item v-if="userInfo.isManager === 1" :clickable="true" title="我的专员(人)" to="/pages/specialistsList/specialistsList"
|
|
|
- showArrow thumb="/static/my/fuwuNmber.png" thumb-size="sm" rightText="80.80" />
|
|
|
- <uni-list-item v-if="userInfo.isManager !== 1" :clickable="true" title="推广收益(元)" to="/pages/earningsList/earningsList"
|
|
|
- showArrow thumb="/static/my/benyuerenwu.png" thumb-size="sm" rightText="800.99" />
|
|
|
- <uni-list-item v-if="userInfo.isManager !== 1" :clickable="true" title="我的直推(人)" to="/pages/directPromotionList/directPromotionList"
|
|
|
- showArrow thumb="/static/my/fuwuTimeLong.png" thumb-size="sm" rightText="800" />
|
|
|
- <uni-list-item v-if="userInfo.isManager !== 1" :clickable="true" title="我的间推(人)" to="/pages/indirectPromotionList/indirectPromotionList"
|
|
|
- showArrow thumb="/static/my/fuwuNmber.png" thumb-size="sm" rightText="800" />
|
|
|
- </uni-list>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
|
|
|
- <view class="tuoke " v-if="userInfo.isManager !== 1">
|
|
|
- <view class="statisticsTitle ">
|
|
|
- <text >今日统计</text>
|
|
|
+ <view class="flex-row justify-around" v-if="userInfo.isManager == '1'">
|
|
|
+ <view class="flex-row justify-center out ">
|
|
|
+ <view class="flex-col statisticsItem " @click="navigateTo('/pages/specialistsList/specialistsList')">
|
|
|
+ <view>
|
|
|
+ <image src="/static/my/fuwuNmber.png" class="statisticsImg"></image>
|
|
|
+ </view>
|
|
|
+ <text class="statisticsKey">我的专员(人)</text>
|
|
|
+ <text class="statisticsValue">300</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="flex-row justify-center out leftBorder">
|
|
|
+ <view class="flex-col statisticsItem " >
|
|
|
+ <view>
|
|
|
+ <image src="/static/my/hezuohuoban.png" class="statisticsImg"></image>
|
|
|
+ </view>
|
|
|
+ <text class="statisticsKey">合作伙伴(人)</text>
|
|
|
+ <text class="statisticsValue">300</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <view class="flex-col justify-center ">
|
|
|
- <uni-list :border="false">
|
|
|
|
|
|
- <uni-list-item :clickable="true" title="今日推广" to="/pages/todayPromotionList/todayPromotionList"
|
|
|
- showArrow thumb="/static/my/jinrirenwu.png" thumb-size="sm" rightText="800" />
|
|
|
- <uni-list-item :clickable="true" title="今日收益" to="/pages/todayEarningsList/todayEarningsList"
|
|
|
- showArrow thumb="/static/my/jinriyeji.png" thumb-size="sm" rightText="800" />
|
|
|
- </uni-list>
|
|
|
+ <view class="flex-row justify-around " v-else>
|
|
|
+ <view class="flex-row justify-center out ">
|
|
|
+ <view class="flex-col statisticsItem " @click="navigateTo('/pages/directPromotionList/directPromotionList')">
|
|
|
+ <view>
|
|
|
+ <image src="/static/my/fuwuTimeLong.png" class="statisticsImg"></image>
|
|
|
+ </view>
|
|
|
+ <text class="statisticsKey">我的直推(人)</text>
|
|
|
+ <text class="statisticsValue">300</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="flex-row justify-center out leftBorder">
|
|
|
+ <view class="flex-col statisticsItem " @click="navigateTo('/pages/earningsList/earningsList')">
|
|
|
+ <view>
|
|
|
+ <image src="/static/my/benyuerenwu.png" class="statisticsImg"></image>
|
|
|
+ </view>
|
|
|
+ <text class="statisticsKey">推广收益(人)</text>
|
|
|
+ <text class="statisticsValue">300</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
+ <view class="flex-col justify-start list">
|
|
|
+ <uni-list :border="false">
|
|
|
+ <uni-list-item v-if="userInfo.isManager == 1" :clickable="true" title="我的分组" to="/pages/specialistsList/specialistsList"
|
|
|
+ showArrow thumb="/static/my/fenzu.png" thumb-size="sm" rightText="" />
|
|
|
+<!-- <uni-list-item v-if="userInfo.isManager == 1" :clickable="true" title="推广收益(元)" to="/pages/earningsList/earningsList"-->
|
|
|
+<!-- showArrow thumb="/static/my/benyuerenwu.png" thumb-size="sm" rightText="" />-->
|
|
|
+<!-- <uni-list-item v-if="userInfo.isManager == 1" :clickable="true" title="我的直推(人)" to="/pages/directPromotionList/directPromotionList"-->
|
|
|
+<!-- showArrow thumb="/static/my/fuwuTimeLong.png" thumb-size="sm" rightText="" />-->
|
|
|
+ <!-- <uni-list-item v-if="userInfo.isManager !== 1" :clickable="true" title="我的间推(人)" to="/pages/indirectPromotionList/indirectPromotionList"-->
|
|
|
+ <!-- showArrow thumb="/static/my/fuwuNmber.png" thumb-size="sm" rightText="800" />-->
|
|
|
+ </uni-list>
|
|
|
+ </view>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
@@ -58,15 +84,37 @@
|
|
|
data() {
|
|
|
return {
|
|
|
staticsData:{},
|
|
|
- userInfo:{}
|
|
|
+ userInfo:{},
|
|
|
+ height:''
|
|
|
}
|
|
|
},
|
|
|
+ onLoad() {
|
|
|
+ let sysInfo = uni.getSystemInfoSync()
|
|
|
+ this.height = sysInfo.windowHeight + 'px'
|
|
|
+ },
|
|
|
|
|
|
onShow(){
|
|
|
this.userInfo = uni.getStorageSync('spreadUserInfo')
|
|
|
+ this.getImgUrlByOssId(this.userInfo.img)
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
+
|
|
|
+ navigateTo(url){
|
|
|
+ uni.navigateTo({
|
|
|
+ url:url
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+ getImgUrlByOssId(Id) {
|
|
|
+ if (Id) {
|
|
|
+ this.$api.service.getImage(Id).then(res => {
|
|
|
+ this.userInfo.selfPhotoUrl = res.data.data[0].url.replace(/^http:/, "https:")
|
|
|
+ this.$set(this.userInfo)
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
navigateTo(url){
|
|
|
uni.navigateTo({
|
|
|
url: url
|