1.经纪人提成应按经纪人等级设定,并在经纪人数据和客户端显示经纪人等级和提成比例2.累计获得佣金可查看佣金明细1.客户端申请提交后应显示等待审批2.后台可直接看到申请信息可直接授权通过3.渠道明细是收入明细,我的渠道商是绑定的下属渠道商而不是技师,被绑定的渠道商可看到渠道商的提成比例

This commit is contained in:
1378012178@qq.com 2025-02-14 13:42:20 +08:00
parent bb29882049
commit e20284b819
12 changed files with 157 additions and 79 deletions

View File

@ -1,16 +1,12 @@
const ROOTPATH3 = "wss://192.168.2.22:8187/wss/chatSocket/";
// const ROOTPATH3 = "wss://192.168.2.22:8187/wss/chatSocket/";
const ROOTPATH = "http://192.168.2.22:8187/sqx_fast";
const ROOTPATH1 = "http://192.168.2.22:8187/sqx_fast";
// const ROOTPATH3 = "wss://sausers.blxinchuang.com/wss/chatSocket/";
// const ROOTPATH = "https://sausers.blxinchuang.com/sqx_fast";
// const ROOTPATH1 = "https://sausers.blxinchuang.com/sqx_fast";
// const ROOTPATH1 = "http://192.168.2.22:8187/sqx_fast";
//生产环境
// const ROOTPATH = "https://admin.sjajk.com/sqx_fast";//生产需替换
// const ROOTPATH1 = "https://admin.sjajk.com/sqx_fast";//生产需替换
// const ROOTPATH3 = "wss://admin.sjajk.com/wss/chatSocket/"; //联系客服//生产需替换
const ROOTPATH1 = "https://admin.sjajk.com/sqx_fast";//生产需替换
const ROOTPATH3 = "wss://admin.sjajk.com/wss/chatSocket/"; //联系客服//生产需替换
//上传地址
const UPLOAD_PATH = ROOTPATH1 + '/alioss/upload';
@ -22,7 +18,6 @@ const TX_MAP_KEY = 'VIWBZ-5OM3F-CV7JZ-NLKJY-AXSYV-TMFM6';
//ws基础连接地址
// const WS_BASE_PATH = 'ws://192.168.2.222:8187/sqx_fast/';
// const WS_BASE_PATH = 'ws://sausers.blxinchuang.com/sqx_fast/';
const WS_BASE_PATH = 'wss://admin.sjajk.com/sqx_fast/';//生产需替换
//地图ws接口

View File

