From 31a5566dd7ff56a3405ce79a764cd9e3d63154c9 Mon Sep 17 00:00:00 2001 From: li-guang <153605324@qq.com> Date: Wed, 23 Dec 2020 16:21:11 +0800 Subject: [PATCH] 排行榜 --- hive-app/pages/mine/index.vue | 177 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 177 insertions(+), 0 deletions(-) diff --git a/hive-app/pages/mine/index.vue b/hive-app/pages/mine/index.vue index 94249a0..19cfa5d 100644 --- a/hive-app/pages/mine/index.vue +++ b/hive-app/pages/mine/index.vue @@ -1,9 +1,186 @@ <template> <!-- 我的 --> + <view class="container"> + <!-- #ifndef H5 --> + <view class="status_bar"></view> + <!-- #endif --> + <view class="header"> + <navigator url="./setting" class="icon white iconfont iconshezhi right"></navigator> + <view class="flex align-center"> + <image class="header-img ml-15" src="../../static/images/head-img.jpg"></image> + <view class="flex flex-v ml-20"> + <view> + <text class="font-18 white mr-5">222是个帅哥</text> + <text class="white icon iconfont iconxiugai"></text> + </view> + <view class="flex mt-10"> + <view class="mr-20"> + <text class="white mr-5 font-14">职位:</text> + <text class="white font-14">靓仔</text> + </view> + <view> + <text class="white mr-5 font-14">门店:</text> + <text class="white font-14">梅溪湖店</text> + </view> + </view> + </view> + </view> + </view> + + <view class="content"> + <view class="tab-box"> + <h-tabs + class="tab" + :tabData="tabs" + :config="{ + color: '#abb1cc', + activeColor: '#518EFF', + underLineColor: '#518EFF', + underLineHeight: 4, + fontSize: '30px', + itemWidth: 70, + underLineWidth: 60, + }" + /> + <view class="performance-content"> + <view class="flex justify-around"> + <view class="flex flex-v align-center performance-item"> + <text class="font-16 red">600.00</text> + <text class="mt-5">订单业绩</text> + </view> + <view class="flex flex-v align-center performance-item"> + <text class="font-16 green">600.00</text> + <text class="mt-5">现金业绩</text> + </view> + <view class="flex flex-v align-center performance-item"> + <text class="font-16 purple">600.00</text> + <text class="mt-5">划扣业绩</text> + </view> + </view> + <view class="flex justify-around mt-15"> + <view class="flex flex-v align-center performance-item"> + <text class="font-16 blueness">600.00</text> + <text class="mt-5">本金业绩</text> + </view> + <view class="flex flex-v align-center performance-item"> + <text class="font-16 orange">600.00</text> + <text class="mt-5">赠送消耗</text> + </view> + <view class="flex flex-v align-center performance-item"> + <text class="font-16 yellow">600.00</text> + <text class="mt-5">服务提成</text> + </view> + </view> + </view> + </view> + <navigator url="./knowledge" class="flex align-center justify-between repository mt-10"> + <view class="flex align-center"> + <image class="title-img mr-10" src="../../static/images/mine2.png"></image> + <text>知识库</text> + </view> + <text class="icon iconfont iconarrow-backimg gray"></text> + </navigator> + </view> + </view> </template> <script> + import HTabs from "@/components/liuyuno-tabs/liuyuno-tabs.vue"; + export default { + components: { + HTabs + }, + data() { + return { + type: 1, //1-今日 2-昨天 3-本月 4-上月 + tabs:[ + { + state: 1, + name: '今日' + }, + { + state: 2, + name: '昨日' + }, + { + state: 3, + name: '本月' + }, + { + state: 4, + name: '上月' + }, + ], + } + }, + onShow() { + this.getUserInfo() + }, + methods: { + getUserInfo(){ + this.$httpUtils.request('/api/user/findUserAchieve/'+this.type).then((res) => { + if(res.status == 200){ + + } + }) + } + } + } </script> <style> + page{ + background: #F6F6F8; + } + .status_bar{ + background: #518EFF; + color: #FFFFFF; + } + .header{ + background: #518EFF; + border-bottom-left-radius: 20px; + border-bottom-right-radius: 20px; + padding: 15px; + } + .icon { + font-size: 18px; + font-family: texticons; + } + .header-img{ + width: 64px; + height: 64px; + border-radius: 50%; + } + .content{ + padding: 0 10px; + } + .performance{ + padding: 0 3px; + margin: 15px 0px 10px; + } + .title-img{ + width: 16px; + height: 16px; + } + .tab-box{ + background: #FFFFFF; + border-radius: 4px; + margin-top: 10px; + } + .tab{ + border-bottom: 1px solid #EDEAF4; + } + .performance-content{ + padding: 20px 0; + } + .performance-item{ + width: 33.3%; + font-size: 13px; + } + .repository{ + border-radius: 4px; + padding: 12px 10px; + background: #FFFFFF; + font-size: 15px; + } </style> -- Gitblit v1.9.1