分销 经济
This commit is contained in:
parent
fa124f5cd1
commit
b80ae55c5e
|
@ -611,7 +611,7 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
.biaoqian{
|
.biaoqian{
|
||||||
width: 80px;
|
width: 72px;
|
||||||
height: 25px;
|
height: 25px;
|
||||||
line-height: 25px;
|
line-height: 25px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
@ -624,7 +624,8 @@
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
margin-top: -11px;
|
margin-top: -11px;
|
||||||
margin-left: 14px;
|
margin-left: 3px;
|
||||||
|
|
||||||
}
|
}
|
||||||
.bgbox-top-img{
|
.bgbox-top-img{
|
||||||
margin-top: 120rpx;
|
margin-top: 120rpx;
|
||||||
|
@ -644,7 +645,8 @@
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
margin-left: 66px;
|
margin-left: 56px;
|
||||||
|
margin-bottom: 47px;
|
||||||
}
|
}
|
||||||
.bgbox-top-show image{
|
.bgbox-top-show image{
|
||||||
width: 560.42rpx;
|
width: 560.42rpx;
|
||||||
|
|
|
@ -175,7 +175,7 @@
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.url = this.$queue.publicYuMingApp() + '/?invitation=' + this
|
this.url = this.$queue.publicYuMingApp() + '/?invitation=' + this
|
||||||
.invitationCode;
|
.invitationCode+"&flag=3";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
<view class="flex align-center list-right-top">
|
<view class="flex align-center list-right-top">
|
||||||
<view class="list-right-top-view">
|
<view class="list-right-top-view">
|
||||||
<view class="list-right-top-name">
|
<view class="list-right-top-name">
|
||||||
{{ item.name }}
|
{{ item.name?item.name:item.userName }}
|
||||||
</view>
|
</view>
|
||||||
<view class="keyuyue">
|
<view class="keyuyue">
|
||||||
{{ item.phone}}
|
{{ item.phone}}
|
||||||
|
@ -60,9 +60,11 @@
|
||||||
limit: 10,
|
limit: 10,
|
||||||
current: 0,
|
current: 0,
|
||||||
myId: uni.getStorageSync('userId') ? uni.getStorageSync('userId') : '',
|
myId: uni.getStorageSync('userId') ? uni.getStorageSync('userId') : '',
|
||||||
|
navName:'',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(e) {
|
onLoad(e) {
|
||||||
|
this.navName=e.navName
|
||||||
let that = this
|
let that = this
|
||||||
that.getlist()
|
that.getlist()
|
||||||
},
|
},
|
||||||
|
@ -91,16 +93,32 @@
|
||||||
page: this.page,
|
page: this.page,
|
||||||
limit: this.limit,
|
limit: this.limit,
|
||||||
}
|
}
|
||||||
this.$Request.get("/app/commission/jjr/artificerDetail", data).then(res => {
|
if(this.navName=='经纪人'){
|
||||||
if (res.code == 0) {
|
this.$Request.get("/app/commission/jjr/artificerDetail", data).then(res => {
|
||||||
if (this.page == 1) {
|
if (res.code == 0) {
|
||||||
this.orderList = res.data.list
|
if (this.page == 1) {
|
||||||
} else {
|
this.orderList = res.data.list
|
||||||
this.orderList = [...this.orderList, ...res.data.list]
|
} else {
|
||||||
|
this.orderList = [...this.orderList, ...res.data.list]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
uni.stopPullDownRefresh();
|
||||||
uni.stopPullDownRefresh();
|
uni.hideLoading();
|
||||||
})
|
})
|
||||||
|
}else if(this.navName=='分销员'){
|
||||||
|
this.$Request.getT('/app/commission/fxy/invitationDetail',data ).then(res => {
|
||||||
|
if (res.code === 0) {
|
||||||
|
if (this.page === 1) {
|
||||||
|
this.orderList = res.data.list;
|
||||||
|
} else {
|
||||||
|
this.orderList = [...this.list, ...res.data.list];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
uni.stopPullDownRefresh();
|
||||||
|
uni.hideLoading();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
onReachBottom: function() {
|
onReachBottom: function() {
|
||||||
|
|
|
@ -44,11 +44,14 @@
|
||||||
contentdown: '上拉显示更多',
|
contentdown: '上拉显示更多',
|
||||||
contentrefresh: '正在加载...',
|
contentrefresh: '正在加载...',
|
||||||
contentnomore: '没有更多数据了'
|
contentnomore: '没有更多数据了'
|
||||||
}
|
},
|
||||||
|
navName:''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad(e) {
|
||||||
|
this.navName=e.navName
|
||||||
this.$queue.showLoading("加载中...");
|
this.$queue.showLoading("加载中...");
|
||||||
|
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
onPageScroll: function(e) {
|
onPageScroll: function(e) {
|
||||||
|
@ -61,17 +64,32 @@
|
||||||
page: this.page,
|
page: this.page,
|
||||||
limit: this.limit
|
limit: this.limit
|
||||||
}
|
}
|
||||||
this.$Request.getT('/app/commission/jjr/incomeDetail',data ).then(res => {
|
if(this.navName=='经纪人'){
|
||||||
if (res.code === 0) {
|
this.$Request.getT('/app/commission/jjr/incomeDetail',data ).then(res => {
|
||||||
if (this.page === 1) {
|
if (res.code === 0) {
|
||||||
this.list = res.data.list;
|
if (this.page === 1) {
|
||||||
} else {
|
this.list = res.data.list;
|
||||||
this.list = [...this.list, ...res.data.list];
|
} else {
|
||||||
|
this.list = [...this.list, ...res.data.list];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
uni.stopPullDownRefresh();
|
||||||
uni.stopPullDownRefresh();
|
uni.hideLoading();
|
||||||
uni.hideLoading();
|
});
|
||||||
});
|
}else if(this.navName=='分销员'){
|
||||||
|
this.$Request.getT('/app/commission/fxy/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() {
|
onReachBottom: function() {
|
||||||
|
|
|
@ -44,10 +44,12 @@
|
||||||
contentdown: '上拉显示更多',
|
contentdown: '上拉显示更多',
|
||||||
contentrefresh: '正在加载...',
|
contentrefresh: '正在加载...',
|
||||||
contentnomore: '没有更多数据了'
|
contentnomore: '没有更多数据了'
|
||||||
}
|
},
|
||||||
|
navName:''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad(e) {
|
||||||
|
this.navName=e.navName
|
||||||
this.$queue.showLoading("加载中...");
|
this.$queue.showLoading("加载中...");
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
|
@ -56,22 +58,36 @@
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getList() {
|
getList() {
|
||||||
let userId = this.$queue.getData('userId');
|
|
||||||
let data = {
|
let data = {
|
||||||
page: this.page,
|
page: this.page,
|
||||||
limit: this.limit
|
limit: this.limit
|
||||||
}
|
}
|
||||||
this.$Request.getT('/app/commission/jjr/withdrawalDetail',data ).then(res => {
|
if(this.navName=='经纪人'){
|
||||||
if (res.code === 0) {
|
this.$Request.getT('/app/commission/jjr/withdrawalDetail',data ).then(res => {
|
||||||
if (this.page === 1) {
|
if (res.code === 0) {
|
||||||
this.list = res.data.list;
|
if (this.page === 1) {
|
||||||
} else {
|
this.list = res.data.list;
|
||||||
this.list = [...this.list, ...res.data.list];
|
} else {
|
||||||
|
this.list = [...this.list, ...res.data.list];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
uni.stopPullDownRefresh();
|
||||||
uni.stopPullDownRefresh();
|
uni.hideLoading();
|
||||||
uni.hideLoading();
|
});
|
||||||
});
|
}else if(this.navName=='分销员'){
|
||||||
|
this.$Request.getT('/app/commission/fxy/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() {
|
onReachBottom: function() {
|
||||||
|
|
|
@ -72,41 +72,52 @@
|
||||||
phone: '',
|
phone: '',
|
||||||
textareaData:'',
|
textareaData:'',
|
||||||
jbList:[
|
jbList:[
|
||||||
{'title':'一级分销员','money':200,'id':1},
|
{'title':'一级分销员','money':'','id':1},
|
||||||
{'title':'二级分销员','money':100,'id':2}
|
{'title':'二级分销员','money':'','id':2}
|
||||||
],
|
],
|
||||||
openWay: 1,
|
openWay:'1',
|
||||||
|
money:'',
|
||||||
|
oneFee:'',
|
||||||
|
twoFee:''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
this.getChannel();
|
this.getChannel();
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 支付订单
|
// 支付订单
|
||||||
pay() {
|
pay() {
|
||||||
let that = this
|
let that = this
|
||||||
this.showpay = false
|
this.showpay = false;
|
||||||
|
if (this.userName === '') {
|
||||||
|
this.$queue.showToast('请输入姓名')
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (this.phone === '' || this.phone.length != 11) {
|
||||||
|
this.$queue.showToast('请输入正确的手机号!')
|
||||||
|
return;
|
||||||
|
}
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '付款提示',
|
title: '付款提示',
|
||||||
content: '是否确定充值',
|
content: '是否确定提交申请!',
|
||||||
success: function(re) {
|
success: function(re) {
|
||||||
if (re.confirm) {
|
if (re.confirm) {
|
||||||
console.log('用户点击确定');
|
|
||||||
that.$queue.showLoading('支付中...')
|
that.$queue.showLoading('支付中...')
|
||||||
let data = {
|
let data = {
|
||||||
ordersId: that.order.ordersId,
|
level:that.openWay,
|
||||||
|
money:that.money,
|
||||||
|
name:that.userName,
|
||||||
|
phone:that.phone,
|
||||||
|
remarks:that.textareaData,
|
||||||
type: 2
|
type: 2
|
||||||
}
|
}
|
||||||
that.$Request.post('/app/wxPay/payOrder', data).then(rea => {
|
that.$Request.post('/app/wxPay/payFxyMoney', data).then(rea => {
|
||||||
that.showpay = false
|
uni.hideLoading();
|
||||||
if (rea.code == 0) {
|
if (rea.code == 0) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '支付成功'
|
title: '支付成功'
|
||||||
})
|
})
|
||||||
uni.switchTab({
|
|
||||||
url:'/pages/order/index'
|
|
||||||
})
|
|
||||||
that.callPay(rea.data);
|
that.callPay(rea.data);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
@ -128,59 +139,40 @@
|
||||||
|
|
||||||
selectWay: function(item) {
|
selectWay: function(item) {
|
||||||
this.openWay = item.id;
|
this.openWay = item.id;
|
||||||
|
this.money=item.money
|
||||||
},
|
},
|
||||||
textareaChange(e){//备注
|
textareaChange(e){//备注
|
||||||
this.textareaData=e.detail.value
|
this.textareaData=e.detail.value
|
||||||
console.log("adsadas0",this.textareaData)
|
|
||||||
},
|
},
|
||||||
getChannel() {
|
getChannel() {
|
||||||
let userId = this.$queue.getData('userId');
|
this.$Request.getT('/app/commission/fxy/fxyConfig').then(res => {
|
||||||
this.$Request.getT('/app/artificer/selectAgencyById?userId=' + userId).then(res => {
|
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
if (res.data == null) {
|
var data=[]
|
||||||
this.bb = 1;
|
for(var i=0;i<this.jbList.length;i++){
|
||||||
} else {
|
if(this.jbList[i].id==1){
|
||||||
this.bb = res.data.status;
|
data.push({
|
||||||
this.city = res.data.city;
|
'title':'一级分销员',
|
||||||
this.age = res.data.age;
|
'money':'',
|
||||||
this.headImg = res.data.img;
|
'id':1,
|
||||||
this.userName = res.data.name;
|
'money':res.data.oneFee
|
||||||
this.phone = res.data.phone;
|
})
|
||||||
|
}else{
|
||||||
|
data.push({
|
||||||
|
'title':'二级分销员',
|
||||||
|
'money':'',
|
||||||
|
'id':2,
|
||||||
|
'money':res.data.twoFee
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
console.log(this.bb)
|
this.openWay=data[0].id;
|
||||||
// this.auditContent = res.data.auditContent;
|
this.money=data[0].money;
|
||||||
}
|
this.jbList=data;
|
||||||
});
|
|
||||||
},
|
|
||||||
save() {
|
|
||||||
if (this.userName === '') {
|
|
||||||
this.$queue.showToast('请输入姓名')
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (this.phone === '' || this.phone.length != 11) {
|
|
||||||
this.$queue.showToast('请输入正确的手机号!')
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
let userId = this.$queue.getData('userId');
|
|
||||||
let data = {
|
|
||||||
userId: userId,
|
|
||||||
name: this.userName,
|
|
||||||
phone: this.phone,
|
|
||||||
}
|
|
||||||
this.$Request.postJson('/app/artificer/insertAgency', data).then(res => {
|
|
||||||
if (res.code == 0) {
|
|
||||||
uni.hideLoading();
|
|
||||||
this.$queue.showToast('提交成功!');
|
|
||||||
setTimeout(d => {
|
|
||||||
uni.navigateBack();
|
|
||||||
}, 1000);
|
|
||||||
} else {
|
|
||||||
uni.hideLoading();
|
|
||||||
this.$queue.showToast(res.msg);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -8,52 +8,52 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="bgimg-top-view">
|
<view class="bgimg-top-view">
|
||||||
<view class="bgimg-top-money">
|
<view class="bgimg-top-money">
|
||||||
<span>方</span>
|
<span>{{listData.name}}</span>
|
||||||
<span>平台</span>
|
<!-- <span>平台</span> -->
|
||||||
<span style="color: #fff;">当前身份:一级分销员</span>
|
<span style="color: #fff;">当前身份:{{listData.level}}级分销员</span>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="mian">
|
<view class="mian">
|
||||||
<view class="mian-title" style="position: relative;">
|
<view class="mian-title" style="position: relative;">
|
||||||
<view class="mian-title-top">
|
<view class="mian-title-top">
|
||||||
<span class="money">0.00</span>
|
<span class="money">{{listData.withdrawableAmount}}</span>
|
||||||
<span class="list-title">可提现(元)</span>
|
<span class="list-title">可提现(元)</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="mian-title-top">
|
<view class="mian-title-top">
|
||||||
<span class="money">0.00</span>
|
<span class="money">{{listData.notCredited}}</span>
|
||||||
<span class="list-title">未入账(元)</span>
|
<span class="list-title">未入账(元)</span>
|
||||||
</view>
|
</view>
|
||||||
<image class="bangzhu" src="../../../static/bangzhu.png" mode=""></image>
|
<!-- <image class="bangzhu" src="../../../static/bangzhu.png" mode=""></image> -->
|
||||||
</view>
|
</view>
|
||||||
<view class="mian-list">
|
<view class="mian-list">
|
||||||
<view class="list-view">
|
<view class="list-view">
|
||||||
<view class="money">0.00</view>
|
<view class="money">{{listData.income}}</view>
|
||||||
<view class="list-title">累计佣金(元)不含手续费</view>
|
<view class="list-title">累计佣金(元)不含手续费</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="list-view">
|
<view class="list-view">
|
||||||
<view class="money">0.00</view>
|
<view class="money">{{listData.withdrawal}}</view>
|
||||||
<view class="list-title">已提现(元)</view>
|
<view class="list-title">已提现(元)</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="list-view">
|
<!-- <view class="list-view">
|
||||||
<view class="money">0.00</view>
|
<view class="money">{{listData.income}}</view>
|
||||||
<view class="list-title">总成交金额(元)</view>
|
<view class="list-title">总成交金额(元)</view>
|
||||||
</view>
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
<view class="detail-btn" @click="cashMoney">
|
<view class="detail-btn" @click="goNav('/pages/my/applyBroker/withdrawal')">
|
||||||
我要提现</view>
|
我要提现</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="mian-bottom">
|
<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>
|
<image class="mian-bottom-img" src="../../../static/my-gong-17.png" mode=""></image>
|
||||||
<span>我的收益</span>
|
<span>我的收益</span>
|
||||||
</view>
|
</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>
|
<image class="mian-bottom-img" src="../../../static/my-gong-19.png" mode=""></image>
|
||||||
<span>我的邀请</span>
|
<span>我的邀请</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="mian-bottom-list">
|
<view class="mian-bottom-list" @click="goNav('/pages/my/applyBroker/withdrawalRecord')">
|
||||||
<image class="mian-bottom-img" src="../../../static/navigate.png" mode=""></image>
|
<image class="mian-bottom-img" src="../../../static/navigate.png" mode=""></image>
|
||||||
<span>提现记录</span>
|
<span>提现记录</span>
|
||||||
</view>
|
</view>
|
||||||
|
@ -62,27 +62,49 @@
|
||||||
<view class="mian-foot-top">
|
<view class="mian-foot-top">
|
||||||
<view class="mian-foot-top-list">
|
<view class="mian-foot-top-list">
|
||||||
<span class="list-title">今日成交订单</span>
|
<span class="list-title">今日成交订单</span>
|
||||||
<span class="money">0</span>
|
<span class="money">{{listData.curOrdersCount}}</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="mian-foot-top-list">
|
<view class="mian-foot-top-list">
|
||||||
<span class="list-title">累计成交订单</span>
|
<span class="list-title">累计成交订单</span>
|
||||||
<span class="money">0</span>
|
<span class="money">{{listData.ordersCount}}</span>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="mian-foot-top" style="margin-top: 10px;">
|
<view class="mian-foot-top" style="margin-top: 10px;">
|
||||||
<view class="mian-foot-top-list">
|
<view class="mian-foot-top-list">
|
||||||
<span class="list-title">今日邀请粉丝</span>
|
<span class="list-title">今日邀请粉丝</span>
|
||||||
<span class="money">0</span>
|
<span class="money">{{listData.curUserCount}}</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="mian-foot-top-list">
|
<view class="mian-foot-top-list">
|
||||||
<span class="list-title">累计邀请粉丝</span>
|
<span class="list-title">累计邀请粉丝</span>
|
||||||
<span class="money">0</span>
|
<span class="money">{{listData.userCount}}</span>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="foot-img-list">
|
<view class="foot-img-list">
|
||||||
<image class="foot-img" src="../../../static/suggest-banner2.png" mode=""></image>
|
<image class="foot-img" @click="showModal" src="../../../static/suggest-banner2.png" mode=""></image>
|
||||||
<image class="foot-img" src="../../../static/suggest-banner3.png" mode=""></image>
|
<image class="foot-img" @click="showModalNmae" src="../../../static/suggest-banner3.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>
|
||||||
|
<!-- 用户 -->
|
||||||
|
<tki-qrcode ref="qrcode2" :val="url2" :size="200" background="#fff" foreground="#000" pdground="#000"
|
||||||
|
:onval="true" :loadMake="true" @result="qrR2" :show="false"></tki-qrcode>
|
||||||
|
<view class="cu-modal" :class="modalName2 == 'Image' ? 'show' : ''" @tap="hideModal2">
|
||||||
|
<view class="cu-dialog" v-if="backgroundImage2 && erweimapath2 && haibaoShow2" @tap="hideModal2">
|
||||||
|
<view class="bg-img">
|
||||||
|
<wm-poster @success="posterSuccess2" :imgSrc="backgroundImage2" :Referrer="'我的邀请码:'+invitationCode"
|
||||||
|
:QrSrc="erweimapath2" :Title="tuiguang" :LineType="false"></wm-poster>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
@ -90,15 +112,174 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import tkiQrcode from '@/components/tki-qrcode/tki-qrcode.vue';
|
||||||
|
import wmPoster from '@/components/wm-poster/wm-posterorders.vue';
|
||||||
export default {
|
export default {
|
||||||
|
components: {
|
||||||
|
wmPoster,
|
||||||
|
tkiQrcode
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
url: '',
|
||||||
avatar: '',
|
avatar: '',
|
||||||
|
listData:[],
|
||||||
|
haibaoImg: null,
|
||||||
|
haibaoShow: false,
|
||||||
|
modalName: '',
|
||||||
|
backgroundImage:'',
|
||||||
|
erweimapath: '',
|
||||||
|
invitationCode: '',
|
||||||
|
tuiguang: '',
|
||||||
|
|
||||||
|
url2: '',
|
||||||
|
haibaoImg2: null,
|
||||||
|
haibaoShow2: false,
|
||||||
|
modalName2: '',
|
||||||
|
backgroundImage2:'',
|
||||||
|
erweimapath2: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
this.avatar = uni.getStorageSync('avatar')
|
this.avatar = uni.getStorageSync('avatar')
|
||||||
|
this.getData();
|
||||||
|
this.getBackImageList();
|
||||||
|
this.getBackImageList2();
|
||||||
|
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'
|
||||||
|
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 {
|
||||||
|
// flag=1 分销员邀请用户 flag=2分销员邀请分销员 flag=3经纪人邀请技师
|
||||||
|
this.url = this.$queue.publicYuMingApp() + '/?invitation=' + this
|
||||||
|
.invitationCode+"&flag=2";
|
||||||
|
this.url2 = this.$queue.publicYuMingApp() + '/?invitation=' + this
|
||||||
|
.invitationCode+"&flag=1";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//分享用户
|
||||||
|
getBackImageList() {
|
||||||
|
this.haibaoImg = null;
|
||||||
|
this.$Request.get("/app/commission/fxy/poster").then(res => {
|
||||||
|
uni.hideLoading();
|
||||||
|
if (res.code == 0) {
|
||||||
|
this.backgroundImage2=res.data.userImage
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//分享分销员
|
||||||
|
getBackImageList2() {
|
||||||
|
this.haibaoImg = null;
|
||||||
|
this.$Request.get("/app/commission/fxy/poster").then(res => {
|
||||||
|
uni.hideLoading();
|
||||||
|
if (res.code == 0) {
|
||||||
|
this.backgroundImage = res.data.fxyImage;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
hideModal() {
|
||||||
|
this.modalName = null;
|
||||||
|
},
|
||||||
|
hideModal2() {
|
||||||
|
this.modalName2 = null;
|
||||||
|
},
|
||||||
|
//分销员
|
||||||
|
qrR(path) {
|
||||||
|
this.erweimapath = path;
|
||||||
|
},
|
||||||
|
//用户
|
||||||
|
qrR2(path) {
|
||||||
|
this.erweimapath2 = path;
|
||||||
|
},
|
||||||
|
posterSuccess(haibaoImg) {
|
||||||
|
this.haibaoImg = haibaoImg;
|
||||||
|
this.modalName = 'Image';
|
||||||
|
},
|
||||||
|
posterSuccess2(haibaoImg) {
|
||||||
|
this.haibaoImg2 = haibaoImg;
|
||||||
|
this.modalName2 = 'Image';
|
||||||
|
},
|
||||||
|
showModalNmae() {
|
||||||
|
if (!this.haibaoImg2) {
|
||||||
|
this.haibaoShow2 = true;
|
||||||
|
this.$queue.showLoading('海报生成中...');
|
||||||
|
} else {
|
||||||
|
this.modalName2 = '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/fxy/myFxy").then(res => {
|
||||||
|
console.log("res.data--->", res.data);
|
||||||
|
if (res.code == 0) {
|
||||||
|
this.listData=res.data
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -153,14 +153,14 @@
|
||||||
<image style="padding: 3rpx;" src="../../static/my-gong-4.png" mode=""></image>
|
<image style="padding: 3rpx;" src="../../static/my-gong-4.png" mode=""></image>
|
||||||
<span class="my-use-list-text">城市合伙人</span>
|
<span class="my-use-list-text">城市合伙人</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="my-use-list" v-if="blIsJjr=='0'" @click="useToUrl('/pages/my/applyBroker/index')">
|
<!-- <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>
|
<image style="padding: 3rpx;" src="../../static/my-gong-11.png" mode=""></image>
|
||||||
<span class="my-use-list-text">申请经纪人</span>
|
<span class="my-use-list-text">申请经纪人</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="my-use-list" v-if="blIsJjr=='1'" @click="useToUrl('/pages/my/applyBroker/myBroker')">
|
<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>
|
<image style="padding: 3rpx;" src="../../static/my-gong-12.png" mode=""></image>
|
||||||
<span class="my-use-list-text">我是经纪人</span>
|
<span class="my-use-list-text">我是经纪人</span>
|
||||||
</view>
|
</view> -->
|
||||||
<!-- <view class="my-use-list" @click="useToUrl('/pages/my/applySalesperson/index')">
|
<!-- <view class="my-use-list" @click="useToUrl('/pages/my/applySalesperson/index')">
|
||||||
<image style="padding: 3rpx;" src="../../static/my-gong-14.png" mode=""></image>
|
<image style="padding: 3rpx;" src="../../static/my-gong-14.png" mode=""></image>
|
||||||
<span class="my-use-list-text">申请业务员</span>
|
<span class="my-use-list-text">申请业务员</span>
|
||||||
|
@ -168,12 +168,12 @@
|
||||||
<view class="my-use-list" @click="useToUrl('/pages/my/applySalesperson/mySalesperson')">
|
<view class="my-use-list" @click="useToUrl('/pages/my/applySalesperson/mySalesperson')">
|
||||||
<image style="padding: 3rpx;" src="../../static/my-gong-13.png" mode=""></image>
|
<image style="padding: 3rpx;" src="../../static/my-gong-13.png" mode=""></image>
|
||||||
<span class="my-use-list-text">我是业务员</span>
|
<span class="my-use-list-text">我是业务员</span>
|
||||||
</view>
|
</view> -->
|
||||||
<view class="my-use-list" @click="useToUrl('/pages/my/applyDistributor/index')">
|
<!-- <view class="my-use-list" v-if="blIsFxy=='0'" @click="useToUrl('/pages/my/applyDistributor/index')">
|
||||||
<image style="padding: 3rpx;" src="../../static/my-gong-15.png" mode=""></image>
|
<image style="padding: 3rpx;" src="../../static/my-gong-15.png" mode=""></image>
|
||||||
<span class="my-use-list-text">申请分销员</span>
|
<span class="my-use-list-text">申请分销员</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="my-use-list" @click="useToUrl('/pages/my/applyDistributor/myDistributor')">
|
<view class="my-use-list" v-if="blIsFxy=='1'" @click="useToUrl('/pages/my/applyDistributor/myDistributor')">
|
||||||
<image style="padding: 3rpx;" src="../../static/my-gong-16.png" mode=""></image>
|
<image style="padding: 3rpx;" src="../../static/my-gong-16.png" mode=""></image>
|
||||||
<span class="my-use-list-text">我是分销员</span>
|
<span class="my-use-list-text">我是分销员</span>
|
||||||
</view> -->
|
</view> -->
|
||||||
|
@ -277,6 +277,7 @@
|
||||||
dataList: [],
|
dataList: [],
|
||||||
tagsData: [],
|
tagsData: [],
|
||||||
blIsJjr:'',//1是经纪人 0不是经纪人
|
blIsJjr:'',//1是经纪人 0不是经纪人
|
||||||
|
blIsFxy:'',//1是分销员 0不是分销员
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(e) {
|
onLoad(e) {
|
||||||
|
@ -322,7 +323,7 @@
|
||||||
this.isAuthentication = res.data.isAuthentication
|
this.isAuthentication = res.data.isAuthentication
|
||||||
this.isAgency = res.data.isAgency ? res.data.isAgency : 0; //是否是推广员 1是 2否
|
this.isAgency = res.data.isAgency ? res.data.isAgency : 0; //是否是推广员 1是 2否
|
||||||
this.blIsJjr=res.data.blIsJjr;//经纪人
|
this.blIsJjr=res.data.blIsJjr;//经纪人
|
||||||
|
this.blIsFxy=res.data.blIsFxy;//分销员
|
||||||
this.money = res.data.money
|
this.money = res.data.money
|
||||||
this.couponnum = res.data.member
|
this.couponnum = res.data.member
|
||||||
|
|
||||||
|
@ -1002,7 +1003,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.my-use-list {
|
.my-use-list {
|
||||||
width: 25%;
|
width: 33%;
|
||||||
margin-top:15px;
|
margin-top:15px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
Loading…
Reference in New Issue