<template>
|
<view class="index-team o-h" v-if="!loadding">
|
<!-- #ifdef MP-WEIXIN || APP-PLUS -->
|
<view v-if="!is_release && isData" class="ww100" :style="'height:'+topBarTop()+'px;'"></view>
|
<view v-if="!is_release && isData" class="tc head_top" :style="topBarHeight() == 0 ? '': 'height:'+topBarHeight()+'px;'">
|
<view class="reg180" @click="goback"><text class="icon iconfont icon-jiantou"></text></view>
|
<view class="fb">{{titel}}</view>
|
</view>
|
<!-- #endif -->
|
<!--头部图片-->
|
<view class="banner d-c-c d-c" v-if="!is_release && isData">
|
<image :src="top_background" mode="widthFix"></image>
|
</view>
|
|
<!--是-->
|
<template v-if="is_release && isData">
|
<view class="agent-wrap pr m-0-20 mt20">
|
<view class="d-b-c f28 lh150 user-info">
|
<view class="d-b-c">
|
<view class="photo">
|
<image :src="user.avatarUrl" mode="aspectFill"></image>
|
</view>
|
<view>
|
<view class="user-name">
|
<view class="gray3 f32">{{ user.nickName }}</view>
|
</view>
|
<view class="gray3 d-s-c mt10">
|
<text class="f28 flex-1 mr20">连盟币:{{user.points}}</text>
|
<view @click="jump">
|
<text>[切换到供应方]</text>
|
<text class="iconfont icon-jiantou"></text>
|
</view>
|
</view>
|
</view>
|
</view>
|
</view>
|
|
<!-- <view class="d-s-c p-30-0 top_dash">
|
<view class="flex-1 d-c-c d-c">
|
<view class="redF6">
|
<text class="f24">¥</text>
|
<text class="f40">{{ release.money }}</text>
|
</view>
|
<view class="pt20 f26 gray3">可提现</view>
|
</view>
|
<view class="flex-1 d-c-c d-c">
|
<view class="">
|
<text class="f24">¥</text>
|
<text class="f40">{{ release.freeze_money }}</text>
|
</view>
|
<view class="pt20 f28 gray3">待提现</view>
|
</view>
|
<view class="flex-1 d-c-c d-c">
|
<view class="">
|
<text class="f24">¥</text>
|
<text class="f40">{{ release.total_money }}</text>
|
</view>
|
<view class="pt20 f28 gray3">已提现</view>
|
</view>
|
</view>
|
<view class="d-c-c pt30">
|
<button type="primary" class="btn-gcred theme-btn flex-1" @click="gotoCash">我要提现</button>
|
<button type="primary" class="btn-gcred theme-btn flex-1" @click="gotoPage('/pages3/release/demandproject/index')">发布需求</button>
|
</view>-->
|
</view>
|
|
<view class="bind_phone" v-if="release.is_check == 0">
|
<view class="bind_content">
|
<view class="bind_txt">您还没有查看信息权限,需{{pay_price}}连盟币开通</view>
|
<button class="bind_btn" @click="topay">去开通</button>
|
</view>
|
</view>
|
|
<!--图标入口-->
|
<view class="agent-wrap m-0-20 p30 d-s-c f-w mt20 bg-white">
|
<view class="d-c-c d-c flex-1" @click="gotoPage('/pages3/release/project/list?product_type=1')">
|
<view>
|
<image class="agent_index_img" src="../../../static/icon/icon-erweima.png" mode=""></image>
|
</view>
|
<text class="pt10 f26 mt20">供需大厅</text>
|
</view>
|
<view class="d-c-c d-c flex-1" @click="gotoPage('/pages3/release/demandproject/index')">
|
<view>
|
<image class="agent_index_img" src="../../../static/icon/icon-fenxiaodingdan.png" mode=""></image>
|
</view>
|
<text class="pt10 f26 mt20">发布需求</text>
|
</view>
|
<view class="d-c-c d-c flex-1" @click="gotoPage('/pages3/release/chat/chat_list')">
|
<view>
|
<image class="agent_index_img" src="../../../static/icon/icon-zijinmingxi.png" mode=""></image>
|
</view>
|
<text class="pt10 f26 mt20">私信列表</text>
|
</view>
|
|
|
<!--<view class="d-c-c d-c flex-1" @click="gotoPage('/pages2/salesman/qrcode/qrcode')">
|
<view>
|
<image class="agent_index_img" src="../../../static/icon/icon-erweima.png" mode=""></image>
|
</view>
|
<text class="pt10 f26 mt20">关注公众号</text>
|
</view> -->
|
</view>
|
<!-- <view class="no-team">
|
<view class="mt50 p-0-20 pt30 red f34 tc">恭喜您,已申请成为</view>
|
</view>
|
<view class="p30 mt30">
|
<button type="primary" class="btn-gcred" @click="toOrder()">立即</button>
|
</view> -->
|
</template>
|
<!--不是-->
|
<template v-if="!is_release && isData">
|
<view class="no-team">
|
<view class="mt50 p-0-20 pt30 red f34 tc">很抱歉,您还不是需求方</view>
|
</view>
|
<view class="p30 mt30">
|
<button type="primary" class="btn-gcred" @click="apply()">立即申请入驻</button>
|
</view>
|
</template>
|
<shopTabBar></shopTabBar>
|
</view>
|
</template>
|
|
<script>
|
export default {
|
data() {
|
return {
|
/*是否加载完成*/
|
loadding: true,
|
indicatorDots: true,
|
autoplay: true,
|
interval: 2000,
|
duration: 500,
|
is_release: false,
|
isData: false,
|
release: {},
|
/*顶部背景*/
|
top_background: '',
|
user:[],
|
setting:[],
|
pay_price:0,
|
};
|
},
|
onLoad(e) {
|
},
|
onShow() {
|
uni.showLoading({
|
title: '加载中'
|
});
|
/*获取数据*/
|
this.getData();
|
},
|
methods: {
|
/*获取数据*/
|
getData() {
|
let self = this;
|
self._get('plus.release.demandIndex/index', {}, function(data) {
|
self.is_release= data.data.is_release;
|
self.top_background = data.data.background;
|
self.release = data.data.release;
|
self.user = data.data.user;
|
self.setting = data.data.setting;
|
if(self.setting.check_price && self.setting.check_price!= null){
|
self.pay_price = self.setting.check_price;
|
}
|
self.isData = true;
|
self.loadding = false;
|
uni.hideLoading();
|
});
|
},
|
|
topay() {
|
let self = this;
|
let formData=self.form;
|
uni.showLoading({
|
title: '加载中'
|
});
|
self._post(
|
'plus.release.demandIndex/topay', {
|
pay_source: self.getPlatform(),
|
formData: JSON.stringify(formData),
|
},
|
function(res) {
|
uni.hideLoading();
|
self.showSuccess(res.msg,function(){
|
self.getData();
|
});
|
}
|
);
|
},
|
|
/*切换身份*/
|
jump() {
|
this.gotoPage('/pages3/release/supplyindex/index');
|
},
|
|
/*申请入驻*/
|
apply() {
|
this.gotoPage('/pages3/release/demandapply/apply');
|
},
|
/*发布*/
|
toOrder() {
|
this.gotoPage('/pages3/release/demandorder/myorder');
|
},
|
/*去提现*/
|
gotoCash() {
|
this.gotoPage('/pages3/release/demandcash/apply/apply');
|
},
|
goback() {
|
uni.navigateBack();
|
},
|
}
|
};
|
</script>
|
|
<style lang="scss">
|
page {
|
background-color: #f9f9f9;
|
}
|
|
.index-agent .banner {
|
position: absolute;
|
width: 750rpx;
|
height: 348rpx;
|
z-index: 0;
|
min-height: 167rpx;
|
/* padding-bottom: 60rpx; */
|
background-repeat: no-repeat;
|
background-size: 100%;
|
}
|
|
.index-agent .banner image {
|
width: 100%;
|
}
|
|
.no-agent {
|
// padding-top: 190rpx;
|
}
|
|
.no-agent-image {
|
padding-top: 20rpx;
|
margin: 0 auto;
|
}
|
|
.no-agent-image image {
|
width: 532rpx;
|
height: 340rpx;
|
|
}
|
|
.agent-wrap {
|
background: #FFFFFF;
|
background-size: 100% 100%;
|
padding: 31rpx 25rpx 36rpx 25rpx;
|
box-shadow: 0px 8rpx 3rpx 0px rgba(6,0,1,0.03);
|
border-radius: 20rpx;
|
}
|
|
.index-agent .agent-wrap .iconfont {
|
font-size: 60rpx;
|
}
|
|
.index-agent .btn-gcred {
|
height: 88rpx;
|
line-height: 88rpx;
|
border-radius: 44rpx;
|
background: #FF5649;
|
border-color: #FF5649;
|
}
|
|
.reg180 {
|
padding-right: 20rpx;
|
text-align: right;
|
transform: rotateY(180deg);
|
position: absolute;
|
bottom: 0;
|
}
|
|
.icon-jiantou {
|
|
color: #FFFFFF;
|
font-size: 30rpx;
|
}
|
|
.head_top {
|
position: absolute;
|
width: 100%;
|
padding-top: var(--status-bar-height);
|
height: 30px;
|
line-height: 30px;
|
color: #FFFFFF;
|
font-size: 32rpx;
|
z-index: 2;
|
}
|
|
.top_dash {
|
border-bottom: 1rpx dashed #D9D9D9;
|
padding-bottom: 9px;
|
|
}
|
|
.agent_index_img {
|
width: 78rpx;
|
height: 78rpx;
|
}
|
.info-top{
|
padding: 74rpx 0 63rpx 44rpx;
|
}
|
.info-ava {
|
width: 108rpx;
|
height: 108rpx;
|
border-radius: 50%;
|
position: relative;
|
margin-right: 30rpx;
|
}
|
.info-avatar {
|
width: 108rpx;
|
height: 108rpx;
|
border-radius: 50%;
|
}
|
|
.info-grade {
|
min-width: 114rpx;
|
height: 30rpx;
|
line-height: 30rpx;
|
padding: 0 22rpx;
|
box-sizing: border-box;
|
font-size: 18rpx;
|
color: #ffffff;
|
background: #FFC519;
|
box-shadow: 0px 3rpx 7rpx 0px rgba(0, 0, 0, 0.15);
|
border-radius: 15rpx;
|
text-align: center;
|
white-space: nowrap;
|
position: absolute;
|
left: 0;
|
right: 0;
|
bottom: -16rpx;
|
z-index: 2;
|
}
|
|
.section-product .price {
|
color: #F6220C;
|
font-size: 24rpx;
|
}
|
|
.section-product .price .num {
|
padding: 0 4rpx;
|
font-size: 32rpx;
|
}
|
|
.section-product .level-box {
|
margin-top: 20rpx;
|
display: flex;
|
justify-content: space-between;
|
align-items: center;
|
}
|
|
.section-product .level-box .key {
|
font-size: 24rpx;
|
color: #999999;
|
}
|
|
.section-product .level-box .num-wrap {
|
display: flex;
|
justify-content: flex-end;
|
align-items: center;
|
}
|
|
.section-product .level-box .icon-box {
|
width: 33rpx;
|
height: 33rpx;
|
border: 1px solid #c5c5c5;
|
background: #f2f2f2;
|
}
|
|
.section-product .level-box .icon-box .gray {
|
color: #cccccc;
|
}
|
|
.section-product .level-box .icon-box .gray3 {
|
color: #333333;
|
}
|
|
.section-product .level-box .text-wrap {
|
margin: 0 20rpx;
|
height: 33rpx;
|
border: none;
|
background: none;
|
}
|
|
.section-product .level-box .text-wrap input {
|
padding: 0 4rpx;
|
height: 33rpx;
|
line-height: 1;
|
width: 40rpx;
|
font-size: 32rpx;
|
text-align: center;
|
display: flex;
|
align-items: center;
|
min-height: 33rpx;
|
}
|
|
.section-product .icon-jiantou {
|
color: #999;
|
}
|
|
.user-info .photo,
|
.user-info .photo image {
|
width: 100rpx;
|
height: 100rpx;
|
border-radius: 50%;
|
}
|
|
.user-info .photo {
|
padding-right: 20rpx;
|
}
|
|
.bind_phone {
|
width: 100%;
|
height: 80rpx;
|
padding: 0 30rpx;
|
box-sizing: border-box;
|
margin-bottom: 30rpx;
|
}
|
|
.bind_content {
|
display: flex;
|
justify-content: space-between;
|
align-items: center;
|
background: #ffffff;
|
/* box-shadow: 0 0 6rpx 0 rgba(0, 0, 0, 0.1); */
|
border-radius: 16rpx;
|
height: 100%;
|
padding: 0 20rpx;
|
}
|
|
.bind_txt {}
|
|
.bind_btn {
|
width: 134rpx;
|
height: 50rpx;
|
line-height: 50rpx;
|
font-size: 22rpx;
|
border-radius: 25rpx;
|
text-align: center;
|
color: #FFFFFF;
|
background-color: #e2231a;
|
}
|
</style>
|