|
@@ -1,6 +1,16 @@
|
|
|
<template>
|
|
|
<view>
|
|
|
- <image :src="$getImageUrl('static/images/applet/broker/topBg.png')" class="header-image" mode="widthFix"></image>
|
|
|
+ <view class="header">
|
|
|
+ <image
|
|
|
+ :src="brokerinfo.type == 1 ? $getImageUrl('static/images/applet/broker/topBg.png') : $getImageUrl('static/images/applet/broker/topBgRed.png')"
|
|
|
+ class="header-image" mode="widthFix"></image>
|
|
|
+ <view class="header-notice" @click="goPage('/pages/broker/brokerNotice')">
|
|
|
+ <u-icon name="volume" color="#E0E0E0" size="28"></u-icon>
|
|
|
+ <view>公告</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+
|
|
|
<view class="cu-bar bg-white solid-bottom">
|
|
|
<view class="action">
|
|
|
<text class="cuIcon-title text-orange "></text> {{income_title}}
|
|
@@ -11,11 +21,15 @@
|
|
|
</view>
|
|
|
<view class="lw-table">
|
|
|
<view class="lw-table-item padding">
|
|
|
- <view :class="{'text-price':brokerinfo.type == 1}" class="lw-table-value text-bold text-red">{{statistics.income_total}}</view>
|
|
|
+ <view :class="{'text-price':brokerinfo.type == 1}" class="lw-table-value text-bold text-red">
|
|
|
+ {{statistics.income_total}}
|
|
|
+ </view>
|
|
|
<view class="lw-table-title text-gray padding-top-xs">{{income_total_title}}</view>
|
|
|
</view>
|
|
|
<view class="lw-table-item padding">
|
|
|
- <view :class="{'text-price':brokerinfo.type == 1}" class="lw-table-value text-bold text-red">{{statistics.income}}</view>
|
|
|
+ <view :class="{'text-price':brokerinfo.type == 1}" class="lw-table-value text-bold text-red">
|
|
|
+ {{statistics.income}}
|
|
|
+ </view>
|
|
|
<view class="lw-table-title text-gray padding-top-xs">{{income_now_title}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -36,16 +50,19 @@
|
|
|
</view>
|
|
|
<view class="cu-list grid col-3 no-border margin-top">
|
|
|
<view class="cu-item text-center" @click="goNavPage('/pages/broker/broker')">
|
|
|
- <image class="myicon" :src="$getImageUrl('static/images/applet/broker/code.png')" style="width: 50rpx;height: 50rpx;"></image>
|
|
|
+ <image class="myicon" :src="$getImageUrl('static/images/applet/broker/code.png')"
|
|
|
+ style="width: 50rpx;height: 50rpx;"></image>
|
|
|
<text>我的邀请码</text>
|
|
|
</view>
|
|
|
<view class="cu-item text-center" @click="goNavPage('/pages/broker/myorder')">
|
|
|
- <image class="myicon" :src="$getImageUrl('static/images/applet/broker/order.png')" style="width: 50rpx;height: 50rpx;"></image>
|
|
|
+ <image class="myicon" :src="$getImageUrl('static/images/applet/broker/order.png')"
|
|
|
+ style="width: 50rpx;height: 50rpx;"></image>
|
|
|
<text>劳务订单</text>
|
|
|
<view style="color: #888;font-size: 26rpx;">(针对劳务机构)</view>
|
|
|
</view>
|
|
|
<view class="cu-item text-center" @click="goNavPage('/pages/my/myentry')">
|
|
|
- <image class="myicon" :src="$getImageUrl('static/images/applet/broker/record.png')" style="width: 50rpx;height: 50rpx;"></image>
|
|
|
+ <image class="myicon" :src="$getImageUrl('static/images/applet/broker/record.png')"
|
|
|
+ style="width: 50rpx;height: 50rpx;"></image>
|
|
|
<text>悬赏报备记录</text>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -71,6 +88,7 @@
|
|
|
_this = this;
|
|
|
_this.userinfo = uni.getStorageSync('userinfo') || false;
|
|
|
_this.brokerinfo = uni.getStorageSync('brokerinfo') || false;
|
|
|
+ console.log("经纪人", _this.brokerinfo)
|
|
|
if (_this.userinfo === false || _this.brokerinfo === false) {
|
|
|
uni.reLaunch({
|
|
|
url: "/pages/my/my"
|
|
@@ -80,6 +98,12 @@
|
|
|
_this.init();
|
|
|
},
|
|
|
methods: {
|
|
|
+ goPage(src) {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/broker/brokerNotice'
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
init: function() {
|
|
|
_this.$req.ajax({
|
|
|
path: "broker/center",
|
|
@@ -128,9 +152,30 @@
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
-<style scoped>
|
|
|
- .header-image {
|
|
|
- width: 750rpx;
|
|
|
+<style lang="scss" scoped>
|
|
|
+ .header {
|
|
|
+ height: 146rpx;
|
|
|
+ position: relative;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: flex-end;
|
|
|
+
|
|
|
+ .header-image {
|
|
|
+ width: 750rpx;
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ z-index: -1;
|
|
|
+ }
|
|
|
+
|
|
|
+ .header-notice {
|
|
|
+ padding-right: 40rpx;
|
|
|
+ font-size: 25rpx;
|
|
|
+ color: #E0E0E0;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ justify-content: center;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.lw-table {
|