|
@@ -1,235 +1,168 @@
|
|
|
<template>
|
|
|
<view class="container">
|
|
|
- <view class="head-wrap">
|
|
|
- <view class="content">
|
|
|
- <view class="avatar-wrap">
|
|
|
- <u-avatar :src="user_info.avatar" @click="onClickAvatar" size="80"></u-avatar>
|
|
|
- </view>
|
|
|
- <view class="user-nickname">
|
|
|
- <u--text
|
|
|
- size="18"
|
|
|
- bold
|
|
|
- :text="user_info.nickname ? user_info.nickname : 'fadsfdaf'"
|
|
|
- ></u--text>
|
|
|
- <u--text size="12" text="欢迎加入车旅程"></u--text>
|
|
|
- </view>
|
|
|
- <view>
|
|
|
- <!-- 已登录 -->
|
|
|
- <!-- <view class="user-base" v-if="user_info.nickname"> -->
|
|
|
- <view class="user-base">
|
|
|
- <view class="btn-wrap">
|
|
|
- <u-icon
|
|
|
- size="30"
|
|
|
- @tap="$Router.push('/pages/client/clientUser/mine/setting')"
|
|
|
- name="setting"
|
|
|
- ></u-icon>
|
|
|
- </view>
|
|
|
+ <view>
|
|
|
+ <view class="head-wrap">
|
|
|
+ <view class="content">
|
|
|
+ <view class="avatar-wrap">
|
|
|
+ <u-avatar :src="user_info.avatar" @click="onClickAvatar" size="80"></u-avatar>
|
|
|
+ </view>
|
|
|
+ <view class="user-nickname">
|
|
|
+ <u--text
|
|
|
+ size="18"
|
|
|
+ bold
|
|
|
+ :text="user_info.nickname ? user_info.nickname : 'fadsfdaf'"
|
|
|
+ ></u--text>
|
|
|
+ <u--text size="12" text="欢迎加入车旅程"></u--text>
|
|
|
</view>
|
|
|
+ <view>
|
|
|
+ <!-- 已登录 -->
|
|
|
+ <!-- <view class="user-base" v-if="user_info.nickname"> -->
|
|
|
+ <view class="user-base">
|
|
|
+ <view class="btn-wrap">
|
|
|
+ <u-icon
|
|
|
+ size="30"
|
|
|
+ @tap="$Router.push('/pages/client/clientUser/mine/setting')"
|
|
|
+ name="setting"
|
|
|
+ ></u-icon>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
|
|
|
- <!-- 未登录 -->
|
|
|
- <!-- <view class="clickLogin" v-else @tap="$Router.push('/pages/login/index')">
|
|
|
+ <!-- 未登录 -->
|
|
|
+ <!-- <view class="clickLogin" v-else @tap="$Router.push('/pages/login/index')">
|
|
|
点击登录/注册
|
|
|
</view> -->
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
-
|
|
|
- <!-- 收藏 -->
|
|
|
- <view class="Collect">
|
|
|
- <u-grid :border="false" col="4">
|
|
|
- <u-grid-item
|
|
|
- v-for="(listItem, listIndex) in collectList"
|
|
|
- :key="listIndex"
|
|
|
- @tap="$Router.push(listItem.url)"
|
|
|
- >
|
|
|
- <u-icon
|
|
|
- :customStyle="{ paddingTop: 20 + 'rpx' }"
|
|
|
- :name="listItem.name"
|
|
|
- :size="24"
|
|
|
- color="#fff"
|
|
|
- />
|
|
|
- <text class="grid-text">{{ listItem.title }}</text>
|
|
|
- </u-grid-item>
|
|
|
- </u-grid>
|
|
|
- </view>
|
|
|
|
|
|
- <view class="order-out-box">
|
|
|
- <view class="order-inner-box">
|
|
|
- <u-grid :border="false" col="4" style="background-color: #fff">
|
|
|
+ <!-- 收藏 -->
|
|
|
+ <view class="Collect">
|
|
|
+ <u-grid :border="false" col="4">
|
|
|
<u-grid-item
|
|
|
- v-for="(listItem, listIndex) in oderList"
|
|
|
+ v-for="(listItem, listIndex) in collectList"
|
|
|
:key="listIndex"
|
|
|
- @tap="gotoOrder(listItem)"
|
|
|
+ @tap="$Router.push(listItem.url)"
|
|
|
>
|
|
|
<u-icon
|
|
|
:customStyle="{ paddingTop: 20 + 'rpx' }"
|
|
|
:name="listItem.name"
|
|
|
- :size="34"
|
|
|
- ></u-icon>
|
|
|
+ :size="24"
|
|
|
+ color="#fff"
|
|
|
+ />
|
|
|
<text class="grid-text">{{ listItem.title }}</text>
|
|
|
</u-grid-item>
|
|
|
</u-grid>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
|
|
|
- <!-- 我的收益 -->
|
|
|
- <view class="income-out-box">
|
|
|
- <view class="income-inner-box" @click="handlerSkipMyProfit">
|
|
|
- <view class="income-head">
|
|
|
- <text class="my-income">我的钱包</text>
|
|
|
- <u-icon name="arrow-right" />
|
|
|
+ <view class="order-out-box">
|
|
|
+ <view class="order-inner-box">
|
|
|
+ <u-grid :border="false" col="4" style="background-color: #fff">
|
|
|
+ <u-grid-item
|
|
|
+ v-for="(listItem, listIndex) in oderList"
|
|
|
+ :key="listIndex"
|
|
|
+ @tap="gotoOrder(listItem)"
|
|
|
+ >
|
|
|
+ <u-icon
|
|
|
+ :customStyle="{ paddingTop: 20 + 'rpx' }"
|
|
|
+ :name="listItem.name"
|
|
|
+ :size="34"
|
|
|
+ ></u-icon>
|
|
|
+ <text class="grid-text">{{ listItem.title }}</text>
|
|
|
+ </u-grid-item>
|
|
|
+ </u-grid>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <view class="income-content">
|
|
|
- <u-grid :border="false" col="4" bgColor="#fff">
|
|
|
- <u-grid-item v-for="(listItem, listIndex) in incomeList" :key="listIndex">
|
|
|
- <view class="num-box">{{ listItem.num }}元</view>
|
|
|
- <view class="num-title">{{ listItem.title }}</view>
|
|
|
- </u-grid-item>
|
|
|
- </u-grid>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <!-- 我的收益 -->
|
|
|
+ <view class="income-out-box">
|
|
|
+ <view class="income-inner-box" @click="handlerSkipMyProfit">
|
|
|
+ <view class="income-head">
|
|
|
+ <text class="my-income">我的钱包</text>
|
|
|
+ <u-icon name="arrow-right" />
|
|
|
+ </view>
|
|
|
+ <view class="income-content">
|
|
|
+ <u-grid :border="false" col="4" bgColor="#fff">
|
|
|
+ <u-grid-item v-for="(listItem, listIndex) in incomeList" :key="listIndex">
|
|
|
+ <view class="num-box">{{ listItem.num }}元</view>
|
|
|
+ <view class="num-title">{{ listItem.title }}</view>
|
|
|
+ </u-grid-item>
|
|
|
+ </u-grid>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
|
|
|
- <!-- 预约列表 -->
|
|
|
- <view class="appointList">
|
|
|
- <u-cell
|
|
|
- icon="setting-fill"
|
|
|
- title="预约列表"
|
|
|
- isLink
|
|
|
- url="/pages/client/clientUser/mine/appoint/appoint"
|
|
|
- />
|
|
|
- <u-cell icon="setting-fill" title="我要开店" isLink />
|
|
|
- </view>
|
|
|
+ <!-- 预约列表 -->
|
|
|
+ <view class="appointList">
|
|
|
+ <u-cell
|
|
|
+ icon="setting-fill"
|
|
|
+ title="预约列表"
|
|
|
+ isLink
|
|
|
+ url="/pages/client/clientUser/mine/appoint/appoint"
|
|
|
+ />
|
|
|
+ <u-cell icon="setting-fill" title="我要开店" isLink />
|
|
|
+ </view>
|
|
|
|
|
|
- <view class="other-out-box">
|
|
|
- <view class="other-inner-box">
|
|
|
- <u-cell-group :border="false">
|
|
|
- <u-cell
|
|
|
- v-for="(item, index) in listData"
|
|
|
- :key="index"
|
|
|
- size="large"
|
|
|
- :border="false"
|
|
|
- :icon="item.icon"
|
|
|
- :title="item.title"
|
|
|
- isLink
|
|
|
- :url="item.url"
|
|
|
- ></u-cell>
|
|
|
- <u-cell
|
|
|
- :border="false"
|
|
|
- icon="setting-fill"
|
|
|
- title="客服中心"
|
|
|
- size="large"
|
|
|
- isLink
|
|
|
- @tap="handleServiceCenterClick"
|
|
|
- />
|
|
|
- <u-cell
|
|
|
- :border="false"
|
|
|
- icon="setting-fill"
|
|
|
- title="商务合作"
|
|
|
- size="large"
|
|
|
- isLink
|
|
|
- @tap="handleBusinessCooperationClick"
|
|
|
- />
|
|
|
- <u-cell
|
|
|
- icon="setting-fill"
|
|
|
- title="意见反馈"
|
|
|
- size="large"
|
|
|
- isLink
|
|
|
- @tap="handleFeedbackClick"
|
|
|
- />
|
|
|
- </u-cell-group>
|
|
|
+ <view class="other-out-box">
|
|
|
+ <view class="other-inner-box">
|
|
|
+ <u-cell-group :border="false">
|
|
|
+ <u-cell
|
|
|
+ v-for="(item, index) in listData"
|
|
|
+ :key="index"
|
|
|
+ size="large"
|
|
|
+ :border="false"
|
|
|
+ :icon="item.icon"
|
|
|
+ :title="item.title"
|
|
|
+ isLink
|
|
|
+ :url="item.url"
|
|
|
+ ></u-cell>
|
|
|
+ <u-cell
|
|
|
+ :border="false"
|
|
|
+ icon="setting-fill"
|
|
|
+ title="客服中心"
|
|
|
+ size="large"
|
|
|
+ isLink
|
|
|
+ @tap="handleServiceCenterClick"
|
|
|
+ />
|
|
|
+ <u-cell
|
|
|
+ :border="false"
|
|
|
+ icon="setting-fill"
|
|
|
+ title="商务合作"
|
|
|
+ size="large"
|
|
|
+ isLink
|
|
|
+ @tap="handleBusinessCooperationClick"
|
|
|
+ />
|
|
|
+ <u-cell
|
|
|
+ icon="setting-fill"
|
|
|
+ title="意见反馈"
|
|
|
+ size="large"
|
|
|
+ isLink
|
|
|
+ @tap="handleFeedbackClick"
|
|
|
+ />
|
|
|
+ </u-cell-group>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <tabbar currentTab="clientMessage" />
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { maintainUserInfo } from '@/api/client/mine.js';
|
|
|
import RichTextWithCopy from '@/components/RichTextWithCopy/RichTextWithCopy';
|
|
|
+import { collectList, oderList, incomeList, listData } from './mine';
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
RichTextWithCopy,
|
|
|
},
|
|
|
+
|
|
|
data() {
|
|
|
return {
|
|
|
content: '这里是客服中心内容,用户可以复制<br>第一行文本<br>第二行文本<br>第三行文本',
|
|
|
- collectList: [
|
|
|
- {
|
|
|
- name: 'photo',
|
|
|
- title: '收藏',
|
|
|
- url: '/pages/client/clientUser/collectList',
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'lock',
|
|
|
- title: '积分',
|
|
|
- url: '/pages/client/clientUser/myScore',
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'star',
|
|
|
- title: '询价记录',
|
|
|
- url: '/pages/client/clientUser/inquiryList',
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'hourglass',
|
|
|
- title: '优惠券',
|
|
|
- url: '/pages/client/clientUser/coupon',
|
|
|
- },
|
|
|
- ],
|
|
|
- oderList: [
|
|
|
- {
|
|
|
- name: 'order',
|
|
|
- title: '全部订单',
|
|
|
- type: 0,
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'bag-fill',
|
|
|
- title: '待付款',
|
|
|
- type: 1,
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'car-fill',
|
|
|
- title: '已付款',
|
|
|
- type: 2,
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'heart',
|
|
|
- title: '待评价',
|
|
|
- type: 3,
|
|
|
- },
|
|
|
- ],
|
|
|
- incomeList: [
|
|
|
- {
|
|
|
- num: '0.00',
|
|
|
- title: '总收益',
|
|
|
- },
|
|
|
- {
|
|
|
- num: '0.00',
|
|
|
- title: '本月收益',
|
|
|
- },
|
|
|
- {
|
|
|
- num: '0.00',
|
|
|
- title: '本周收益',
|
|
|
- },
|
|
|
- {
|
|
|
- num: '0.00',
|
|
|
- title: '可提现',
|
|
|
- },
|
|
|
- ],
|
|
|
- listData: [
|
|
|
- {
|
|
|
- id: '0',
|
|
|
- icon: 'setting-fill',
|
|
|
- title: '我的团队',
|
|
|
- url: '/pages/client/clientUser/myGroup',
|
|
|
- },
|
|
|
- {
|
|
|
- id: '1',
|
|
|
- icon: 'setting-fill',
|
|
|
- title: '我要推广',
|
|
|
- url: '/pages/client/clientUser/myGroup',
|
|
|
- },
|
|
|
- ],
|
|
|
+ collectList,
|
|
|
+ oderList,
|
|
|
+ incomeList,
|
|
|
+ listData,
|
|
|
user_info: {}, // 个人信息
|
|
|
avatar: '/pages/static', // 用于存储图片路径
|
|
|
};
|
|
@@ -238,6 +171,11 @@ export default {
|
|
|
async mounted() {
|
|
|
await this.handlerInitUserMessage();
|
|
|
},
|
|
|
+ onShow() {
|
|
|
+ uni.hideTabBar({
|
|
|
+ animation: false,
|
|
|
+ });
|
|
|
+ },
|
|
|
methods: {
|
|
|
// 获取当前用户信息
|
|
|
handlerInitUserMessage() {
|