123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376 |
- <template>
- <view>
- <public-module></public-module>
- <view class="headers " :style="headerStyle">
- <view class="dis a-c j-c">
- <text>首页</text>
- </view>
- </view>
- <!-- <image style="position: relative;height:230px" src="../../static/beijing.png"></image> -->
- <!-- <image v-if="type == 1" style="position: relative;height:230px" src="../../static/shouye1.png"></image> -->
- <view class="Personnel">
- <view class="avatar">
- <image src="/static/img/Frame (8).png" mode=""></image>
- <text>团队新人员加入信息/新出单信息</text>
- </view>
- <uni-notice-bar show-icon scrollable text="uni-app 版正式发布,开发一次,同时发布iOS、Android、H5、微信小程序、支付宝小程序、百度小程序、头条小程序等7大平台。" />
- <!-- <view class="homepage" style="position: absolute;padding: 0px 20px; top: 170px;">
- <view class="wallet" @click="bankwallet()">
- <view>钱包</view>
- <view>查看金额与记录</view>
- </view>
- <view class="wallet" @click="detail()">
- <view>绑定银行卡</view>
- <view>提现请先绑定</view>
- </view>
- </view> -->
- </view>
- <view class="insurance dis j-s" >
- <view style="text-align: center;">
- <view class="insurance-cash" >{{totalList.sumPremium}}</view>
- <text class="insurance-text">总保费 </text>
- </view>
- <view style="text-align: center;">
- <view class="insurance-cash">{{totalList.teamManNum }}</view>
- <text class="insurance-text">总人数 </text>
- </view>
- <view style="text-align: center;">
- <view class="insurance-cash">{{totalList.extractFee}}</view>
- <text class="insurance-text">总佣金</text>
- </view>
- </view>
- <view >
- <view class="institutional-data" v-if="type == 2">
- <view class="inst-con" @click="closeStudion()">
- <view>工作室</view>
- <text >{{totalList.workroomTeamNum}}</text>
- </view>
- <!-- <view class="institutional-title homepage">
- <text>团队贡献数据</text>
- <text @click="viewTeam()" class="view-now" style="font-size: 11px;" >查看更多</text>
- </view>
- <o-empty height="15vh" v-if="totalList1.length==0" />
- <view class="institutional-list" v-if="totalList1.length > 0">
- <view style="padding: 10px 0;">
- <view class="homepage" style="font-size: 13px;font-weight: 500;">
- <text>{{ totalList1[0].deptName }}</text>
- </view>
- <view class="dis j-s">
- <view type="primary" size="mini">负责人:{{ totalList1[0].userName }}</view>
- <text @click="closeDetailPro(totalList1[0])" class="view-now1"
- >查看详情</text>
- </view>
- </view>
- <view style="padding: 10px 0;border-top: 1px solid #ccc" v-if="totalList1.length > 1">
- <view class="homepage" style="font-size: 13px;font-weight: 500;">
- <text>{{ totalList1[1].deptName }}</text>
- </view>
- <view class="dis j-s">
- <view type="primary" size="mini">负责人:{{ totalList1[1].userName }}</view>
- <text class="view-now1" @click="closeDetailPro(totalList1[1])"
- >查看详情</text>
- </view>
- </view>
- </view> -->
- </view>
- <view class="inst-data dis j-s" v-if="type == 1">
- <view class="inst-con" @click="closePartner()">
- <view>合伙人</view>
- <text >{{totalList.partnerNum}}</text>
- </view>
- <view class="inst-con" @click="closeInstitution()">
- <view>工作室</view>
- <text >{{totalList.workroomNum}}</text>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- totalList:{},
- type: uni.getStorageSync('type'),
- headerStyle: {
- backgroundColor: 'transparent',
- backgroundImage: '',
- backgroundSize: '',
- backgroundPosition: '',
- boxShadow: ''
- // 其他样式属性...
- },
- // type:JSON.parse(localStorage.getItem('type')).data
- }
- },
- async onLoad(e) {
- this.type = uni.getStorageSync('type')
- let res = await this.$http.get('/APPPartner/getHomePage', {
- type: uni.getStorageSync('type'),
- });
- if (res.code == '200') {
- this.totalList = res.data
- }
-
- },
- methods: {
- detail(id){
- uni.navigateTo({
- url: "/pages/institutional/walletDetail?id="+id
- })
- },
- closeDetailPro(val){
- uni.navigateTo({
- url: `/pages/institutional/detail?deptId=${val.deptId}&deptName=${val.deptName}&startTime=${val.startTime}`
- })
- },
-
- closeInstitution() {
- this.totalList.type=1
- uni.navigateTo({
- url: "/pages/institutional/institutionalTeam?key="+encodeURIComponent(JSON.stringify(this.totalList))
- })
- },
- closeStudion() {
- uni.navigateTo({
- url: "/pages/institutional/institutional?key="+encodeURIComponent(JSON.stringify(this.totalList))
- })
- },
- closePartner() {
- uni.navigateTo({
- url: "/pages/institutional/partner"
- })
- },
- viewTeam() {
- uni.navigateTo({
- url: "/pages/institutional/institutional"
- })
- },
- bankCard() {
- uni.navigateTo({
- url: "/pages/wallet/bankCard"
- })
- },
- bankwallet() {
- uni.navigateTo({
- url: "/pages/institutional/wallet"
- })
- },
- }
- }
- </script>
- <style lang="scss" scoped>
- .homepage {
- display: flex;
- width: 100%;
- justify-content: space-between;
- }
- .homepage>view {
- width: 47%;
- height: 100px;
- // min-height: 18vh;
- // max-height: 22vh;
- background-size: contain;
- }
- .wallet {
- padding: 15upx 20upx;
- }
- .wallet>view:nth-child(1) {
- color: #333333;
- font-size: 14px;
- font-weight: bold;
- }
- .wallet>view:nth-child(2) {
- margin-top: 5upx;
- font-size: 12px;
- color: rgba(51, 51, 51, 0.8);
- }
- .homepage>view:nth-child(1) {
- background: url(../../static/qianbao.png) no-repeat;
- background-size: 100% 100%;
- }
- .homepage>view:nth-child(2) {
- background: url(../../static/yinhangka.png) no-repeat;
- background-size: 100% 100%;
- }
- .institutional-data {
- margin: 16px;
- .inst-con {
- padding: 13px 18px;
- width: 100%;
- background: url(../../static/工作室.png) no-repeat;
- background-size: 100% 100%;
- color: #009B9F;
- }
- }
- // .institutional-title {
- // padding: 10upx 10upx 20upx 10upx;
- // font-weight: bold;
- // text {
- // font-size: 14px;
- // }
- // }
- // .institutional-list {
- // background: #FFFFFF;
- // border-radius: 12px 12px 12px 12px;
- // padding: 0 20upx;
- // font-size: 38upx;
- // }
- .view-now {
- background: linear-gradient(90deg, #7E99D1 0%, #4F78B1 100%);
- border-radius: 20px 20px 20px 20px;
- color: #fff;
- font-size: 11px;
- padding: 2px 10px;
- }
- .view-now1{
- background-color: rgba(79, 120, 177, 0.1);
- color: #537BB4;
- border-radius: 20px 20px 20px 20px;
- font-size: 11px;
- padding: 2px 10px;
- }
- .homepage-title {
- margin-top: 5px;
- button {
- background-color: #FEF0E1;
- color: #FE8F1C;
- }
- }
- .homepage-title>button:last-child {
- background: #E6FAE3;
- color: #3AC716;
- margin-left: 10px;
- }
- .button1 {
- background-color: #FEF0E1;
- color: #FE8F1C;
- font-size: 11px;
- padding: 5px 10px
- }
- .button2 {
- background: #E6FAE3;
- color: #3AC716;
- margin-left: 10px;
- font-size: 11px;
- padding: 5px 10px
- }
- .inst-data {
- margin: 16px;
- }
- .inst-con {
- width: 47%;
- padding: 13px 18px;
- }
- .inst-con>view:nth-child(1) {
- font-size: 19px;
- font-weight: 700;
- }
- .inst-con>view:nth-child(2) {
- font-size: 13px;
- font-weight: 400;
- }
- .inst-data>view:nth-child(1) {
- background: url(../../static/合伙人.png) no-repeat;
- background-size: 100% 100%;
- color: #3168DA;
- }
- .inst-data>view:nth-child(2) {
- background: url(../../static/工作室.png) no-repeat;
- background-size: 100% 100%;
- color: #009B9F;
- }
- .headers {
- position: fixed;
- top: 0;
- left: 0;
- height: auto;
- width: 100%;
- z-index: 999999;
- padding: 16px;
- padding-top: 40px;
- >view {
- width: 100%;
- height: 100%;
- position: relative;
- }
- text {
- font-size: 18px;
- font-weight: 700;
- color: #333333;
- }
- }
- .Personnel {
- height: auto;
- width: 100%;
- background: #F7F7F7;
- background-image: url("/static/beijing.png");
- background-size: 100% 100%;
- padding: 200px 16px 15px 16px;
-
- .avatar {
- background: #FFFFFF;
- box-shadow: 0px 0 8px 0px rgba(0,0,0,0.1);
- border-radius: 5px 5px 5px 5px;
- padding: 0 10px;
- line-height: 35px;
- height: 35px;
- image {
- display: inline-block;
- width: 16px;
- height: 16px;
- vertical-align: middle;
- margin-right: 5px;
- }
-
- }
-
- }
- .insurance{
- margin: 0 16px;
- background: #FFFFFF;
- box-shadow: 0px 0 8px 0px rgba(0,0,0,0.1);
- border-radius: 5px 5px 5px 5px;
- padding: 20px 30px;
- .insurance-cash{
- font-weight: 700;
- font-size: 21px;
- color: #333333;
- line-height: 24px;
- margin-bottom: 5px;
- }
- .insurance-text{
- font-weight: 300;
- font-size: 13px;
- color: #999999;
- line-height: 15px;
- }
- }
- .studio{
- margin:16px;
- }
- </style>
|