@ -19,13 +19,11 @@ module.exports = {
//全局域名 部分html中需要单独替换 需要修改config中的网络请求域名
publicYuMing() {
return 'https://admin.sjajk.com'//生产需替换
// return 'https://sausers.blxinchuang.com'
// return 'http://192.168.2.222:8187'
},
//全局域名 部分html中需要单独替换 需要修改config中的网络请求域名
publicYuMingApp() {
return 'https://admin.sjajk.com'//生产需替换
// return 'https://sausers.blxinchuang.com'
return 'https://wx.sjajk.com'//生产需替换
// return 'http://192.168.2.222:8187'
},
logout() {

View File

@ -83,6 +83,7 @@ export default {
},
methods: {
_makeCode() {
console.log(8989898,this)
let that = this
if (!this._empty(this.val)) {
qrcode = new QRCode({
@ -99,6 +100,7 @@ export default {
image: that.icon, //
imageSize: that.iconSize,//
cbResult: function (res) { //
console.log(987,res)
that._result(res)
},
});

View File

@ -227,7 +227,8 @@
canvasId: _this.CanvasID,
quality: 1,
complete: res => {
_this.tempFilePath = res.tempFilePath;
console.log(321321,_this.tempFilePath)
// _this.tempFilePath = res.tempFilePath;
_this.$emit('success', res);
_this.loading = false;
_this.$queue.showToast('长按图片保存海报');

View File

@ -20,8 +20,8 @@
<script type="text/javascript">
window._AMapSecurityConfig = {
//securityJsCode: "js秘钥",
// serviceHost: 'https://wx.sjajk.com/_AMapService',
serviceHost: 'http://sauser.blxinchuang.com/_AMapService',
serviceHost: 'https://wx.sjajk.com/_AMapService',
// serviceHost: 'http://sauser.blxinchuang.com/_AMapService',
//serviceHost: 'http://120.46.52.165/_AMapService',
// serviceHost: 'http://192.168.2.222:8187/_AMapService',
};

View File

@ -174,7 +174,8 @@
"proxy" : {
//
"/TencentGet" : {
"target" : "http://sauser.blxinchuang.com/", //
// "target" : "http://sauser.blxinchuang.com/", //
"target" : "http://admin.sjajk.com/", //
"changeOrigin" : true,
"secure" : false,
"pathRewrite" : {
@ -188,7 +189,8 @@
"amap" : {
"key" : "32c22db939160ba44394eb187f7897ae",
"securityJsCode" : "260614bdf77a5961d4379530363dc5c0",
"serviceHost" : "http://sauser.blxinchuang.com/_AMapService"
// "serviceHost" : "http://sauser.blxinchuang.com/_AMapService"
"serviceHost" : "http://admin.sjajk.com/_AMapService"
}
}
},

View File

@ -784,7 +784,6 @@
uni.showLoading({
title: '连接中...'
})
// wss://sausers.blxinchuang.com/wss/chatSocket/
// websocketUtils.getWsBaseUrl()
uni.connectSocket({
url: websocketUtils.getWsBaseUrl() + userId,

View File

@ -8,7 +8,7 @@
</view>
<view class="bgimg-top-view">
<view class="bgimg-top-money">
<span>{{listData.name}}</span>
<span>{{listData.name}}</span><span>(等级{{jsLevel}};提成比例{{jsRate}})</span>
<!-- <span>平台</span>
<span style="color: #fff;">当前身份一级分销员</span> -->
</view>
@ -18,7 +18,7 @@
<view class="mian-title" style="position: relative;">
<view class="mian-title-top">
<span class="money">{{listData.withdrawableAmount}}</span>
<span class="list-title">可提现()</span>
<span class="list-title">可提现(</span>
</view>
<view class="mian-title-top">
<view class="detail-btn" @click="goNav('/pages/my/applyBroker/withdrawal')">
@ -40,7 +40,7 @@
<view class="list-title">未入账()</view>
</view>
</view>
</view>
</view>
<view class="mian-bottom">
@ -80,15 +80,16 @@
</view>
</view>
<view class="foot-img-list" @click="showModal">
<image class="foot-img" src="../../../static/suggest-banner.png" mode=""></image>
<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>
<wm-poster @success="posterSuccess" :imgSrc="backgroundImage"
:Referrer="'我的邀请码:'+invitationCode" :QrSrc="erweimapath" :Title="tuiguang"
:LineType="false"></wm-poster>
</view>
</view>
</view>
@ -107,18 +108,22 @@
return {
url: '',
avatar: '',
listData:[],
listData: [],
haibaoImg: null,
haibaoShow: false,
modalName: '',
backgroundImage:'',
backgroundImage: '',
invitationCode: '',
erweimapath: '',
tuiguang: '',
jsdj:[], //
jsLevel:'', //
jsRate:'', //
}
},
onLoad() {
async onLoad() {
this.avatar = uni.getStorageSync('avatar')
this.jsdj =await this.getJsdj()
this.getData();
this.getBackImageList();
this.getUserInfo();
@ -155,7 +160,7 @@
imageUrl: this.bgImg
}
},
methods:{
methods: {
getUserInfo() {
this.$Request.get("/app/user/selectUserById").then(res => {
if (res.code == 0) {
@ -176,11 +181,12 @@
} else {
// this.url = this.$queue.publicYuMingApp() + '/?invitation=' + this
// .invitationCode+"&flag=3";
this.url = this.$queue.publicYuMingApp() + '/pages/public/login?blJjrCode=' + this.invitationCode;
this.url = this.$queue.publicYuMingApp() +
'/pages/public/login?blJjrCode=' + this.invitationCode;
}
}
});
//#endif
}
});
@ -189,7 +195,7 @@
this.$Request.get("/app/commission/jjr/poster").then(res => {
uni.hideLoading();
if (res.code == 0) {
this.backgroundImage = res.data.artificerImage;
this.backgroundImage = res.data.artificerImage;
}
console.log("res.data--->", this.backgroundImage);
});
@ -225,22 +231,41 @@
if (!this.haibaoImg) {
this.haibaoShow = true;
this.$queue.showLoading('海报生成中...');
console.log('没有!!!')
console.log(this.backgroundImage);
console.log(this.erweimapath);
} else {
this.modalName = 'Image';
}
},
goNav(link){
goNav(link) {
uni.navigateTo({
url:link+'?navName='+'经纪人'
url: link + '?navName=' + '经纪人'
})
},
getData(){
getJsdj() {
return new Promise((resolve, reject) => {
this.$Request.get("/app/commission/jjr/findList", {}).then(res => {
resolve(res.data);
}).catch(err => {
reject([]);
});
});
},
async getData() {
let that = this
this.$Request.get("/app/commission/jjr/myJjr").then(res => {
console.log("res.data--->", res.data);
if (res.code == 0) {
this.listData=res.data
that.listData = res.data
let result = []
if(res.data.artificerCount == 0){
result = that.jsdj.filter(item => item.minNumber == 0 )
}else{
result = that.jsdj.filter(item => res.data.artificerCount > item.minNumber && res.data.artificerCount <= item.maxNumber)
}
that.jsLevel = result[0] ? result[0].level : ''
that.jsRate = result[0] ? result[0].rate + '%' : ''
}
});
}
@ -249,21 +274,24 @@
</script>
<style scoped>
.mian-foot-top-list span:nth-child(1){
.mian-foot-top-list span:nth-child(1) {
margin-bottom: 5px;
}
.mian-foot-top-list{
.mian-foot-top-list {
display: flex;
flex-direction: column;
}
.mian-foot-top{
.mian-foot-top {
width: 100%;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.mian-foot{
.mian-foot {
width: 93%;
margin: 0 auto;
background-color: #fff;
@ -274,7 +302,8 @@
align-items: center;
margin-top: 20px;
}
.bangzhu{
.bangzhu {
width: 15px;
height: 15px;
position: absolute;
@ -283,45 +312,53 @@
top: 0;
margin-top: -10px;
}
.mian-title-top{
.mian-title-top {
display: flex;
flex-direction: column;
align-items: center;
}
.foot-img-list{
.foot-img-list {
width: 92%;
margin: 0 auto;
}
.foot-img image{
width:100%;
.foot-img image {
width: 100%;
height: 100%;
}
.foot-img{
.foot-img {
width: 100%;
height:180rpx;
height: 180rpx;
margin: 0 auto;
margin-top:20rpx;
margin-top: 20rpx;
}
.mian-bottom-list span{
.mian-bottom-list span {
color: #333;
font-size: 14px;
font-weight: bold;
margin-top: 5px;
}
.mian-bottom-list{
width:30%;
.mian-bottom-list {
width: 30%;
display: flex;
flex-direction: column;
align-items: center;
}
.mian-bottom-img{
.mian-bottom-img {
height: 40px;
width: 40px;
flex: 0 0 40px;
background-color: transparent;
border-radius: 500px;
}
.mian-bottom{
.mian-bottom {
width: 93%;
margin: 0 auto;
background-color: #fff;
@ -333,37 +370,43 @@
align-items: center;
margin-top: 155px;
}
.mian-top-title{
.mian-top-title {
color: #333;
font-size: 16px;
font-weight: bold;
}
.money{
.money {
color: #333;
font-size: 15px;
font-weight: bold;
}
.list-title{
.list-title {
margin-top: 5px;
font-size: 12px;
color: #B8B8B8;
font-weight: 400;
}
.list-view{
width:30%;
.list-view {
width: 30%;
display: flex;
flex-direction: column;
align-items: center;
}
.mian-list{
width:100%;
.mian-list {
width: 100%;
display: flex;
flex-direction: row;
justify-content: space-between;
margin-bottom: 20px;
}
.mian-title{
width:100%;
.mian-title {
width: 100%;
display: flex;
flex-direction: row;
justify-content: space-between;
@ -372,7 +415,8 @@
border-bottom: 1px solid #ccc;
margin-bottom: 15px;
}
.mian{
.mian {
width: 100%;
margin: 0 auto;
background-color: #fff;
@ -382,7 +426,8 @@
flex-direction: column;
margin-top: 15px;
}
.detail-btn{
.detail-btn {
display: inline-block;
width: 100px;
text-align: center;
@ -394,12 +439,14 @@
margin: 0 auto;
margin-top: 4px;
font-size: 34rpx;
}
.content-top{
}
.content-top {
width: 100%;
height: 100%;
}
.content{
.content {
width: 100%;
height: 100vh;
padding-bottom: 10rpx;
@ -408,32 +455,38 @@
background-repeat: no-repeat;
background-size: cover;
}
page {
background-color: #F7F7F7;
}
.bgimg-top-money span:nth-child(1){
.bgimg-top-money span:nth-child(1) {
font-weight: bold;
font-size: 43rpx;
color: #FFFFFF;
}
.bgimg-top-money span:nth-child(2){
.bgimg-top-money span:nth-child(2) {
font-weight: 400;
font-size: 25rpx;
color: #FFFFFF;
margin-top:4px;
margin-top: 4px;
}
.bgimg-top-money{
.bgimg-top-money {
display: flex;
flex-direction: column;
margin-left: 10px;
}
.bgimg-top-view{
.bgimg-top-view {
width: 80%;
display: flex;
flex-direction: row;
justify-content: space-between;
}
.bgimg-top{
.bgimg-top {
width: 100%;
display: flex;
flex-direction: row;
@ -441,6 +494,7 @@
align-items: center;
margin-top: 15rpx;
}
.bgimg {
background: url(../../../static/wallet/reduce.png);
background-size: cover;
@ -453,7 +507,8 @@
justify-content: space-between;
padding: 15px;
}
.mingxi{
.mingxi {
width: 140rpx;
height: 42rpx;
line-height: 42rpx;

View File

@ -39,6 +39,28 @@
</view>
</view>
</view>
<!-- <view class="therapist-mian" v-for="(qdsCodeItem, qdsCodeIndex) in item.qdsCodeList">
<view class="therapist-mian-top">
<view class="therap-pin" >
<span>{{ qdsCodeItem.name}}:</span>
<span class="therapist-mian-view-text">
{{ qdsCodeItem.rate}}%
</span>
</view>
</view>
</view> -->
<view style="position: absolute;bottom: 0px;left: 0px;">
<view class="" v-for="(qdsCodeItem, qdsCodeIndex) in item.qdsCodeList">
<view class="">
<view class="therap-pin" >
<span>{{ qdsCodeItem.name}}:</span>
<span class="therapist-mian-view-text">
{{ qdsCodeItem.rate}}%
</span>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
@ -92,8 +114,11 @@
let data = {
page: this.page,
limit: this.limit,
// userId:this.$queue.getData('userId')
userId:673
}
this.$Request.get("/app/commission/jjr/artificerDetail", data).then(res => {
this.$Request.get("/app/commission/ywy/queryQds", data).then(res => {
console.log(res)
if (res.code == 0) {
if (this.page == 1) {
this.orderList = res.data.list
@ -404,6 +429,7 @@
justify-content: space-between;
padding: 10rpx;
align-items: center;
position: relative;
}
.touxiang-left{

View File

@ -56,7 +56,7 @@
});
},
save() {
if (this.name === '') {
if (this.userName === '') {
this.$queue.showToast('请输入姓名')
return;
}
@ -68,10 +68,11 @@
let userId = this.$queue.getData('userId');
let data = {
remarks: this.remarks,
name: this.name,
name: this.userName,
phone: this.phone,
userId
}
this.$Request.get('/app/commission/jjr/apply', data).then(res => {
this.$Request.get('/app/commission/ywy/apply', data).then(res => {
if (res.code == 0) {
uni.hideLoading();
this.$queue.showToast(res.msg);

View File

@ -39,7 +39,7 @@
<view class="mian-bottom">
<view class="mian-bottom-list" @click="goNav('/pages/my/applySalesperson/channelDetails')">
<image class="mian-bottom-img" src="../../../static/my-gong-21.png" mode=""></image>
<span>渠道明细</span>
<span>收入明细</span>
</view>
<view class="mian-bottom-list" @click="goNav('/pages/my/applySalesperson/channelMerchants')">
<image class="mian-bottom-img" src="../../../static/my-gong-18.png" mode=""></image>

View File

@ -102,7 +102,6 @@ class Request {
constructor() {
this.config = {
baseUrl: 'https://admin.sjajk.com/', // 请求的根域名//生产需替换
// baseUrl: 'https://sausers.blxinchuang.com/', // 请求的根域名
// baseUrl: 'http://192.168.2.222:8187/',
// 默认的请求头
header: {},