经纪人

This commit is contained in:
Mr.jiang 2024-08-09 18:40:09 +08:00
parent aa91ef3c3c
commit ba4b56efd8
13 changed files with 2271 additions and 204 deletions

View File

@ -17,7 +17,7 @@
<span class="bgimg-top-money-moeny">{{money}}</span>
<view class='bgimg-top-money-view'>
<!-- <span>账户余额()</span> -->
<span>盛安{{sadNum}}</span>
<span>盛安{{sadNum}}</span>
</view>
</view>
<view class="mingxi" v-if="artificerIdMy==true" @click="goNav('/my/wallet/mymoneydetail')">钱包明细</view>

View File

@ -165,15 +165,15 @@
color: #999999;
}
.btn {
background: linear-gradient(to right, #223845, #00a85b);
color: #FFFFFF;
margin: 30upx;
width: 90%;
border-radius: 50rpx;
height: 78rpx;
line-height: 78rpx;
font-size: 30rpx;
margin: 0 auto;
text-align: center;
background: linear-gradient(90deg, #019C88, #28BA92, #35C495);
height: 38px;
border-radius: 38px;
color: #ffffff;
line-height: 38px;
font-size: 15px;
}
.tui-line-cell {
width: 80%;

View File

@ -150,15 +150,15 @@
color: #999999;
}
.btn {
background: linear-gradient(to right, #223845, #00a85b);
color: #FFFFFF;
margin: 30upx;
width: 90%;
border-radius: 50rpx;
height: 78rpx;
line-height: 78rpx;
font-size: 30rpx;
margin: 0 auto;
text-align: center;
background: linear-gradient(90deg, #019C88, #28BA92, #35C495);
height: 38px;
border-radius: 38px;
color: #ffffff;
line-height: 38px;
font-size: 15px;
}
.confirm-btn {
width: 300px;

View File

@ -97,6 +97,50 @@
}
}
},
{
"path": "pages/my/applyBroker/mymoneydetail",
"style": {
"navigationBarTitleText": "我的收益",
"enablePullDownRefresh": false,
"navigationStyle": "custom",
"app-plus": {
"titleNView": false
}
}
},
{
"path": "pages/my/applyBroker/myInvitation",
"style": {
"navigationBarTitleText": "我的邀请",
"enablePullDownRefresh": false,
"navigationStyle": "custom",
"app-plus": {
"titleNView": false
}
}
},
{
"path": "pages/my/applyBroker/withdrawalRecord",
"style": {
"navigationBarTitleText": "提现记录",
"enablePullDownRefresh": false,
"navigationStyle": "custom",
"app-plus": {
"titleNView": false
}
}
},
{
"path": "pages/my/applyBroker/withdrawal",
"style": {
"navigationBarTitleText": "提现",
"enablePullDownRefresh": false,
"navigationStyle": "custom",
"app-plus": {
"titleNView": false
}
}
},
{
"path": "pages/my/applySalesperson/index",
"style": {

View File

@ -6,7 +6,7 @@
<view class="text_view">
<view class="item_view">
<view class="item_title">姓名</view>
<u-input type="text" v-model="userName" placeholder="请输入姓名" />
<u-input type="text" v-model="name" placeholder="请输入姓名" />
<view class="xian"></view>
</view>
<view class="item_view">
@ -21,7 +21,7 @@
</view>
<view class="list-pay">
<view class="textarea-pay-list">
<textarea @input="textareaChange" class="textarea-pay" v-model="textareaData" placeholder="请输入备注" name="" maxlength="100"></textarea>
<textarea @input="remarks" class="textarea-pay" v-model="remarks" placeholder="请输入备注" name="" maxlength="100"></textarea>
</view>
</view>
</view>
@ -36,18 +36,18 @@
export default {
data() {
return {
userName: '',
name: '',
phone: '',
textareaData:''
remarks:''
}
},
onLoad() {
this.getChannel();
// this.getChannel();
},
methods: {
textareaChange(e){//
this.textareaData=e.detail.value
this.remarks=e.detail.value
console.log("adsadas0",this.textareaData)
},
getChannel() {
@ -70,7 +70,7 @@
});
},
save() {
if (this.userName === '') {
if (this.name === '') {
this.$queue.showToast('请输入姓名')
return;
}
@ -81,17 +81,17 @@
let userId = this.$queue.getData('userId');
let data = {
userId: userId,
name: this.userName,
remarks: this.remarks,
name: this.name,
phone: this.phone,
}
this.$Request.postJson('/app/artificer/insertAgency', data).then(res => {
this.$Request.get('/app/commission/jjr/apply', data).then(res => {
if (res.code == 0) {
uni.hideLoading();
this.$queue.showToast('提交成功!');
setTimeout(d => {
uni.navigateBack();
}, 1000);
this.$queue.showToast(res.msg);
// setTimeout(d => {
// uni.navigateBack();
// }, 1000);
} else {
uni.hideLoading();
this.$queue.showToast(res.msg);

View File

@ -8,7 +8,7 @@
</view>
<view class="bgimg-top-view">
<view class="bgimg-top-money">
<span></span>
<span>{{listData.name}}</span>
<!-- <span>平台</span>
<span style="color: #fff;">当前身份一级分销员</span> -->
</view>
@ -17,26 +17,26 @@
<view class="mian">
<view class="mian-title" style="position: relative;">
<view class="mian-title-top">
<span class="money">0.00</span>
<span class="money">{{listData.withdrawableAmount}}</span>
<span class="list-title">可提现()</span>
</view>
<view class="mian-title-top">
<view class="detail-btn" @click="cashMoney">
<view class="detail-btn" @click="goNav('/pages/my/applyBroker/withdrawal')">
我要提现</view>
</view>
<image class="bangzhu" src="../../../static/bangzhu.png" mode=""></image>
<!-- <image class="bangzhu" src="../../../static/bangzhu.png" mode=""></image> -->
</view>
<view class="mian-list">
<view class="list-view">
<view class="money">0.00</view>
<view class="money">{{listData.income}}</view>
<view class="list-title">累计佣金()不含手续费</view>
</view>
<view class="list-view">
<view class="money">0.00</view>
<view class="money">{{listData.withdrawal}}</view>
<view class="list-title">已提现()</view>
</view>
<view class="list-view">
<view class="money">0.00</view>
<view class="money">{{listData.notCredited}}</view>
<view class="list-title">未入账()</view>
</view>
</view>
@ -44,15 +44,15 @@
</view>
</view>
<view class="mian-bottom">
<view class="mian-bottom-list">
<view class="mian-bottom-list" @click="goNav('/pages/my/applyBroker/mymoneydetail')">
<image class="mian-bottom-img" src="../../../static/my-gong-17.png" mode=""></image>
<span>我的收益</span>
</view>
<view class="mian-bottom-list">
<view class="mian-bottom-list" @click="goNav('/pages/my/applyBroker/myInvitation')">
<image class="mian-bottom-img" src="../../../static/my-gong-19.png" mode=""></image>
<span>我的邀请</span>
</view>
<view class="mian-bottom-list">
<view class="mian-bottom-list" @click="goNav('/pages/my/applyBroker/withdrawalRecord')">
<image class="mian-bottom-img" src="../../../static/my-gong-20.png" mode=""></image>
<span>提现记录</span>
</view>
@ -61,40 +61,187 @@
<view class="mian-foot-top">
<view class="mian-foot-top-list">
<span class="list-title">今日成交订单</span>
<span class="money">0</span>
<span class="money">{{listData.curOrdersCount}}</span>
</view>
<view class="mian-foot-top-list">
<span class="list-title">累计成交订单</span>
<span class="money">0</span>
<span class="money">{{listData.ordersCount}}</span>
</view>
</view>
<view class="mian-foot-top" style="margin-top: 10px;">
<view class="mian-foot-top-list">
<span class="list-title">今日新增技师</span>
<span class="money">0</span>
<span class="money">{{listData.curArtificerCount}}</span>
</view>
<view class="mian-foot-top-list">
<span class="list-title">累计入驻技师</span>
<span class="money">0</span>
<span class="money">{{listData.artificerCount}}</span>
</view>
</view>
</view>
<view class="foot-img-list">
<view class="foot-img-list" @click="showModal">
<image class="foot-img" src="../../../static/suggest-banner.png" mode=""></image>
</view>
<tki-qrcode ref="qrcode" :val="url" :size="200" background="#fff" foreground="#000" pdground="#000"
:onval="true" :loadMake="true" @result="qrR" :show="false"></tki-qrcode>
<view class="cu-modal" :class="modalName == 'Image' ? 'show' : ''" @tap="hideModal">
<view class="cu-dialog" v-if="backgroundImage && erweimapath && haibaoShow" @tap="hideModal">
<view class="bg-img">
<wm-poster @success="posterSuccess" :imgSrc="backgroundImage" :Referrer="'我的邀请码:'+invitationCode"
:QrSrc="erweimapath" :Title="tuiguang" :LineType="false"></wm-poster>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
import tkiQrcode from '@/components/tki-qrcode/tki-qrcode.vue';
import wmPoster from '@/components/wm-poster/wm-posterorders.vue';
export default {
components: {
wmPoster,
tkiQrcode
},
data() {
return {
url: '',
avatar: '',
listData:[],
haibaoImg: null,
haibaoShow: false,
modalName: '',
backgroundImage:'',
invitationCode: '',
erweimapath: '',
tuiguang: '',
}
},
onLoad() {
this.avatar = uni.getStorageSync('avatar')
this.getData();
this.getBackImageList();
this.getUserInfo();
this.$Request.getT('/app/common/type/116').then(res => {
if (res.code === 0) {
if (res.data && res.data.value) {
this.tuiguang = res.data.value;
this.tuiguang1 = res.data.value;
}
}
});
//APP
this.$Request.getT('/app/common/type/136').then(res => {
if (res.code === 0) {
if (res.data && res.data.value) {
this.isShowWxAPPShare = res.data.value;
}
}
});
// #ifndef H5
this.$Request.getT('/app/common/type/25').then(res => {
if (res.code === 0) {
if (res.data && res.data.value) {
this.url = res.data.value;
}
}
});
//#endif
},
onShareAppMessage(res) {
return {
path: '/pages/index/index?invitation=' + this.invitationCode, // onload(data){let id=data.id;}
title: this.tuiguang,
imageUrl: this.bgImg
}
},
methods:{
getUserInfo() {
this.$Request.get("/app/user/selectUserById").then(res => {
if (res.code == 0) {
this.nickName = res.data.userName
this.invitationCode = res.data.invitationCode
this.userImageUrl = res.data.avatar ? res.data.avatar : '../../static/logo.png'
// #ifdef H5
this.$Request.getT('/app/common/type/141').then(res => {
if (res.code === 0) {
if (res.data && res.data.value && res.data.value == '是') {
this.$Request.getT('/app/common/type/25').then(ress => {
if (ress.code === 0) {
if (ress.data && ress.data.value) {
this.url = ress.data.value;
}
}
});
} else {
this.url = this.$queue.publicYuMingApp() + '/?invitation=' + this
.invitationCode;
}
}
});
//#endif
}
});
},
getBackImageList() {
this.$Request.get("/app/commission/jjr/poster").then(res => {
uni.hideLoading();
if (res.code == 0) {
this.backgroundImage = res.data.artificerImage;
}
console.log("res.data--->", this.backgroundImage);
});
// this.make();
},
make() {
uQRCode.make({
canvasId: 'default_PosterCanvasId',
componentInstance: this,
text: this.url,
size: 68,
margin: 4,
backgroundColor: '#ffffff',
foregroundColor: '#000000',
fileType: 'jpg',
correctLevel: uQRCode.errorCorrectLevel.H,
success: res => {
console.log(res)
}
})
},
hideModal() {
this.modalName = null;
},
qrR(path) {
this.erweimapath = path;
},
posterSuccess(haibaoImg) {
this.haibaoImg = haibaoImg;
this.modalName = 'Image';
},
showModal() {
if (!this.haibaoImg) {
this.haibaoShow = true;
this.$queue.showLoading('海报生成中...');
} else {
this.modalName = 'Image';
}
},
goNav(link){
uni.navigateTo({
url:link+'?navName='+'经纪人'
})
},
getData(){
this.$Request.get("/app/commission/jjr/myJjr").then(res => {
console.log("res.data--->", res.data);
if (res.code == 0) {
this.listData=res.data
}
});
}
}
}
</script>

View File

@ -0,0 +1,763 @@
<template>
<view class="content">
<view class="liebiao">
<view v-if="orderList.length" class="flex text-center flex-wrap list-view">
<view class="margin-bottom-sm radius touxiang-left">
<view class="flex align-center touxiang-left-view" v-for="(item, index) in orderList" :key='index'
>
<view class="touxiang-left-content">
<image class="touxiang-left-content-img" :src="item.avatar ? item.avatar : '../../static/logo.png'"
@click.stop="saveImgs(item.avatar)" mode="aspectFill"></image>
</view>
<view class="list-right">
<view class="flex align-center" style="justify-content: start;">
<view class="flex align-center list-right-top">
<view class="list-right-top-view">
<view class="list-right-top-name">
{{ item.name }}
</view>
<view class="keyuyue">
{{ item.phone}}
</view>
</view>
</view>
</view>
<view class="therapist-mian">
<view class="therapist-mian-top">
<!-- <view class="therap-pin">
<span>联系电话</span>
<span class="therapist-mian-view-text">
{{ item.phone}}
</span>
</view> -->
<view class="therap-pin" >
<span>邀请码:</span>
<span class="therapist-mian-view-text">
{{ item.invitationCode}}
</span>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<empty v-if="orderList.length == 0"></empty>
</view>
<!-- 经验筛选 -->
</view>
</template>
<script>
import empty from '@/components/empty.vue'
export default {
components: {
empty,
},
data() {
return {
orderList: [],
page: 1,
limit: 10,
current: 0,
myId: uni.getStorageSync('userId') ? uni.getStorageSync('userId') : '',
}
},
onLoad(e) {
let that = this
that.getlist()
},
methods: {
saveImgss(imgs, index) {
let imgArr = imgs
// //
uni.previewImage({
urls: imgArr,
current: imgArr[index]
});
},
saveImgs(imgs) {
let imgArr = [];
imgArr.push(imgs);
// //
uni.previewImage({
urls: imgArr,
current: 0
});
},
getlist() {
let data = {
page: this.page,
limit: this.limit,
}
this.$Request.get("/app/commission/jjr/artificerDetail", data).then(res => {
if (res.code == 0) {
if (this.page == 1) {
this.orderList = res.data.list
} else {
this.orderList = [...this.orderList, ...res.data.list]
}
}
uni.stopPullDownRefresh();
})
},
},
onReachBottom: function() {
this.page = this.page + 1;
this.getlist()
},
onPullDownRefresh: function() {
this.page = 1;
this.getlist()
},
}
</script>
<style lang="scss" scoped>
/deep/.u-drawer,/deep/.u-mask-show{
z-index:11 !important;
}
/deep/.u-drawer-content-visible{
z-index:99 !important;
}
.item-view-jianjie{
font-weight: 400;
font-size: 22rpx;
color: #848484;
margin:5px 0px;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2; /* 显示的行数,可以根据需要修改 */
overflow: hidden;
text-overflow: ellipsis;
text-align: left;
}
.touxiang-frame{
position: absolute;
width: 100rpx;
height: 38rpx;
left: 44rpx;
top:140rpx;
}
.dituList{
width: 85%;
height: 173px;
display: flex;
flex-direction: column;
justify-content: space-around;
}
.liebiao{
height: 100vh;
margin-top: 20px;
display: flex;
flex-direction: column;
}
.content-head{
position: fixed;
top: 0rpx;
z-index: 999;
width: 100%;
background: #fff;
//background-image: url('../../static/topimg.png');
// background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0), #f7f7f7), url('../../static/background-img.png');
// background-position: center center;
// background-repeat: no-repeat;
background-size: cover;
// overflow: auto;
}
.therapist-bottom-dingwei-text{
font-size: 29rpx;
color: #848485;
}
.therapist-bottom-dingwei{
width: 17.36rpx;
height: 20.14rpx;
margin-right:3px;
}
.therapist-bottom-img{
width: 22.22rpx;
height: 22.22rpx;
margin-right:3px;
}
.therapist-mian-bottom-text{
font-weight: bold;
font-size: 30rpx;
color: #222222;
white-space: pre-wrap;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
overflow: hidden;
width:60px;
}
.therapist-mian-bottom{
width: 100%;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
margin: 5px 0px 3px 0px;
}
.therapist-mian-view-text span{
font-weight: 500;
font-size: 26rpx;
color: #222222;
}
.therapist-mian-view span{
font-weight: 400;
font-size: 26rpx;
color: #7C8187;
margin-right: 10px;
}
.therapist-mian-view image{
width: 28rpx;
height: 28rpx;
margin-right: 2px;
}
.therapist-mian-view{
display: flex;
flex-direction:row;
align-items: center;
}
.therapist-mian-top{
width: 100%;
display: flex;
flex-direction:row;
}
.therapist-mian{
width: 100%;
display: flex;
flex-direction:column;
}
.list-right-top-bottom{
width: 100%;
text-align: left;
font-weight: 400;
font-size: 25rpx;
color: #333333;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2; /* 显示的行数,可以根据需要修改 */
overflow: hidden;
text-overflow: ellipsis;
}
.list-right-top-name{
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-align: left;
font-weight: bold;
font-size: 32rpx;
color: #13141A;
}
.keyuyue{
padding: 0rpx 10rpx;
height: 44rpx;
display: flex;
flex-direction: row;
align-items: center;
// background: #eefdf8;
border-radius: 30rpx 20rpx 20rpx 30rpx ;
color:#8d500f;
font-size: 24rpx;
}
.timea-img{
background:#2dbe93 url('../../../static/timea.png') 2rpx 1rpx;
background-size: 28rpx 28rpx;
background-repeat: no-repeat;
width: 30rpx;
height: 30rpx;
border-radius:8rpx;
margin-top: 8rpx;
}
.timea-fu{
font-size: 24rpx;
color: #2dbe93;
line-height: 44rpx;
margin-left: 8rpx;
margin-right: 5rpx;
}
.timea-time{
font-size: 25rpx;
color: #2dbe93;
line-height: 44rpx;
padding-right: 10rpx;
}
.keyuyue .keyuyue-btn{
width: 50%;
height: 100%;
font-weight: 400;
font-size: 17rpx;
text-align: center;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
.keyuyue-jinri{
border-top-left-radius: 7rpx;
border-bottom-left-radius: 7rpx;
border-radius: 7rpx;
color: #fff;
background: linear-gradient(90deg, #019C88, #28BA92, #35C495);
}
.keyuyue-time{
border-top-right-radius: 7rpx;
border-bottom-right-radius: 7rpx;
color: #039E89;
background: #EBEBEB;
}
.list-right-top-view image{
width: 168.75rpx;
height: 40.97rpx;
}
.list-right-top-view{
width: 100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.list-right-top{
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
}
.list-right{
width: 72%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-evenly;
padding: 16rpx;
}
.zpmore_view {
position: absolute;
bottom: -20rpx;
left: 14rpx;
color: #f9f3d3;
background: linear-gradient(to right, #0a0c16, #4d4d53);
width: 130upx;
text-align: center;
border-radius: 30rpx;
height: 42rpx;
line-height: 42rpx;
font-size: 24rpx;
margin-left: 10rpx;
}
.zpmore_view_left{
width: 68.75rpx;
height: 29.86rpx;
}
.img-span{
padding: 1px 5px;
font-weight: 400;
font-size: 8px;
color: #FFFFFF;
background: linear-gradient(-90deg, #FF6F48, #FF9E69);
border-radius: 7px 0px 7px 0px;
position: absolute;
bottom: 0px;
right: 0;
margin-bottom: 5px;
margin-right: 5px;
}
// .zpmore_view_left image{
// position: absolute;
// bottom: 0px;
// right: 0px;
// margin: 0px 5px -16px 0px;
// width: 68.75rpx;
// height: 29.86rpx;
// }
.touxiang{
width: 202.08rpx;
height: 306.94rpx;
}
.touxiang-left-content{
width: 180rpx;
//width: 235.08rpx;
height: auto;
border-radius: 10rpx;
position: relative;
}
.touxiang-left-content-img{
width: 150rpx;
height: 150rpx;
border-radius:120rpx;
margin: 14rpx 22rpx;
}
.touxiang-left-view{
width: 100%;
height: 126px;
border-radius: 18rpx;
align-items: flex-start;
background: #fff;
margin-bottom: 12px;
padding-bottom: 10px;
justify-content: space-between;
padding: 10rpx;
align-items: center;
}
.touxiang-left{
width: 100%;
/* padding: 10px; */
display: flex;
flex-direction: column;
// justify-content: space-between;
align-items: baseline;
}
.list-view{
// margin-top: 52px;
padding: 0 20rpx;
height: 100%;
justify-content: space-between;
}
/deep/.justify-between{
// width: 100px;
// height: 32px;
line-height: 32px;
border-radius: 4px;
margin-left: 10px;
}
.padding-top-sm{
width: 95%;
margin: 0 auto;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
/deep/.page-box{
background: none !important;
}
/deep/.u-action{
display: none;
}
.content{
width: 100%;
height: 100vh;
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
// overflow: auto;
}
/deep/.u-content{
border-radius: 30px !important;
}
.flex-sub{
width: 353rpx;
height: 63rpx !important;
}
.localName{
margin-left: 4rpx;
font-weight: bold;
font-size: 33rpx;
color: #333333;
}
.dingwei-img{
width:33.33rpx;
height:37.5rpx;
}
page {
background-color: #F7F7F7;
}
.jishi_name {
max-width: 80rpx;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
.zz_view {
color: #333333;
font-size: 24rpx;
padding: 6rpx 10rpx;
border-radius: 10rpx;
}
.zpmore_view {
position: absolute;
bottom: -20rpx;
left: 14rpx;
color: #f9f3d3;
background: linear-gradient(to right, #0a0c16, #4d4d53);
width: 130upx;
text-align: center;
border-radius: 30rpx;
height: 42rpx;
line-height: 42rpx;
font-size: 24rpx;
margin-left: 10rpx;
}
.byy_view {
background: #ebebeb;
width: 100upx;
text-align: center;
border-radius: 50rpx;
height: 40rpx;
line-height: 40rpx;
font-size: 24rpx;
color: #000000;
// border: 3upx solid #999999;
margin-top: 6rpx;
margin-left: 40rpx;
}
.kfw_view {
background: #ffaa00;
width: 100upx;
text-align: center;
border-radius: 50rpx;
height: 40rpx;
line-height: 40rpx;
font-size: 24rpx;
color: #FFFFFF;
margin-top: 6rpx;
margin-left: 40rpx;
}
.kyy_view {
background: #096f4b;
width: 100upx;
text-align: center;
border-radius: 50rpx;
height: 40rpx;
line-height: 40rpx;
font-size: 24rpx;
color: #FFFFFF;
margin-top: 6rpx;
margin-left: 40rpx;
}
.bg {
background: #FFFFFF;
}
.ytp_view {
background: #e3e3e3;
width: 400rpx;
border-radius: 10rpx;
font-size: 28rpx;
text-align: center;
height: 80rpx;
line-height: 80rpx;
color: #848484;
margin-top: 40rpx;
}
.tp_view {
background: #ee6c54;
width: 400rpx;
border-radius: 10rpx;
font-size: 28rpx;
text-align: center;
height: 80rpx;
line-height: 80rpx;
color: #FFFFFF;
margin-top: 40rpx;
}
.sticky-tabs {
z-index: 990;
position: sticky;
top: var(--window-top);
// background-color: #fff;
}
/* // 使用mescroll-uni,则top为0 */
.mescroll-uni,
/deep/.mescroll-uni {
.sticky-tabs {
top: 0;
}
}
.demo-tip {
padding: 18upx;
font-size: 24upx;
text-align: center;
}
.line_s {
display: inline-flex;
width: 10rpx;
height: 10rpx;
background: #1AD566;
border-radius: 50%;
margin-right: 10rpx;
}
.line_x {
display: inline-flex;
width: 10rpx;
height: 10rpx;
background: #000000;
border-radius: 50%;
margin-right: 10rpx;
}
.box {
// border: 3rpx solid #005dff;
background: #E8FAE1;
color: #096f4b;
padding: 5rpx 15rpx;
font-size: 26rpx;
letter-spacing: 2rpx;
border-radius: 8rpx;
// margin-top: 10rpx;
margin-right: 8upx;
}
.actve {
font-size: 30rpx;
font-family: PingFang SC;
font-weight: 800;
color: #20C675;
}
.tabview1 {
// width: 686upx;
// height: 100upx;
background: #FFFFFF;
// z-index: 99;
// display: flex;
// line-height: 100upx;
.tabview {
// width: 686upx;
// // height: 100upx;
border-radius: 24rpx 24rpx 0 0;
// margin-top: -50upx;
// z-index: 99;
display: flex;
line-height: 100upx;
.tabItem_sel {
font-size: 32upx;
font-family: PingFang SC;
font-weight: 800;
color: #ffffff;
background: linear-gradient(to right, #223845, #00a85b);
flex: 1;
text-align: center;
}
.tabItem {
font-size: 32upx;
font-family: PingFang SC;
color: #333333;
flex: 1;
text-align: center;
}
}
.tabsx {
width: 686upx;
border-radius: 24rpx;
padding-bottom: 10rpx;
display: flex;
align-items: center;
justify-content: space-between;
padding: 20rpx 30rpx;
font-size: 26rpx;
.active {
color: #20C675;
font-size: 30rpx;
font-weight: bold;
}
}
}
.aa {
background: linear-gradient(to right, #223845, #00a85b);
width: 46px;
text-align: center;
height: 24px;
line-height: 24px;
margin-left: 4px;
color: #ffffff;
box-shadow: 0 0 3px #dddddd;
border-radius: 4px;
}
.bb {
width: 46px;
text-align: center;
height: 24px;
line-height: 24px;
margin-left: 4px;
color: #666666;
border-radius: 4px;
background-color: #f7f7f7;
}
//
/deep/.custom-content-marker {
width: 70px;
height: 70px;
.marker_border {
//border: black solid;
width: 20px;
height: 20px;
padding: 5px;
background: white;
box-shadow: 0px 5px 10px #888888;
border-radius: 50%;
}
.marker_foot {
// height: 50px;
// width: 50px;
// background: black;
// transform: rotate(45deg);
// position: absolute;
// top: 50px;
// overflow: hidden;
}
}
/deep/.custom-content-marker img {
width: 100%;
height: 100%;
border-radius: 50%;
}
.make-now{
background: linear-gradient(90deg, rgb(1, 156, 136), rgb(15, 167, 139), rgb(53, 196, 149));
color: rgb(255, 255, 255);
width: 200rpx;
border-radius: 15px;
height: 30px;
line-height: 30px;
margin-top: 5px;
}
.therap-pin{
display: flex;
align-items: flex-end;
margin-right: 10rpx;
}
.therap-pin span:nth-child(2){
color: #019c88;
}
.therap-pin span:nth-child(1){
color: #666;
margin-right: 10rpx;
}
.terap-button{
background: linear-gradient(90deg, #019C88, #0FA78B, #35C495);
color: #ffffff;
width:130rpx;
height: 60rpx;
border-radius: 10upx;
line-height: 58rpx;
}
</style>

View File

@ -0,0 +1,191 @@
<template>
<view class="content">
<view class="content-mian">
<view class="content-list" v-for="(item, index) in list" :key="index">
<view class="list-top">
<view class="list-top-view">
<span class="list-top-view-title">{{item.title}}</span>
</view>
<text v-if="item.type == 1" class="text-olive" style="font-size: 32upx;font-weight: 600"><text class="text-olive">+</text>{{item.money}}</text>
<text v-if="item.type == 2" class="text-red" style="font-size: 32upx;font-weight: 600"><text class="text-red">-</text>{{item.money}}</text>
</view>
<view class="list-bottom">
<view class="list-bottom-ding">
{{item.content}}
</view>
<view class="list-bottom-time">
创建时间{{item.createTime}}
</view>
</view>
</view>
<empty v-if="list.length == 0" content="暂无明细" ></empty>
</view>
</view>
</template>
<script>
import empty from '@/components/empty.vue'
export default {
components: {
empty
},
data() {
return {
list: [],
page: 1,
limit: 10,
tabIndex: 1,
checkReZhiShu: '否',
checkReTuanZhang: '否',
checkReFeiZhiShu: '否',
scrollTop: false,
contentText: {
contentdown: '上拉显示更多',
contentrefresh: '正在加载...',
contentnomore: '没有更多数据了'
}
}
},
onLoad() {
this.$queue.showLoading("加载中...");
this.getList();
},
onPageScroll: function(e) {
this.scrollTop = e.scrollTop > 200;
},
methods: {
getList() {
let userId = this.$queue.getData('userId');
let data = {
page: this.page,
limit: this.limit
}
this.$Request.getT('/app/commission/jjr/incomeDetail',data ).then(res => {
if (res.code === 0) {
if (this.page === 1) {
this.list = res.data.list;
} else {
this.list = [...this.list, ...res.data.list];
}
}
uni.stopPullDownRefresh();
uni.hideLoading();
});
}
},
onReachBottom: function() {
this.page = this.page + 1;
this.getList();
},
onPullDownRefresh: function() {
this.page = 1;
this.getList();
}
}
</script>
<style lang="less">
.img-span{
display: block;
padding: 2px 6px;
font-weight: 400;
font-size: 10px;
color: #FFFFFF;
background: linear-gradient(-90deg, #FF6F48, #FF9E69);
border-radius: 10px 3px 10px 3px;
margin-left: 5px;
}
.list-top-view-title{
color: #13141A;
font-weight: bold;
font-size: 35rpx;
}
.list-top-view{
display: flex;
flex-direction: row;
align-items: center;
}
.list-bottom-time{
font-weight: 400;
font-size: 25rpx;
color: #999999;
margin-top: 5px;
}
.list-bottom-ding{
font-weight: 400;
font-size: 29rpx;
color: #555555;
}
.list-bottom{
width: 100%;
display: flex;
flex-direction: column;
}
.shijiH{
color: #FF8400;
}
.shijiL{
color: #029D88;
}
.list-top{
width: 100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid #DCDCDC;
padding-bottom: 15px;
margin-bottom: 15px;
}
.content-list{
width: 100%;
height: 235rpx;
background: #FFFFFF;
border-radius: 21rpx;
padding: 15px;
margin-top: 12px;
}
.content-mian{
width: 95%;
height: 100%;
display: flex;
flex-direction: column;
margin: 0 auto;
padding-bottom: 30px;
}
.content {
width: 100%;
// height: 100vh;
background: #f7f7f7;
// overflow: scroll;
}
.tui-tab-item-title {
// color: #ffffff;
font-size: 30rpx;
height: 80rpx;
line-height: 80rpx;
flex-wrap: nowrap;
white-space: nowrap;
}
.tui-tab-item-title-active {
border-bottom: 1px solid #557EFD;
color: #557EFD;
font-size: 32upx;
font-weight: bold;
border-bottom-width: 6upx;
text-align: center;
}
.item {
background: #FFFFFF;
padding: 32rpx;
margin: 32rpx;
font-size: 28rpx;
box-shadow: 7px 9px 34px rgba(0, 0, 0, 0.1);
border-radius: 16upx;
}
</style>

View File

@ -0,0 +1,756 @@
<template>
<view>
<view class="" v-if="XCXIsSelect != '否'">
<view class="bg padding dhjsbg">
<view class="flex align-center justify-between">
<view class="" style="font-size: 28rpx;color: #FFFFFF;margin-top: 6px;">当前余额()</view>
<view v-if="jsczSel != ''" class="text-lg" style="text-decoration: underline;color: #ffffff;"
@tap="goMyLB">我的老板</view>
</view>
<view style="font-size: 50rpx;color: #FFFFFF;margin-top: 15rpx;font-weight: bold;"><text
style="font-size: 32rpx;margin-right: 6px;">¥</text>{{money}}</view>
</view>
<view class="" style="margin-top: -60px;padding: 30rpx;">
<view class="bg padding" style="border-radius: 20rpx;">
<view class="text-lg margin-bottom">当前可提现金额:{{currentRealIncome}}
</view>
<view class="padding-bottom-sm">
<input type="number" :placeholder="withdrawalAmountText" @input="withdrawalAmount"
v-model="moneyNum">
</view>
<view style="width: 654upx;margin: 0 auto;height: 1upx;background: #E6E6E6;"></view>
<view class="text-grey margin-top-xs">{{placeholder}}</view>
<view class="margin-top-xs margin-frame" style="font-size: 26rpx;" v-if="txMsg">*{{txMsg}}</view>
</view>
<view class="bg margin-top padding-lr" style="border-radius: 20rpx; padding: 20rpx 35rpx;">
<view>
<view v-for="(item,index) in openLists" :key='index'>
<view class="align-center justify-between"
style="display: flex;height: 100upx;padding: 20upx 0;"
v-if="item.text === '微信' && wxTxSel != '否'">
<view class="flex align-center">
<image :src="item.image" style="width: 50upx;height: 50upx;border-radius: 50upx;">
</image>
<view style="font-size: 30upx;margin-left: 20upx;">{{item.text}}
</view>
</view>
<radio-group name="openWay" style="margin-left: 20upx;" @tap='selectWay(item)'>
<label class="tui-radio">
<radio color="#029d88" :checked="openWay === item.id ? true : false" />
</label>
</radio-group>
</view>
<view class="align-center justify-between"
style="display: flex;height: 100upx;padding: 20upx 0;"
v-if="item.text === '银联' && ylTxSel != '否'">
<view class="flex align-center">
<image :src="item.image" style="width: 50upx;height: 50upx;border-radius: 50upx;">
</image>
<view style="font-size: 30upx;margin-left: 20upx;">{{item.text}}</view>
</view>
<radio-group name="openWay" style="margin-left: 20upx;" @tap='selectWay(item)'>
<label class="tui-radio">
<radio color="#029d88" :checked="openWay === item.id ? true : false" />
</label>
</radio-group>
</view>
<view class="align-center justify-between"
style="display: flex;height: 100upx;padding: 20upx 0;" v-if="item.text === '支付宝'">
<view class="flex align-center">
<image :src="item.image" style="width: 50upx;height: 50upx;border-radius: 50upx;">
</image>
<view style="font-size: 30upx;margin-left: 20upx;">{{item.text}}
</view>
</view>
<radio-group name="openWay" style="margin-left: 20upx;" @tap='selectWay(item)'>
<label class="tui-radio">
<radio color="#029d88" :checked="openWay === item.id ? true : false" />
</label>
</radio-group>
</view>
</view>
</view>
</view>
<view class="bg radius margin-top padding" style="border-radius: 20rpx;margin-bottom: 90rpx; padding: 45rpx 40rpx;"
v-if="XCXIsSelect != '否'">
<view class="flex align-center justify-between" @click="goNav('/my/wallet/zhifubao')">
<view class="flex align-center">
<!-- <image
src="https://admin.sjajk.com/file/uploadPath/2023/01/03/da75d52b95a64fc349d0353ab16cb719.png"
style="width: 44rpx;height: 44rpx;"></image> -->
<view>提现账号</view>
</view>
<image src="../../../static/img/you.png" style="width: 16rpx;height: 28rpx;"></image>
</view>
<view class="flex align-center justify-between margin-top-xl"
@click="goNav('/my/wallet/mymoneydetail')">
<view class="flex align-center">
<!-- <image
src="https://admin.sjajk.com/file/uploadPath/2023/01/03/ba45c8489a14029c1782ac0a28fd8a49.png"
style="width: 48rpx;height: 34rpx;"></image> -->
<view>钱包明细</view>
</view>
<image src="../../../static/img/you.png" style="width: 16rpx;height: 28rpx;"></image>
</view>
<view class="flex align-center justify-between margin-top-xl" @click="goNav('/pages/my/applyBroker/withdrawalRecord')">
<view class="flex align-center">
<!-- <image
src="https://admin.sjajk.com/file/uploadPath/2023/01/03/e90eb8a74548dc3b11c3c856e24e6fbc.png"
style="width: 40rpx;height: 52rpx;"></image> -->
<view>提现记录</view>
</view>
<image src="../../../static/img/you.png" style="width: 16rpx;height: 28rpx;"></image>
</view>
<view class="flex align-center justify-between margin-top-xl" @click="goNav('/my/wallet/yinhangka')"
v-if="ylTxSel != '否'">
<view class="flex align-center">
<!-- <image
src="https://admin.sjajk.com/file/uploadPath/2023/01/03/ba45c8489a14029c1782ac0a28fd8a49.png"
style="width: 48rpx;height: 34rpx;"></image> -->
<view>银行卡账号</view>
</view>
<image src="../../../static/img/you.png" style="width: 16rpx;height: 28rpx;"></image>
</view>
<!-- <view @click="TuiPrice()" v-if="renzheng ==2||renzheng ==5">退保证金</view> -->
</view>
</view>
<view
style="position: fixed;bottom: 0rpx;left: 0;right: 0;background: #FFFFFF;height: 110rpx;line-height: 110rpx;z-index: 999;width: 100%;padding: 0 30rpx;">
<view class="btn" @click="cashMoney">立即提现</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
XCXIsSelect: '否',
tablist: [{
id: 1,
name: '我的余额'
}, {
id: 2,
name: '我的收益'
}],
bankCard: '',
title_color: 2,
// bgCol1: '#1E1F31',
bgCol2: '#096f4b',
money: 0,
avatar: '',
Profit: 0,
openLists: [{
image: '../../../static/images/zhifubao.png',
text: '支付宝',
id: 1
}, {
image: 'https://wap.quanmindaojia.com/file/uploadPath/2023/02/22/88a1bd822b9632aaef8894021f7c9050.jpg',
text: '银联',
id: 2
}, {
image: '../../../static/images/icon_weixin.png',
text: '微信',
id: 3
}],
wxTxSel: '否',
ylTxSel: '否',
jsczSel: '否',
openWay: 1,
wallet: [{
id: 1,
num: '5',
price: '5',
isSelect: true
},
{
id: 2,
num: '20',
price: '20',
isSelect: false
},
{
id: 3,
num: '50',
price: '50',
isSelect: false
},
{
id: 4,
num: '100',
price: '100',
isSelect: false
},
{
id: 5,
num: '200',
price: '200',
isSelect: false
},
{
id: 6,
num: '500',
price: '500',
isSelect: false
}
],
moneyNum: null,
thisSelect: {
id: 1,
num: '5',
price: '5',
isSelect: true
},
ylSel: '否',
charge: 0, //
maxMoney: 0, //
minMoney: 0, //
ratio: '', //
placeholder: '',
renzheng: 0,
sp: 0,
txMsg: '',
currentRealIncome: null,
withdrawalAmountText: "请输入提现金额",
withdrawalAmountNumType: null,
}
},
onLoad() {
this.wxTxSel = this.$queue.getData('wxTxSel');
this.ylTxSel = this.$queue.getData('ylTxSel');
this.jsczSel = this.$queue.getData('jsczSel');
this.XCXIsSelect = this.$queue.getData("XCXIsSelect");
if (this.XCXIsSelect != '否') {
uni.setNavigationBarTitle({
title: '我的钱包'
})
} else {
uni.setNavigationBarTitle({
title: '我的信息'
})
}
this.txMsg = this.$queue.getData('txMsg');
this.avatar = uni.getStorageSync('avatar')
this.renzheng = uni.getStorageSync("renzheng")
},
onShow() {
this.ylSel = this.$queue.getData('ylSel');
this.getMoney()
this.getCharge()
this.getMinMoney()
this.getMaxMoney()
this.getRatio()
this.getUserInfo()
},
methods: {
withdrawalAmount(e) {
let withdrawalAmountNumType = Number(e.detail.value);
this.withdrawalAmountNumType = Number(e.detail.value);
if (withdrawalAmountNumType && (withdrawalAmountNumType > this.currentRealIncome)) {
this.$nextTick(() => {
this.moneyNum = "";
this.withdrawalAmountText = "不能超过当前可提现金额,请重新输入";
})
}
},
goMyLB() {
uni.navigateTo({
url: '/my/wallet/therapist'
});
},
//退
TuiPrice() {
let that = this
let zhiFuBao = uni.getStorageSync('zhiFuBao')
let zhiFuBaoName = uni.getStorageSync('zhiFuBaoName')
if (!zhiFuBao && !zhiFuBaoName) {
uni.navigateTo({
url: '/my/wallet/zhifubao'
})
} else {
let renzheng = uni.getStorageSync("renzheng")
console.log(renzheng)
if (renzheng == 2 || renzheng == 5) {
uni.showModal({
title: '提示',
content: '是否确定退还保证金?退还后将不能发布订单',
success: function(res) {
if (res.confirm) {
console.log('用户点击确定');
that.$Request.post("/app/userCertification/exitMoney").then(res => {
console.log(res)
if (res.msg == '您还有未下架的订单,请先下架!') {
uni.showToast({
title: res.msg,
icon: 'none'
});
} else if (res.msg == '您还有未服务的订单,请先完成!') {
uni.showToast({
title: res.msg,
icon: 'none'
});
} else if (res.msg == 'success') {
uni.showToast({
title: '退还成功',
icon: 'none'
});
uni.switchTab({
url: '/pages/my/index'
})
}
});
} else if (res.cancel) {
console.log('用户点击取消');
}
}
});
}
}
},
getUserInfo() {
this.$Request.get("/app/user/selectUserById").then(res => {
if (res.code == 0) {
this.avatar = res.data.avatar ? res.data.avatar : '../../../static/logo.png'
uni.setStorageSync('avatar', res.data.avatar)
if (res.data.bankCard) {
this.bankCard = res.data.bankCard
}
}
});
},
//
getCharge() {
this.$Request.get("/app/common/type/152").then(res => {
if (res.code == 0) {
this.charge = res.data.value
this.placeholder = '服务费:' + this.charge * 100 + '%' + ',最低提现:' +
this.minMoney * 1 + ',最高提现:' + this.maxMoney * 1
}
});
},
//
getMinMoney() {
this.$Request.get("/app/common/type/112").then(res => {
if (res.code == 0) {
this.minMoney = res.data.value
this.placeholder = '服务费:' + this.charge * 100 + '%' + ',最低提现:' +
this.minMoney * 1 + ',最高提现:' + this.maxMoney * 1
}
});
},
//
getMaxMoney() {
this.$Request.get("/app/common/type/153").then(res => {
if (res.code == 0) {
this.maxMoney = res.data.value
this.placeholder = '服务费:' + this.charge * 100 + '%' + ',最低提现:' +
this.minMoney * 1 + ',最高提现:' + this.maxMoney * 1
}
});
},
//
getRatio() {
this.$Request.get("/app/common/type/154").then(res => {
if (res.code == 0 && res.data && res.data.value) {
this.ratio = res.data.value
this.placeholder = '服务费:' + this.charge * 100 + '%' + ',最低提现:' +
this.minMoney * 1 + ',最高提现:' + this.maxMoney * 1
this.wallet.forEach(re => {
re.num = re.price * res.data.value
})
}
});
},
cut(e) {
this.title_color = e
},
goNav(url) {
console.log(url)
uni.navigateTo({
url
})
},
active(e) {
this.wallet.forEach(res => {
if (res.id == e.id) {
res.isSelect = true
this.thisSelect = e
} else {
res.isSelect = false
}
})
},
//
getMoney() {
this.$Request.get("/app/userMoney/selectMyMoney").then(res => {
if (res.code == 0 && res.data) {
console.log(res.data.money)
this.currentRealIncome = res.data?.withdrawableAmount;
this.money = res.data.money
}
});
},
selectWay: function(item) {
this.openWay = item.id;
},
pay() {
let data = {
money: this.thisSelect.price
}
console.log(data)
//
this.$Request.post("/app/appOrder/insertOrder", data).then(res => {
console.log(res, '********')
uni.showLoading({
title: '支付中...'
});
if (res.code == 0) {
// this.Profit = res.data
if (this.openWay == 2) {
// #ifdef APP-PLUS
// APP id
this.$Request.post("/app/wxPay/payAppOrder", {
id: res.data.id
}).then(ret => {
this.isCheckPay(ret.code, 'wxpay', JSON.stringify(ret.data));
});
// #endif
// #ifdef MP-WEIXIN
//
this.$Request.post('/app/wxPay/wxPayJsApiOrder', {
orderId: res.data.id
}).then(ret => {
uni.hideLoading()
uni.requestPayment({
provider: 'wxpay',
timeStamp: ret.data.timestamp,
nonceStr: ret.data.noncestr,
package: ret.data.package,
signType: ret.data.signType,
paySign: ret.data.sign,
success: function(suc) {
console.log('success:' + JSON.stringify(suc));
uni.showToast({
title: '支付成功',
icon: 'success'
})
setTimeout(d => {
uni.navigateBack(1)
}, 1000);
},
fail: function(err) {
console.log('fail:' + JSON.stringify(err));
uni.showToast({
title: '支付失败',
icon: 'none'
})
}
});
});
// #endif
// #ifdef H5
let ua = navigator.userAgent.toLowerCase();
if (ua.indexOf('micromessenger') !== -1) {
this.$Request.post('/app/wxPay/wxPayMpOrder?orderId=' + res.data.id).then(res => {
if (res.code == 0) {
this.callPay(res.data);
} else {
uni.showToast({
icon: 'none',
title: '支付失败!'
});
}
});
} else {
this.$Request.post('/app/aliPay/payOrder?orderId=' + res.data.id).then(
res => {
if (res.code === 0) {
const div = document.createElement('div')
div.innerHTML = res.data //form
document.body.appendChild(div)
document.forms[0].submit()
uni.showToast({
title: '支付成功',
icon: 'success'
})
setTimeout(d => {
uni.navigateBack(1)
}, 1000);
} else {
uni.showToast({
icon: 'none',
title: '支付失败!'
});
}
});
}
// #endif
} else {
// APP
this.$Request.post("/app/aliPay/payApp", {
id: res.data.id
}).then(ret => {
console.log(ret)
this.isCheckPay(ret.code, 'alipay', ret.data);
});
}
}
});
},
callPay: function(response) {
if (typeof WeixinJSBridge === "undefined") {
if (document.addEventListener) {
document.addEventListener('WeixinJSBridgeReady', this.onBridgeReady(response), false);
} else if (document.attachEvent) {
document.attachEvent('WeixinJSBridgeReady', this.onBridgeReady(response));
document.attachEvent('onWeixinJSBridgeReady', this.onBridgeReady(response));
}
} else {
this.onBridgeReady(response);
}
},
onBridgeReady: function(response) {
let that = this;
if (!response.package) {
return;
}
console.log(response, '++++++++')
WeixinJSBridge.invoke(
'getBrandWCPayRequest', {
"appId": response.appid, //
"timeStamp": response.timestamp, //1970
"nonceStr": response.noncestr, //
"package": response.package,
"signType": response.signType, //
"paySign": response.sign //
},
function(res) {
console.log(res, '/*-/*-/*-')
if (res.err_msg === "get_brand_wcpay_request:ok") {
// 使,
//res.err_msgok
uni.showLoading({
title: '支付成功'
});
setTimeout(function() {
uni.hideLoading();
}, 1000);
} else {
uni.hideLoading();
}
WeixinJSBridge.log(response.err_msg);
}
);
},
isCheckPay(status, name, order) {
if (status == 0) {
this.setPayment(name, order);
} else {
uni.hideLoading();
uni.showToast({
title: '支付信息有误',
icon: 'none'
});
}
},
setPayment(name, order) {
console.log('*-*-*')
uni.requestPayment({
provider: name,
orderInfo: order, //
success: function(res) {
console.log(res)
uni.hideLoading();
uni.showLoading({
title: '支付成功'
});
setTimeout(d => {
uni.navigateBack(1)
}, 1000);
},
fail: function(err) {
console.log(err)
uni.hideLoading();
},
complete() {
uni.hideLoading();
}
});
},
//
cashMoney() {
if (!this.moneyNum) {
uni.showToast({
icon: 'none',
title: '请输入提现金额'
})
return
}
if (this.moneyNum == 0 || this.moneyNum < 100) {
uni.showToast({
icon: 'none',
title: '最低提现金额不能少于100元'
})
return
}
if (this.moneyNum > this.money * 1) {
uni.showToast({
icon: 'none',
title: '您的余额不足'
})
return
}
if (this.withdrawalAmountNumType % 100 !== 0) {
this.$nextTick(() => {
this.moneyNum = "";
this.withdrawalAmountText = "不支持零钱取现,只能进行整百元的操作";
uni.showToast({
title: "不支持零钱提现,只能进行整百元的操作",
icon: "none",
duration: 2000,
})
})
return;
}
// if (this.moneyNum*1+this.charge*this.moneyNum > this.money*1) {
// uni.showToast({
// icon: 'none',
// title: ''
// })
// return
// }
let zhiFuBao = uni.getStorageSync('zhiFuBao')
let zhiFuBaoName = uni.getStorageSync('zhiFuBaoName')
if (!zhiFuBao && !zhiFuBaoName && this.openWay == 1) {
uni.navigateTo({
url: '/my/wallet/zhifubao'
})
return
}
if (!this.bankCard && this.openWay == 2) {
uni.navigateTo({
url: '/my/wallet/yinhangka'
})
return
}
let that = this
that.sp = (that.moneyNum * this.charge).toFixed(2)
uni.showModal({
title: '提示',
content: '本次提现' + that.moneyNum + '元,服务费' + this.sp + '元,是否确认提现?',
success: function(res) {
if (res.confirm) {
that.$Request.get("/app/cash/cashMoney", {
money: that.moneyNum,
userType: 2,
classify: that.openWay
}).then(res => {
if (res.code == 0) {
uni.showToast({
icon: 'none',
title: '提现申请成功,请耐心等待!'
})
that.moneyNum = null
} else {
uni.showToast({
icon: 'none',
title: res.msg
})
}
that.getMoney()
});
} else if (res.cancel) {
console.log('用户点击取消');
}
}
});
}
}
}
</script>
<style>
page {
background-color: #F2F2F2;
}
.bg {
background-color: #FFFFFF;
}
.margin-frame{
border:1rpx dashed #fe912e;
border-radius: 12rpx;
padding: 15rpx;
color: #fe912e;
}
.dhjsbg {
width: 100%;
height: 166px;
padding: 28px;
background:#f6f6f6 url('../../../static/wallet/reduce.png');
background-repeat: no-repeat;
background-size: 100% 100%;
display: flex;
flex-direction: column;
}
.active {
border: 1px solid #096f4b !important;
color: #096f4b !important;
}
.title_btn {
height: 78upx;
line-height: 78upx;
/* background: #f7f7f7; */
}
.btn {
background: linear-gradient(90deg, #019C88, #28BA92, #35C495);
color: #FFFFFF;
margin: 16rpx 0;
width: 100%;
border-radius: 50rpx;
height: 78rpx;
line-height: 78rpx;
font-size: 30rpx;
text-align: center;
}
.bgCol2 {
color: #096f4b;
}
.haha {
display: flex;
/* justify-content: space-around; */
}
.inner {
margin-left: 20px;
}
/* .text-lg text {
font-weight: 540;
} */
</style>

View File

@ -0,0 +1,191 @@
<template>
<view class="content">
<view class="content-mian">
<view class="content-list" v-for="(item, index) in list" :key="index">
<view class="list-top">
<view class="list-top-view">
<span class="list-top-view-title">{{item.title}}</span>
</view>
<text v-if="item.type == 1" class="text-olive" style="font-size: 32upx;font-weight: 600"><text class="text-olive">+</text>{{item.money}}</text>
<text v-if="item.type == 2" class="text-red" style="font-size: 32upx;font-weight: 600"><text class="text-red">-</text>{{item.money}}</text>
</view>
<view class="list-bottom">
<view class="list-bottom-ding">
{{item.content}}
</view>
<view class="list-bottom-time">
创建时间{{item.createTime}}
</view>
</view>
</view>
<empty v-if="list.length == 0" content="暂无明细" ></empty>
</view>
</view>
</template>
<script>
import empty from '@/components/empty.vue'
export default {
components: {
empty
},
data() {
return {
list: [],
page: 1,
limit: 10,
tabIndex: 1,
checkReZhiShu: '否',
checkReTuanZhang: '否',
checkReFeiZhiShu: '否',
scrollTop: false,
contentText: {
contentdown: '上拉显示更多',
contentrefresh: '正在加载...',
contentnomore: '没有更多数据了'
}
}
},
onLoad() {
this.$queue.showLoading("加载中...");
this.getList();
},
onPageScroll: function(e) {
this.scrollTop = e.scrollTop > 200;
},
methods: {
getList() {
let userId = this.$queue.getData('userId');
let data = {
page: this.page,
limit: this.limit
}
this.$Request.getT('/app/commission/jjr/withdrawalDetail',data ).then(res => {
if (res.code === 0) {
if (this.page === 1) {
this.list = res.data.list;
} else {
this.list = [...this.list, ...res.data.list];
}
}
uni.stopPullDownRefresh();
uni.hideLoading();
});
}
},
onReachBottom: function() {
this.page = this.page + 1;
this.getList();
},
onPullDownRefresh: function() {
this.page = 1;
this.getList();
}
}
</script>
<style lang="less">
.img-span{
display: block;
padding: 2px 6px;
font-weight: 400;
font-size: 10px;
color: #FFFFFF;
background: linear-gradient(-90deg, #FF6F48, #FF9E69);
border-radius: 10px 3px 10px 3px;
margin-left: 5px;
}
.list-top-view-title{
color: #13141A;
font-weight: bold;
font-size: 35rpx;
}
.list-top-view{
display: flex;
flex-direction: row;
align-items: center;
}
.list-bottom-time{
font-weight: 400;
font-size: 25rpx;
color: #999999;
margin-top: 5px;
}
.list-bottom-ding{
font-weight: 400;
font-size: 29rpx;
color: #555555;
}
.list-bottom{
width: 100%;
display: flex;
flex-direction: column;
}
.shijiH{
color: #FF8400;
}
.shijiL{
color: #029D88;
}
.list-top{
width: 100%;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid #DCDCDC;
padding-bottom: 15px;
margin-bottom: 15px;
}
.content-list{
width: 100%;
height: 235rpx;
background: #FFFFFF;
border-radius: 21rpx;
padding: 15px;
margin-top: 12px;
}
.content-mian{
width: 95%;
height: 100%;
display: flex;
flex-direction: column;
margin: 0 auto;
padding-bottom: 30px;
}
.content {
width: 100%;
// height: 100vh;
background: #f7f7f7;
// overflow: scroll;
}
.tui-tab-item-title {
// color: #ffffff;
font-size: 30rpx;
height: 80rpx;
line-height: 80rpx;
flex-wrap: nowrap;
white-space: nowrap;
}
.tui-tab-item-title-active {
border-bottom: 1px solid #557EFD;
color: #557EFD;
font-size: 32upx;
font-weight: bold;
border-bottom-width: 6upx;
text-align: center;
}
.item {
background: #FFFFFF;
padding: 32rpx;
margin: 32rpx;
font-size: 28rpx;
box-shadow: 7px 9px 34px rgba(0, 0, 0, 0.1);
border-radius: 16upx;
}
</style>

View File

@ -10,14 +10,10 @@
<view class="item-view">
<view class="item-view-title">
<span class="item-view-title-text">{{item.title}}</span>
<span class="header-bottom-title-liao">
<!-- <span class="header-bottom-title-liao">
{{item.typeName?item.typeName:'项目'}}
</span>
</span> -->
</view>
<!-- <view class="item-view-xiangmu">
<span class="xiaoer item-view-biao">{{item.classifyName}}</span>
<span>已售{{item.sales}} | 好评{{item.esteemRate}}%</span>
</view> -->
<view class="item-view-bottom">
<view class="item-view-bottom-qian">
<span></span>
@ -144,6 +140,18 @@
uni.navigateTo({
url:'/pages/my/fuwuliaochengDetail?id='+item.projectId+'&limit='+this.limit+'&page='+this.page+'&name='+'index'
})
}else if(item.type=='114'){//
uni.navigateTo({
url:'/pages/shop/qiyeDatail?id='+item.projectId+'&limit='+this.limit+'&page='+this.page+'&name='+'index'
})
}else if(item.type=='111'){//
uni.navigateTo({
url:'/pages/my/pinTuanOderDrtail?id='+item.projectId+'&limit='+this.limit+'&page='+this.page+'&name='+'index'
})
}else if(item.type=='112'){//
uni.navigateTo({
url:'/pages/my/miaoShaOderDrtail?id='+item.projectId+'&limit='+this.limit+'&page='+this.page+'&name='+'index'
})
}
}

View File

@ -129,10 +129,71 @@
<view class="my-use width">
<view class="my-use-title">常用功能</view>
<view class="my-use-view">
<view class="my-use-list" v-for="(item,index) in useList" :key="index" @click="useToUrl(item)">
<image style="padding: 3rpx;" :src="item.urlImg" mode=""></image>
<span class="my-use-list-text">{{item.text}}</span>
<view class="my-use-list" @click="useToUrl('/my/gird/shoucang')">
<image style="padding: 3rpx;" src="../../static/my-gong-1.png" mode=""></image>
<span class="my-use-list-text">我的收藏</span>
</view>
<view class="my-use-list" @click="useToUrl('/pages/my/historyMy')">
<image style="padding: 3rpx;" src="../../static/my-gong-8.png" mode=""></image>
<span class="my-use-list-text">浏览历史</span>
</view>
<view class="my-use-list" @click="useToUrl('/my/address/address')">
<image style="padding: 3rpx;" src="../../static/my-gong-5.png" mode=""></image>
<span class="my-use-list-text">地址管理</span>
</view>
<view class="my-use-list" @click="useToUrl('/my/setting/index')">
<image style="padding: 3rpx;" src="../../static/my-gong-7.png" mode=""></image>
<span class="my-use-list-text">设置中心</span>
</view>
<view class="my-use-list" @click="useToUrl('/pages/my/hehuo')">
<image style="padding: 3rpx;" src="../../static/my-gong-2.png" mode=""></image>
<span class="my-use-list-text">应聘技师</span>
</view>
<view class="my-use-list" @click="useToUrl('/pages/my/cooperation')">
<image style="padding: 3rpx;" src="../../static/my-gong-4.png" mode=""></image>
<span class="my-use-list-text">城市合伙人</span>
</view>
<view class="my-use-list" v-if="blIsJjr=='0'" @click="useToUrl('/pages/my/applyBroker/index')">
<image style="padding: 3rpx;" src="../../static/my-gong-11.png" mode=""></image>
<span class="my-use-list-text">申请经纪人</span>
</view>
<view class="my-use-list" v-if="blIsJjr=='1'" @click="useToUrl('/pages/my/applyBroker/myBroker')">
<image style="padding: 3rpx;" src="../../static/my-gong-12.png" mode=""></image>
<span class="my-use-list-text">我是经纪人</span>
</view>
<!-- <view class="my-use-list" @click="useToUrl('/pages/my/applySalesperson/index')">
<image style="padding: 3rpx;" src="../../static/my-gong-14.png" mode=""></image>
<span class="my-use-list-text">申请业务员</span>
</view>
<view class="my-use-list" @click="useToUrl('/pages/my/applySalesperson/mySalesperson')">
<image style="padding: 3rpx;" src="../../static/my-gong-13.png" mode=""></image>
<span class="my-use-list-text">我是业务员</span>
</view>
<view class="my-use-list" @click="useToUrl('/pages/my/applyDistributor/index')">
<image style="padding: 3rpx;" src="../../static/my-gong-15.png" mode=""></image>
<span class="my-use-list-text">申请分销员</span>
</view>
<view class="my-use-list" @click="useToUrl('/pages/my/applyDistributor/myDistributor')">
<image style="padding: 3rpx;" src="../../static/my-gong-16.png" mode=""></image>
<span class="my-use-list-text">我是分销员</span>
</view> -->
<view class="my-use-list" @click="useToUrl('/pages/my/myteam')">
<image style="padding: 3rpx;" src="../../static/my-gong-9.png" mode=""></image>
<span class="my-use-list-text">我的团队</span>
</view>
<view class="my-use-list" @click="useToUrl('/pages/my/fuwuGengduo')">
<image style="padding: 3rpx;" src="../../static/my-gong-10.png" mode=""></image>
<span class="my-use-list-text">项目推荐</span>
</view>
<view class="my-use-list" @click="useToUrl('/pages/my/invitationUser')">
<image style="padding: 3rpx;" src="../../static/my-gong-3.png" mode=""></image>
<span class="my-use-list-text">分享好友</span>
</view>
<view class="my-use-list" @click="useToUrl('/my/help/feedbackIndex')">
<image style="padding: 3rpx;" src="../../static/my-gong-6.png" mode=""></image>
<span class="my-use-list-text">帮助中心</span>
</view>
</view>
</view>
<view class="item" v-for="(item,index) in dataList" :key="index" @click="itemClick(item)">
@ -209,93 +270,13 @@
couponnum: '0',
renzheng: 0,
XCXIsSelect: '否',
useList: [{
urlImg: '../../static/my-gong-1.png',
text: '我的收藏',
link: '/my/gird/shoucang'
},
{
urlImg: '../../static/my-gong-8.png',
text: '浏览历史',
link: '/pages/my/historyMy'
},
{
urlImg: '../../static/my-gong-5.png',
text: '地址管理',
link: '/my/address/address'
},
{
urlImg: '../../static/my-gong-7.png',
text: '设置中心',
link: '/my/setting/index'
},
{
urlImg: '../../static/my-gong-2.png',
text: '应聘技师',
link: '/pages/my/hehuo'
},
{
urlImg: '../../static/my-gong-4.png',
text: '城市合伙人',
link: '/pages/my/cooperation'
},
// {
// urlImg: '../../static/my-gong-11.png',
// text: '',
// link: '/pages/my/applyBroker/index'
// },
// {
// urlImg: '../../static/my-gong-12.png',
// text: '',
// link: '/pages/my/applyBroker/myBroker'
// },
// {
// urlImg: '../../static/my-gong-14.png',
// text: '',
// link: '/pages/my/applySalesperson/index'
// },
// {
// urlImg: '../../static/my-gong-13.png',
// text: '',
// link: '/pages/my/applySalesperson/mySalesperson'
// },
// {
// urlImg: '../../static/my-gong-15.png',
// text: '',
// link: '/pages/my/applyDistributor/index'
// },
// {
// urlImg: '../../static/my-gong-16.png',
// text: '',
// link: '/pages/my/applyDistributor/myDistributor'
// },
{
urlImg: '../../static/my-gong-9.png',
text: '我的团队',
link: '/pages/my/myteam'
},
{
urlImg: '../../static/my-gong-10.png',
text: '项目推荐',
link: '/pages/my/fuwuGengduo'
},
{
urlImg: '../../static/my-gong-3.png',
text: '分享好友',
link: '/pages/my/invitationUser'
},
{
urlImg: '../../static/my-gong-6.png',
text: '帮助中心',
link: '/my/help/feedbackIndex'
},
],
useList: [],
token: '',
vipData: [],
vipNameType: '',
dataList: [],
tagsData: []
tagsData: [],
blIsJjr:'',//1 0
}
},
onLoad(e) {
@ -330,6 +311,55 @@
}
},
methods: {
getUserInfo() {
this.$Request.get("/app/user/selectUserById").then(res => {
console.log("res.data--->", res.data);
if (res.code == 0) {
this.userName = res.data.userName
this.phone = res.data.phone;
this.invitationCode = res.data.invitationCode
this.avatar = res.data.avatar ? res.data.avatar : '../../static/logo.png'
this.isAuthentication = res.data.isAuthentication
this.isAgency = res.data.isAgency ? res.data.isAgency : 0; //广 1 2
this.blIsJjr=res.data.blIsJjr;//
this.money = res.data.money
this.couponnum = res.data.member
// uni.setStorageSync('isAuthentication', res.data.isAuthentication)
this.isShop = res.data.isShop ? res.data.isShop : 0;
uni.setStorageSync('avatar', res.data.avatar)
uni.setStorageSync('userName', res.data.userName)
uni.setStorageSync('invitationCode', res.data.invitationCode)
uni.setStorageSync('zhiFuBao', res.data.zhiFuBao)
uni.setStorageSync('zhiFuBaoName', res.data.zhiFuBaoName)
if (res.data.isAuthentication == 0 || res.data.isAuthentication == null) {
this.renzheng = 0
uni.setStorageSync("renzheng", this.renzheng)
} else if (res.data.isAuthentication == 1) {
this.renzheng = 1
uni.setStorageSync("renzheng", this.renzheng)
} else if (res.data.isAuthentication == 2) {
this.renzheng = 2
uni.setStorageSync("renzheng", this.renzheng)
} else if (res.data.isAuthentication == 3) {
this.renzheng = 3
uni.setStorageSync("renzheng", this.renzheng)
} else if (res.data.isAuthentication == 4) {
this.renzheng = 4
uni.setStorageSync("renzheng", this.renzheng)
} else if (res.data.isAuthentication == 5) {
this.renzheng = 5
uni.setStorageSync("renzheng", this.renzheng)
} else if (res.data.isAuthentication == 6) {
this.renzheng = 6
uni.setStorageSync("renzheng", this.renzheng)
}
}
});
},
qiye(){
uni.navigateTo({
url:'/pages/shop/qiyeListMy'
@ -567,71 +597,7 @@
}
});
},
getUserInfo() {
this.$Request.get("/app/user/selectUserById").then(res => {
console.log("res.data--->", res.data);
if (res.code == 0) {
this.userName = res.data.userName
this.phone = res.data.phone;
this.invitationCode = res.data.invitationCode
this.avatar = res.data.avatar ? res.data.avatar : '../../static/logo.png'
this.isAuthentication = res.data.isAuthentication
this.isAgency = res.data.isAgency ? res.data.isAgency : 0; //广 1 2
this.money = res.data.money
this.couponnum = res.data.member
// uni.setStorageSync('isAuthentication', res.data.isAuthentication)
this.isShop = res.data.isShop ? res.data.isShop : 0;
uni.setStorageSync('avatar', res.data.avatar)
uni.setStorageSync('userName', res.data.userName)
uni.setStorageSync('invitationCode', res.data.invitationCode)
uni.setStorageSync('zhiFuBao', res.data.zhiFuBao)
uni.setStorageSync('zhiFuBaoName', res.data.zhiFuBaoName)
if (res.data.isAuthentication == 0 || res.data.isAuthentication == null) {
this.renzheng = 0
uni.setStorageSync("renzheng", this.renzheng)
} else if (res.data.isAuthentication == 1) {
this.renzheng = 1
uni.setStorageSync("renzheng", this.renzheng)
} else if (res.data.isAuthentication == 2) {
this.renzheng = 2
uni.setStorageSync("renzheng", this.renzheng)
} else if (res.data.isAuthentication == 3) {
this.renzheng = 3
uni.setStorageSync("renzheng", this.renzheng)
} else if (res.data.isAuthentication == 4) {
this.renzheng = 4
uni.setStorageSync("renzheng", this.renzheng)
} else if (res.data.isAuthentication == 5) {
this.renzheng = 5
uni.setStorageSync("renzheng", this.renzheng)
} else if (res.data.isAuthentication == 6) {
this.renzheng = 6
uni.setStorageSync("renzheng", this.renzheng)
}
}
});
// #ifdef APP-PLUS
let clientid = plus.push.getClientInfo().clientid;
let sysPhone = 1;
if (plus.os.name.toLowerCase() === 'android') {
sysPhone = 1;
} else {
sysPhone = 2;
}
let userId = this.$queue.getData('userId');
if (userId) {
this.$Request.postT('/app/user/updateClientId?clientId=' + clientid + '&userId=' + userId +
'&sysPhone=' + sysPhone).then(
res => {});
}
//#endif
},
getIsVip() {
this.$Request.get("/app/UserVip/selectUserVip").then(res => {
@ -692,8 +658,8 @@
})
}
},
useToUrl(item) { //
var link = item.link
useToUrl(link) { //
// var link = item.link
if (this.userId) {
uni.navigateTo({
url: link

View File

@ -179,8 +179,9 @@
this.modalName = null;
},
qrR(path) {
this.erweimapath = path;
console.log(this.erweimapath);
console.log("this.erweimapath---",this.url);
},
getBackImageList() {
this.$Request.getT('/app/banner/selectBannerList?state=-1&classify=5').then(res => {